providers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider interface {
	ID() string
	IsSetup() bool
	Setup() error

	GetComponents() []components.ComponentInstaller
}

type ClusterConfigGenerator

type ClusterConfigGenerator interface {
	CreateClusterConfig() (cc *v1alpha1.ClusterConfig, err error)
	CreateNodepoolConfig(cc *v1alpha1.ClusterConfig) (np *v1alpha1.Nodepool, err error)
}

type ClusterManager

type ClusterManager interface {
	Cloud() string
	Region() string

	CheckCreatePermissions() error
	CheckDestroyPermissions() error

	// Cluster
	CreateCluster(cc *v1alpha1.ClusterConfig) error
	CreateNodepool(cc *v1alpha1.ClusterConfig, np *v1alpha1.Nodepool) error
	ActivateCluster(cc *v1alpha1.ClusterConfig) error
	DeleteCluster(name string) error
	DeleteNodepool(cluster string, nodepool string) error

	// VPC
	DestroyVPC(vpcId string) error

	// LinkedServiceAccount
	SyncLinkedServiceAccount(cluster string, lsa *v1alpha1.LinkedServiceAccount) error
	DeleteLinkedServiceAccount(cluster string, lsa *v1alpha1.LinkedServiceAccount) error

	// utils
	KubernetesProvider() cloud.KubernetesProvider
	CertificateProvider() cloud.CertificateProvider
	VPCProvider() cloud.VPCProvider
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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