image

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerAuth

type DockerAuth struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Email    string `json:"email,omitempty"`
	Auth     string `json:"auth,omitempty"`
}

type DockerConfigJson

type DockerConfigJson struct {
	Auths map[string]DockerAuth `json:"auths,omitempty"`
}

func ParsePullSecrets

func ParsePullSecrets(secretClient corev1.SecretInterface, pullSecretRefs []v1.LocalObjectReference) (*DockerConfigJson, error)

type Image

type Image struct {
	ContainerName string
	ContainerID   string
	Host          string
	Namespace     string
	Repository    string
	Digest        string
	Tag           string
	Auth          string
}

Formats:

{scheme}://{repo}@{digest} (images from dockerhub)
{scheme}://{namespace}/{repo}@{digest} (images from dockerhub)
{scheme}://{host}/{namespace}/{repo}@{digest}

func ParseContainerStatus

func ParseContainerStatus(containerStatus v1.ContainerStatus) (*Image, error)

func ParseImageID

func ParseImageID(imageID string) (*Image, error)

func (*Image) IDString

func (img *Image) IDString() string

func (*Image) String

func (img *Image) String() string

func (*Image) URL

func (img *Image) URL(subpaths ...string) string

Return the image manifest id (docker-pullable) See https://github.com/kubernetes/kubernetes/pull/34473

Jump to

Keyboard shortcuts

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