constructor

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableMaintenance

func DisableMaintenance(params MaintenanceParams) error

DisableMaintenance unsets the constructor to operational mode

func EnableMaintenace

func EnableMaintenace(params MaintenanceParams) error

EnableMaintenace sets the constructor to operational mode

func Get

func Get(params GetParams) (*models.ConstructorInfo, error)

Get returns information about a specific constructor

func List

func List(params Params) (*models.ConstructorOverview, error)

List gets the list of constuctors for a region

Types

type GetParams

type GetParams struct {
	Params
	ID string
}

GetParams is the set of parameters required for

func (GetParams) Validate

func (params GetParams) Validate() error

Validate checks the parameters

type MaintenanceParams

type MaintenanceParams struct {
	Params
	ID string
}

MaintenanceParams is the set of parameters required for EnableMaintenace and DisableMaintenance

func (MaintenanceParams) Validate

func (params MaintenanceParams) Validate() error

Validate checks the parameters

type Params

type Params struct {
	*api.API
}

Params is the generic set of parameters used for any constructor call

func (Params) Validate

func (params Params) Validate() error

Validate checks the parameters

Jump to

Keyboard shortcuts

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