civo

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 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.

Index

Constants

View Source
const (
	CloudProvider = "civo"
)

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 NewCivo

func NewCivo(civoToken string, region string) *civogo.Client

Types

type Configuration added in v0.106.0

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

func (*Configuration) CreateStorageBucket added in v0.106.0

func (c *Configuration) CreateStorageBucket(accessKeyID string, bucketName string, region string) (*civogo.ObjectStore, error)

CreateStorageBucket creates an object storage bucket

func (*Configuration) DeleteAccessCredentials added in v0.106.0

func (c *Configuration) DeleteAccessCredentials(credentialName string) error

DeleteAccessCredentials deletes object store credentials

func (*Configuration) DeleteStorageBucket added in v0.106.0

func (c *Configuration) DeleteStorageBucket(bucketName string) error

DeleteStorageBucket deletes an object storage bucket

func (*Configuration) GetAccessCredentials added in v0.106.0

func (c *Configuration) GetAccessCredentials(credentialName string, region string) (*civogo.ObjectStoreCredential, error)

GetAccessCredentials creates object store access credentials if they do not exist and returns them if they do

func (*Configuration) GetDNSDomains added in v0.106.0

func (c *Configuration) GetDNSDomains() ([]string, error)

GetDNSDomains lists all available DNS domains

func (*Configuration) GetDNSInfo added in v0.106.0

func (c *Configuration) GetDNSInfo(domainName string) (string, error)

GetDNSInfo try to reach the provided domain

func (*Configuration) GetKubeconfig added in v0.106.0

func (c *Configuration) GetKubeconfig(clusterName string) (string, error)

func (*Configuration) GetRegions added in v0.106.0

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

GetRegions lists all available regions

func (*Configuration) ListInstanceSizes added in v0.106.0

func (c *Configuration) ListInstanceSizes() ([]string, error)

func (*Configuration) TestDomainLiveness added in v0.106.0

func (c *Configuration) TestDomainLiveness(domainName, domainID string) bool

TestDomainLiveness checks Civo DNS for the liveness test record

Jump to

Keyboard shortcuts

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