package
0.0.0-20241022214300-dc3471157b5b
Repository: https://github.com/datadog/rules_oci.git
Documentation: pkg.go.dev

# Functions

ContentTypesFilterHandler filters the children of the handler to only include the listed content types.
CopyAndCreateDescriptor copys a reader to a writer and returns a descriptor, note that this desciptor will only have the Digest and Size fields populated.
CopyChildrenFromHandler performs a recursive depth-first copy of the parent descriptors children (as returned by calling handler on the parent) from the provider to the ingester.
CopyContent copies a descriptor from a provider to an ingestor interfaces provider by "containerd/content".
CopyContentHandler copies the parent descriptor from the provider to the ingestor.
CopyJSONToFileAndCreateDescriptor encodes inf to json and then writes it to a file, returning the descriptor.
CopyReaderToFileAndCreateDescriptor copys a reader to a file and then returns a descriptor.
DefaultResolver returns a resolver with credential helper auth and ocitool extensions.
DescriptortoURL converts a combination of a registry and a descriptor to a URL that the blob can be downloaded from.
No description provided by the author
FetchAndJSONDecodefetches a the content from a descriptor and unmarshalls it into a struct.
No description provided by the author
GenerateBuildFilesHandler generates build files while walking a tree.
GetLayerDiffID will return the diff ID of a given layer descriptor to be used within an image config.
ImageConfigFromProvider fetches an image config from a provider and decodes it.
imageConfigToPlatform creates a Platform from an Image Config type.
ImageIndexFromProvider fetches an image index from a provider and decodes it.
ImageManifestFromProvider fetches an image manifest from a provider and decodes it.
IngestorJSONEncode encodes json and saves it to a ingester.
No description provided by the author
ManifestFromIndex gets an OCI Manifest from an image index that matches the desired platform.
MultiProvider will read from the first provider that can read the requrested descriptor.
NamedRef will parse the ref and return a Named instance of it.
No description provided by the author
NewWriterCounter function create new WriterCounter.
ProviderJSONDecode fetches content content from a provider and decodes the json content.
DescriptorFromFile reads an OCI descriptor from a file path.
RefToPath will parse the ref and just its path.
RefToRegistryName will return a hostname of a registry given a reference string.
ResolvePlatformFromDescriptor resolves a platform from an image manifest, by looking at the OS and Arch variables in the image config.
ResolverWithHeaders returns a resolver with credential helper auth and ocitool extensions.
SplitStore implementents content.Store, where reads are from a different store than writes.
WriteDescriptorToFile writes an OCI descriptor to a file.

# Variables

No description provided by the author

# Structs

ProviderWrapper wraps a remote.Fetcher to make a content.Provider, which is useful for things.
No description provided by the author
WriterCounter is counter for io.Writer, doesn't prevent concurrent writes.

# Interfaces

No description provided by the author