action

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DisableColors bool
)

Functions

func ParseUsername added in v0.1.0

func ParseUsername(input *sts.GetCallerIdentityOutput) (string, error)

func PrintAwsConfig added in v0.1.0

func PrintAwsConfig(filePath string)

func PrintConfigWithoutClusterConfig added in v0.1.0

func PrintConfigWithoutClusterConfig()

func PrintError added in v0.1.5

func PrintError(message string, args ...interface{})

func PrintFile added in v0.1.0

func PrintFile(filePath string)

func PrintSuccess added in v0.1.5

func PrintSuccess(message string, args ...interface{})

func PrintWarn added in v0.1.5

func PrintWarn(message string, args ...interface{})

func UpdateSessionCredentials

func UpdateSessionCredentials()

Types

type ArnParseException added in v0.1.0

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

func (*ArnParseException) Error added in v0.1.0

func (err *ArnParseException) Error() string

type AwsVersionParseException added in v0.1.0

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

func (*AwsVersionParseException) Error added in v0.1.0

func (err *AwsVersionParseException) Error() string

type ClusterConfig added in v0.1.0

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 added in v0.1.5

func (c *ClusterConfig) List(stsClient *sts.Client)

func (*ClusterConfig) Write added in v0.1.0

func (c *ClusterConfig) Write(filePath string) (State, error)

type Clusters added in v0.1.0

type Clusters struct {
	ClusterConfigs []ClusterConfig
	// contains filtered or unexported fields
}

func (*Clusters) InitConfig added in v0.1.0

func (clusters *Clusters) InitConfig()

func (*Clusters) PrintConfig added in v0.1.0

func (clusters *Clusters) PrintConfig()

func (*Clusters) WriteAll added in v0.1.0

func (clusters *Clusters) WriteAll(filePath string) error

type CredUpdater

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

type KubeConfigUpdater added in v0.1.5

type KubeConfigUpdater struct {
	Profile  string
	Clusters *Clusters
	// contains filtered or unexported fields
}

func (*KubeConfigUpdater) Init added in v0.1.5

func (updater *KubeConfigUpdater) Init()

func (*KubeConfigUpdater) ListClusters added in v0.1.5

func (updater *KubeConfigUpdater) ListClusters()

func (*KubeConfigUpdater) SetupClusters added in v0.1.5

func (updater *KubeConfigUpdater) SetupClusters()

type State added in v0.1.0

type State int
const (
	Updated State = iota + 1
	Created
	Deleted
	Error
)

Jump to

Keyboard shortcuts

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