giantnetes

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsCAPIEtcdEndpoint

func AwsCAPIEtcdEndpoint(clusterID string, baseDomain string) string

func AzureEtcdEndpoint

func AzureEtcdEndpoint(etcdDomain string) string

func CAFile

func CAFile(clusterID string, tmpDir string) string

func CertFile

func CertFile(clusterID string, tmpDir string) string

func IsFailedBackup

func IsFailedBackup(err error) bool

IsFailedBackup asserts failedBackupError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsUnableToGetTenantClusters

func IsUnableToGetTenantClusters(err error) bool

IsUnableToGetTenantClusters asserts unableToGetTenantClustersError.

func KVMEtcdEndpoint

func KVMEtcdEndpoint(etcdDomain string) string

func KeyFile

func KeyFile(clusterID string, tmpDir string) string

Types

type Cluster added in v2.6.0

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

type ETCDInstance

type ETCDInstance struct {
	Name   string
	ETCDv2 ETCDv2Settings
	ETCDv3 ETCDv3Settings
}

type ETCDv2Settings

type ETCDv2Settings struct {
	DataDir string
}

func (ETCDv2Settings) AreComplete

func (s ETCDv2Settings) AreComplete() bool

type ETCDv3Settings

type ETCDv3Settings struct {
	Endpoints string
	CaCert    string
	Key       string
	Cert      string
}

func (ETCDv3Settings) AreComplete

func (s ETCDv3Settings) AreComplete() bool

type TLSClientConfig

type TLSClientConfig struct {
	CAData  []byte
	KeyData []byte
	CrtData []byte
	CAFile  string
	CrtFile string
	KeyFile string
}

type Utils

type Utils struct {
	K8sClient k8sclient.Interface
	// contains filtered or unexported fields
}

func NewUtils

func NewUtils(logger micrologger.Logger, client k8sclient.Interface) (*Utils, error)

func (*Utils) GetTenantClusters

func (u *Utils) GetTenantClusters(ctx context.Context, backup v1alpha1.ETCDBackup) ([]ETCDInstance, error)

Jump to

Keyboard shortcuts

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