Documentation
¶
Index ¶
- type ADC
- type AS3
- type Application
- type Applications
- type GSLBDatacenter
- type GSLBDomain
- type GSLBMonitor
- type GSLBMonitorHTTP
- type GSLBMonitorHTTS
- type GSLBMonitorICMP
- type GSLBMonitorTCP
- type GSLBMonitorUDP
- type GSLBPool
- type GSLBPoolMember
- type GSLBPoolMemberA
- type GSLBPoolMemberAAAA
- type GSLBPoolMemberCNAME
- type GSLBPoolMemberMX
- type GSLBServer
- type GSLBServerDevice
- type GSLBVirtualServer
- type Pointer
- type PointerGSLBDataCenter
- type PointerGSLBDomainA
- type PointerGSLBDomainAAAA
- type PointerGSLBDomainCNAME
- type PointerGSLBDomainMX
- type PointerGSLBMonitor
- type PointerGSLBPool
- type PointerGSLBPoolA
- type PointerGSLBPoolAAAA
- type PointerGSLBPoolCNAME
- type PointerGSLBPoolMX
- type PointerGSLBPoolMemberA
- type PointerGSLBPoolMemberAAAA
- type PointerGSLBPoolMemberCNAME
- type PointerGSLBPoolMemberMX
- type PointerGSLBProberPool
- type PointerGSLBProberPoolMember
- type PointerGSLBServer
- type PointerGSLBServerDevice
- type PointerGSLBTopologyRegion
- type PointerGSLBVirtualServer
- type Response
- type Result
- type Tenant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADC ¶
type ADC struct {
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
SchemaVersion string `json:"schemaVersion"`
Id string `json:"id,omitempty"`
// contains filtered or unexported fields
}
ADC
func (ADC) MarshalJSON ¶
type AS3 ¶
type AS3 struct {
Persist bool `json:"persist"`
Class string `json:"class"`
Action string `json:"action,omitempty"`
Declaration interface{} `json:"declaration,omitempty"`
}
AS3
type Application ¶
type Application struct {
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
Template string `json:"template,omitempty"`
// contains filtered or unexported fields
}
func (*Application) AddEntity ¶
func (a *Application) AddEntity(name string, entity interface{})
func (Application) MarshalJSON ¶
func (a Application) MarshalJSON() ([]byte, error)
type GSLBDatacenter ¶
type GSLBDatacenter struct {
Class string `json:"class"`
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
}
GSLB Entities
type GSLBDomain ¶
type GSLBDomain struct {
Class string `json:"class"`
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
DomainName string `json:"domainName,omitempty"`
Aliases []string `json:"aliases,omitempty"`
ResourceRecordType string `json:"resourceRecordType,omitempty"`
PoolLbMode string `json:"poolLbMode,omitempty"`
Pools []PointerGSLBPool `json:"pools,omitempty"`
}
type GSLBMonitor ¶
type GSLBMonitor struct {
Class string `json:"class"`
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
MonitorType string `json:"monitorType"`
Interval int64 `json:"interval,omitempty"`
Timeout int64 `json:"timeout,omitempty"`
Receive string `json:"receive,omitempty"`
Send string `json:"send,omitempty"`
}
type GSLBMonitorHTTP ¶
type GSLBMonitorHTTP GSLBMonitor
type GSLBMonitorHTTS ¶
type GSLBMonitorHTTS GSLBMonitor
type GSLBMonitorICMP ¶
type GSLBMonitorICMP GSLBMonitor
type GSLBMonitorTCP ¶
type GSLBMonitorTCP GSLBMonitor
type GSLBMonitorUDP ¶
type GSLBMonitorUDP GSLBMonitor
type GSLBPool ¶
type GSLBPool struct {
Class string `json:"class"`
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
Enabled bool `json:"enabled,omitempty"`
ResourceRecordType string `json:"resourceRecordType,omitempty"`
Members []GSLBPoolMember `json:"members,omitempty"`
Monitors []PointerGSLBMonitor `json:"monitors,omitempty"`
TTL int `json:"ttl,omitempty"`
}
type GSLBPoolMember ¶
type GSLBPoolMember struct {
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
DependsOn string `json:"depends_on,omitempty"`
Ratio int `json:"ratio,omitempty"`
Server PointerGSLBServer `json:"server,omitempty"`
VirtualServer string `json:"virtualServer,omitempty"`
DomainName string `json:"domainName,omitempty"`
}
type GSLBPoolMemberA ¶
type GSLBPoolMemberA GSLBPoolMember
type GSLBPoolMemberAAAA ¶
type GSLBPoolMemberAAAA GSLBPoolMember
type GSLBPoolMemberCNAME ¶
type GSLBPoolMemberCNAME GSLBPoolMember
type GSLBPoolMemberMX ¶
type GSLBPoolMemberMX GSLBPoolMember
type GSLBServer ¶
type GSLBServer struct {
Class string `json:"class"`
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
DataCenter PointerGSLBDataCenter `json:"dataCenter,omitempty"`
Devices []GSLBServerDevice `json:"devices,omitempty"`
VirtualServers []GSLBVirtualServer `json:"virtualServers,omitempty"`
Monitors []PointerGSLBMonitor `json:"monitors,omitempty"`
ServiceCheckProbeEnabled bool `json:"serviceCheckProbeEnabled"`
SnmpProbeEnabled bool `json:"snmpProbeEnabled"`
PathProbeEnabled bool `json:"pathProbeEnabled"`
}
type GSLBServerDevice ¶
type GSLBVirtualServer ¶
type GSLBVirtualServer struct {
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
Address string `json:"address,omitempty"`
Enabled bool `json:"enabled,omitempty"`
Monitors []PointerGSLBMonitor `json:"monitors,omitempty"`
Name string `json:"name,omitempty"`
Port uint32 `json:"port,omitempty"`
}
type PointerGSLBDataCenter ¶
type PointerGSLBDataCenter Pointer
type PointerGSLBDomainA ¶
type PointerGSLBDomainA Pointer
type PointerGSLBDomainAAAA ¶
type PointerGSLBDomainAAAA Pointer
type PointerGSLBDomainCNAME ¶
type PointerGSLBDomainCNAME Pointer
type PointerGSLBDomainMX ¶
type PointerGSLBDomainMX Pointer
type PointerGSLBMonitor ¶
type PointerGSLBMonitor Pointer
type PointerGSLBPool ¶
type PointerGSLBPool Pointer
type PointerGSLBPoolA ¶
type PointerGSLBPoolA Pointer
type PointerGSLBPoolAAAA ¶
type PointerGSLBPoolAAAA Pointer
type PointerGSLBPoolCNAME ¶
type PointerGSLBPoolCNAME Pointer
type PointerGSLBPoolMX ¶
type PointerGSLBPoolMX Pointer
type PointerGSLBPoolMemberA ¶
type PointerGSLBPoolMemberA Pointer
type PointerGSLBPoolMemberAAAA ¶
type PointerGSLBPoolMemberAAAA Pointer
type PointerGSLBPoolMemberCNAME ¶
type PointerGSLBPoolMemberCNAME Pointer
type PointerGSLBPoolMemberMX ¶
type PointerGSLBPoolMemberMX Pointer
type PointerGSLBProberPool ¶
type PointerGSLBProberPool Pointer
type PointerGSLBProberPoolMember ¶
type PointerGSLBProberPoolMember Pointer
type PointerGSLBServer ¶
type PointerGSLBServer Pointer
type PointerGSLBServerDevice ¶
type PointerGSLBServerDevice Pointer
type PointerGSLBTopologyRegion ¶
type PointerGSLBTopologyRegion Pointer
type PointerGSLBVirtualServer ¶
type PointerGSLBVirtualServer Pointer
type Tenant ¶
type Tenant struct {
Label string `json:"label,omitempty"`
Remark string `json:"remark,omitempty"`
// contains filtered or unexported fields
}
Tenants
func (*Tenant) AddApplication ¶
func (t *Tenant) AddApplication(name string, application Application)
func (Tenant) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.