digitalocean

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCategoryFromSlug

func ParseCategoryFromSlug(slug string) string

func ParseMachineType

func ParseMachineType(sz *godo.Size) (*v1alpha1.MachineType, error)

func ParseRegion

func ParseRegion(region *godo.Region) *v1alpha1.Region

Types

type Client

type Client struct {
	Client *godo.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts credential.DigitalOcean) (*Client, error)

func (*Client) GetName

func (g *Client) GetName() string

func (*Client) ListMachineTypes

func (g *Client) ListMachineTypes() ([]v1alpha1.MachineType, error)

func (*Client) ListRegions

func (g *Client) ListRegions() ([]v1alpha1.Region, error)

func (*Client) ListZones

func (g *Client) ListZones() ([]string, error)

Rgion.Slug is used as zone name

Jump to

Keyboard shortcuts

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