cloudsupport

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsACRImage

func CheckIsACRImage(imageTag string) bool

func CheckIsECRImage

func CheckIsECRImage(imageTag string) bool

CheckIsECRImage check if this image is suspected as ECR hosted image

func CheckIsGCRImage

func CheckIsGCRImage(imageTag string) bool

func GetCloudProvider added in v0.0.31

func GetCloudProvider(currContext string) string

func GetCloudVendorRegistryCredentials

func GetCloudVendorRegistryCredentials(imageTag string) (map[string]types.AuthConfig, error)

func GetDescriptiveInfoFromCloudProvider added in v0.0.25

func GetDescriptiveInfoFromCloudProvider() (workloadinterface.IMetadata, 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

func GetLoginDetailsForAzurCR(imageTag string) (string, string, error)

GetLoginDetailsForAzurCR return user name + password to use

func GetLoginDetailsForECR

func GetLoginDetailsForECR(imageTag string) (string, string, error)

GetLoginDetailsForECR return user name + password using the default iam-role OR ~/.aws/config of the machine

func GetLoginDetailsForGCR

func GetLoginDetailsForGCR(imageTag string) (string, string, error)

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>

func IsRunningInCloudProvider added in v0.0.31

func IsRunningInCloudProvider() bool

func IsTypeDescriptiveInfoFromCloudProvider added in v0.0.30

func IsTypeDescriptiveInfoFromCloudProvider(object map[string]interface{}) bool

Types

type CloudProviderDescription added in v0.0.30

type CloudProviderDescription struct {
	// contains filtered or unexported fields
}

func GetClusterInfoForEKS added in v0.0.25

func GetClusterInfoForEKS(currContext *api.Context) (*CloudProviderDescription, error)

Get descriptive info about cluster running in EKS.

func GetClusterInfoForGKE added in v0.0.25

func GetClusterInfoForGKE() (*CloudProviderDescription, error)

Get descriptive info about cluster running in GKE.

func NewDescriptiveInfoFromCloudProvider added in v0.0.30

func NewDescriptiveInfoFromCloudProvider(object map[string]interface{}) *CloudProviderDescription

func (*CloudProviderDescription) GetApiVersion added in v0.0.30

func (obj *CloudProviderDescription) GetApiVersion() string

Getters

func (*CloudProviderDescription) GetID added in v0.0.30

func (obj *CloudProviderDescription) GetID() string

func (*CloudProviderDescription) GetKind added in v0.0.30

func (obj *CloudProviderDescription) GetKind() string

func (*CloudProviderDescription) GetName added in v0.0.30

func (obj *CloudProviderDescription) GetName() string

func (*CloudProviderDescription) GetNamespace added in v0.0.30

func (obj *CloudProviderDescription) GetNamespace() string

func (*CloudProviderDescription) GetObject added in v0.0.30

func (obj *CloudProviderDescription) GetObject() map[string]interface{}

func (*CloudProviderDescription) GetProvider added in v0.0.30

func (obj *CloudProviderDescription) GetProvider() string

func (*CloudProviderDescription) GetWorkload added in v0.0.30

func (obj *CloudProviderDescription) GetWorkload() map[string]interface{}

func (*CloudProviderDescription) SetGroup added in v0.0.30

func (obj *CloudProviderDescription) SetGroup(group string)

func (*CloudProviderDescription) SetKind added in v0.0.30

func (obj *CloudProviderDescription) SetKind(kind string)

func (*CloudProviderDescription) SetName added in v0.0.30

func (obj *CloudProviderDescription) SetName(name string)

func (*CloudProviderDescription) SetNamespace added in v0.0.30

func (obj *CloudProviderDescription) SetNamespace(namespace string)

Setters

func (*CloudProviderDescription) SetObject added in v0.0.30

func (obj *CloudProviderDescription) SetObject(object map[string]interface{})

func (*CloudProviderDescription) SetProvider added in v0.0.30

func (obj *CloudProviderDescription) SetProvider(provider string)

func (*CloudProviderDescription) SetWorkload added in v0.0.30

func (obj *CloudProviderDescription) SetWorkload(object map[string]interface{})

Jump to

Keyboard shortcuts

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