Versions in this module Expand all Collapse all v1 v1.1.0 Nov 22, 2016 Changes in this version + var ListTimeout = 200 + var WeekDays = []string + func GetNames(cn base.Connection, dataCenter string) ([]string, error) + func IDByName(cn base.Connection, dataCenter string, name string) (string, error) + func IsWeekDay(day string) bool + type CPU struct + Inherited bool + Value int64 + type CreateReq struct + CustomFields []customfields.Def + Description string + Name string + ParentGroupId string + ParentGroupName string + func (c *CreateReq) GetNames(cn base.Connection, property string) ([]string, error) + func (c *CreateReq) InferID(cn base.Connection) error + func (c *CreateReq) Validate() error + type Defaults struct + Cpu CPU + MemoryGB Memory + NetworkId Network + PrimaryDns PrimaryDNS + SecondaryDns SecondaryDNS + TemplateName TemplateName + type DeleteReq struct + type DiskUsage struct + CapacityMB int64 + Id string + type Entity struct + ChangeInfo models.ChangeInfo + CustomFields []customfields.FullDef + Description string + Groups []Entity + Id string + Links []models.LinkEntity + LocationId string + Name string + ServersCount int64 + Status string + Type string + func Load(cn base.Connection, dataCenter string) ([]Entity, error) + type GetBillingReq struct + type GetBillingRes struct + Date base.Time + Groups map[string]GroupBilling + type GetHAPolicy struct + type GetReq struct + type GetScheduledActivities struct + type GetStatsReq struct + End string + SampleInterval string + Start string + Type string + func (g *GetStatsReq) ApplyDefaultBehaviour() error + func (g *GetStatsReq) Validate() error + type GetStatsRes struct + Name string + Stats []Stats + type Group struct + GroupId string + GroupName string + func (g *Group) GetNames(cn base.Connection, property string) ([]string, error) + func (g *Group) InferID(cn base.Connection) error + func (g *Group) Validate() error + type GroupBilling struct + Name string + Servers map[string]ServerBilling + type GroupPatchOperation struct + Member string + Op string + Value interface{} + type GuestDiskUsage struct + CapacityMB int64 + ConsumedMB int64 + Path string + type HAPolicy struct + AvailableServers int64 + GroupId string + LoadBalancer LBForHA + LocationId string + Name string + PolicyId string + ScaleDirection string + ScaleResourceReason string + TargetSize int64 + Timestamp base.Time + type LBForHA struct + Id string + Name string + PrivatePort int64 + PublicIp string + PublicPort int64 + type LBForHARequest struct + Id string + PrivatePort int64 + PublicPort int64 + type List struct + All base.NilField + DataCenter string + func (l *List) Validate() error + type Memory struct + Inherited bool + Value int64 + type Network struct + Inherited bool + Value string + type PrimaryDNS struct + Inherited bool + Value string + type RestoreReq struct + TargetGroupId string + TargetGroupName string + func (r *RestoreReq) GetNames(cn base.Connection, property string) ([]string, error) + func (r *RestoreReq) InferID(cn base.Connection) error + func (r *RestoreReq) Validate() error + type RestoreRes struct + ErrorMessage string + IsQueued bool + Links []models.LinkEntity + type ScheduledActivities struct + BeginDateUTC base.Time + ChangeInfo models.ChangeInfo + CustomWeeklyDays []string + Expire string + ExpireCount int64 + ExpireDateUTC base.Time + Id string + IsExpired bool + LastOccurrenceDateUTC base.Time + LocationId string + NextOccurrenceDateUTC base.Time + OccurrenceCount int64 + Repeat string + Status string + TimeZoneOffset string + Type string + type SecondaryDNS struct + Inherited bool + Value string + type ServerBilling struct + ArchiveCost float64 + CurrentHour float64 + MonthToDate float64 + MonthlyEstimate float64 + TemplateCost float64 + type SetDefaults struct + Cpu int64 + MemoryGb int64 + NetworkId string + PrimaryDns string + SecondaryDns string + TemplateName string + func (s *SetDefaults) Validate() error + type SetHAPolicy struct + LoadBalancer LBForHARequest + PolicyId string + func (s *SetHAPolicy) Validate() error + type SetScheduledActivities struct + BeginDateUtc time.Time + CustomWeeklyDays []string + Expire string + ExpireCount int64 + ExpireDateUTCString string + ExpireDateUtc time.Time + Repeat string + Status string + TimeZoneOffset string + Type string + func (s *SetScheduledActivities) ApplyDefaultBehaviour() error + func (s *SetScheduledActivities) Validate() error + type Stats struct + Cpu float64 + CpuPercent float64 + DiskUsage []DiskUsage + DiskUsageTotalCapacityMB float64 + GuestDiskUsage []GuestDiskUsage + MemoryMB float64 + MemoryPercent float64 + NetworkReceivedKbs float64 + NetworkTransmittedKbs float64 + Timestamp base.Time + type TemplateName struct + Inherited bool + Value string + type UpdateReq struct + CustomFields []customfields.Def + Description string + Name string + ParentGroupId string + ParentGroupName string + PatchOperation []GroupPatchOperation + func (u *UpdateReq) ApplyDefaultBehaviour() error + func (u *UpdateReq) GetNames(cn base.Connection, property string) ([]string, error) + func (u *UpdateReq) InferID(cn base.Connection) error + func (u *UpdateReq) MarshalJSON() ([]byte, error) + func (u *UpdateReq) Validate() error v1.1.0-rc.2 Nov 12, 2016 v1.1.0-rc.1 Nov 2, 2016