package
0.0.0-20180108144400-194264adc583
Repository: https://github.com/ciao-project/ciao.git
Documentation: pkg.go.dev
# Functions
NewCiaoCNCIs allocates a CiaoCNCIs structure.
NewCiaoEvents allocates a CiaoEvents structure.
NewCiaoNodes allocates a CiaoNodes structure.
NewCiaoServersStats allocates a CiaoServersStats structure.
# Constants
Active means that the image is created, uploaded and ready to use.
Attaching means that the volume is in the process of attaching to an instance.
Available means that the volume is ok for attaching.
Created means that an empty image has been created.
Detaching means that the volume is in process of detaching.
Empty indicates that there is no source for the storage source.
ImageService indicates the source comes from the image service.
Internal indicates that an image is only for Ciao internal usage.
InUse means that the volume has been successfully attached to an instance.
Killed means that an image data upload error occurred.
NodeStatusFull indicates that a node is full and cannot satisfy start requests.
NodeStatusMaintenance indicates that a node is in maintenance mode and cannot satisfy start requests.
NodeStatusReady indicates that a node is ready to receive start requests.
Private indicates that the image is only available to a tenant.
Public indicates that the image can be used by anyone.
Saving means the image is being saved.
VolumeService indicates the source comes from the volume service.
# Variables
ErrAddressNotFound is returned when an address isn't found.
ErrBadName is returned when a name doesn't match the requirements.
ErrBadRequest is returned when we have a malformed request.
ErrDuplicateIP is returned when a duplicate external IP is added.
ErrDuplicatePoolName is returned when a duplicate pool name is used.
ErrDuplicateSubnet is returned when a subnet already exists.
ErrInstanceMapped is returned when an instance cannot be deleted due to having an external IP assigned to it.
ErrInstanceNotAssigned is returned when an instance is not assigned to a node.
ErrInstanceNotFound is returned when an instance is not found.
ErrInvalidIP is returned when an IP cannot be parsed.
ErrInvalidPoolAddress is returned when an address isn't part of a pool.
ErrPoolEmpty is returned when a pool has no free IPs.
ErrPoolNotEmpty is returned when a pool is still in use.
ErrPoolNotFound is returned when an external IP pool is not found.
ErrQuota is returned when a resource limit is exceeded.
ErrSubnetTooSmall is returned when an invalid subnet is used.
ErrTenantNotFound is returned when a tenant ID is unknown.
ErrWorkloadInUse is returned by DeleteWorkload when an instance of a workload is still active.
ErrWorkloadNotFound is returned when a workload ID cannot be found.
# Structs
APILink provides information and links about a supported resource.
BatchFrameStat contains tracing information for a group of start requests by label.
BatchFrameSummary provides summary information on tracing per label.
CiaoBatchFrameStat contains frame statisitics for a ciao cluster.
CiaoCNCI contains information about an individual CNCI.
CiaoCNCIDetail represents the unmarshalled version of the contents of a v2.1/cncis/{cnci}/detail response.
CiaoCNCIs represents the unmarshalled version of the contents of a v2.1/cncis response.
CiaoCNCISubnet contains subnet information for a CNCI.
CiaoEvent contains information about an individual event generated in a ciao cluster.
CiaoEvents represents the unmarshalled version of the response to a v2.1/{tenant}/event or v2.1/event request.
CiaoFrameStat contains the elapsed time statistics for a frame.
CiaoNode contains status and statistic information for an individual node.
CiaoNodes represents the unmarshalled version of the contents of a /v2.1/nodes response.
CiaoNodeStatus contains status information for an individual node.
CiaoServersAction represents the unmarshalled version of the contents of a v2.1/servers/action request.
CiaoServersStats represents the unmarshalled version of the contents of a v2.1/nodes/{node}/servers/detail response.
CiaoServerStats contains status information about a CN or a NN.
CiaoTenantResources represents the unmarshalled version of the contents of a /v2.1/{tenant}/quotas response.
CiaoTraceData represents the unmarshalled version of the response to a v2.1/traces/{label} request.
CiaoTracesSummary represents the unmarshalled version of the response to a v2.1/traces request.
CiaoTraceSummary contains information about a specific SSNTP Trace label.
CiaoUsage contains a snapshot of resource consumption for a tenant.
CiaoUsageHistory represents the unmarshalled version of the contents of a /v2.1/{tenant}/resources response.
CNCIDetail stores the IPv4 for a CNCI Agent.
ExternalIP represents an External IP individual address.
ExternalSubnet represents a subnet for External IPs.
FrameStat contains tracing information per node.
Image contains the information that ciao will store about the image.
Instance contains information about an instance of a workload.
Link provides a url and relationship for a resource.
ListPoolsResponse respresents a summary list of all pools.
LogEntry stores information about events.
MapIPRequest is used to request that an external IP be assigned from a pool to a particular instance.
MappedIP represents a mapping of external IP -> instance IP.
MappedIPShort is a summary version of a MappedIP.
NewAddressRequest is used to add a new IP or new subnet to a pool.
NewIPAddressRequest is used to add a new external IP to a pool.
NewPoolRequest is used to create a new pool.
Node contains information about a physical node in the cluster.
NodeStats stores statistics for individual nodes in the cluster.
NodeSummary contains summary information for all nodes in the cluster.
Pool represents a pool of external IPs.
PoolSummary is a short form of Pool.
QuotaDetails holds information for updating and querying quotas.
QuotaListResponse holds the layout for returning quotas in the API.
QuotaUpdateRequest holds the layout for updating quota API.
StorageAttachment represents a link between a block device and an instance.
StorageResource defines a storage resource for a workload.
Tenant contains information about a tenant or project.
TenantCNCI contains information about the CNCI instance for a tenant.
TenantConfig stores the configurable attributes of a tenant.
TenantRequest contains information for creating a new tenant.
TenantsListResponse stores a list of tenants retrieved by listTenants.
TenantSummary is a short form of Tenant.
Volume respresents the attributes of this block device.
Workload contains resource and configuration information for a user workload.
WorkloadRequest contains resource and configuration for a user workload.
WorkloadResponse will be returned from /workloads apis It provides details on the workload, and references for the client.
# Interfaces
CNCIController is the interface for the cnci controller associated with each tenant.
# Type aliases
BlockState represents the state of the block device in the controller datastore.
ImageState represents the state of the image.
NodeStatusType contains the valid values of a node's status.
SortedInstancesByID implements sort.Interface for Instance by ID string.
SortedNodesByID implements sort.Interface for Node by ID string.
SourceType contains the valid values of the storage source.
Visibility defines whether an image is per tenant or public.