do

package
v1.24.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 19 Imported by: 58

Documentation

Index

Constants

View Source
const (
	TagKubernetesClusterIndex        = "k8s-index"
	TagNameEtcdClusterPrefix         = "etcdCluster-"
	TagNameRolePrefix                = "k8s.io/role/"
	TagKubernetesClusterNamePrefix   = "KubernetesCluster"
	TagKubernetesClusterMasterPrefix = "KubernetesCluster-Master"
	TagKubernetesInstanceGroup       = "kops-instancegroup"
)

Variables

This section is empty.

Functions

func BuildMockDOCloud added in v1.21.3

func BuildMockDOCloud(region string) *doCloudMockImplementation

func SafeClusterName added in v1.15.1

func SafeClusterName(clusterName string) string

Types

type DOAPITarget

type DOAPITarget struct {
	Cloud DOCloud
}

func NewDOAPITarget

func NewDOAPITarget(cloud DOCloud) *DOAPITarget

func (*DOAPITarget) Finish

func (t *DOAPITarget) Finish(taskMap map[string]fi.Task) error

func (*DOAPITarget) ProcessDeletions

func (t *DOAPITarget) ProcessDeletions() bool

type DOCloud added in v1.21.3

type DOCloud interface {
	fi.Cloud
	DropletsService() godo.DropletsService
	DropletActionService() godo.DropletActionsService
	VolumeService() godo.StorageService
	VolumeActionService() godo.StorageActionsService
	LoadBalancersService() godo.LoadBalancersService
	DomainService() godo.DomainsService
	ActionsService() godo.ActionsService
	FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error)
	GetAllLoadBalancers() ([]godo.LoadBalancer, error)
	GetAllDropletsByTag(tag string) ([]godo.Droplet, error)
	GetAllVolumesByRegion() ([]godo.Volume, error)
}

DOCloud exposes all the interfaces required to operate on DigitalOcean resources

func NewDOCloud

func NewDOCloud(region string) (DOCloud, error)

NewCloud returns a Cloud, expecting the env var DIGITALOCEAN_ACCESS_TOKEN NewCloud will return an err if DIGITALOCEAN_ACCESS_TOKEN is not defined

type DOInstanceGroup added in v1.21.3

type DOInstanceGroup struct {
	ClusterName       string
	InstanceGroupName string
	GroupType         string   // will be either "master" or "worker"
	Members           []string // will store the droplet names that matches.
}

type TokenSource added in v1.21.3

type TokenSource struct {
	AccessToken string
}

TokenSource implements oauth2.TokenSource

func (*TokenSource) Token added in v1.21.3

func (t *TokenSource) Token() (*oauth2.Token, error)

Token() returns oauth2.Token

Jump to

Keyboard shortcuts

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