Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.0.0-...-156aa7b Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*godo.Client
}

func NewClient

func NewClient(cfg *config.Config) *Client

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(ctx context.Context, name, engine, version, size, region string) (*godo.Database, error)

func (*Client) CreateDomain

func (c *Client) CreateDomain(ctx context.Context, name string) (*godo.Domain, error)

func (*Client) CreateDomainRecord

func (c *Client) CreateDomainRecord(ctx context.Context, domain, recordType, name, data string, priority int) (*godo.DomainRecord, error)

func (*Client) CreateDroplet

func (c *Client) CreateDroplet(ctx context.Context, name, region, size, image string) (*godo.Droplet, error)

func (*Client) CreateKubernetesCluster

func (c *Client) CreateKubernetesCluster(ctx context.Context, name, region, version string, numNodes int) (*godo.KubernetesCluster, error)

func (*Client) CreateVPC

func (c *Client) CreateVPC(ctx context.Context, name, region, ipRange string) (*godo.VPC, error)

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase(ctx context.Context, id string) error

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(ctx context.Context, name string) error

func (*Client) DeleteDomainRecord

func (c *Client) DeleteDomainRecord(ctx context.Context, domain string, recordID int) error

func (*Client) DeleteDroplet

func (c *Client) DeleteDroplet(ctx context.Context, id int) error

func (*Client) DeleteKubernetesCluster

func (c *Client) DeleteKubernetesCluster(ctx context.Context, id string) error

func (*Client) DeleteVPC

func (c *Client) DeleteVPC(ctx context.Context, id string) error

func (*Client) GetBillingInfo

func (c *Client) GetBillingInfo(ctx context.Context) (*godo.Balance, error)

Change the GetBillingInfo function to use the correct method

func (*Client) ListDatabases

func (c *Client) ListDatabases(ctx context.Context) ([]godo.Database, error)

Change the return type from []*godo.Database to []godo.Database

func (*Client) ListDomainRecords

func (c *Client) ListDomainRecords(ctx context.Context, domain string) ([]godo.DomainRecord, error)

func (*Client) ListDomains

func (c *Client) ListDomains(ctx context.Context) ([]godo.Domain, error)

func (*Client) ListDroplets

func (c *Client) ListDroplets(ctx context.Context) ([]godo.Droplet, error)

func (*Client) ListKubernetesClusters

func (c *Client) ListKubernetesClusters(ctx context.Context) ([]*godo.KubernetesCluster, error)

func (*Client) ListVPCs

func (c *Client) ListVPCs(ctx context.Context) ([]godo.VPC, error)

Jump to

Keyboard shortcuts

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