digitalocean

package
v0.0.0-...-2215086 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessToken string
}

type DigitaloceanInfoer

type DigitaloceanInfoer struct {
	// contains filtered or unexported fields
}

DigitaloceanInfoer encapsulates the data and operations needed to access external DigitalOcean resources.

func NewDigitaloceanInfoer

func NewDigitaloceanInfoer(config Config, logger cloudinfo.Logger) (*DigitaloceanInfoer, error)

NewDigitaloceanInfoer creates a new instance of the Digitalocean infoer.

func (*DigitaloceanInfoer) GetCurrentPrices

func (*DigitaloceanInfoer) GetCurrentPrices(region string) (map[string]types.Price, error)

func (*DigitaloceanInfoer) GetProducts

func (i *DigitaloceanInfoer) GetProducts(vms []types.VMInfo, service, regionId string) ([]types.VMInfo, error)

func (*DigitaloceanInfoer) GetRegions

func (i *DigitaloceanInfoer) GetRegions(service string) (map[string]string, error)

func (*DigitaloceanInfoer) GetServiceImages

func (*DigitaloceanInfoer) GetServiceImages(service, region string) ([]types.Image, error)

func (*DigitaloceanInfoer) GetServiceProducts

func (*DigitaloceanInfoer) GetServiceProducts(region, service string) ([]types.ProductDetails, error)

func (*DigitaloceanInfoer) GetVersions

func (i *DigitaloceanInfoer) GetVersions(service, region string) ([]types.LocationVersion, error)

func (*DigitaloceanInfoer) GetVirtualMachines

func (i *DigitaloceanInfoer) GetVirtualMachines(region string) ([]types.VMInfo, error)

func (*DigitaloceanInfoer) GetZones

func (*DigitaloceanInfoer) GetZones(region string) ([]string, error)

func (*DigitaloceanInfoer) HasImages

func (*DigitaloceanInfoer) HasImages() bool

func (*DigitaloceanInfoer) HasShortLivedPriceInfo

func (*DigitaloceanInfoer) HasShortLivedPriceInfo() bool

func (*DigitaloceanInfoer) Initialize

func (i *DigitaloceanInfoer) Initialize() (map[string]map[string]types.Price, error)

Jump to

Keyboard shortcuts

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