imageruntime

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 25 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, sandboxConfig *appsv1alpha1.SandboxConfig) (ImagePullStatusReader, error)
	ListImages(ctx context.Context) ([]ImageInfo, error)
}

func NewCRIImageService added in v1.1.0

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

NewCRIImageService create a common CRI runtime

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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