image

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package image is the package that contains a CRI implementation of image management using rkt as the container runtime

Index

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

type ImageStore struct {
	cli.CLI
	// contains filtered or unexported fields
}

ImageStore supports CRUD operations for images.

func (*ImageStore) ImageFsInfo

ImageFSInfo returns information of the filesystem that is used to store images.

func (*ImageStore) ImageStatus

ImageStatus returns the status of the image. TODO(euank): rkt should support listing a single image so this is more efficient

func (*ImageStore) ListImages

ListImages lists images in the store

func (*ImageStore) PullImage

PullImage pulls an image into the store

func (*ImageStore) RemoveImage

Remove removes the image from the image store.

type ImageStoreConfig

type ImageStoreConfig struct {
	CLI            cli.CLI
	RequestTimeout time.Duration
}

TODO(tmrts): fill the image store configuration fields.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL