Documentation ¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func BootstrapDigitaloceanMgmtCluster(digitalOceanToken string, kubeconfigPath string, gitProvider string, ...) error
- func DownloadTools(...) error
- func GetDigitaloceanTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
- func GetDomainApexContent(domainName string) bool
- func GetGithubTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
- func GetGitlabTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string, gid int) map[string]string
- func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, ...) map[string]string
- func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, ...) map[string]string
- func NewDigitalocean(digitalOceanToken string) *godo.Client
- type DigitaloceanConfiguration
- func (c *DigitaloceanConfiguration) CreateSpaceBucket(cr DigitaloceanSpacesCredentials, bucketName string) error
- func (c *DigitaloceanConfiguration) DeleteDNSRecords(domainName string, dryRun bool) error
- func (c *DigitaloceanConfiguration) DeleteKubernetesClusterVolumes(resources *godo.KubernetesAssociatedResources) error
- func (c *DigitaloceanConfiguration) GetDNSDomains() ([]string, error)
- func (c *DigitaloceanConfiguration) GetDNSInfo(domainName string) (string, error)
- func (c *DigitaloceanConfiguration) GetDNSRecords(domainName string) ([]godo.DomainRecord, error)
- func (c *DigitaloceanConfiguration) GetKubernetesAssociatedResources(clusterName string) (*godo.KubernetesAssociatedResources, error)
- func (c *DigitaloceanConfiguration) GetRegions() ([]string, error)
- func (c *DigitaloceanConfiguration) TestDomainLiveness(domainName string) bool
- func (c *DigitaloceanConfiguration) ValidateRegion(region string) error
- type DigitaloceanSpacesCredentials
Constants ¶
const (
CloudProvider = "digitalocean"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadTools ¶
func GetDigitaloceanTerraformEnvs ¶
func GetDigitaloceanTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
func GetDomainApexContent ¶
GetDomainApexContent determines whether or not a target domain features a host responding at zone apex
func GetGithubTerraformEnvs ¶
func GetGithubTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
func GetGitlabTerraformEnvs ¶
func GetGitlabTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string, gid int) map[string]string
func GetUsersTerraformEnvs ¶
func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
func GetVaultTerraformEnvs ¶
func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string
func NewDigitalocean ¶
Types ¶
type DigitaloceanConfiguration ¶
func (*DigitaloceanConfiguration) CreateSpaceBucket ¶
func (c *DigitaloceanConfiguration) CreateSpaceBucket(cr DigitaloceanSpacesCredentials, bucketName string) error
CreateSpaceBucket
func (*DigitaloceanConfiguration) DeleteDNSRecords ¶ added in v0.2.2
func (c *DigitaloceanConfiguration) DeleteDNSRecords(domainName string, dryRun bool) error
DeleteDNSRecords deletes provided DNS records
func (*DigitaloceanConfiguration) DeleteKubernetesClusterVolumes ¶
func (c *DigitaloceanConfiguration) DeleteKubernetesClusterVolumes(resources *godo.KubernetesAssociatedResources) error
DeleteKubernetesClusterVolumes iterates over resource volumes and deletes them
func (*DigitaloceanConfiguration) GetDNSDomains ¶ added in v0.1.27
func (c *DigitaloceanConfiguration) GetDNSDomains() ([]string, error)
GetDNSDomains lists all available DNS domains
func (*DigitaloceanConfiguration) GetDNSInfo ¶
func (c *DigitaloceanConfiguration) GetDNSInfo(domainName string) (string, error)
GetDNSInfo determines whether or not a domain exists within digitalocean
func (*DigitaloceanConfiguration) GetDNSRecords ¶
func (c *DigitaloceanConfiguration) GetDNSRecords(domainName string) ([]godo.DomainRecord, error)
GetDNSRecords retrieves DNS records
func (*DigitaloceanConfiguration) GetKubernetesAssociatedResources ¶
func (c *DigitaloceanConfiguration) GetKubernetesAssociatedResources(clusterName string) (*godo.KubernetesAssociatedResources, error)
GetKubernetesAssociatedResources returns resources associated with a digitalocean Kubernetes cluster
func (*DigitaloceanConfiguration) GetRegions ¶ added in v0.1.30
func (c *DigitaloceanConfiguration) GetRegions() ([]string, error)
GetRegions lists all available regions
func (*DigitaloceanConfiguration) TestDomainLiveness ¶
func (c *DigitaloceanConfiguration) TestDomainLiveness(domainName string) bool
func (*DigitaloceanConfiguration) ValidateRegion ¶
func (c *DigitaloceanConfiguration) ValidateRegion(region string) error
ValidateRegion guarantees a region argument is valid