imageruntime

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 39 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	// ID of an image.
	ID string `json:"Id,omitempty"`
	// repository with digest.
	RepoDigests []string `json:"RepoDigests"`
	// repository with tag.
	RepoTags []string `json:"RepoTags"`
	// size of image's taking disk space.
	Size int64 `json:"Size,omitempty"`
}

func (ImageInfo) ContainsImage

func (c ImageInfo) ContainsImage(name string, tag string) bool

type ImagePullStatus

type ImagePullStatus struct {
	Err        error
	Process    int
	DetailInfo string
	Finish     bool
}

type ImagePullStatusReader

type ImagePullStatusReader interface {
	C() <-chan ImagePullStatus
	Close()
}

type ImageService

type ImageService interface {
	PullImage(ctx context.Context, imageName, tag string, pullSecrets []v1.Secret) (ImagePullStatusReader, error)
	ListImages(ctx context.Context) ([]ImageInfo, error)
}

func NewContainerdImageService

func NewContainerdImageService(
	conn *grpc.ClientConn,
	accountManager daemonutil.ImagePullAccountManager,
) (ImageService, error)

NewContainerdImageService returns containerd-type ImageService

func NewDockerImageService

func NewDockerImageService(runtimeURI string, accountManager daemonutil.ImagePullAccountManager) (ImageService, error)

NewDockerImageService create a docker runtime

func NewPouchImageService

func NewPouchImageService(runtimeURI string, accountManager daemonutil.ImagePullAccountManager) (ImageService, error)

NewPouchImageService create a pouch runtime client

Jump to

Keyboard shortcuts

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