vultr

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 15 Imported by: 2

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 = "vultr"
)

Variables

This section is empty.

Functions

func DownloadTools

func DownloadTools(kubectlClientPath, kubectlClientVersion, localOs, localArchitecture, terraformClientVersion, toolsDirPath string) error

func GetDomainApexContent

func GetDomainApexContent(domainName string) bool

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

func NewVultr

func NewVultr(vultrApiKey string) *govultr.Client

Types

type VultrBucketCredentials

type VultrBucketCredentials struct {
	AccessKey       string
	SecretAccessKey string
	Endpoint        string
}

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

Jump to

Keyboard shortcuts

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