package
0.0.0-20180108144400-194264adc583
Repository: https://github.com/ciao-project/ciao.git
Documentation: pkg.go.dev

# Functions

Routes returns the supported ciao API endpoints.

# Constants

ExternalIPsV1 is the content-type string for v1 of our external-ips resource.
ImagesV1 is the content-type string for v1 of our images resource.
InstancesV1 is the content-type string for v1 of our intances resource.
NodeV1 is the content-type string for v1 of our node resource.
PoolsV1 is the content-type string for v1 of our pools resource.
Port is the default port number for the ciao API.
TenantsV1 is the content-type string for v1 of our tenants resource.
VolumesV1 is the content-type string for v1 of our volumes resource.
WorkloadsV1 is the content-type string for v1 of our workloads resource.

# Variables

ErrAlreadyExists is returned when an attempt is made to add an image with a UUID that already exists.
ErrBadUUID is returned when an invalid UUID is specified.
ErrImageSaving is returned when an image is being uploaded.
ErrInstanceNotFound is used if instance not found.
ErrNoImage is returned when an image is not found.
ErrQuota is returned when the tenant exceeds its quota.
ErrVolumeNotAttached returned if volume not attached.
ErrVolumeNotAvailable returned if volume not available.
ErrVolumeOwner returned if permission denied.

# Structs

Config is used to setup the Context for the ciao API.
Context is used to provide the services and current URL to the handlers.
CreateImageRequest contains information for a create image request.
CreateServerRequest contains the details needed to start new instance(s).
Handler is a custom handler for the compute APIs.
HTTPErrorData represents the HTTP response body for a compute API request error.
HTTPReturnErrorCode represents the unmarshalled version for Return codes when a API call is made and you need to return explicit data of the call as OpenStack format http://developer.openstack.org/api-guide/compute/faults.html.
PrivateAddresses contains information about a single instance network interface.
RequestedVolume contains information about a volume to be created.
Response contains the http status and any response struct to be marshalled.
Server holds a single server's worth of details.
ServerDetails contains information about a specific instance.
Servers holds multiple servers including a count.

# Interfaces

Service is an interface which must be implemented by the ciao API context.

# Type aliases

ErrorImage defines all possible image handling errors.