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 DownloadTools(...) error
- func GetDomainApexContent(domainName string) bool
- func NewVultr(vultrApiKey string) *govultr.Client
- type VultrBucketCredentials
- type VultrConfiguration
- func (c *VultrConfiguration) CreateObjectStorage(storeName string) (govultr.ObjectStorage, error)
- func (c *VultrConfiguration) CreateObjectStorageBucket(cr VultrBucketCredentials, bucketName string) error
- func (c *VultrConfiguration) DeleteBlockStorage(blockStorage []govultr.BlockStorage) error
- func (c *VultrConfiguration) DeleteObjectStorage(storeName string) error
- func (c *VultrConfiguration) GetDNSDomains() ([]string, error)
- func (c *VultrConfiguration) GetDNSInfo(domainName string) (string, error)
- func (c *VultrConfiguration) GetDNSRecords(domainName string) ([]govultr.DomainRecord, error)
- func (c *VultrConfiguration) GetKubeconfig(clusterName string) (string, error)
- func (c *VultrConfiguration) GetKubernetesAssociatedBlockStorage(clusterName string, returnAll bool) ([]govultr.BlockStorage, error)
- func (c *VultrConfiguration) GetObjectStorage() ([]govultr.ObjectStorage, error)
- func (c *VultrConfiguration) GetRegionalObjectStorageClusters() (int, error)
- func (c *VultrConfiguration) GetRegions() ([]string, error)
- func (c *VultrConfiguration) ListInstances() ([]string, error)
- func (c *VultrConfiguration) TestDomainLiveness(domainName string) bool
Constants ¶
const (
CloudProvider = "vultr"
)
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
Types ¶
type VultrBucketCredentials ¶
type VultrConfiguration ¶
type VultrConfiguration struct { Client *govultr.Client Context context.Context Region string ObjectStorageRegion string }
func (*VultrConfiguration) CreateObjectStorage ¶
func (c *VultrConfiguration) CreateObjectStorage(storeName string) (govultr.ObjectStorage, error)
CreateObjectStorage creates a Vultr object storage resource
func (*VultrConfiguration) CreateObjectStorageBucket ¶
func (c *VultrConfiguration) CreateObjectStorageBucket(cr VultrBucketCredentials, bucketName string) error
CreateObjectStorageBucket leverages minio to create a bucket within Vultr object storage
func (*VultrConfiguration) DeleteBlockStorage ¶
func (c *VultrConfiguration) DeleteBlockStorage(blockStorage []govultr.BlockStorage) error
DeleteBlockStorage iterates over target volumes and deletes them
func (*VultrConfiguration) DeleteObjectStorage ¶ added in v0.1.28
func (c *VultrConfiguration) DeleteObjectStorage(storeName string) error
DeleteObjectStorage deletes a Vultr object storage resource
func (*VultrConfiguration) GetDNSDomains ¶ added in v0.1.27
func (c *VultrConfiguration) GetDNSDomains() ([]string, error)
GetDNSDomains lists all available DNS domains
func (*VultrConfiguration) GetDNSInfo ¶
func (c *VultrConfiguration) GetDNSInfo(domainName string) (string, error)
GetDNSInfo determines whether or not a domain exists within Vultr
func (*VultrConfiguration) GetDNSRecords ¶
func (c *VultrConfiguration) GetDNSRecords(domainName string) ([]govultr.DomainRecord, error)
GetStorageBuckets retrieves all Vultr object storage buckets
func (*VultrConfiguration) GetKubeconfig ¶ added in v0.3.31
func (c *VultrConfiguration) GetKubeconfig(clusterName string) (string, error)
func (*VultrConfiguration) GetKubernetesAssociatedBlockStorage ¶
func (c *VultrConfiguration) GetKubernetesAssociatedBlockStorage(clusterName string, returnAll bool) ([]govultr.BlockStorage, error)
GetKubernetesAssociatedVolumes returns block storage associated with a Vultr Kubernetes cluster
func (*VultrConfiguration) GetObjectStorage ¶
func (c *VultrConfiguration) GetObjectStorage() ([]govultr.ObjectStorage, error)
GetObjectStorage retrieves all Vultr object storage resources
func (*VultrConfiguration) GetRegionalObjectStorageClusters ¶ added in v0.1.60
func (c *VultrConfiguration) GetRegionalObjectStorageClusters() (int, error)
GetRegionalObjectStorageClusters determines if a region has object storage clusters available
func (*VultrConfiguration) GetRegions ¶ added in v0.1.30
func (c *VultrConfiguration) GetRegions() ([]string, error)
GetRegions lists all available regions
func (*VultrConfiguration) ListInstances ¶ added in v0.3.26
func (c *VultrConfiguration) ListInstances() ([]string, error)
func (*VultrConfiguration) TestDomainLiveness ¶
func (c *VultrConfiguration) TestDomainLiveness(domainName string) bool