Documentation ¶
Index ¶
- Variables
- func ParseUsername(input *sts.GetCallerIdentityOutput) (string, error)
- func PrintAwsConfig(filePath string)
- func PrintConfigWithoutClusterConfig()
- func PrintError(message string, args ...interface{})
- func PrintFile(filePath string)
- func PrintSuccess(message string, args ...interface{})
- func PrintWarn(message string, args ...interface{})
- func UpdateSessionCredentials()
- type ArnParseException
- type AwsVersionParseException
- type ClusterConfig
- type Clusters
- type CredUpdater
- type KubeConfigUpdater
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DisableColors bool
)
Functions ¶
func ParseUsername ¶
func ParseUsername(input *sts.GetCallerIdentityOutput) (string, error)
func PrintAwsConfig ¶
func PrintAwsConfig(filePath string)
func PrintConfigWithoutClusterConfig ¶
func PrintConfigWithoutClusterConfig()
func PrintError ¶
func PrintError(message string, args ...interface{})
func PrintSuccess ¶
func PrintSuccess(message string, args ...interface{})
func UpdateSessionCredentials ¶
func UpdateSessionCredentials()
Types ¶
type ArnParseException ¶
type ArnParseException struct {
// contains filtered or unexported fields
}
func (*ArnParseException) Error ¶
func (err *ArnParseException) Error() string
type AwsVersionParseException ¶
type AwsVersionParseException struct {
// contains filtered or unexported fields
}
func (*AwsVersionParseException) Error ¶
func (err *AwsVersionParseException) Error() string
type ClusterConfig ¶
type ClusterConfig struct { Name string `yaml:"name"` Alias string `yaml:"alias"` AccountID string `yaml:"accountId"` Role string `yaml:"role"` Region string `yaml:"region"` }
func (*ClusterConfig) List ¶
func (c *ClusterConfig) List(stsClient *sts.Client)
type Clusters ¶
type Clusters struct { ClusterConfigs []ClusterConfig // contains filtered or unexported fields }
func (*Clusters) InitConfig ¶
func (clusters *Clusters) InitConfig()
func (*Clusters) PrintConfig ¶
func (clusters *Clusters) PrintConfig()
type CredUpdater ¶
type CredUpdater struct {
// contains filtered or unexported fields
}
type KubeConfigUpdater ¶
type KubeConfigUpdater struct { Profile string Clusters *Clusters // contains filtered or unexported fields }
func (*KubeConfigUpdater) Init ¶
func (updater *KubeConfigUpdater) Init()
func (*KubeConfigUpdater) ListClusters ¶
func (updater *KubeConfigUpdater) ListClusters()
func (*KubeConfigUpdater) SetupClusters ¶
func (updater *KubeConfigUpdater) SetupClusters()
Click to show internal directories.
Click to hide internal directories.