Documentation
¶
Index ¶
- func ConvertPlatformV1ToCtrd(v1Platform *v1.Platform) platforms.Platform
- func DescribePlatform(platform platforms.Platform) string
- func DescribePlatforms(plats ...platforms.Platform) string
- func FindManifestForPlatform(findFor platforms.Platform, manifests []v1.Descriptor) *v1.Descriptor
- func FindManifestForPlatforms(findFor []platforms.Platform, manifests []v1.Descriptor, logger *slog.Logger) *v1.Descriptor
- func ParseNamedReference(registry, repository, tag string) (name.Reference, error)
- func WithLookupEnv(lookupEnv internal.LookupValue) func(*RemoteImageStore)
- func WithPlatforms(v1Platforms ...*v1.Platform) func(*RemoteImageStore)
- type CachedImageStore
- type Client
- type DiskLayerWriter
- type ImageStore
- type Inputs
- type LayerWriter
- type OutputValue
- type Outputs
- type RemoteImageStore
- type VersionLookup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPlatformV1ToCtrd ¶
func DescribePlatform ¶
func DescribePlatforms ¶
func FindManifestForPlatform ¶
func FindManifestForPlatform(findFor platforms.Platform, manifests []v1.Descriptor) *v1.Descriptor
func FindManifestForPlatforms ¶
func FindManifestForPlatforms(findFor []platforms.Platform, manifests []v1.Descriptor, logger *slog.Logger) *v1.Descriptor
func ParseNamedReference ¶ added in v0.21.0
func WithLookupEnv ¶ added in v0.21.0
func WithLookupEnv(lookupEnv internal.LookupValue) func(*RemoteImageStore)
func WithPlatforms ¶ added in v0.21.0
func WithPlatforms(v1Platforms ...*v1.Platform) func(*RemoteImageStore)
Types ¶
type CachedImageStore ¶
type CachedImageStore struct {
// contains filtered or unexported fields
}
CachedImageStore caches complete OCI images (not individual layers), and does so only for fully qualified image references. A fully qualified image reference has either a digest or a tag with major.minor.patch (and optionally release) components. Image refs with only major, major.minor, or `latest` tags are not cached. Note: there is no cache expiration/eviction yet.
func NewCachedImageStore ¶
func NewCachedImageStore(remote ImageStore, storePath string, logger *slog.Logger) *CachedImageStore
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(imageStore ImageStore, versionLookup VersionLookup) *Client
type DiskLayerWriter ¶
type DiskLayerWriter struct {
// contains filtered or unexported fields
}
func NewDiskLayerWriter ¶
func NewDiskLayerWriter(logger *slog.Logger) *DiskLayerWriter
type ImageStore ¶
type OutputValue ¶
type RemoteImageStore ¶
type RemoteImageStore struct {
// contains filtered or unexported fields
}
RemoteImageStore downloads and extract OCI images. The path is composed from the image reference and is rooted at `storePath`. There's no caching or cleanup.
func NewRemoteImageStore ¶
func NewRemoteImageStore(storePath string, logger *slog.Logger, options ...func(*RemoteImageStore)) *RemoteImageStore
Click to show internal directories.
Click to hide internal directories.