image

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID

func ID(img v1.Image) (string, error)

func LayerIDs

func LayerIDs(img v1.Image) ([]string, error)

func NamespacedRegistry

func NamespacedRegistry(ref name.Reference) string

Types

type DockerConfig

type DockerConfig struct {
	Auths map[string]RegistryAuth `json:"auths"`
}

type Image

type Image = types.Image

type ImageWithIndex

type ImageWithIndex interface {
	Image
	Index() *v1.IndexManifest
}

func NewFromContainerdDaemon

func NewFromContainerdDaemon(ctx context.Context, imageName string) (ImageWithIndex, func(), error)

func NewFromContainerdHostFS

func NewFromContainerdHostFS(imageID string, config hostfs.ContainerdHostFSConfig) (ImageWithIndex, func(), error)

func NewFromDockerDaemon

func NewFromDockerDaemon(imageName string, ref name.Reference) (ImageWithIndex, func(), error)

func NewFromDockerDaemonTarFile

func NewFromDockerDaemonTarFile(imageName, localTarPath string, ref name.Reference) (ImageWithIndex, func(), error)

func NewFromRemote

func NewFromRemote(ctx context.Context, imageName string, option types.ImageOptions) (ImageWithIndex, error)

type RegistryAuth

type RegistryAuth struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Token    string `json:"auth"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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