You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
336 lines
5.6 KiB
336 lines
5.6 KiB
package lb
|
|
|
|
// Server settings
|
|
type ServerSettings struct {
|
|
// Inter
|
|
Inter uint64 `json:"inter"`
|
|
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// DownInter
|
|
DownInter uint64 `json:"downinter"`
|
|
|
|
// Rise
|
|
Rise uint64 `json:"rise"`
|
|
|
|
// Fall
|
|
Fall uint64 `json:"fall"`
|
|
|
|
// SlowStart
|
|
SlowStart uint64 `json:"slowstart"`
|
|
|
|
// Max connections
|
|
MaxConn uint64 `json:"maxconn"`
|
|
|
|
// Max queue
|
|
MaxQueue uint64 `json:"maxqueue"`
|
|
|
|
// Weight
|
|
Weight uint64 `json:"weight"`
|
|
}
|
|
|
|
// Main information about server
|
|
type ItemServer struct {
|
|
|
|
// Address
|
|
Address string `json:"address"`
|
|
|
|
// Check
|
|
Check string `json:"check"`
|
|
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// Port
|
|
Port uint64 `json:"port"`
|
|
|
|
// Server settings
|
|
ServerSettings ServerSettings `json:"serverSettings"`
|
|
}
|
|
|
|
// List of servers
|
|
type ListServers []ItemServer
|
|
|
|
// Main information about backend
|
|
type ItemBackend struct {
|
|
// Algorithm
|
|
Algorithm string `json:"algorithm"`
|
|
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// Server settings
|
|
ServerDefaultSettings ServerSettings `json:"serverDefaultSettings"`
|
|
|
|
// List of servers
|
|
Servers ListServers `json:"servers"`
|
|
}
|
|
|
|
// List of backends
|
|
type ListBackends []ItemBackend
|
|
|
|
// Main information about frontend
|
|
type ItemFrontend struct {
|
|
// Backend
|
|
Backend string `json:"backend"`
|
|
|
|
// List of bindings
|
|
Bindings ListBindings `json:"bindings"`
|
|
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// List of frontends
|
|
type ListFrontends []ItemFrontend
|
|
|
|
// Main information about bindings
|
|
type ItemBinding struct {
|
|
// Address
|
|
Address string `json:"address"`
|
|
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// Port
|
|
Port uint64 `json:"port"`
|
|
}
|
|
|
|
// List of bindings
|
|
type ListBindings []ItemBinding
|
|
|
|
// Main information about node
|
|
type Node struct {
|
|
// Backend IP
|
|
BackendIP string `json:"backendIp"`
|
|
|
|
// Compute ID
|
|
ComputeID uint64 `json:"computeId"`
|
|
|
|
// Frontend IP
|
|
FrontendIP string `json:"frontendIp"`
|
|
|
|
// GUID
|
|
GUID string `json:"guid"`
|
|
|
|
// MGMTIP
|
|
MGMTIP string `json:"mgmtIp"`
|
|
|
|
// Network ID
|
|
NetworkID uint64 `json:"networkId"`
|
|
}
|
|
|
|
// List of load balancers
|
|
type ListLB struct {
|
|
// Data
|
|
Data []ItemLBList `json:"data"`
|
|
|
|
// Entry count
|
|
EntryCount uint64 `json:"entryCount"`
|
|
}
|
|
|
|
// Detailed information about load balancer
|
|
type RecordLB struct {
|
|
// HAMode
|
|
HAMode bool `json:"HAmode"`
|
|
|
|
// CKey
|
|
CKey string `json:"_ckey"`
|
|
|
|
// Meta
|
|
Meta []interface{} `json:"_meta"`
|
|
|
|
// Access Control List
|
|
ACL interface{} `json:"acl"`
|
|
|
|
// BackendHAIP
|
|
BackendHAIP string `json:"backendHAIP"`
|
|
|
|
// List of load balancer backends
|
|
Backends ListBackends `json:"backends"`
|
|
|
|
// Description
|
|
Description string `json:"desc"`
|
|
|
|
// DPAPI password
|
|
DPAPIPassword string `json:"dpApiPassword"`
|
|
|
|
// DPAPI user
|
|
DPAPIUser string `json:"dpApiUser"`
|
|
|
|
// External network ID
|
|
ExtNetID uint64 `json:"extnetId"`
|
|
|
|
// FrontendHAIP
|
|
FrontendHAIP string `json:"frontendHAIP"`
|
|
|
|
// List of load balancer frontends
|
|
Frontends ListFrontends `json:"frontends"`
|
|
|
|
// Grid ID
|
|
GID uint64 `json:"gid"`
|
|
|
|
// GUID
|
|
GUID uint64 `json:"guid"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Image ID
|
|
ImageID uint64 `json:"imageId"`
|
|
|
|
// Manager Id
|
|
ManagerId uint64 `json:"managerId"`
|
|
|
|
// Manager Type
|
|
ManagerType string `json:"managerType"`
|
|
|
|
// Milestones
|
|
Milestones uint64 `json:"milestones"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// Part K8s
|
|
PartK8s bool `json:"partK8s"`
|
|
|
|
// Primary node
|
|
PrimaryNode Node `json:"primaryNode"`
|
|
|
|
// Resource group ID
|
|
RGID uint64 `json:"rgId"`
|
|
|
|
// Secondary node
|
|
SecondaryNode Node `json:"secondaryNode"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
|
|
// Sysctl Params
|
|
SysctlParams interface{} `json:"sysctlParams"`
|
|
|
|
// Tech status
|
|
TechStatus string `json:"techStatus"`
|
|
|
|
// User Managed flag
|
|
UserManaged bool `json:"userManaged"`
|
|
|
|
// VINS ID
|
|
VINSID uint64 `json:"vinsId"`
|
|
}
|
|
|
|
// Detailed information about load balancer in List
|
|
type ItemLBList struct {
|
|
// HAMode
|
|
HAMode bool `json:"HAmode"`
|
|
|
|
// Access Control List
|
|
ACL interface{} `json:"acl"`
|
|
|
|
// BackendHAIP
|
|
BackendHAIP string `json:"backendHAIP"`
|
|
|
|
// List of load balancer backends
|
|
Backends ListBackends `json:"backends"`
|
|
|
|
// Created by
|
|
CreatedBy string `json:"createdBy"`
|
|
|
|
// Created time
|
|
CreatedTime uint64 `json:"createdTime"`
|
|
|
|
// Deleted by
|
|
DeletedBy string `json:"deletedBy"`
|
|
|
|
// Deleted time
|
|
DeletedTime uint64 `json:"deletedTime"`
|
|
|
|
// Description
|
|
Description string `json:"desc"`
|
|
|
|
// DPAPI password
|
|
DPAPIPassword string `json:"dpApiPassword"`
|
|
|
|
// DPAPI user
|
|
DPAPIUser string `json:"dpApiUser"`
|
|
|
|
// External network ID
|
|
ExtNetID uint64 `json:"extnetId"`
|
|
|
|
// FrontendHAIP
|
|
FrontendHAIP string `json:"frontendHAIP"`
|
|
|
|
// List of load balancer frontends
|
|
Frontends ListFrontends `json:"frontends"`
|
|
|
|
// Grid ID
|
|
GID uint64 `json:"gid"`
|
|
|
|
// GUID
|
|
GUID uint64 `json:"guid"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// ManagerId
|
|
ManagerId uint64 `json:"managerId"`
|
|
|
|
// Name
|
|
ManagerType string `json:"managerType"`
|
|
|
|
// Milestones
|
|
Milestones uint64 `json:"milestones"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// PartK8s
|
|
PartK8s bool `json:"partK8s"`
|
|
|
|
// Primary node
|
|
PrimaryNode Node `json:"primaryNode"`
|
|
|
|
// Resource group ID
|
|
RGID uint64 `json:"rgId"`
|
|
|
|
// Resource group name
|
|
RGName string `json:"rgName"`
|
|
|
|
// Secondary node
|
|
SecondaryNode Node `json:"secondaryNode"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
|
|
// Sysctl Params
|
|
SysctlParams interface{} `json:"sysctlParams"`
|
|
|
|
// Tech status
|
|
TechStatus string `json:"techStatus"`
|
|
|
|
// Updated by
|
|
UpdatedBy string `json:"updatedBy"`
|
|
|
|
// Updated time
|
|
UpdatedTime uint64 `json:"updatedTime"`
|
|
|
|
// User managed flag
|
|
UserManaged bool `json:"userManaged"`
|
|
|
|
// VINS ID
|
|
VINSID uint64 `json:"vinsId"`
|
|
}
|