clusters

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterAccount added in v1.0.0

type ClusterAccount interface {
	GenerateKubeConfig() (*kubecfg.KubeConfigPatch, []error)
	PrettyName() string
}

type EKSAccount

type EKSAccount struct {
	Profile    string    `yaml:"profile"`
	Regions    []string  `yaml:"regions"`
	Name       string    `yaml:"name"`
	Format     string    `yaml:"format"`
	ExtraUsers []EKSUser `yaml:"extraUsers,omitempty"`
}

func (EKSAccount) GenerateKubeConfig added in v1.0.0

func (a EKSAccount) GenerateKubeConfig() (*kubecfg.KubeConfigPatch, []error)

func (EKSAccount) PrettyName added in v1.0.0

func (a EKSAccount) PrettyName() string

func (EKSAccount) ScanForClusters added in v1.0.0

func (a EKSAccount) ScanForClusters(client EKSClusterAPI) ([]EKSClusterConfig, []error)

type EKSClusterAPI added in v1.0.0

type EKSClusterAPI interface {
	ListClusters(
		ctx context.Context,
		params *eks.ListClustersInput,
		optFns ...func(*eks.Options),
	) (*eks.ListClustersOutput, error)
	DescribeCluster(
		ctx context.Context,
		params *eks.DescribeClusterInput,
		optFns ...func(*eks.Options),
	) (*eks.DescribeClusterOutput, error)
}

type EKSClusterConfig added in v1.0.0

type EKSClusterConfig struct {
	Name                     string
	Region                   string
	Server                   string
	CertificateAuthorityData []byte
	Arn                      string
}

type EKSUser added in v0.0.8

type EKSUser struct {
	Name    string `yaml:"name"`
	Profile string `yaml:"profile"`
}

Jump to

Keyboard shortcuts

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