store

package
v0.0.0-...-fc3d3ad Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 38 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTagCompliance

func CheckTagCompliance(targetImage string) string

CheckTagCompliance EnsureImageNameFormat ensures that the given image name is in the format <registry>/<repository>:<tag>. It adds default values for registry and repository if they are missing.

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)
	RemoveImage(imageNameOrIDs []string) 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