vultr

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInstance

func ParseInstance(in *PlanExtended) (*v1alpha1.MachineType, error)

func ParseRegion

func ParseRegion(in *vultr.Region) *v1alpha1.Region

Types

type Client

type Client struct {
	Client *vultr.Client
}

func NewClient

func NewClient(opts credential.Vultr) (*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)

type PlanExtended

type PlanExtended struct {
	vultr.Plan
	Category   string `json:"plan_type"`
	Deprecated bool   `json:"deprecated"`
}

Jump to

Keyboard shortcuts

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