Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryImageProvider ¶
type DirectoryImageProvider struct {
// contains filtered or unexported fields
}
DirectoryImageProvider is an image.Provider for an OCI image (V1) for an existing tar on disk (from a buildah push <img> oci:<img> command).
func NewProviderFromPath ¶
func NewProviderFromPath(path string, tmpDirGen *file.TempDirGenerator) *DirectoryImageProvider
NewProviderFromPath creates a new provider instance for the specific image already at the given path.
func (*DirectoryImageProvider) Provide ¶
func (p *DirectoryImageProvider) Provide(_ context.Context, userMetadata ...image.AdditionalMetadata) (*image.Image, error)
Provide an image object that represents the OCI image as a directory.
type RegistryImageProvider ¶
type RegistryImageProvider struct {
// contains filtered or unexported fields
}
RegistryImageProvider is an image.Provider capable of fetching and representing a container image fetched from a remote registry (described by the OCI distribution spec).
func NewProviderFromRegistry ¶
func NewProviderFromRegistry(imgStr string, tmpDirGen *file.TempDirGenerator, registryOptions image.RegistryOptions, platform *image.Platform) *RegistryImageProvider
NewProviderFromRegistry creates a new provider instance for a specific image that will later be cached to the given directory.
func (*RegistryImageProvider) Provide ¶
func (p *RegistryImageProvider) Provide(ctx context.Context, userMetadata ...image.AdditionalMetadata) (*image.Image, error)
Provide an image object that represents the cached docker image tar fetched a registry.
type TarballImageProvider ¶
type TarballImageProvider struct {
// contains filtered or unexported fields
}
TarballImageProvider is an image.Provider for an OCI image (V1) for an existing tar on disk (from a buildah push <img> oci-archive:<name>.tar command).
func NewProviderFromTarball ¶
func NewProviderFromTarball(path string, tmpDirGen *file.TempDirGenerator) *TarballImageProvider
NewProviderFromTarball creates a new provider instance for the specific image tarball already at the given path.
func (*TarballImageProvider) Provide ¶
func (p *TarballImageProvider) Provide(ctx context.Context, metadata ...image.AdditionalMetadata) (*image.Image, error)
Provide an image object that represents the OCI image from a tarball.