Documentation ¶
Index ¶
- Constants
- type CheckRegion
- type CisServiceAPI
- type Dns
- type DnsBody
- type DnsRecord
- type DnsResult
- type DnsResults
- type Error
- type Glb
- type GlbBody
- type GlbDelete
- type GlbResult
- type GlbResults
- type Glbs
- type Ips
- type IpsList
- type IpsResults
- type Monitor
- type MonitorBody
- type MonitorDelete
- type MonitorResult
- type MonitorResults
- type Monitors
- type NameServer
- type Origin
- type Pool
- type PoolBody
- type PoolDelete
- type PoolResult
- type PoolResults
- type Pools
- type ResultsCount
- type Settings
- type SettingsBody
- type SettingsResObj
- type SettingsResult
- type Zone
- type ZoneBody
- type ZoneDelete
- type ZoneResult
- type ZoneResults
- type Zones
Constants ¶
View Source
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckRegion ¶
type CheckRegion struct {
Region string `json:"0"`
}
type CisServiceAPI ¶
type CisServiceAPI interface { Zones() Zones Monitors() Monitors Pools() Pools Glbs() Glbs Settings() Settings Ips() Ips Dns() Dns }
CisServiceAPI is the Cloud Internet Services API ...
type DnsRecord ¶
type DnsRecord struct { Id string `json:"id"` Name string `json:"name"` DnsType string `json:"type"` Content string `json:"content"` ZoneId string `json:"zone_id"` ZoneName string `json:"zone_name"` CreatedOn *time.Time `json:"created_on,omitempty"` ModifiedOn *time.Time `json:"modified_on,omitempty"` Proxiable bool `json:"proxiable"` Proxied bool `json:"proxied"` Ttl int `json:"ttl"` Priority int `json:"priority"` Data interface{} `json:"data,omitempty"` }
type DnsResults ¶
type DnsResults struct { DnsList []DnsRecord `json:"result"` ResultsInfo ResultsCount `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` }
type Glb ¶
type Glb struct { Id string `json:"id"` Name string `json:"name"` Desc string `json:"description"` FallbackPool string `json:"fallback_pool"` DefaultPools []string `json:"default_pools"` Ttl int `json:"ttl"` Proxied bool `json:"proxied"` CreatedOn *time.Time `json:"created_on,omitempty"` ModifiedOn *time.Time `json:"modified_on,omitempty"` SessionAffinity string `json:"session_affinity"` }
type GlbResults ¶
type GlbResults struct { GlbList []Glb `json:"result"` ResultsInfo ResultsCount `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` }
type IpsResults ¶
type IpsResults struct { IpList IpsList `json:"result"` ResultsInfo ResultsCount `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` }
type Monitor ¶
type Monitor struct { Id string `json:"id"` Path string `json:"path"` Description string `json:"description"` ExpBody string `json:"expected_body"` ExpCodes string `json:"expected_codes"` // Headers omitted future enhancement MonType string `json:"type"` Method string `json:"method"` Timeout int `json:"timeout"` Retries int `json:"retries"` Interval int `json:"interval"` FollowRedirects bool `json:"follow_redirects"` AllowInsecure bool `json:"allow_insecure"` }
type MonitorBody ¶
type MonitorBody struct { ExpCodes string `json:"expected_codes"` ExpBody string `json:"expected_body"` Path string `json:"path"` // Headers ommited TBC MonType string `json:"type,omitempty"` Method string `json:"method,omitempty"` Timeout int `json:"timeout,omitempty"` Retries int `json:"retries,omitempty"` Interval int `json:"interval,omitempty"` FollowRedirects bool `json:"follow_redirects,omitempty"` AllowInsecure bool `json:"allow_insecure,omitempty"` }
type MonitorDelete ¶
type MonitorResult ¶
type MonitorResults ¶
type MonitorResults struct { MonitorList []Monitor `json:"result"` ResultsInfo ResultsCount `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` }
type NameServer ¶
type NameServer struct {
NameS int64 `json:"0"`
}
type Pool ¶
type Pool struct { Id string `json:"id"` Description string `json:"description"` Name string `json:"name"` CheckRegions []string `json:"check_regions"` Enabled bool `json:"enabled"` MinOrigins int `json:"minimum_origins"` Monitor string `json:"monitor"` NotEmail string `json:"notification_email"` Origins []Origin `json:"origins"` Healthy bool `json:"healthy"` CreatedOn string `json:"created_on"` ModifiedOn string `json:"modified_on"` }
type PoolBody ¶
type PoolBody struct { Name string `json:"name"` Description string `json:"description,omitempty"` Origins []Origin `json:"origins"` CheckRegions []string `json:"check_regions"` Enabled bool `json:"enabled"` MinOrigins int `json:"minimum_origins,omitempty"` Monitor string `json:"monitor,omitempty"` NotEmail string `json:"notification_email,omitempty"` }
type PoolDelete ¶
type PoolResult ¶
type PoolResults ¶
type PoolResults struct { PoolList []Pool `json:"result"` ResultsInfo ResultsCount `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` }
type ResultsCount ¶
type ResultsCount struct {
Count int `json:"count"`
}
type Settings ¶
type Settings interface { GetSetting(cisId string, zoneId string, setting string) (*SettingsResObj, error) UpdateSetting(cisId string, zoneId string, setting string, settingsBody SettingsBody) (*SettingsResObj, error) }
type SettingsBody ¶
type SettingsBody struct {
Value string `json:"value"`
}
type SettingsResObj ¶
type SettingsResult ¶
type SettingsResult struct { Result SettingsResObj `json:"result"` Success bool `json:"success"` Errors []Error `json:"errors"` Messages []string `json:"messages"` }
type ZoneDelete ¶
type ZoneResult ¶
type ZoneResults ¶
type ZoneResults struct { ZoneList []Zone `json:"result"` ResultsInfo ResultsCount `json:"result_info"` Success bool `json:"success"` Errors []Error `json:"errors"` }
Click to show internal directories.
Click to hide internal directories.