vultr

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 24 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.

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 BootstrapVultrMgmtCluster

func BootstrapVultrMgmtCluster(
	vultrApiKey string,
	kubeconfigPath string,
	gitProvider string,
	gitUser string,
	cloudflareAPIToken string,
) error

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 GetGithubTerraformEnvs

func GetGithubTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

func GetGitlabTerraformEnvs

func GetGitlabTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string, gid int) map[string]string

func GetUsersTerraformEnvs

func GetUsersTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

func GetVaultTerraformEnvs

func GetVaultTerraformEnvs(clientset *kubernetes.Clientset, config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

func GetVultrTerraformEnvs

func GetVultrTerraformEnvs(config *providerConfigs.ProviderConfig, envs map[string]string) map[string]string

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) 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) 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