Help us shape the future of Go! Take the 2026 Go Developer Survey

oci

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 19 Imported by: 7

Documentation

Index

Constants

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL