constructorapi

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 8 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 ListParams) (*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 {
	*api.API
	ID     string
	Region string
}

GetParams is the set of parameters required for

func (GetParams) Validate

func (params GetParams) Validate() error

Validate checks the parameters

type ListParams

type ListParams struct {
	*api.API
	Region string
}

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

func (ListParams) Validate

func (params ListParams) Validate() error

Validate checks the parameters

type MaintenanceParams

type MaintenanceParams struct {
	*api.API
	ID     string
	Region 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 ResyncAllParams

type ResyncAllParams struct {
	*api.API
	Region string
}

ResyncAllParams is consumed by ResyncAll

func (ResyncAllParams) Validate

func (params ResyncAllParams) Validate() error

Validate ensures the parameters are usable by the consuming function.

type ResyncParams

type ResyncParams struct {
	*api.API
	ID     string
	Region 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