Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2018 Changes in this version + const DefaultBucketMountPoint + const DefaultShareExportedPath + const DefaultShareMountPath + const DefaultUser + const DefaultVolumeMountPoint + const SingleHostNetworkName + func DeserializeFromJSON(buf []byte, data interface{}) error + func SerializeToJSON(data interface{}) ([]byte, error) + type Bucket struct + Host string + ID string + MountPoint string + Name string + type Config interface + Config func(name string) (interface{}, bool) + Get func(name string) (interface{}, bool) + GetInteger func(name string) int + GetMapOfStrings func(name string) map[string]string + GetSliceOfStrings func(name string) []string + GetString func(name string) string + Set func(name string, value interface{}) + type ConfigMap map[string]interface + func (c ConfigMap) Config(name string) (interface{}, bool) + func (c ConfigMap) Get(name string) (interface{}, bool) + func (c ConfigMap) GetInteger(name string) int + func (c ConfigMap) GetMapOfStrings(name string) map[string]string + func (c ConfigMap) GetSliceOfStrings(name string) []string + func (c ConfigMap) GetString(name string) string + func (c ConfigMap) Set(name string, value interface{}) + type ErrResource struct + Name string + ResourceType string + type ErrResourceAlreadyExists struct + func ResourceAlreadyExistsError(resource string, name string) ErrResourceAlreadyExists + func (e ErrResourceAlreadyExists) Error() string + type ErrResourceInvalidRequest struct + func ResourceInvalidRequestError(resource string, reason string) ErrResourceInvalidRequest + func (e ErrResourceInvalidRequest) Error() string + type ErrResourceNotAvailable struct + func ResourceNotAvailableError(resource, name string) ErrResourceNotAvailable + func (e ErrResourceNotAvailable) Error() string + type ErrResourceNotFound struct + func ResourceNotFoundError(resource string, name string) ErrResourceNotFound + func (e ErrResourceNotFound) Error() string + type ErrTimeout struct + Message string + func (e *ErrTimeout) Error() string + type Extensions struct + func NewExtensions() *Extensions + func (x *Extensions) Get(key string, value interface{}) error + func (x *Extensions) Lookup(key string) bool + func (x *Extensions) MarshalJSON() ([]byte, error) + func (x *Extensions) Set(key string, value interface{}) error + func (x *Extensions) UnmarshalJSON(b []byte) error + type GatewayRequest struct + CIDR string + ImageID string + KeyPair *KeyPair + Name string + Network *Network + TemplateID string + type Host struct + ID string + LastState HostState.Enum + Name string + PrivateKey string + Properties *Extensions + func NewHost() *Host + func (h *Host) Deserialize(buf []byte) error + func (h *Host) GetAccessIP() string + func (h *Host) GetPrivateIP() string + func (h *Host) GetPublicIP() string + func (h *Host) Serialize() ([]byte, error) + type HostRequest struct + DefaultGateway *Host + HostName string + ImageID string + KeyPair *KeyPair + Networks []*Network + PublicIP bool + ResourceName string + TemplateID string + type HostSize struct + type HostTemplate struct + type Image struct + ID string + Name string + type KeyPair struct + ID string + Name string + PrivateKey string + PublicKey string + type Network struct + CIDR string + GatewayID string + ID string + IPVersion IPVersion.Enum + Name string + Properties *Extensions + func NewNetwork() *Network + func (n *Network) Deserialize(buf []byte) error + func (n *Network) Serialize() ([]byte, error) + type NetworkRequest struct + CIDR string + DNSServers []string + IPVersion IPVersion.Enum + Name string + type Object struct + Content io.ReadSeeker + ContentLength int64 + ContentType string + Date time.Time + DeleteAt time.Time + ETag string + ID string + LastModified time.Time + Metadata objectstorage.ObjectMetadata + Name string + Size int64 + type ObjectFilter struct + Path string + Prefix string + type Range struct + From *int + To *int + func NewRange(from, to int) Range + func (r Range) String() string + type Serializable interface + Deserialize func([]byte) error + Serialize func() ([]byte, error) + type SizingRequirements struct + MinCores int + MinDiskSize int + MinFreq float32 + MinGPU int + MinRAMSize float32 + type StoredCPUInfo struct + CPUArch string + CPUFrequency float64 + CPUModel string + DiskSize int64 + EphDiskSize int64 + GPU int + GPUModel string + Hypervisor string + Id string + ImageID string + ImageName string + LastUpdated string + MainDiskSpeed float64 + MainDiskType string + NumberOfCPU int + NumberOfCore int + NumberOfSocket int + PricePerHour float64 + RAMFreq float64 + RAMSize float64 + SampleNetSpeed float64 + TemplateID string + TemplateName string + TenantName string + type Volume struct + ID string + Name string + Properties *Extensions + Size int + Speed VolumeSpeed.Enum + State VolumeState.Enum + func NewVolume() *Volume + func (v *Volume) Deserialize(buf []byte) error + func (v *Volume) Serialize() ([]byte, error) + type VolumeAttachment struct + Device string + Format string + ID string + MountPoint string + Name string + ServerID string + VolumeID string + type VolumeAttachmentRequest struct + HostID string + Name string + VolumeID string + type VolumeRequest struct + Name string + Size int + Speed VolumeSpeed.Enum