Documentation ¶
Index ¶
- Constants
- type ASGBody
- type ASGGet
- type AutoScaling
- type AutoscalingGet
- type AutoscalingGetGroup
- type AutoscalingGroup
- type AutoscalingSetGroup
- type CapacityBody
- type CassandraUri
- type Cdb
- type CdbResult
- type Cdbs
- type CliConn
- type ConfigurationReq
- type Configurations
- type Connection
- type ConnectionReq
- type ConnectionRes
- type Connections
- type Cpu
- type CpuReq
- type Disk
- type DiskReq
- type Group
- type GroupBdy
- type GroupList
- type GroupReq
- type Groups
- type ICDServiceAPI
- type IOBody
- type Members
- type MembersReq
- type Memory
- type MemoryReq
- type PlatformOptions
- type Rate
- type RateBody
- type ScalersBody
- type Task
- type TaskResult
- type Tasks
- type Uri
- type User
- type UserReq
- type Users
- type Whitelist
- type WhitelistEntry
- type WhitelistReq
- type Whitelists
Constants ¶
View Source
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASGBody ¶
type ASGBody struct { Scalers ScalersBody `json:"scalers,omitempty"` Rate RateBody `json:"rate,omitempty"` }
ASGBody ...
type ASGGet ¶
type ASGGet struct { Scalers ScalersBody `json:"scalers,omitempty"` Rate Rate `json:"rate,omitempty"` }
ASGGet ...
type AutoScaling ¶
type AutoScaling interface { GetAutoScaling(icdID string, groupID string) (AutoscalingGetGroup, error) SetAutoScaling(icdID string, groupID string, AutoScaleReq AutoscalingSetGroup) (Task, error) }
AutoScaling ...
type AutoscalingGet ¶
type AutoscalingGet struct { Memory ASGGet `json:"memory,omitempty"` CPU ASGGet `json:"cpu,omitempty"` Disk ASGGet `json:"disk,omitempty"` }
AutoscalingGet ...
type AutoscalingGetGroup ¶
type AutoscalingGetGroup struct {
Autoscaling AutoscalingGet `json:"autoscaling,omitempty"`
}
AutoscalingGetGroup ...
type AutoscalingGroup ¶
type AutoscalingGroup struct { Memory *ASGBody `json:"memory,omitempty"` CPU *ASGBody `json:"cpu,omitempty"` Disk *ASGBody `json:"disk,omitempty"` }
AutoscalingGroup ...
type AutoscalingSetGroup ¶
type AutoscalingSetGroup struct {
Autoscaling AutoscalingGroup `json:"autoscaling,omitempty"`
}
AutoscalingSetGroup ...
type CapacityBody ¶
type CapacityBody struct { Enabled bool `json:"enabled"` FreeSpaceRemainingPercent int `json:"free_space_remaining_percent,omitempty"` FreeSpaceLessThanPercent int `json:"free_space_less_than_percent,omitempty"` }
CapacityBody ...
type CassandraUri ¶
type CassandraUri struct { Hosts []struct { HostName string `json:"hostname"` Port int `json:"port"` } `json:"hosts"` Authentication struct { Method string `json:"method"` UserName string `json:"username"` Password string `json:"password"` } Bundle struct { Name string `json:"name"` BundleBase64 string `json:"bundle_base64"` } `json:"bundle"` }
type CliConn ¶
type CliConn struct { Type string `json:"type"` Composed []string `json:"composed"` Environment interface{} `json:"environment"` Bin string `json:"bin"` Arguments [][]string `json:"arguments"` Certificate struct { Name string `json:"name"` CertificateBase64 string `json:"certificate_base64"` } `json:"certificate"` }
type ConfigurationReq ¶
type ConfigurationReq struct {
Configuration interface{} `json:"configuration"`
}
type Configurations ¶
type Connection ¶
type ConnectionReq ¶
type ConnectionRes ¶
type ConnectionRes struct {
Connection Connection `json:"connection"`
}
type Connections ¶
type Connections interface { GetConnection(icdId string, userId string, endpoint ...string) (Connection, error) GetConnectionSubstitution(icdId string, userID string, connectionReq ConnectionReq) (Connection, error) }
type Cpu ¶
type Cpu struct { Units string `json:"units"` AllocationCount int `json:"allocation_count"` MinimumCount int `json:"minimum_count"` MaximumCount int `json:"maximum_count"` StepSizeCount int `json:"step_size_count"` IsAdjustable bool `json:"is_adjustable"` IsOptional bool `json:"is_optional"` CanScaleDown bool `json:"can_scale_down"` }
type Disk ¶
type Disk struct { Units string `json:"units"` AllocationMb int `json:"allocation_mb"` MinimumMb int `json:"minimum_mb"` MaximumMb int `json:"maximum_mb"` StepSizeMb int `json:"step_size_mb"` IsAdjustable bool `json:"is_adjustable"` IsOptional bool `json:"is_optional"` CanScaleDown bool `json:"can_scale_down"` }
type GroupBdy ¶
type GroupBdy struct { Members *MembersReq `json:"members,omitempty"` Memory *MemoryReq `json:"memory,omitempty"` Cpu *CpuReq `json:"cpu,omitempty"` Disk *DiskReq `json:"disk,omitempty"` }
type ICDServiceAPI ¶
type ICDServiceAPI interface { Cdbs() Cdbs Users() Users Whitelists() Whitelists Groups() Groups Tasks() Tasks Connections() Connections AutoScaling() AutoScaling Configurations() Configurations }
ICDServiceAPI is the Cloud Internet Services API ...
type IOBody ¶
type IOBody struct { Enabled bool `json:"enabled"` AbovePercent int `json:"above_percent,omitempty"` OverPeriod string `json:"over_period,omitempty"` }
IOBody ...
type Members ¶
type Members struct { Units string `json:"units"` AllocationCount int `json:"allocation_count"` MinimumCount int `json:"minimum_count"` MaximumCount int `json:"maximum_count"` StepSizeCount int `json:"step_size_count"` IsAdjustable bool `json:"is_adjustable"` IsOptional bool `json:"is_optional"` CanScaleDown bool `json:"can_scale_down"` }
type MembersReq ¶
type MembersReq struct {
AllocationCount int `json:"allocation_count,omitempty"`
}
type Memory ¶
type Memory struct { Units string `json:"units"` AllocationMb int `json:"allocation_mb"` MinimumMb int `json:"minimum_mb"` MaximumMb int `json:"maximum_mb"` StepSizeMb int `json:"step_size_mb"` IsAdjustable bool `json:"is_adjustable"` IsOptional bool `json:"is_optional"` CanScaleDown bool `json:"can_scale_down"` }
type PlatformOptions ¶
type Rate ¶
type Rate struct { IncreasePercent json.Number `json:"increase_percent,omitempty"` PeriodSeconds int `json:"period_seconds,omitempty"` LimitCountPerMember int `json:"limit_count_per_member,omitempty"` LimitMBPerMember json.Number `json:"limit_mb_per_member,omitempty"` Units string `json:"units,omitempty"` }
Rate ...
type RateBody ¶
type RateBody struct { IncreasePercent int `json:"increase_percent,omitempty"` PeriodSeconds int `json:"period_seconds,omitempty"` LimitCountPerMember int `json:"limit_count_per_member,omitempty"` LimitMBPerMember int `json:"limit_mb_per_member,omitempty"` Units string `json:"units,omitempty"` }
RateBody ...
type ScalersBody ¶
type ScalersBody struct { Capacity *CapacityBody `json:"capacity,omitempty"` IO *IOBody `json:"io_utilization,omitempty"` }
ScalersBody ...
type TaskResult ¶
type TaskResult struct {
Task Task `json:"task"`
}
type Uri ¶
type Uri struct { Type string `json:"type"` Composed []string `json:"composed"` Scheme string `json:"scheme"` Hosts []struct { HostName string `json:"hostname"` Port int `json:"port"` } `json:"hosts"` Path string `json:"path"` QueryOptions interface{} `json:"query_options"` Authentication struct { Method string `json:"method"` UserName string `json:"username"` Password string `json:"password"` } Certificate struct { Name string `json:"name"` CertificateBase64 string `json:"certificate_base64"` } `json:"certificate"` Database interface{} `json:"database"` }
type Whitelist ¶
type Whitelist struct {
WhitelistEntrys []WhitelistEntry `json:"ip_addresses"`
}
type WhitelistEntry ¶
type WhitelistReq ¶
type WhitelistReq struct {
WhitelistEntry WhitelistEntry `json:"ip_address"`
}
Click to show internal directories.
Click to hide internal directories.