common

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const HoursPerMonth = 730
View Source
const (
	ProductTypeMacBareMetal = "bare-metal-device"
)

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 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) 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) 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