Documentation
¶
Index ¶
- type Config
- type Fetcher
- type ImageExportStreamer
- type ImageExporter
- type ImageFetcher
- type ImageFilterer
- type ImageGetter
- type ImageImportStreamer
- type ImageImporter
- type ImageLookup
- type ImagePlatformsGetter
- type ImagePusher
- type ImageResolver
- type ImageResolverOption
- type ImageResolverOptionSetter
- type ImageResolverOptions
- type ImageResolverPerformanceSettings
- type ImageStorer
- type ImageUnpacker
- type Opt
- type Progress
- type ProgressFunc
- type Pusher
- type Transferrer
- type UnpackConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Progress ProgressFunc
}
type Fetcher ¶
type Fetcher interface {
Fetch(context.Context, ocispec.Descriptor) (io.ReadCloser, error)
}
type ImageExportStreamer ¶
type ImageExporter ¶
ImageExporter exports images to a writer
type ImageFetcher ¶
type ImageFilterer ¶
type ImageFilterer interface {
ImageFilter(images.HandlerFunc, content.Store) images.HandlerFunc
}
ImageFilterer is used to filter out child objects of an image
type ImageGetter ¶
ImageGetter is type which returns an image from an image store
type ImageImportStreamer ¶
ImageImportStreamer returns an import streamer based on OCI or Docker image tar archives. The stream should be a raw tar stream and without compression.
type ImageImporter ¶
ImageImporter imports an image into a content store
type ImageLookup ¶
ImageLookup is a type which returns images from an image store based on names or prefixes
type ImagePlatformsGetter ¶
ImagePlatformsGetter is type which returns configured platforms.
type ImagePusher ¶
type ImageResolver ¶
type ImageResolverOption ¶ added in v2.1.0
type ImageResolverOption func(*ImageResolverOptions)
func WithConcurrentLayerFetchBuffer ¶ added in v2.1.0
func WithConcurrentLayerFetchBuffer(ConcurrentLayerFetchBuffer int) ImageResolverOption
func WithDownloadLimiter ¶ added in v2.1.0
func WithDownloadLimiter(limiter *semaphore.Weighted) ImageResolverOption
func WithMaxConcurrentDownloads ¶ added in v2.1.0
func WithMaxConcurrentDownloads(maxConcurrentDownloads int) ImageResolverOption
type ImageResolverOptionSetter ¶ added in v2.1.0
type ImageResolverOptionSetter interface { ImageResolver SetResolverOptions(opts ...ImageResolverOption) }
type ImageResolverOptions ¶ added in v2.1.0
type ImageResolverOptions struct { DownloadLimiter *semaphore.Weighted Performances ImageResolverPerformanceSettings }
type ImageResolverPerformanceSettings ¶ added in v2.1.0
type ImageStorer ¶
type ImageStorer interface {
Store(context.Context, ocispec.Descriptor, images.Store) ([]images.Image, error)
}
ImageStorer is a type which is capable of storing images for the provided descriptor. The descriptor may be any type of manifest including an index with multiple image references.
type ImageUnpacker ¶
type ImageUnpacker interface {
UnpackPlatforms() []UnpackConfiguration
}
type Progress ¶
type Progress struct { Event string Name string Parents []string Progress int64 Total int64 Desc *ocispec.Descriptor // since containerd v2.0 }
Progress is used to represent a particular progress event or incremental update for the provided named object. The parents represent the names of the objects which initiated the progress for the provided named object. The name and what object it represents is determined by the implementation.
type ProgressFunc ¶
type ProgressFunc func(Progress)
type Transferrer ¶
type UnpackConfiguration ¶
UnpackConfiguration specifies the platform and snapshotter to use for resolving the unpack Platform, if snapshotter is not specified the platform default will be used.