Documentation
¶
Index ¶
- type Client
- func (client *Client) AddExternalIPAddresses(pool string, IPs []string) error
- func (client *Client) AddExternalIPSubnet(pool string, subnet *net.IPNet) error
- func (client *Client) AttachVolume(volumeID string, instanceID, mountPoint string, mode string) error
- func (client *Client) ChangeNodeStatus(nodeID string, status types.NodeStatusType) error
- func (client *Client) CreateExternalIPPool(name string) error
- func (client *Client) CreateImage(name string, visibility types.Visibility, ID string, data io.Reader) (string, error)
- func (client *Client) CreateInstances(request api.CreateServerRequest) (api.Servers, error)
- func (client *Client) CreateTenantConfig(tenantID string, config types.TenantConfig) (types.TenantSummary, error)
- func (client *Client) CreateVolume(req api.RequestedVolume) (types.Volume, error)
- func (client *Client) CreateWorkload(request types.Workload) (types.Workload, error)
- func (client *Client) DeleteAllInstances() error
- func (client *Client) DeleteEvents() error
- func (client *Client) DeleteExternalIPPool(pool string) error
- func (client *Client) DeleteImage(imageID string) error
- func (client *Client) DeleteInstance(instanceID string) error
- func (client *Client) DeleteTenant(tenantID string) error
- func (client *Client) DeleteVolume(volumeID string) error
- func (client *Client) DeleteWorkload(workloadID string) error
- func (client *Client) DetachVolume(volumeID string) error
- func (client *Client) GetCNCI(cnciID string) (types.CiaoCNCI, error)
- func (client *Client) GetExternalIPPool(name string) (types.Pool, error)
- func (client *Client) GetImage(imageID string) (types.Image, error)
- func (client *Client) GetInstance(instanceID string) (api.Server, error)
- func (client *Client) GetTenantConfig(ID string) (types.TenantConfig, error)
- func (client *Client) GetTraceData(label string) (types.CiaoTraceData, error)
- func (client *Client) GetVolume(volumeID string) (types.Volume, error)
- func (client *Client) GetWorkload(workloadID string) (types.Workload, error)
- func (client *Client) Init() error
- func (client *Client) IsPrivileged() bool
- func (client *Client) ListCNCIs() (types.CiaoCNCIs, error)
- func (client *Client) ListComputeNodes() (types.CiaoNodes, error)
- func (client *Client) ListEvents(tenantID string) (types.CiaoEvents, error)
- func (client *Client) ListExternalIPPools() (types.ListPoolsResponse, error)
- func (client *Client) ListExternalIPs() ([]types.MappedIP, error)
- func (client *Client) ListImages() ([]types.Image, error)
- func (client *Client) ListInstances() (api.Servers, error)
- func (client *Client) ListInstancesByNode(nodeID string) (types.CiaoServersStats, error)
- func (client *Client) ListInstancesByWorkload(tenantID string, workloadID string) (api.Servers, error)
- func (client *Client) ListNetworkNodes() (types.CiaoNodes, error)
- func (client *Client) ListNodes() (types.CiaoNodes, error)
- func (client *Client) ListQuotas(tenantID string) ([]types.QuotaDetails, error)
- func (client *Client) ListTenantQuotas() (types.CiaoTenantResources, error)
- func (client *Client) ListTenantResources() (types.CiaoUsageHistory, error)
- func (client *Client) ListTenants() (types.TenantsListResponse, error)
- func (client *Client) ListTraceLabels() (types.CiaoTracesSummary, error)
- func (client *Client) ListVolumes() ([]types.Volume, error)
- func (client *Client) ListWorkloads() ([]types.Workload, error)
- func (client *Client) MapExternalIP(pool string, instanceID string) error
- func (client *Client) RemoveExternalIPAddress(pool string, IP string) error
- func (client *Client) RemoveExternalIPSubnet(pool string, subnet *net.IPNet) error
- func (client *Client) StartInstance(instanceID string) error
- func (client *Client) StopInstance(instanceID string) error
- func (client *Client) UnmapExternalIP(address string) error
- func (client *Client) UpdateQuotas(tenantID string, quotas []types.QuotaDetails) error
- func (client *Client) UpdateTenantConfig(ID string, config types.TenantConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ControllerURL string TenantID string CACertFile string ClientCertFile string Tenants []string // contains filtered or unexported fields }
Client represents a client for accessing ciao controller
func (*Client) AddExternalIPAddresses ¶
AddExternalIPAddresses adds a set of IP addresses to the external IP pool
func (*Client) AddExternalIPSubnet ¶
AddExternalIPSubnet adds a subnet to the external IP pool
func (*Client) AttachVolume ¶
func (client *Client) AttachVolume(volumeID string, instanceID, mountPoint string, mode string) error
AttachVolume attaches a volume to an instance
func (*Client) ChangeNodeStatus ¶
func (client *Client) ChangeNodeStatus(nodeID string, status types.NodeStatusType) error
ChangeNodeStatus modifies the status of a node
func (*Client) CreateExternalIPPool ¶
CreateExternalIPPool creates a pool of IPs
func (*Client) CreateImage ¶
func (client *Client) CreateImage(name string, visibility types.Visibility, ID string, data io.Reader) (string, error)
CreateImage creates and uploads a new image
func (*Client) CreateInstances ¶
CreateInstances creates instances by the given request
func (*Client) CreateTenantConfig ¶
func (client *Client) CreateTenantConfig(tenantID string, config types.TenantConfig) (types.TenantSummary, error)
CreateTenantConfig creates a new tenant configuration
func (*Client) CreateVolume ¶
CreateVolume creates a volume from a request
func (*Client) CreateWorkload ¶
CreateWorkload creates a worklaod
func (*Client) DeleteAllInstances ¶
DeleteAllInstances deletes all the instances
func (*Client) DeleteEvents ¶
DeleteEvents deletes all events
func (*Client) DeleteExternalIPPool ¶
DeleteExternalIPPool deletes the pool of the given name
func (*Client) DeleteImage ¶
DeleteImage deletes the given image
func (*Client) DeleteInstance ¶
DeleteInstance deletes the given instance
func (*Client) DeleteTenant ¶
DeleteTenant deletes the given tenant
func (*Client) DeleteVolume ¶
DeleteVolume deletes a volume
func (*Client) DeleteWorkload ¶
DeleteWorkload deletes the given workload
func (*Client) DetachVolume ¶
DetachVolume detaches a volume from an instance
func (*Client) GetExternalIPPool ¶
GetExternalIPPool gets the details of a single external IP pool
func (*Client) GetInstance ¶
GetInstance gets the details of a single instances
func (*Client) GetTenantConfig ¶
func (client *Client) GetTenantConfig(ID string) (types.TenantConfig, error)
GetTenantConfig gets the tenant configuration
func (*Client) GetTraceData ¶
func (client *Client) GetTraceData(label string) (types.CiaoTraceData, error)
GetTraceData returns trace details
func (*Client) GetWorkload ¶
GetWorkload gets the given workload
func (*Client) IsPrivileged ¶
IsPrivileged returns true if the user has admin privileges
func (*Client) ListComputeNodes ¶
ListComputeNodes returns the set of compute nodes
func (*Client) ListEvents ¶
func (client *Client) ListEvents(tenantID string) (types.CiaoEvents, error)
ListEvents retrieves the events for either all or the desired tenant
func (*Client) ListExternalIPPools ¶
func (client *Client) ListExternalIPPools() (types.ListPoolsResponse, error)
ListExternalIPPools lists the pools in which IPs are available
func (*Client) ListExternalIPs ¶
ListExternalIPs returns the mapped IPs
func (*Client) ListImages ¶
ListImages retrieves the set of available images
func (*Client) ListInstances ¶
ListInstances gets the set of instances
func (*Client) ListInstancesByNode ¶
func (client *Client) ListInstancesByNode(nodeID string) (types.CiaoServersStats, error)
ListInstancesByNode gets the instances on a given node
func (*Client) ListInstancesByWorkload ¶
func (client *Client) ListInstancesByWorkload(tenantID string, workloadID string) (api.Servers, error)
ListInstancesByWorkload provides the list of instances for a given tenant and workloadID.
func (*Client) ListNetworkNodes ¶
ListNetworkNodes returns the set of network nodes
func (*Client) ListQuotas ¶
func (client *Client) ListQuotas(tenantID string) ([]types.QuotaDetails, error)
ListQuotas lists the quotas for the specified tenant
func (*Client) ListTenantQuotas ¶
func (client *Client) ListTenantQuotas() (types.CiaoTenantResources, error)
ListTenantQuotas gets legacy tenant quota information
func (*Client) ListTenantResources ¶
func (client *Client) ListTenantResources() (types.CiaoUsageHistory, error)
ListTenantResources gets tenant usage information
func (*Client) ListTenants ¶
func (client *Client) ListTenants() (types.TenantsListResponse, error)
ListTenants returns a list of the tenants
func (*Client) ListTraceLabels ¶
func (client *Client) ListTraceLabels() (types.CiaoTracesSummary, error)
ListTraceLabels returns a list of trace labels
func (*Client) ListVolumes ¶
ListVolumes lists the volumes
func (*Client) ListWorkloads ¶
ListWorkloads gets the workloads available
func (*Client) MapExternalIP ¶
MapExternalIP maps an IP from the pool to the given instance
func (*Client) RemoveExternalIPAddress ¶
RemoveExternalIPAddress removes a single IP address from the pool
func (*Client) RemoveExternalIPSubnet ¶
RemoveExternalIPSubnet removes a subnet from the pool
func (*Client) StartInstance ¶
StartInstance stops the given instance
func (*Client) StopInstance ¶
StopInstance stops the given instance
func (*Client) UnmapExternalIP ¶
UnmapExternalIP unmaps the given address from an instance
func (*Client) UpdateQuotas ¶
func (client *Client) UpdateQuotas(tenantID string, quotas []types.QuotaDetails) error
UpdateQuotas updates the quotas for a given tenant
func (*Client) UpdateTenantConfig ¶
func (client *Client) UpdateTenantConfig(ID string, config types.TenantConfig) error
UpdateTenantConfig updates the tenant configuration