common

package
v2.0.0-citest.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProductTypeComputeServer      = "compute-engine-vm"
	ProductTypeMacBareMetalDevice = "bare-metal-device"
	ProductTypeKubernetesNode     = "compute-kubernetes-node"
)
View Source
const HoursPerMonth = 730

Variables

View Source
var ErrOrderFailed = errors.New("order failed")

Functions

func WaitForOrder

func WaitForOrder(ctx context.Context, client goclient.Client, ordering Ordering) error

Types

type Location

type Location common.Location

func FindLocation

func FindLocation(ctx context.Context, client goclient.Client, term string) (Location, error)

func Locations

func Locations(ctx context.Context, client goclient.Client) ([]Location, error)

func (Location) Columns

func (l Location) Columns() []string

func (Location) Keys

func (l Location) Keys() []string

func (Location) String

func (l Location) String() string

func (Location) Values

func (l Location) Values() map[string]interface{}

type Module

type Module common.Module

func Modules

func Modules(ctx context.Context, client goclient.Client) ([]Module, error)

func (Module) AvailableAt

func (m Module) AvailableAt(location Location) bool

func (Module) Columns

func (m Module) Columns() []string

func (Module) Keys

func (m Module) Keys() []string

func (Module) String

func (m Module) String() string

func (Module) Values

func (m Module) Values() map[string]interface{}

type Order

type Order = common.Order

type Ordering

type Ordering = common.Ordering

type Product

type Product common.Product

func Products

func Products(ctx context.Context, client goclient.Client) ([]Product, error)

func ProductsByType

func ProductsByType(ctx context.Context, client goclient.Client, productTypeFilter string) ([]Product, error)

func (Product) Columns

func (p Product) Columns() []string

func (Product) Keys

func (p Product) Keys() []string

func (Product) PricePerHour

func (p Product) PricePerHour() string

func (Product) String

func (p Product) String() string

func (Product) Values

func (p Product) Values() map[string]interface{}

type ProductType

type ProductType common.ProductType

func ProductTypes

func ProductTypes(ctx context.Context, client goclient.Client) ([]ProductType, error)

func (ProductType) Columns

func (p ProductType) Columns() []string

func (ProductType) Keys

func (p ProductType) Keys() []string

func (ProductType) Values

func (p ProductType) Values() map[string]interface{}

Jump to

Keyboard shortcuts

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