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.
Index ¶
- Constants
- func GetDomainApexContent(domainName string) bool
- func NewDigitalocean(digitalOceanToken string) *godo.Client
- type Configuration
- func (c *Configuration) CreateSpaceBucket(cr SpacesCredentials, bucketName string) error
- func (c *Configuration) DeleteDNSRecords(domainName string, dryRun bool) error
- func (c *Configuration) DeleteKubernetesClusterVolumes(resources *godo.KubernetesAssociatedResources) error
- func (c *Configuration) GetDNSDomains() ([]string, error)
- func (c *Configuration) GetDNSInfo(domainName string) (string, error)
- func (c *Configuration) GetDNSRecords(domainName string) ([]godo.DomainRecord, error)
- func (c *Configuration) GetKubeconfig(clusterName string) ([]byte, error)
- func (c *Configuration) GetKubernetesAssociatedResources(clusterName string) (*godo.KubernetesAssociatedResources, error)
- func (c *Configuration) GetRegions() ([]string, error)
- func (c *Configuration) ListInstances() ([]string, error)
- func (c *Configuration) TestDomainLiveness(domainName string) bool
- func (c *Configuration) ValidateRegion(region string) error
- type SpacesCredentials
Constants ¶
const (
CloudProvider = "digitalocean"
)
Variables ¶
This section is empty.
Functions ¶
func GetDomainApexContent ¶
GetDomainApexContent determines whether or not a target domain features a host responding at zone apex
func NewDigitalocean ¶
Types ¶
type Configuration ¶
func (*Configuration) CreateSpaceBucket ¶
func (c *Configuration) CreateSpaceBucket(cr SpacesCredentials, bucketName string) error
CreateSpaceBucket
func (*Configuration) DeleteDNSRecords ¶
func (c *Configuration) DeleteDNSRecords(domainName string, dryRun bool) error
DeleteDNSRecords deletes provided DNS records
func (*Configuration) DeleteKubernetesClusterVolumes ¶
func (c *Configuration) DeleteKubernetesClusterVolumes(resources *godo.KubernetesAssociatedResources) error
DeleteKubernetesClusterVolumes iterates over resource volumes and deletes them
func (*Configuration) GetDNSDomains ¶
func (c *Configuration) GetDNSDomains() ([]string, error)
GetDNSDomains lists all available DNS domains
func (*Configuration) GetDNSInfo ¶
func (c *Configuration) GetDNSInfo(domainName string) (string, error)
GetDNSInfo determines whether or not a domain exists within digitalocean
func (*Configuration) GetDNSRecords ¶
func (c *Configuration) GetDNSRecords(domainName string) ([]godo.DomainRecord, error)
GetDNSRecords retrieves DNS records
func (*Configuration) GetKubeconfig ¶
func (c *Configuration) GetKubeconfig(clusterName string) ([]byte, error)
func (*Configuration) GetKubernetesAssociatedResources ¶
func (c *Configuration) GetKubernetesAssociatedResources(clusterName string) (*godo.KubernetesAssociatedResources, error)
GetKubernetesAssociatedResources returns resources associated with a digitalocean Kubernetes cluster
func (*Configuration) GetRegions ¶
func (c *Configuration) GetRegions() ([]string, error)
GetRegions lists all available regions
func (*Configuration) ListInstances ¶
func (c *Configuration) ListInstances() ([]string, error)
func (*Configuration) TestDomainLiveness ¶
func (c *Configuration) TestDomainLiveness(domainName string) bool
func (*Configuration) ValidateRegion ¶
func (c *Configuration) ValidateRegion(region string) error
ValidateRegion guarantees a region argument is valid