digitalocean

package
v0.107.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

View Source
const (
	CloudProvider = "digitalocean"
)

Variables

This section is empty.

Functions

func GetDomainApexContent

func GetDomainApexContent(domainName string) bool

GetDomainApexContent determines whether or not a target domain features a host responding at zone apex

func NewDigitalocean

func NewDigitalocean(digitalOceanToken string) *godo.Client

Types

type Configuration

type Configuration struct {
	Client  *godo.Client
	Context context.Context
}

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

type SpacesCredentials

type SpacesCredentials struct {
	AccessKey       string
	SecretAccessKey string
	Endpoint        string
}

Jump to

Keyboard shortcuts

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