store

package
v0.0.0-...-846bdf4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 37 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerPackageManifestItem

type DockerPackageManifestItem struct {
	Config string `json:"Config"`

	RepoTags []string `json:"RepoTags"`

	// Layers is an indexed list of layers referenced by the manifest.
	Layers []string `json:"Layers"`

	Type kii.ImageType `json:"Type"`
}

type Image

type Image struct {
	Repository string
	Tag        string
	ImageID    string
	Size       string
}

type Store

type Store interface {
	CheckImageExist(image *kii.ImageName) bool
	MountImage(image *kii.ImageName, workingDir, targetDir string) error
	UmountImage(workingDir string) error
	GetImageManifest(image *kii.ImageName, auth *runtimeapi.AuthConfig) (*kii.Manifest, error)
	TagImage(sourceImage, targetImage *kii.ImageName) error
	LoadImage(tarFile string) error
	RegisterImage(image, manifest string) error
	PullImage(image string, auth *runtimeapi.AuthConfig) error
	ListImage() ([]*Image, error)
}

func NewDockerStore

func NewDockerStore(rootDir string, mountType mounter.MountType) (Store, error)

func NewOCIStore

func NewOCIStore(rootDir string, mountType mounter.MountType) (Store, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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