Documentation
¶
Index ¶
- Constants
- func NewArchiveProvider(tmpDirGen *file.TempDirGenerator, path string) image.Provider
- func NewArchiveProviderWithPlatform(tmpDirGen *file.TempDirGenerator, path string, platform *image.Platform) image.Provider
- func NewDirectoryProvider(tmpDirGen *file.TempDirGenerator, path string) image.Provider
- func NewDirectoryProviderWithPlatform(tmpDirGen *file.TempDirGenerator, path string, platform *image.Platform) image.Provider
- func NewRegistryProvider(tmpDirGen *file.TempDirGenerator, registryOptions image.RegistryOptions, ...) image.Provider
Constants ¶
const Archive image.Source = image.OciTarballSource
const Directory image.Source = image.OciDirectorySource
const Registry image.Source = image.OciRegistrySource
Variables ¶
This section is empty.
Functions ¶
func NewArchiveProvider ¶ added in v0.0.2
func NewArchiveProvider(tmpDirGen *file.TempDirGenerator, path string) image.Provider
NewArchiveProvider creates a new provider instance for the specific image tarball already at the given path.
func NewArchiveProviderWithPlatform ¶ added in v0.3.0
func NewArchiveProviderWithPlatform(tmpDirGen *file.TempDirGenerator, path string, platform *image.Platform) image.Provider
NewArchiveProviderWithPlatform creates a new provider instance for the specific image tarball already at the given path, with the given platform used to select an image from a multiplatform layout. The platform is also enforced for single-platform layouts: Provide returns an *image.ErrPlatformMismatch if the image does not match it. A nil platform selects the only image in a single-platform layout, or the host platform in a multiplatform one. The platform should come from image.NewPlatform so that OS and architecture aliases are normalized.
func NewDirectoryProvider ¶ added in v0.0.2
func NewDirectoryProvider(tmpDirGen *file.TempDirGenerator, path string) image.Provider
NewDirectoryProvider creates a new provider instance for the specific image already at the given path.
func NewDirectoryProviderWithPlatform ¶ added in v0.3.0
func NewDirectoryProviderWithPlatform(tmpDirGen *file.TempDirGenerator, path string, platform *image.Platform) image.Provider
NewDirectoryProviderWithPlatform creates a new provider instance for the specific image already at the given path, with the given platform used to select an image from a multiplatform layout. The platform is also enforced for single-platform layouts: Provide returns an *image.ErrPlatformMismatch if the image does not match it. A nil platform selects the only image in a single-platform layout, or the host platform in a multiplatform one. The platform should come from image.NewPlatform so that OS and architecture aliases are normalized.
func NewRegistryProvider ¶ added in v0.0.2
func NewRegistryProvider(tmpDirGen *file.TempDirGenerator, registryOptions image.RegistryOptions, imageStr string, platform *image.Platform) image.Provider
NewRegistryProvider creates a new provider instance for a specific image that will later be cached to the given directory.
Types ¶
This section is empty.