Documentation ¶
Overview ¶
Package image is the package that contains a CRI implementation of image management using rkt as the container runtime
Index ¶
- Variables
- func NewImageStore(cfg ImageStoreConfig) runtime.ImageServiceServer
- type ImageStore
- func (s *ImageStore) ImageFsInfo(ctx context.Context, req *runtime.ImageFsInfoRequest) (*runtime.ImageFsInfoResponse, error)
- func (s *ImageStore) ImageStatus(ctx context.Context, req *runtime.ImageStatusRequest) (*runtime.ImageStatusResponse, error)
- func (s *ImageStore) ListImages(ctx context.Context, req *runtime.ListImagesRequest) (*runtime.ListImagesResponse, error)
- func (s *ImageStore) PullImage(ctx context.Context, req *runtime.PullImageRequest) (*runtime.PullImageResponse, error)
- func (s *ImageStore) RemoveImage(ctx context.Context, req *runtime.RemoveImageRequest) (*runtime.RemoveImageResponse, error)
- type ImageStoreConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrImageNotFound = errors.New("rkt: image not found")
)
TODO(tmrts): Move these errors to the container API for code re-use.
Functions ¶
func NewImageStore ¶
func NewImageStore(cfg ImageStoreConfig) runtime.ImageServiceServer
NewImageStore creates an image storage that allows CRUD operations for images.
Types ¶
type ImageStore ¶
ImageStore supports CRUD operations for images.
func (*ImageStore) ImageFsInfo ¶
func (s *ImageStore) ImageFsInfo(ctx context.Context, req *runtime.ImageFsInfoRequest) (*runtime.ImageFsInfoResponse, error)
ImageFSInfo returns information of the filesystem that is used to store images.
func (*ImageStore) ImageStatus ¶
func (s *ImageStore) ImageStatus(ctx context.Context, req *runtime.ImageStatusRequest) (*runtime.ImageStatusResponse, error)
ImageStatus returns the status of the image. TODO(euank): rkt should support listing a single image so this is more efficient
func (*ImageStore) ListImages ¶
func (s *ImageStore) ListImages(ctx context.Context, req *runtime.ListImagesRequest) (*runtime.ListImagesResponse, error)
ListImages lists images in the store
func (*ImageStore) PullImage ¶
func (s *ImageStore) PullImage(ctx context.Context, req *runtime.PullImageRequest) (*runtime.PullImageResponse, error)
PullImage pulls an image into the store
func (*ImageStore) RemoveImage ¶
func (s *ImageStore) RemoveImage(ctx context.Context, req *runtime.RemoveImageRequest) (*runtime.RemoveImageResponse, error)
Remove removes the image from the image store.
Click to show internal directories.
Click to hide internal directories.