constructor

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 6 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

func Resync

func Resync(params ResyncParams) error

Resync forces indexer to immediately resynchronize the search index and cache for a given constructor.

func ResyncAll

ResyncAll asynchronously resynchronizes the search index for all constructors.

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

type ResyncParams

type ResyncParams struct {
	*api.API
	ID string
}

ResyncParams is consumed by Resync

func (ResyncParams) Validate

func (params ResyncParams) Validate() error

Validate ensures the parameters are usable by the consuming function.

Jump to

Keyboard shortcuts

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