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
Types ¶
type DOAPITarget ¶
type DOAPITarget struct {
Cloud DOCloud
}
func NewDOAPITarget ¶
func NewDOAPITarget(cloud DOCloud) *DOAPITarget
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 VPCsService() godo.VPCsService FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error) GetAllLoadBalancers() ([]godo.LoadBalancer, error) GetAllDropletsByTag(tag string) ([]godo.Droplet, error) GetAllVolumesByRegion() ([]godo.Volume, error) GetVPCUUID(networkCIDR string, vpcName string) (string, error) GetAllVPCs() ([]*godo.VPC, error) }
DOCloud exposes all the interfaces required to operate on DigitalOcean resources
func NewDOCloud ¶
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 TokenSource ¶ added in v1.21.3
type TokenSource struct {
AccessToken string
}
TokenSource implements oauth2.TokenSource
Click to show internal directories.
Click to hide internal directories.