registry

package
v1.2.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageConfig

func GetImageConfig(clientset kubernetes.Interface, namespace string, container *corev1.Container, podSpec *corev1.PodSpec, cloudConfigPath string) (*imagev1.ImageConfig, error)

GetImageConfig returns entrypoint and command of container

Types

type ContainerInfo

type ContainerInfo struct {
	Namespace        string
	ImagePullSecrets string
	RegistryAddress  string
	RegistryName     string
	Image            string
	RegistryUsername string
	RegistryPassword string
	// contains filtered or unexported fields
}

K8s structure keeps information retrieved from POD definition

func (*ContainerInfo) Collect

func (k *ContainerInfo) Collect(container *corev1.Container, podSpec *corev1.PodSpec, cloudConfigPath string) error

Collect reads information from k8s and load them into the structure

type DockerCreds

type DockerCreds struct {
	Auths map[string]dockerTypes.AuthConfig `json:"auths"`
}

Jump to

Keyboard shortcuts

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