operations

package
v0.1.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RegionNameAmsterdam = shared.RegionNameAmsterdam

This is an alias to an internal value.

View Source
const RegionNameChicago = shared.RegionNameChicago

This is an alias to an internal value.

View Source
const RegionNameFrankfurt = shared.RegionNameFrankfurt

This is an alias to an internal value.

View Source
const RegionNameHongkong = shared.RegionNameHongkong

This is an alias to an internal value.

View Source
const RegionNameLondon = shared.RegionNameLondon

This is an alias to an internal value.

View Source
const RegionNameMumbai = shared.RegionNameMumbai

This is an alias to an internal value.

View Source
const RegionNameSaopaulo = shared.RegionNameSaopaulo

This is an alias to an internal value.

View Source
const RegionNameSeattle = shared.RegionNameSeattle

This is an alias to an internal value.

View Source
const RegionNameSiliconvalley = shared.RegionNameSiliconvalley

This is an alias to an internal value.

View Source
const RegionNameSingapore = shared.RegionNameSingapore

This is an alias to an internal value.

View Source
const RegionNameStockholm = shared.RegionNameStockholm

This is an alias to an internal value.

View Source
const RegionNameSydney = shared.RegionNameSydney

This is an alias to an internal value.

View Source
const RegionNameTokyo = shared.RegionNameTokyo

This is an alias to an internal value.

View Source
const RegionNameWashingtondc = shared.RegionNameWashingtondc

This is an alias to an internal value.

View Source
const ResourceStatusCreating = shared.ResourceStatusCreating

This is an alias to an internal value.

View Source
const ResourceStatusDeleted = shared.ResourceStatusDeleted

This is an alias to an internal value.

View Source
const ResourceStatusDeleting = shared.ResourceStatusDeleting

This is an alias to an internal value.

View Source
const ResourceStatusFailed = shared.ResourceStatusFailed

This is an alias to an internal value.

View Source
const ResourceStatusPending = shared.ResourceStatusPending

This is an alias to an internal value.

View Source
const ResourceStatusReady = shared.ResourceStatusReady

This is an alias to an internal value.

View Source
const ResourceStatusUpdating = shared.ResourceStatusUpdating

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error = apierror.Error

type Operation

type Operation struct {
	ID         string          `json:"id,required"`
	Kind       OperationKind   `json:"kind,required"`
	ResourceID string          `json:"resource_id,required"`
	Status     OperationStatus `json:"status,required"`
	Type       OperationType   `json:"type,required"`
	JSON       operationJSON   `json:"-"`
}

Operation details.

func (*Operation) UnmarshalJSON

func (r *Operation) UnmarshalJSON(data []byte) (err error)

type OperationKind

type OperationKind string
const (
	OperationKindVM           OperationKind = "VM"
	OperationKindVolume       OperationKind = "VOLUME"
	OperationKindVPC          OperationKind = "VPC"
	OperationKindFirewallRule OperationKind = "FIREWALL_RULE"
)

func (OperationKind) IsKnown

func (r OperationKind) IsKnown() bool

type OperationService

type OperationService struct {
	Options []option.RequestOption
}

OperationService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOperationService method instead.

func NewOperationService

func NewOperationService(opts ...option.RequestOption) (r *OperationService)

NewOperationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*OperationService) Get

func (r *OperationService) Get(ctx context.Context, operationID string, opts ...option.RequestOption) (res *Operation, err error)

Get details about a specific operation

func (*OperationService) List

func (r *OperationService) List(ctx context.Context, opts ...option.RequestOption) (res *[]Operation, err error)

List all operations

type OperationStatus

type OperationStatus string
const (
	OperationStatusPending OperationStatus = "PENDING"
	OperationStatusRunning OperationStatus = "RUNNING"
	OperationStatusDone    OperationStatus = "DONE"
	OperationStatusFailed  OperationStatus = "FAILED"
	OperationStatusUnknown OperationStatus = "UNKNOWN"
)

func (OperationStatus) IsKnown

func (r OperationStatus) IsKnown() bool

type OperationType

type OperationType string
const (
	OperationTypeCreate OperationType = "CREATE"
	OperationTypeUpdate OperationType = "UPDATE"
	OperationTypeDelete OperationType = "DELETE"
)

func (OperationType) IsKnown

func (r OperationType) IsKnown() bool

type RegionName

type RegionName = shared.RegionName

This is an alias to an internal type.

type ResourceStatus

type ResourceStatus = shared.ResourceStatus

This is an alias to an internal type.

Jump to

Keyboard shortcuts

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