Documentation
¶
Index ¶
- func CheckIsACRImage(imageTag string) bool
- func CheckIsECRImage(imageTag string) bool
- func CheckIsGCRImage(imageTag string) bool
- func GetCloudVendorRegistryCredentials(imageTag string) (map[string]types.AuthConfig, error)
- func GetImageRegistryCredentials(imageTag string, pod *corev1.Pod) (map[string]types.AuthConfig, error)
- func GetLoginDetailsForAzurCR(imageTag string) (string, string, error)
- func GetLoginDetailsForECR(imageTag string) (string, string, error)
- func GetLoginDetailsForGCR(imageTag string) (string, string, error)
- func GetWorkloadImageRegistryCredentials(imageTag string, workload k8sinterface.IWorkload) (map[string]types.AuthConfig, error)
- func GetWorkloadsImages(workload k8sinterface.IWorkload) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsACRImage ¶
func CheckIsECRImage ¶
CheckIsECRImage check if this image is suspected as ECR hosted image
func CheckIsGCRImage ¶
func GetCloudVendorRegistryCredentials ¶
func GetCloudVendorRegistryCredentials(imageTag string) (map[string]types.AuthConfig, error)
func GetImageRegistryCredentials ¶
func GetImageRegistryCredentials(imageTag string, pod *corev1.Pod) (map[string]types.AuthConfig, error)
DEPRECATED GetImageRegistryCredentials returns various credentials for images in the pod imageTag empty means returns all of the credentials for all images in pod spec containers pod.ObjectMeta.Namespace must be well setted
func GetLoginDetailsForAzurCR ¶
GetLoginDetailsForAzurCR return user name + password to use
func GetLoginDetailsForECR ¶
GetLoginDetailsForECR return user name + password using the default iam-role OR ~/.aws/config of the machine
func GetLoginDetailsForGCR ¶
GetLoginDetailsForGCR return user name + password to use
func GetWorkloadImageRegistryCredentials ¶
func GetWorkloadImageRegistryCredentials(imageTag string, workload k8sinterface.IWorkload) (map[string]types.AuthConfig, error)
GetImageRegistryCredentials returns various credentials for images in the pod imageTag empty means returns all of the credentials for all images in pod spec containers pod.ObjectMeta.Namespace must be well setted
func GetWorkloadsImages ¶
func GetWorkloadsImages(workload k8sinterface.IWorkload) map[string]string
GetWorkloadsImages returns map[<image name>]<container name>
Types ¶
This section is empty.