Versions in this module Expand all Collapse all v0 v0.2.0 Jun 17, 2019 v0.1.0 Jun 12, 2019 Changes in this version + func GetClientset(contextName string) (*kubernetes.Clientset, error) + func GetContextNames() []string + func GetMetrics(contextName string) (*metrics.Clientset, error) + func LoadContexts(applicationConfiguration configuration.ApplicationConfiguration) error + func SetClusterCertificateEmbedded(clusterName string, cluster ParamClusterCertificateEmbedded) error + func SetClusterCertificateFile(clusterName string, cluster ParamClusterCertificateFile) error + func SetClusterInsecure(clusterName string, cluster ParamClusterInsecure) error + func SetContext(contextName string, context ParamContext) error + func SetUserWithCertificateFile(userName string, credentials ParamCredentialsCertificateFile) error + func SetUserWithCertificateFileEmbedded(userName string, credentials ParamCredentialsCertificateEmbedded) error + func SetUserWithUserNamePassword(userName string, credentials ParamCredentialsUserNamePassword) error + func UseContext(contextName string) error + type DefinitionCluster struct + CertificateAuthority string + CertificateAuthorityData string + InsecureSkipTLSVerify bool + Server string + type DefinitionContext struct + Cluster string + Namespace string + User string + type DefinitionUser struct + ClientCertificate string + ClientCertificateData string + ClientKey string + ClientKeyData string + Password string + UserName string + type KubeConfig struct + APIVersion string + Clusters []NamedCluster + Contexts []NamedContext + CurrentContext string + Kind string + Preferences map[string]string + Users []NamedUser + func GetKubeConfig() (*KubeConfig, error) + type NamedCluster struct + DefinitionCluster DefinitionCluster + Name string + func GetKubeCluster(name string) (*NamedCluster, error) + func GetKubeClusters() ([]NamedCluster, error) + type NamedContext struct + DefinitionContext DefinitionContext + Name string + func GetKubeContext(name string) (*NamedContext, error) + func GetKubeContexts() ([]NamedContext, error) + type NamedUser struct + DefinitionUser DefinitionUser + Name string + func GetKubeUser(name string) (*NamedUser, error) + func GetKubeUsers() ([]NamedUser, error) + type NotFoundError struct + func (e *NotFoundError) ContextName() string + func (e *NotFoundError) Error() string + type ParamClusterCertificateEmbedded struct + CertificateAuthorityData string + Server string + type ParamClusterCertificateFile struct + CertificateAuthority string + Server string + type ParamClusterInsecure struct + Server string + type ParamContext struct + Cluster string + Namespace string + User string + type ParamCredentialsCertificateEmbedded struct + ClientCertificateData string + ClientKeyData string + type ParamCredentialsCertificateFile struct + ClientCertificate string + ClientKey string + type ParamCredentialsUserNamePassword struct + Password string + UserName string