# Functions
Build compiles a Ndd package from an on-disk package.
BuildMetaScheme builds the default scheme used for identifying metadata in a Ndd package.
BuildObjectScheme builds the default scheme used for identifying objects in a Ndd package.
BuildPath builds a path for a compiled Ndd package.
FindNddpkgInDir finds compiled Ndd packages in a directory.
FriendlyID builds a valid DNS label string made up of the name of a package and its image digest.
IsCRD checks that an object is a CustomResourceDefinition.
IsProvider checks that an object is a Provider meta type.
NewImageCache creates a new ImageCache.
NewK8sFetcher creates a new K8sFetcher.
NewNopCache creates a new NopCache.
NewNopFetcher creates a new NopFetcher.
NewProviderLinter is a convenience function for creating a package linter for providers.
OneMeta checks that there is only one meta object in the package.
PackageNddCompatible checks that the current Ndd version is compatible with the package constraints.
PackageValidSemver checks that the package uses valid semver ranges.
ParseNameFromMeta extracts the package name from its meta file.
ParsePackageSourceFromReference parses a package source from an OCI image reference.
ToDNSLabel converts the string to a valid DNS label.
TryConvert converts the supplied object to the first supplied candidate that does not return an error.
TryConvertToPkg converts the supplied object to a pkgmeta.Pkg, if possible.
# Constants
MetaFile is the name of a Ndd package metadata file.
NddpkgExtension is the extension for compiled ndd packages.
NddpkgMatchPattern is the match pattern for identifying compiled ndd packages.
StreamFile is the name of the file in a ndd package image that contains its YAML stream.
StreamFileMode determines the permissions on the stream file.
# Structs
ImageCache stores and retrieves OCI images in a filesystem-backed cache in a thread-safe manner.
K8sFetcher uses kubernetes credentials to fetch package images.
NopCache is a cache implementation that does not store anything and always returns an error on get.
NopFetcher always returns an empty image and never returns error.