Versions in this module Expand all Collapse all v21 v21.11.1 Apr 26, 2022 Changes in this version type ClusterRequest + DefaultSshPort uint + FeatureParameters []string type HostCore + func (hc *HostCore) SetID(id string) *HostCore type HostSizingRequirements + MaxDiskSize int type SecurityGroup + func (instance *SecurityGroup) GetNetworkID() string type Subnet + func (s *Subnet) GetCIDR() string v21.11.0 Feb 17, 2022 Changes in this version + const DefaultBucketMountPoint + const DefaultShareExportedPath + const DefaultShareMountPath + const DefaultUser + const DefaultVolumeMountPoint + const SingleHostNetworkCIDR + func IsProvisioningError(err error) bool + func ResourceDuplicateError(resource, name string) fail.Error + func ResourceForbiddenError(resource, name string) fail.Error + func ResourceInvalidRequestError(resource, reason string) fail.Error + func ResourceNotAvailableError(resource, name string) fail.Error + func ResourceNotFoundError(resource, name string) fail.Error + func ResourceTimeoutError(resource, name string, dur time.Duration) fail.Error + type ClusterIdentity struct + AdminPassword string + Complexity clustercomplexity.Enum + Flavor clusterflavor.Enum + Keypair *KeyPair + Name string + Tags map[string]string + func NewClusterIdentity() *ClusterIdentity + func (i *ClusterIdentity) Deserialize(buf []byte) (xerr fail.Error) + func (i *ClusterIdentity) IsNull() bool + func (i *ClusterIdentity) Replace(p data.Clonable) data.Clonable + func (i *ClusterIdentity) Serialize() ([]byte, fail.Error) + func (i ClusterIdentity) Clone() data.Clonable + func (i ClusterIdentity) GetID() string + func (i ClusterIdentity) GetName() string + func (i ClusterIdentity) OK() bool + type ClusterRequest struct + CIDR string + Complexity clustercomplexity.Enum + DisabledDefaultFeatures map[string]struct{} + Domain string + Flavor clusterflavor.Enum + Force bool + GatewaysDef HostSizingRequirements + InitialNodeCount uint + KeepOnFailure bool + MastersDef HostSizingRequirements + Name string + NetworkID string + NodesDef HostSizingRequirements + OS string + Tenant 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 HostCore struct + ID string + LastState hoststate.Enum + Name string + Password string + PrivateKey string + SSHPort uint32 + Tags map[string]string + func NewHostCore() *HostCore + func (hc *HostCore) Deserialize(buf []byte) (ferr fail.Error) + func (hc *HostCore) GetID() string + func (hc *HostCore) GetName() string + func (hc *HostCore) IsConsistent() bool + func (hc *HostCore) IsNull() bool + func (hc *HostCore) OK() bool + func (hc *HostCore) Replace(p data.Clonable) data.Clonable + func (hc *HostCore) Serialize() ([]byte, fail.Error) + func (hc *HostCore) SetName(name string) *HostCore + func (hc HostCore) Clone() data.Clonable + type HostDescription struct + Created time.Time + Creator string + Purpose string + Tenant string + Updated time.Time + type HostEffectiveSizing struct + CPUFreq float32 + Cores int + DiskSize int + GPUNumber int + GPUType string + ImageID string + RAMSize float32 + Replaceable bool + func NewHostEffectiveSizing() *HostEffectiveSizing + func (hse *HostEffectiveSizing) IsNull() bool + type HostFull struct + Core *HostCore + CurrentState hoststate.Enum + Description *HostDescription + Networking *HostNetworking + Sizing *HostEffectiveSizing + func NewHostFull() *HostFull + func (hf *HostFull) GetID() string + func (hf *HostFull) GetName() string + func (hf *HostFull) IsConsistent() bool + func (hf *HostFull) IsNull() bool + func (hf *HostFull) OK() bool + func (hf *HostFull) SetName(name string) *HostFull + type HostList []*HostFull + type HostNetworking struct + DefaultGatewayID string + DefaultGatewayPrivateIP string + DefaultSubnetID string + IPv4Addresses map[string]string + IPv6Addresses map[string]string + IsGateway bool + PublicIPv4 string + PublicIPv6 string + SubnetsByID map[string]string + SubnetsByName map[string]string + func NewHostNetworking() *HostNetworking + type HostRequest struct + DefaultRouteIP string + DiskSize int + HostName string + ImageID string + ImageRef string + IsGateway bool + KeepOnFailure bool + KeyPair *KeyPair + Password string + Preemptible bool + PublicIP bool + ResourceName string + SSHPort uint32 + SecurityGroupIDs map[string]struct{} + Single bool + Subnets []*Subnet + TemplateID string + TemplateRef string + type HostSizingRequirements struct + Image string + MaxCores int + MaxRAMSize float32 + MinCPUFreq float32 + MinCores int + MinDiskSize int + MinGPU int + MinRAMSize float32 + Replaceable bool + Template string + func (hsr *HostSizingRequirements) LowerOrEqualThan(y *HostSizingRequirements) (bool, error) + func (hsr *HostSizingRequirements) LowerThan(y *HostSizingRequirements) (bool, error) + func (hsr HostSizingRequirements) Equals(in HostSizingRequirements) bool + type HostTemplate struct + CPUFreq float32 + Cores int + DiskSize int + GPUNumber int + GPUType string + ID string + Name string + RAMSize float32 + func (ht HostTemplate) OK() bool + type Image struct + Description string + DiskSize int64 + ID string + Name string + StorageType string + URL string + func (i Image) OK() bool + type KeyPair struct + ID string + Name string + PrivateKey string + PublicKey string + func NewKeyPair(name string) (*KeyPair, fail.Error) + func (kp *KeyPair) IsNull() bool + type Network struct + CIDR string + DNSServers []string + Domain string + GatewayID string + ID string + IPVersion ipversion.Enum + Imported bool + Name string + SecondaryGatewayID string + Subnetworks []SubNetwork + Tags map[string]string + VIP *VirtualIP + func NewNetwork() *Network + func (n *Network) Deserialize(buf []byte) (xerr fail.Error) + func (n *Network) GetID() string + func (n *Network) GetName() string + func (n *Network) IsNull() bool + func (n *Network) OK() bool + func (n *Network) Replace(p data.Clonable) data.Clonable + func (n *Network) Serialize() ([]byte, fail.Error) + func (n Network) Clone() data.Clonable + type NetworkRequest struct + CIDR string + DNSServers []string + KeepOnFailure bool + Name string + type ObjectStorageBucket struct + Host string + ID string + MountPoint string + Name string + func NewObjectStorageBucket() *ObjectStorageBucket + func (osb *ObjectStorageBucket) Deserialize(buf []byte) (ferr fail.Error) + func (osb *ObjectStorageBucket) IsNull() bool + func (osb *ObjectStorageBucket) Replace(p data.Clonable) data.Clonable + func (osb *ObjectStorageBucket) Serialize() ([]byte, fail.Error) + func (osb ObjectStorageBucket) Clone() data.Clonable + func (osb ObjectStorageBucket) GetID() string + func (osb ObjectStorageBucket) GetName() string + func (osb ObjectStorageBucket) IsConsistent() bool + func (osb ObjectStorageBucket) OK() bool + type ObjectStorageItem struct + BucketName string + ItemID string + ItemName string + Metadata ObjectStorageItemMetadata + func (osi ObjectStorageItem) GetID() string + func (osi ObjectStorageItem) GetName() string + type ObjectStorageItemMetadata map[string]interface + func (osim ObjectStorageItemMetadata) Clone() ObjectStorageItemMetadata + type SecurityGroup struct + DefaultForHost string + DefaultForSubnet string + Description string + ID string + Name string + Network string + Rules SecurityGroupRules + func NewSecurityGroup() *SecurityGroup + func (sg *SecurityGroup) Deserialize(buf []byte) (xerr fail.Error) + func (sg *SecurityGroup) GetID() string + func (sg *SecurityGroup) GetName() string + func (sg *SecurityGroup) IsNull() bool + func (sg *SecurityGroup) RemoveRuleByIndex(index int) fail.Error + func (sg *SecurityGroup) Replace(p data.Clonable) data.Clonable + func (sg *SecurityGroup) Serialize() ([]byte, fail.Error) + func (sg *SecurityGroup) SetID(id string) *SecurityGroup + func (sg *SecurityGroup) SetName(name string) *SecurityGroup + func (sg *SecurityGroup) SetNetworkID(networkID string) *SecurityGroup + func (sg SecurityGroup) Clone() data.Clonable + func (sg SecurityGroup) IsComplete() bool + func (sg SecurityGroup) IsConsistent() bool + type SecurityGroupRule struct + Description string + Direction securitygroupruledirection.Enum + EtherType ipversion.Enum + IDs []string + PortFrom int32 + PortTo int32 + Protocol string + Sources []string + Targets []string + func NewSecurityGroupRule() *SecurityGroupRule + func (sgr *SecurityGroupRule) Clone() data.Clonable + func (sgr *SecurityGroupRule) EqualTo(in *SecurityGroupRule) bool + func (sgr *SecurityGroupRule) EquivalentTo(in *SecurityGroupRule) bool + func (sgr *SecurityGroupRule) IsNull() bool + func (sgr *SecurityGroupRule) Replace(p data.Clonable) data.Clonable + func (sgr *SecurityGroupRule) SourcesConcernGroups() (bool, fail.Error) + func (sgr *SecurityGroupRule) TargetsConcernGroups() (bool, fail.Error) + func (sgr *SecurityGroupRule) Validate() fail.Error + type SecurityGroupRules []*SecurityGroupRule + func (sgrs SecurityGroupRules) Clone() SecurityGroupRules + func (sgrs SecurityGroupRules) IndexOfEquivalentRule(rule *SecurityGroupRule) (int, fail.Error) + func (sgrs SecurityGroupRules) IndexOfRuleByID(id string) (int, fail.Error) + 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 SubNetwork struct + CIDR string + ID string + type Subnet struct + CIDR string + DNSServers []string + DefaultSSHPort uint32 + Domain string + GWSecurityGroupID string + GatewayIDs []string + ID string + IPVersion ipversion.Enum + InternalSecurityGroupID string + Name string + Network string + PublicIPSecurityGroupID string + SingleHostCIDRIndex uint + State subnetstate.Enum + Tags map[string]string + VIP *VirtualIP + func NewSubnet() *Subnet + func (s *Subnet) Deserialize(buf []byte) (xerr fail.Error) + func (s *Subnet) GetID() string + func (s *Subnet) GetName() string + func (s *Subnet) IsNull() bool + func (s *Subnet) OK() bool + func (s *Subnet) Replace(p data.Clonable) data.Clonable + func (s *Subnet) Serialize() ([]byte, fail.Error) + func (s Subnet) Clone() data.Clonable + type SubnetRequest struct + CIDR string + DNSServers []string + DefaultSSHPort uint32 + Domain string + HA bool + IPVersion ipversion.Enum + ImageRef string + KeepOnFailure bool + Name string + NetworkID string + type VirtualIP struct + Hosts []*HostCore + ID string + Name string + NetworkID string + PrivateIP string + PublicIP string + SubnetID string + func NewVirtualIP() *VirtualIP + func (vip *VirtualIP) IsNull() bool + func (vip *VirtualIP) Replace(p data.Clonable) data.Clonable + func (vip VirtualIP) Clone() data.Clonable + type Volume struct + ID string + Name string + Size int + Speed volumespeed.Enum + State volumestate.Enum + Tags map[string]string + func NewVolume() *Volume + func (v *Volume) Deserialize(buf []byte) (xerr fail.Error) + func (v *Volume) GetID() string + func (v *Volume) GetName() string + func (v *Volume) IsNull() bool + func (v *Volume) OK() bool + func (v *Volume) Replace(p data.Clonable) data.Clonable + func (v *Volume) Serialize() ([]byte, fail.Error) + func (v Volume) Clone() data.Clonable + type VolumeAttachment struct + Device string + Format string + ID string + MountPoint string + Name string + ServerID string + VolumeID string + func NewVolumeAttachment() *VolumeAttachment + func (va *VolumeAttachment) IsNull() bool + func (va VolumeAttachment) OK() bool + type VolumeAttachmentRequest struct + HostID string + Name string + VolumeID string + type VolumeRequest struct + Name string + Size int + Speed volumespeed.Enum