Documentation ¶
Index ¶
- func MapContainerImagesToAuths(spec corev1.PodSpec, imagePullSecrets []corev1.Secret) (map[string]docker.Auth, error)
- func MapDockerRegistryServersToAuths(imagePullSecrets []corev1.Secret) (map[string]docker.Auth, error)
- func NewImagePullSecret(meta metav1.ObjectMeta, server, username, password string) (*corev1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapContainerImagesToAuths ¶
func MapContainerImagesToAuths(spec corev1.PodSpec, imagePullSecrets []corev1.Secret) (map[string]docker.Auth, error)
MapImagesToAuths creates the mapping from a container image to the Docker authentication credentials for the specified PodSpec and the slice of image pull Secrets.
func MapDockerRegistryServersToAuths ¶
func MapDockerRegistryServersToAuths(imagePullSecrets []corev1.Secret) (map[string]docker.Auth, error)
MapDockerRegistryServersToAuths creates the mapping from a Docker registry server to the Docker authentication credentials for the specified slice of image pull Secrets.
func NewImagePullSecret ¶
func NewImagePullSecret(meta metav1.ObjectMeta, server, username, password string) (*corev1.Secret, error)
NewImagePullSecret constructs a new image pull Secret with the specified registry server and basic authentication credentials.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.