action

package
v0.0.0-...-3218988 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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 PrintFile

func PrintFile(filePath string)

func PrintSuccess

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

func PrintWarn

func PrintWarn(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)

func (*ClusterConfig) Write

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

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()

func (*Clusters) WriteAll

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

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()

type State

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