skopeo

package
v1.16.22 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *client

NewClient creates new empty client

func NewClientFromSecrets

func NewClientFromSecrets(imageSecrets []corev1.Secret, registry string) (*client, error)

NewClientFromSecrets creats new client from secrets

Types

type DockerAuthConfig

type DockerAuthConfig struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Auth     string `json:"auth,omitempty"`

	// Email is an optional value associated with the username.
	// This field is deprecated and will be removed in a later
	// version of docker.
	Email string `json:"email,omitempty"`
}

DockerAuthConfig contains authorization information for connecting to a registry It mirrors "github.com/docker/docker/api/types.AuthConfig"

func ParseSecretData

func ParseSecretData(imageSecrets []corev1.Secret, registry string) ([]DockerAuthConfig, error)

ParseSecretData parses secret data for docker auth config

type DockerAuthConfigs

type DockerAuthConfigs map[string]DockerAuthConfig

DockerAuthConfigs is a map of registries and their credentials

type DockerAuths

type DockerAuths struct {
	Auths DockerAuthConfigs `json:"auths"`
}

DockerAuths contains an embedded DockerAuthConfigs

type DockerImage

type DockerImage struct {
	Config struct {
		Entrypoint []string `json:"Entrypoint"`
		Cmd        []string `json:"Cmd"`
	} `json:"config"`
	History []struct {
		Created   time.Time `json:"created"`
		CreatedBy string    `json:"created_by"`
	} `json:"history"`
	Shell string `json:"-"`
}

DockerImage contains definition of docker image

type Inspector

type Inspector interface {
	Inspect(image string) (*DockerImage, error)
}

Inspector is image inspector interface

Jump to

Keyboard shortcuts

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