vultr

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 15 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 = "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

func (c *VultrConfiguration) DeleteObjectStorage(storeName string) error

DeleteObjectStorage deletes a Vultr object storage resource

func (*VultrConfiguration) GetDNSDomains

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

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

func (c *VultrConfiguration) GetRegionalObjectStorageClusters() (int, error)

GetRegionalObjectStorageClusters determines if a region has object storage clusters available

func (*VultrConfiguration) GetRegions

func (c *VultrConfiguration) GetRegions() ([]string, error)

GetRegions lists all available regions

func (*VultrConfiguration) ListInstances

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