Documentation ¶
Overview ¶
Package ctrimages provides an image manager that manages and caches container images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageManager ¶
ImageManager manages the images that have been pulled to the node.
func NewImageManager ¶
func NewImageManager(client *containerd.Client, snapshotter string) *ImageManager
NewImageManager creates a new image manager that can be used to fetch container images.
func (*ImageManager) GetImage ¶
func (mgr *ImageManager) GetImage(ctx context.Context, imageName string) (*containerd.Image, error)
GetImage fetches an image that can be used to create a container using containerd. Synchronization is implemented on a per image level to keep waiting to a minimum.
type ImageState ¶
ImageState is used for synchronization to avoid pulling the same image multiple times concurrently.
func NewImageState ¶
func NewImageState() *ImageState
NewImageState creates a new ImageState object that can be used to synchronize pulling a single image
Click to show internal directories.
Click to hide internal directories.