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.
Index ¶
- Constants
- func DownloadTools(...) error
- func GetDomainApexContent(domainName string) bool
- 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) GetKubeconfig(clusterName string) ([]byte, error)
- func (c *DigitaloceanConfiguration) GetKubernetesAssociatedResources(clusterName string) (*godo.KubernetesAssociatedResources, error)
- func (c *DigitaloceanConfiguration) GetRegions() ([]string, error)
- func (c *DigitaloceanConfiguration) ListInstances() ([]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 GetDomainApexContent ¶
GetDomainApexContent determines whether or not a target domain features a host responding at zone apex
func NewDigitalocean ¶
Types ¶
type DigitaloceanConfiguration ¶
func (*DigitaloceanConfiguration) CreateSpaceBucket ¶
func (c *DigitaloceanConfiguration) CreateSpaceBucket(cr DigitaloceanSpacesCredentials, bucketName string) error
CreateSpaceBucket
func (*DigitaloceanConfiguration) DeleteDNSRecords ¶
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 ¶
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) GetKubeconfig ¶
func (c *DigitaloceanConfiguration) GetKubeconfig(clusterName string) ([]byte, error)
func (*DigitaloceanConfiguration) GetKubernetesAssociatedResources ¶
func (c *DigitaloceanConfiguration) GetKubernetesAssociatedResources(clusterName string) (*godo.KubernetesAssociatedResources, error)
GetKubernetesAssociatedResources returns resources associated with a digitalocean Kubernetes cluster
func (*DigitaloceanConfiguration) GetRegions ¶
func (c *DigitaloceanConfiguration) GetRegions() ([]string, error)
GetRegions lists all available regions
func (*DigitaloceanConfiguration) ListInstances ¶
func (c *DigitaloceanConfiguration) ListInstances() ([]string, error)
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