compute

package
v0.3.2-test Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AVAILABLE  = "AVAILABLE"
	BUSY       = "BUSY"
	ACTIVE     = "ACTIVE"
	UPDATING   = "UPDATING"
	DESTROYING = "DESTROYING"
)

States of Compute Resources

Variables

This section is empty.

Functions

func AddAPIResponseInfo

func AddAPIResponseInfo(apiResponse *sdkgo.APIResponse, retErr error) error

AddAPIResponseInfo adds APIResponse status info to an existing error

func ErrorUnlessNotFound added in v1.0.9

func ErrorUnlessNotFound(apiResponse *sdkgo.APIResponse, retErr error) error

ErrorUnlessNotFound returns an error with status code info, unless the status code is 404

func WaitForRequest

func WaitForRequest(ctx context.Context, client *sdkgo.APIClient, apiResponse *sdkgo.APIResponse) error

WaitForRequest waits for the request to be DONE

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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