cluster

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package internal provides function for working with EKS cluseters

Package internal provides function for working with EKS cluseters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Provider                 K8sProvider
	Name                     string
	Region                   string
	ID                       string
	Endpoint                 string
	CertificateAuthorityData string
	Status                   string
	GenerateClusterConfig    func(cls *Cluster) *clientcmdapi.Cluster
	GenerateAuthInfo         func(cls *Cluster) *clientcmdapi.AuthInfo
}

Cluster is the representation of a K8S Cluster For now it is tailored to AWS, more specifically eks clusters

func GetMockClusters

func GetMockClusters(c int) []*Cluster

func GetPredictableMockClusters added in v0.1.0

func GetPredictableMockClusters(c int) []*Cluster

func NewCluster

func NewCluster() *Cluster

func (*Cluster) GetConfigAuthInfo

func (cls *Cluster) GetConfigAuthInfo() *clientcmdapi.AuthInfo

func (*Cluster) GetConfigCluster

func (cls *Cluster) GetConfigCluster() *clientcmdapi.Cluster

func (*Cluster) GetEndpoint

func (cls *Cluster) GetEndpoint() string

func (*Cluster) GetName

func (cls *Cluster) GetName() string

func (*Cluster) GetRegion

func (cls *Cluster) GetRegion() string

func (*Cluster) GetStatus

func (cls *Cluster) GetStatus() string

func (*Cluster) GetUniqueID

func (cls *Cluster) GetUniqueID() string

func (*Cluster) PrettyName

func (cls *Cluster) PrettyName(templateValue string) (string, error)

type K8sProvider

type K8sProvider int
const (
	None K8sProvider = iota
	AWS
	Google
	Azure
)

Jump to

Keyboard shortcuts

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