Documentation ¶
Index ¶
- type ConcurrentImageProcessor
- type DockerClient
- type ImageDestination
- type ImageDiskDestination
- type ImageDiskLoader
- type ImageDiskSource
- type ImageDiskWriter
- type ImageMover
- type ImageOriginalRegistrySource
- type ImageProcessor
- type ImagePuller
- type ImageRegistryDestination
- type ImageSource
- type ImageTaggerPusher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentImageProcessor ¶
type ConcurrentImageProcessor struct {
// contains filtered or unexported fields
}
func NewConcurrentImageProcessor ¶
func NewConcurrentImageProcessor(maxRoutines int) *ConcurrentImageProcessor
func (*ConcurrentImageProcessor) Process ¶
func (c *ConcurrentImageProcessor) Process(ctx context.Context, images []string, process ImageProcessor) error
type DockerClient ¶
type DockerClient interface { ImageDiskLoader ImageDiskWriter ImagePuller }
type ImageDestination ¶
ImageDestination represents a generic destination for container images that can be written from the local docker cache
type ImageDiskDestination ¶
type ImageDiskDestination struct {
// contains filtered or unexported fields
}
ImageDiskDestination implements the ImageDestination interface, writing images and tags from from the local docker cache into a tarbal
func NewDiskDestination ¶
func NewDiskDestination(client ImageDiskWriter, file string) *ImageDiskDestination
type ImageDiskLoader ¶
type ImageDiskSource ¶
type ImageDiskSource struct {
// contains filtered or unexported fields
}
ImageDiskSource implements the ImageSource interface, loading images and tags from a tarbal into the local docker cache
func NewDiskSource ¶
func NewDiskSource(client ImageDiskLoader, file string) *ImageDiskSource
type ImageDiskWriter ¶
type ImageMover ¶
type ImageMover struct {
// contains filtered or unexported fields
}
ImageMover orchestrates loading images from a source and writing them to a destination
func NewImageMover ¶
func NewImageMover(source ImageSource, destination ImageDestination) *ImageMover
type ImageOriginalRegistrySource ¶
type ImageOriginalRegistrySource struct {
// contains filtered or unexported fields
}
ImageOriginalRegistrySource implements the ImageSource interface, pulling images and tags from their original registry into the local docker cache
func NewOriginalRegistrySource ¶
func NewOriginalRegistrySource(client ImagePuller) *ImageOriginalRegistrySource
type ImagePuller ¶
type ImageRegistryDestination ¶
type ImageRegistryDestination struct {
// contains filtered or unexported fields
}
ImageRegistryDestination implements the ImageDestination interface, writing images and tags from from the local docker cache to an external registry
func NewRegistryDestination ¶
func NewRegistryDestination(client ImageTaggerPusher, registryEndpoint string) *ImageRegistryDestination
type ImageSource ¶
ImageSource represents a generic source for container images that can be loaded into the local docker cache