package
0.0.0-20180108144400-194264adc583
Repository: https://github.com/ciao-project/ciao.git
Documentation: pkg.go.dev
# Functions
AddExternalIPToPool adds an external ips to an existing pool.
AddImage uploads a new image to the ciao-image service.
AddRandomImage uploads a new image of the desired size using random data.
AddVolume adds a new volume to a tenant.
AttachVolume attaches a volume to an instance.
AttachVolumeAndWait attaches a volume to an instance and waits for the status of that volume to transition to "in-use".
CreateExternalIPPool creates a new pool for external ips.
CreatePublicWorkload will call ciao as admin to create a workload.
CreateRandomFile creates a file of the desired size with random data returning the path.
CreateTenant creates a new tenant with the given config.
CreateWorkload will call ciao to create a workload definition.
CreateWorkloadFromFile will call ciao create workload to create a workload from the specified file.
DeleteAllInstances deletes all the instances created for the specified tenant by calling ciao delete instance --all.
DeleteExternalIPPool deletes an external-ip pool.
DeleteImage deletes an image from the image service.
DeleteInstance deletes a specific instance from the cluster.
DeleteInstanceAndWait deletes a specific instance from the cluster.
DeleteInstances deletes a set of instances provided by the instances slice.
DeletePublicWorkload will call ciao as admin to delete a workload.
DeleteTenant will delete the given tenant.
DeleteVolume deletes the specified volume from a given tenant.
DeleteWorkload will call ciao as a tenant to delete a workload.
DetachVolume detaches a volume from an instance.
DetachVolumeAndWait attaches a volume to an instance and waits for the status of that volume to transition to "available".
Evacuate evacuates a given node of a ciao cluster.
GetAllInstances returns information about all instances in the specified tenant in a map.
GetAllTenants retrieves a list of all tenants in the cluster by calling ciao list tenants.
GetAllVolumes returns a map of all the volumes defined in the specified tenant.
GetAllWorkloads retrieves a list of all workloads in the cluster by calling ciao list workloads .
GetCNCIs returns a map of the CNCIs present in the cluster.
GetComputeNode returns status information for a given node in the cluster.
GetComputeNodes returns a map containing status information about each compute node in the cluster.
GetImage retrieves the meta data for a given image.
GetImageCount returns the number of images currently stored in the image service.
GetImages retrieves the meta data for all images.
GetInstance returns an Instance structure that contains information about a specific instance.
GetNetworkNodes returns a map containing status information about each network node in the cluster.
GetTenantConfig retrieves the configuration for the given tenant.
GetUserTenants retrieves a list of all the tenants the current user has access to.
GetVolume returns a Volume structure containing information about a specific volume.
GetWorkloadByID will return a specific workload referenced by name.
GetWorkloadByName will return a specific workload referenced by name.
LaunchInstances launches num instances of the specified workload.
ListExternalIPs returns detailed information about all the external ips // defined for the given tenant.
ListQuotas returns the quotas by calling ciao list quotas.
MapExternalIP maps an external ip from a given pool to an instance.
RestartInstance restarts a ciao instance by invoking the ciao restart instance command.
RestartInstanceAndWait restarts a ciao instance by invoking the ciao instance restart command.
Restore restores a given node of a ciao cluster.
RetrieveInstancesStatuses retrieves the statuses of a slice of specific instances.
RetrieveInstanceStatus retrieve the status of a specific instance.
RunCIAOCmd execs the ciao command with a set of arguments.
RunCIAOCmdAsAdmin execs the ciao command as the admin user with a set of provided arguments.
RunCIAOCmdAsAdminJS is similar to RunCIAOCmdAsAdmin with the exception that the output of the ciao command is expected to be in json format.
RunCIAOCmdJS is similar to RunCIAOCmd with the exception that the output of the ciao command is expected to be in json format.
StartRandomInstances starts a specified number of instances using a random workload.
StopInstance stops a ciao instance by invoking the ciao stop instance command.
StopInstanceAndWait stops a ciao instance by invoking the ciao instance stop command.
UnmapExternalIP unmaps an external ip from an instance.
UpdateQuota updates the provided named quota for the provided tenant (using forTenantID) to the desired value.
UpdateTenant updates a new tenant with the given config.
WaitForComputeNodeStatus waits for the status of a node to transition to a given state.
WaitForInstanceExit blocks until the specified instance has exited or the context is cancelled.
WaitForInstancesLaunch waits for a slice of newly created instances to be scheduled.
WaitForVolumeStatus blocks until the status of the specified volume matches the status parameter or the context is cancelled.
# Structs
ClusterStatus contains information about the status of a ciao cluster.
CNCI contains information about a CNCI.
Disk describes the storage for the workload definition.
ExternalIP contains information about a single external ip.
Image contains all the meta data for a single image.
ImageOptions contains user supplied image meta data.
Instance contains detailed information about an instance.
NodeStatus contains information about the status of a node.
QuotaDetails holds quota information returned by ListQuotas().
Source is provided to the disk structure to indicate whether the disk should be cloned from a volume or an image.
Tenant contains basic information about a tenant.
TenantConfig stores the configurable attributes of a tenant.
TenantSummary is a short form of Tenant.
Volume contains information about a single volume.
VolumeOptions contains user supplied volume meta data.
Workload contains detailed information about a workload.
WorkloadOptions is used to generate a workload definition in yaml.
WorkloadRequirements indicate how many cpus and mem to allocate.