Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllowedToCache ¶
IsAllowedToCache checks that information about Docker image can be cached base on image name and container PullPolicy
Types ¶
type ContainerInfo ¶
type ContainerInfo struct { Namespace string ImagePullSecrets string RegistryAddress string RegistryName string RegistryUsername string RegistryPassword string Image string // contains filtered or unexported fields }
K8s structure keeps information retrieved from POD definition
type DockerCreds ¶
type DockerCreds struct {
Auths map[string]dockerTypes.AuthConfig `json:"auths"`
}
type ImageRegistry ¶
type ImageRegistry interface { GetImageConfig( clientset kubernetes.Interface, namespace string, container *corev1.Container, podSpec *corev1.PodSpec) (*imagev1.ImageConfig, error) }
ImageRegistry is a docker registry
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry impl
func (*Registry) GetImageConfig ¶
func (r *Registry) GetImageConfig( clientset kubernetes.Interface, namespace string, container *corev1.Container, podSpec *corev1.PodSpec) (*imagev1.ImageConfig, error)
GetImageConfig returns entrypoint and command of container
Click to show internal directories.
Click to hide internal directories.