Documentation
¶
Index ¶
- Constants
- type CertKey
- type CertKeyCreate
- type CertKeyCreatePem
- type CertKeyDetail
- type CheckProtocol
- type DNSServer
- type DNSServerCreate
- type DNSServerDetail
- type DNSServerUpdate
- type Error400
- type Error404
- type Error409
- type Error500
- type EventLoop
- type EventLoopCreate
- type EventLoopDetail
- type EventLoopGroup
- type EventLoopGroupCreate
- type EventLoopGroupDetail
- type IPType
- type Protocol
- type Rule
- type SecurityGroup
- type SecurityGroupCreate
- type SecurityGroupDetail
- type SecurityGroupProtocol
- type SecurityGroupRule
- type SecurityGroupRuleCreate
- func (m *SecurityGroupRuleCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SecurityGroupRuleCreate) MarshalBinary() ([]byte, error)
- func (m *SecurityGroupRuleCreate) UnmarshalBinary(b []byte) error
- func (m *SecurityGroupRuleCreate) Validate(formats strfmt.Registry) error
- type SecurityGroupRuleDetail
- func (m *SecurityGroupRuleDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SecurityGroupRuleDetail) MarshalBinary() ([]byte, error)
- func (m *SecurityGroupRuleDetail) UnmarshalBinary(b []byte) error
- func (m *SecurityGroupRuleDetail) Validate(formats strfmt.Registry) error
- type SecurityGroupUpdate
- type Server
- type ServerCreate
- type ServerDetail
- type ServerGroup
- type ServerGroupCreate
- type ServerGroupDetail
- type ServerGroupInUpstream
- type ServerGroupInUpstreamCreate
- func (m *ServerGroupInUpstreamCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ServerGroupInUpstreamCreate) MarshalBinary() ([]byte, error)
- func (m *ServerGroupInUpstreamCreate) UnmarshalBinary(b []byte) error
- func (m *ServerGroupInUpstreamCreate) Validate(formats strfmt.Registry) error
- type ServerGroupInUpstreamDetail
- func (m *ServerGroupInUpstreamDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ServerGroupInUpstreamDetail) MarshalBinary() ([]byte, error)
- func (m *ServerGroupInUpstreamDetail) UnmarshalBinary(b []byte) error
- func (m *ServerGroupInUpstreamDetail) Validate(formats strfmt.Registry) error
- type ServerGroupInUpstreamUpdate
- func (m *ServerGroupInUpstreamUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ServerGroupInUpstreamUpdate) MarshalBinary() ([]byte, error)
- func (m *ServerGroupInUpstreamUpdate) UnmarshalBinary(b []byte) error
- func (m *ServerGroupInUpstreamUpdate) Validate(formats strfmt.Registry) error
- type ServerGroupMethod
- type ServerGroupUpdate
- type ServerUpdate
- type Socks5Server
- type Socks5ServerCreate
- type Socks5ServerDetail
- type Socks5ServerUpdate
- type TCPLb
- type TCPLbCreate
- type TCPLbDetail
- type TCPLbUpdate
- type Upstream
- type UpstreamCreate
- type UpstreamDetail
Constants ¶
const ( // ServerStatusUP captures enum value "UP" ServerStatusUP string = "UP" // ServerStatusDOWN captures enum value "DOWN" ServerStatusDOWN string = "DOWN" )
const ( // ServerDetailStatusUP captures enum value "UP" ServerDetailStatusUP string = "UP" // ServerDetailStatusDOWN captures enum value "DOWN" ServerDetailStatusDOWN string = "DOWN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertKey ¶
type CertKey struct {
// certs
Certs []string `json:"certs"`
// file path of the key
Key string `json:"key,omitempty"`
// name
Name string `json:"name,omitempty"`
}
CertKey cert key
swagger:model CertKey
func (*CertKey) ContextValidate ¶
ContextValidate validates this cert key based on context it is used
func (*CertKey) MarshalBinary ¶
MarshalBinary interface implementation
func (*CertKey) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CertKeyCreate ¶
type CertKeyCreate struct {
// certs
// Required: true
Certs []string `json:"certs"`
// file path of the key
// Required: true
Key *string `json:"key"`
// name
// Required: true
Name *string `json:"name"`
}
CertKeyCreate cert key create
swagger:model CertKeyCreate
func (*CertKeyCreate) ContextValidate ¶
ContextValidate validates this cert key create based on context it is used
func (*CertKeyCreate) MarshalBinary ¶
func (m *CertKeyCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CertKeyCreate) UnmarshalBinary ¶
func (m *CertKeyCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CertKeyCreatePem ¶
type CertKeyCreatePem struct {
// certs
// Required: true
Certs []string `json:"certs"`
// pem of the key
// Required: true
Key *string `json:"key"`
// name
// Required: true
Name *string `json:"name"`
}
CertKeyCreatePem cert key create pem
swagger:model CertKeyCreatePem
func (*CertKeyCreatePem) ContextValidate ¶
ContextValidate validates this cert key create pem based on context it is used
func (*CertKeyCreatePem) MarshalBinary ¶
func (m *CertKeyCreatePem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CertKeyCreatePem) UnmarshalBinary ¶
func (m *CertKeyCreatePem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CertKeyDetail ¶
type CertKeyDetail struct {
// cert pem list
CertPemList []string `json:"certPemList"`
// certs
Certs []string `json:"certs"`
// file path of the key
Key string `json:"key,omitempty"`
// SHA1 of the pem of the key
KeySHA1 string `json:"keySHA1,omitempty"`
// name
Name string `json:"name,omitempty"`
}
CertKeyDetail cert key detail
swagger:model CertKeyDetail
func (*CertKeyDetail) ContextValidate ¶
ContextValidate validates this cert key detail based on context it is used
func (*CertKeyDetail) MarshalBinary ¶
func (m *CertKeyDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CertKeyDetail) UnmarshalBinary ¶
func (m *CertKeyDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckProtocol ¶
type CheckProtocol string
CheckProtocol the protocol for health check
swagger:model CheckProtocol
const ( // CheckProtocolTCP captures enum value "tcp" CheckProtocolTCP CheckProtocol = "tcp" // CheckProtocolHTTP captures enum value "http" CheckProtocolHTTP CheckProtocol = "http" // CheckProtocolDNS captures enum value "dns" CheckProtocolDNS CheckProtocol = "dns" // CheckProtocolTCPDelay captures enum value "tcpDelay" CheckProtocolTCPDelay CheckProtocol = "tcpDelay" // CheckProtocolNone captures enum value "none" CheckProtocolNone CheckProtocol = "none" )
func NewCheckProtocol ¶
func NewCheckProtocol(value CheckProtocol) *CheckProtocol
func (CheckProtocol) ContextValidate ¶
ContextValidate validates this check protocol based on context it is used
func (CheckProtocol) Pointer ¶
func (m CheckProtocol) Pointer() *CheckProtocol
Pointer returns a pointer to a freshly-allocated CheckProtocol.
type DNSServer ¶
type DNSServer struct {
// binding l4addr
Address string `json:"address,omitempty"`
// reference to the running event loop group
EventLoopGroup string `json:"eventLoopGroup,omitempty"`
// name
Name string `json:"name,omitempty"`
// answer records
Rrsets string `json:"rrsets,omitempty"`
// security group for the dns server to use
SecurityGroup string `json:"securityGroup,omitempty"`
// ttl of answer records
TTL int64 `json:"ttl,omitempty"`
}
DNSServer Dns server
swagger:model DnsServer
func (*DNSServer) ContextValidate ¶
ContextValidate validates this Dns server based on context it is used
func (*DNSServer) MarshalBinary ¶
MarshalBinary interface implementation
func (*DNSServer) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DNSServerCreate ¶
type DNSServerCreate struct {
// binding l4addr
// Required: true
Address *string `json:"address"`
// reference to the running event loop group
EventLoopGroup string `json:"eventLoopGroup,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// answer records
// Required: true
Rrsets *string `json:"rrsets"`
// security group for the dns server to use
SecurityGroup string `json:"securityGroup,omitempty"`
// ttl of answer records
TTL *int64 `json:"ttl,omitempty"`
}
DNSServerCreate Dns server create
swagger:model DnsServerCreate
func (*DNSServerCreate) ContextValidate ¶
ContextValidate validates this Dns server create based on context it is used
func (*DNSServerCreate) MarshalBinary ¶
func (m *DNSServerCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DNSServerCreate) UnmarshalBinary ¶
func (m *DNSServerCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DNSServerDetail ¶
type DNSServerDetail struct {
// binding l4addr
Address string `json:"address,omitempty"`
// event loop group
EventLoopGroup *EventLoopGroupDetail `json:"eventLoopGroup,omitempty"`
// name
Name string `json:"name,omitempty"`
// rrsets
Rrsets *UpstreamDetail `json:"rrsets,omitempty"`
// security group
SecurityGroup *SecurityGroupDetail `json:"securityGroup,omitempty"`
// ttl of answer records
TTL int64 `json:"ttl,omitempty"`
}
DNSServerDetail Dns server detail
swagger:model DnsServerDetail
func (*DNSServerDetail) ContextValidate ¶
ContextValidate validate this Dns server detail based on the context it is used
func (*DNSServerDetail) MarshalBinary ¶
func (m *DNSServerDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DNSServerDetail) UnmarshalBinary ¶
func (m *DNSServerDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DNSServerUpdate ¶
type DNSServerUpdate struct {
// security group for the dns server to use
SecurityGroup string `json:"securityGroup,omitempty"`
// ttl of answer records
TTL *int64 `json:"ttl,omitempty"`
}
DNSServerUpdate Dns server update
swagger:model DnsServerUpdate
func (*DNSServerUpdate) ContextValidate ¶
ContextValidate validates this Dns server update based on context it is used
func (*DNSServerUpdate) MarshalBinary ¶
func (m *DNSServerUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DNSServerUpdate) UnmarshalBinary ¶
func (m *DNSServerUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error400 ¶
type Error400 struct {
// code
Code int64 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
Error400 error400
swagger:model Error400
func (*Error400) ContextValidate ¶
ContextValidate validates this error400 based on context it is used
func (*Error400) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error400) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error404 ¶
type Error404 struct {
// code
Code int64 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
Error404 error404
swagger:model Error404
func (*Error404) ContextValidate ¶
ContextValidate validates this error404 based on context it is used
func (*Error404) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error404) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error409 ¶
type Error409 struct {
// code
Code int64 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
Error409 error409
swagger:model Error409
func (*Error409) ContextValidate ¶
ContextValidate validates this error409 based on context it is used
func (*Error409) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error409) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error500 ¶
type Error500 struct {
// code
Code int64 `json:"code,omitempty"`
// err Id
ErrID string `json:"errId,omitempty"`
// message
Message string `json:"message,omitempty"`
}
Error500 error500
swagger:model Error500
func (*Error500) ContextValidate ¶
ContextValidate validates this error500 based on context it is used
func (*Error500) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error500) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EventLoop ¶
type EventLoop struct {
// name
Name string `json:"name,omitempty"`
}
EventLoop event loop
swagger:model EventLoop
func (*EventLoop) ContextValidate ¶
ContextValidate validates this event loop based on context it is used
func (*EventLoop) MarshalBinary ¶
MarshalBinary interface implementation
func (*EventLoop) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EventLoopCreate ¶
type EventLoopCreate struct {
// name
// Required: true
Name *string `json:"name"`
}
EventLoopCreate event loop create
swagger:model EventLoopCreate
func (*EventLoopCreate) ContextValidate ¶
ContextValidate validates this event loop create based on context it is used
func (*EventLoopCreate) MarshalBinary ¶
func (m *EventLoopCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EventLoopCreate) UnmarshalBinary ¶
func (m *EventLoopCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EventLoopDetail ¶
type EventLoopDetail struct {
// name
Name string `json:"name,omitempty"`
}
EventLoopDetail event loop detail
swagger:model EventLoopDetail
func (*EventLoopDetail) ContextValidate ¶
ContextValidate validates this event loop detail based on context it is used
func (*EventLoopDetail) MarshalBinary ¶
func (m *EventLoopDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EventLoopDetail) UnmarshalBinary ¶
func (m *EventLoopDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EventLoopGroup ¶
type EventLoopGroup struct {
// name
Name string `json:"name,omitempty"`
}
EventLoopGroup event loop group
swagger:model EventLoopGroup
func (*EventLoopGroup) ContextValidate ¶
ContextValidate validates this event loop group based on context it is used
func (*EventLoopGroup) MarshalBinary ¶
func (m *EventLoopGroup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EventLoopGroup) UnmarshalBinary ¶
func (m *EventLoopGroup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EventLoopGroupCreate ¶
type EventLoopGroupCreate struct {
// name
// Required: true
Name *string `json:"name"`
}
EventLoopGroupCreate event loop group create
swagger:model EventLoopGroupCreate
func (*EventLoopGroupCreate) ContextValidate ¶
ContextValidate validates this event loop group create based on context it is used
func (*EventLoopGroupCreate) MarshalBinary ¶
func (m *EventLoopGroupCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EventLoopGroupCreate) UnmarshalBinary ¶
func (m *EventLoopGroupCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EventLoopGroupDetail ¶
type EventLoopGroupDetail struct {
// event loop list
EventLoopList []*EventLoopDetail `json:"eventLoopList"`
// name
Name string `json:"name,omitempty"`
}
EventLoopGroupDetail event loop group detail
swagger:model EventLoopGroupDetail
func (*EventLoopGroupDetail) ContextValidate ¶
ContextValidate validate this event loop group detail based on the context it is used
func (*EventLoopGroupDetail) MarshalBinary ¶
func (m *EventLoopGroupDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EventLoopGroupDetail) UnmarshalBinary ¶
func (m *EventLoopGroupDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IPType ¶
type IPType string
IPType binds ipv4 or ipv6
swagger:model IPType
func (IPType) ContextValidate ¶
ContextValidate validates this IP type based on context it is used
type Protocol ¶
type Protocol string
Protocol protocol
swagger:model Protocol
const ( // ProtocolTCP captures enum value "tcp" ProtocolTCP Protocol = "tcp" // ProtocolHTTP captures enum value "http" ProtocolHTTP Protocol = "http" // ProtocolH2 captures enum value "h2" ProtocolH2 Protocol = "h2" // ProtocolHTTP1Dotx captures enum value "http/1.x" ProtocolHTTP1Dotx Protocol = "http/1.x" // ProtocolFramedDashInt32 captures enum value "framed-int32" ProtocolFramedDashInt32 Protocol = "framed-int32" // ProtocolDubbo captures enum value "dubbo" ProtocolDubbo Protocol = "dubbo" )
func NewProtocol ¶
func (Protocol) ContextValidate ¶
ContextValidate validates this protocol based on context it is used
type Rule ¶
type Rule string
Rule rule
swagger:model Rule
func (Rule) ContextValidate ¶
ContextValidate validates this rule based on context it is used
type SecurityGroup ¶
type SecurityGroup struct {
// default rule
DefaultRule Rule `json:"defaultRule,omitempty"`
// name
Name string `json:"name,omitempty"`
}
SecurityGroup security group
swagger:model SecurityGroup
func (*SecurityGroup) ContextValidate ¶
ContextValidate validate this security group based on the context it is used
func (*SecurityGroup) MarshalBinary ¶
func (m *SecurityGroup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroup) UnmarshalBinary ¶
func (m *SecurityGroup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SecurityGroupCreate ¶
type SecurityGroupCreate struct {
// default rule
// Required: true
DefaultRule *Rule `json:"defaultRule"`
// name
// Required: true
Name *string `json:"name"`
}
SecurityGroupCreate security group create
swagger:model SecurityGroupCreate
func (*SecurityGroupCreate) ContextValidate ¶
ContextValidate validate this security group create based on the context it is used
func (*SecurityGroupCreate) MarshalBinary ¶
func (m *SecurityGroupCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroupCreate) UnmarshalBinary ¶
func (m *SecurityGroupCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SecurityGroupDetail ¶
type SecurityGroupDetail struct {
// default rule
DefaultRule Rule `json:"defaultRule,omitempty"`
// name
Name string `json:"name,omitempty"`
// rule list
RuleList []*SecurityGroupRuleDetail `json:"ruleList"`
}
SecurityGroupDetail security group detail
swagger:model SecurityGroupDetail
func (*SecurityGroupDetail) ContextValidate ¶
ContextValidate validate this security group detail based on the context it is used
func (*SecurityGroupDetail) MarshalBinary ¶
func (m *SecurityGroupDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroupDetail) UnmarshalBinary ¶
func (m *SecurityGroupDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SecurityGroupProtocol ¶
type SecurityGroupProtocol string
SecurityGroupProtocol security group protocol
swagger:model SecurityGroupProtocol
const ( // SecurityGroupProtocolTCP captures enum value "TCP" SecurityGroupProtocolTCP SecurityGroupProtocol = "TCP" // SecurityGroupProtocolUDP captures enum value "UDP" SecurityGroupProtocolUDP SecurityGroupProtocol = "UDP" )
func NewSecurityGroupProtocol ¶
func NewSecurityGroupProtocol(value SecurityGroupProtocol) *SecurityGroupProtocol
func (SecurityGroupProtocol) ContextValidate ¶
ContextValidate validates this security group protocol based on context it is used
func (SecurityGroupProtocol) Pointer ¶
func (m SecurityGroupProtocol) Pointer() *SecurityGroupProtocol
Pointer returns a pointer to a freshly-allocated SecurityGroupProtocol.
type SecurityGroupRule ¶
type SecurityGroupRule struct {
// network cidr
ClientNetwork string `json:"clientNetwork,omitempty"`
// name
Name string `json:"name,omitempty"`
// protocol
Protocol SecurityGroupProtocol `json:"protocol,omitempty"`
// rule
Rule Rule `json:"rule,omitempty"`
// port range max for server (inclusive)
ServerPortMax int64 `json:"serverPortMax,omitempty"`
// port range min for server (inclusive)
ServerPortMin int64 `json:"serverPortMin,omitempty"`
}
SecurityGroupRule security group rule
swagger:model SecurityGroupRule
func (*SecurityGroupRule) ContextValidate ¶
ContextValidate validate this security group rule based on the context it is used
func (*SecurityGroupRule) MarshalBinary ¶
func (m *SecurityGroupRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroupRule) UnmarshalBinary ¶
func (m *SecurityGroupRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SecurityGroupRuleCreate ¶
type SecurityGroupRuleCreate struct {
// network cidr
// Required: true
ClientNetwork *string `json:"clientNetwork"`
// name
// Required: true
Name *string `json:"name"`
// protocol
// Required: true
Protocol *SecurityGroupProtocol `json:"protocol"`
// rule
// Required: true
Rule *Rule `json:"rule"`
// port range max for server (inclusive)
// Required: true
ServerPortMax *int64 `json:"serverPortMax"`
// port range min for server (inclusive)
// Required: true
ServerPortMin *int64 `json:"serverPortMin"`
}
SecurityGroupRuleCreate security group rule create
swagger:model SecurityGroupRuleCreate
func (*SecurityGroupRuleCreate) ContextValidate ¶
func (m *SecurityGroupRuleCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this security group rule create based on the context it is used
func (*SecurityGroupRuleCreate) MarshalBinary ¶
func (m *SecurityGroupRuleCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroupRuleCreate) UnmarshalBinary ¶
func (m *SecurityGroupRuleCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SecurityGroupRuleDetail ¶
type SecurityGroupRuleDetail struct {
// network cidr
ClientNetwork string `json:"clientNetwork,omitempty"`
// name
Name string `json:"name,omitempty"`
// protocol
Protocol SecurityGroupProtocol `json:"protocol,omitempty"`
// rule
Rule Rule `json:"rule,omitempty"`
// port range max for server (inclusive)
ServerPortMax int64 `json:"serverPortMax,omitempty"`
// port range min for server (inclusive)
ServerPortMin int64 `json:"serverPortMin,omitempty"`
}
SecurityGroupRuleDetail security group rule detail
swagger:model SecurityGroupRuleDetail
func (*SecurityGroupRuleDetail) ContextValidate ¶
func (m *SecurityGroupRuleDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this security group rule detail based on the context it is used
func (*SecurityGroupRuleDetail) MarshalBinary ¶
func (m *SecurityGroupRuleDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroupRuleDetail) UnmarshalBinary ¶
func (m *SecurityGroupRuleDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SecurityGroupUpdate ¶
type SecurityGroupUpdate struct {
// default rule
DefaultRule Rule `json:"defaultRule,omitempty"`
}
SecurityGroupUpdate security group update
swagger:model SecurityGroupUpdate
func (*SecurityGroupUpdate) ContextValidate ¶
ContextValidate validate this security group update based on the context it is used
func (*SecurityGroupUpdate) MarshalBinary ¶
func (m *SecurityGroupUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroupUpdate) UnmarshalBinary ¶
func (m *SecurityGroupUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Server ¶
type Server struct {
// l4addr or hostname:port
Address string `json:"address,omitempty"`
// the milliseconds cost for one successful health check
Cost int64 `json:"cost,omitempty"`
// l3addr
CurrentIP string `json:"currentIp,omitempty"`
// reason for the last failed health check
DownReason string `json:"downReason,omitempty"`
// name
Name string `json:"name,omitempty"`
// status
// Enum: [UP DOWN]
Status string `json:"status,omitempty"`
// weight of the server in the server group
Weight int64 `json:"weight,omitempty"`
}
Server server
swagger:model Server
func (*Server) ContextValidate ¶
ContextValidate validates this server based on context it is used
func (*Server) MarshalBinary ¶
MarshalBinary interface implementation
func (*Server) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServerCreate ¶
type ServerCreate struct {
// l4addr or hostname:port
// Required: true
Address *string `json:"address"`
// name
// Required: true
Name *string `json:"name"`
// weight of the server in the server group
Weight *int64 `json:"weight,omitempty"`
}
ServerCreate server create
swagger:model ServerCreate
func (*ServerCreate) ContextValidate ¶
ContextValidate validates this server create based on context it is used
func (*ServerCreate) MarshalBinary ¶
func (m *ServerCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerCreate) UnmarshalBinary ¶
func (m *ServerCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerDetail ¶
type ServerDetail struct {
// l4addr or hostname:port
Address string `json:"address,omitempty"`
// the milliseconds cost for one successful health check
Cost int64 `json:"cost,omitempty"`
// l3addr
CurrentIP string `json:"currentIp,omitempty"`
// reason for the last failed health check
DownReason string `json:"downReason,omitempty"`
// name
Name string `json:"name,omitempty"`
// status
// Enum: [UP DOWN]
Status string `json:"status,omitempty"`
// weight of the server in the server group
Weight int64 `json:"weight,omitempty"`
}
ServerDetail server detail
swagger:model ServerDetail
func (*ServerDetail) ContextValidate ¶
ContextValidate validates this server detail based on context it is used
func (*ServerDetail) MarshalBinary ¶
func (m *ServerDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerDetail) UnmarshalBinary ¶
func (m *ServerDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroup ¶
type ServerGroup struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// consider the server unhealthy after $down times of failed health checks
Down int64 `json:"down,omitempty"`
// the event loop group to run health check on
EventLoopGroup string `json:"eventLoopGroup,omitempty"`
// method
Method *ServerGroupMethod `json:"method,omitempty"`
// name
Name string `json:"name,omitempty"`
// health check period (ms) (interval between two hc)
Period int64 `json:"period,omitempty"`
// protocol
Protocol *CheckProtocol `json:"protocol,omitempty"`
// health check timeout (ms) (timeout before getting expected response)
Timeout int64 `json:"timeout,omitempty"`
// consider the server healthy after $up times of successful health checks
Up int64 `json:"up,omitempty"`
}
ServerGroup server group
swagger:model ServerGroup
func (*ServerGroup) ContextValidate ¶
ContextValidate validate this server group based on the context it is used
func (*ServerGroup) MarshalBinary ¶
func (m *ServerGroup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroup) UnmarshalBinary ¶
func (m *ServerGroup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupCreate ¶
type ServerGroupCreate struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// consider the server unhealthy after $down times of failed health checks
// Required: true
Down *int64 `json:"down"`
// the event loop group to run health check on
EventLoopGroup string `json:"eventLoopGroup,omitempty"`
// method
Method *ServerGroupMethod `json:"method,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// health check period (ms) (interval between two hc)
// Required: true
Period *int64 `json:"period"`
// protocol
Protocol *CheckProtocol `json:"protocol,omitempty"`
// health check timeout (ms) (timeout before getting expected response)
// Required: true
Timeout *int64 `json:"timeout"`
// consider the server healthy after $up times of successful health checks
// Required: true
Up *int64 `json:"up"`
}
ServerGroupCreate server group create
swagger:model ServerGroupCreate
func (*ServerGroupCreate) ContextValidate ¶
ContextValidate validate this server group create based on the context it is used
func (*ServerGroupCreate) MarshalBinary ¶
func (m *ServerGroupCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupCreate) UnmarshalBinary ¶
func (m *ServerGroupCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupDetail ¶
type ServerGroupDetail struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// consider the server unhealthy after $down times of failed health checks
Down int64 `json:"down,omitempty"`
// event loop group
EventLoopGroup *EventLoopGroupDetail `json:"eventLoopGroup,omitempty"`
// method
Method *ServerGroupMethod `json:"method,omitempty"`
// name
Name string `json:"name,omitempty"`
// health check period (ms) (interval between two hc)
Period int64 `json:"period,omitempty"`
// protocol
Protocol *CheckProtocol `json:"protocol,omitempty"`
// server list
ServerList []*ServerDetail `json:"serverList"`
// health check timeout (ms) (timeout before getting expected response)
Timeout int64 `json:"timeout,omitempty"`
// consider the server healthy after $up times of successful health checks
Up int64 `json:"up,omitempty"`
}
ServerGroupDetail server group detail
swagger:model ServerGroupDetail
func (*ServerGroupDetail) ContextValidate ¶
ContextValidate validate this server group detail based on the context it is used
func (*ServerGroupDetail) MarshalBinary ¶
func (m *ServerGroupDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupDetail) UnmarshalBinary ¶
func (m *ServerGroupDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupInUpstream ¶
type ServerGroupInUpstream struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// name
Name string `json:"name,omitempty"`
// weight of the server-group in the upstream
Weight int64 `json:"weight,omitempty"`
}
ServerGroupInUpstream server group in upstream
swagger:model ServerGroupInUpstream
func (*ServerGroupInUpstream) ContextValidate ¶
ContextValidate validates this server group in upstream based on context it is used
func (*ServerGroupInUpstream) MarshalBinary ¶
func (m *ServerGroupInUpstream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupInUpstream) UnmarshalBinary ¶
func (m *ServerGroupInUpstream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupInUpstreamCreate ¶
type ServerGroupInUpstreamCreate struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// weight of the server-group in the upstream
Weight *int64 `json:"weight,omitempty"`
}
ServerGroupInUpstreamCreate server group in upstream create
swagger:model ServerGroupInUpstreamCreate
func (*ServerGroupInUpstreamCreate) ContextValidate ¶
func (m *ServerGroupInUpstreamCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this server group in upstream create based on context it is used
func (*ServerGroupInUpstreamCreate) MarshalBinary ¶
func (m *ServerGroupInUpstreamCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupInUpstreamCreate) UnmarshalBinary ¶
func (m *ServerGroupInUpstreamCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupInUpstreamDetail ¶
type ServerGroupInUpstreamDetail struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// name
Name string `json:"name,omitempty"`
// server group
ServerGroup *ServerGroupDetail `json:"serverGroup,omitempty"`
// weight of the server-group in the upstream
Weight int64 `json:"weight,omitempty"`
}
ServerGroupInUpstreamDetail server group in upstream detail
swagger:model ServerGroupInUpstreamDetail
func (*ServerGroupInUpstreamDetail) ContextValidate ¶
func (m *ServerGroupInUpstreamDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this server group in upstream detail based on the context it is used
func (*ServerGroupInUpstreamDetail) MarshalBinary ¶
func (m *ServerGroupInUpstreamDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupInUpstreamDetail) UnmarshalBinary ¶
func (m *ServerGroupInUpstreamDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupInUpstreamUpdate ¶
type ServerGroupInUpstreamUpdate struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// weight of the server-group in the upstream
Weight *int64 `json:"weight,omitempty"`
}
ServerGroupInUpstreamUpdate server group in upstream update
swagger:model ServerGroupInUpstreamUpdate
func (*ServerGroupInUpstreamUpdate) ContextValidate ¶
func (m *ServerGroupInUpstreamUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this server group in upstream update based on context it is used
func (*ServerGroupInUpstreamUpdate) MarshalBinary ¶
func (m *ServerGroupInUpstreamUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupInUpstreamUpdate) UnmarshalBinary ¶
func (m *ServerGroupInUpstreamUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerGroupMethod ¶
type ServerGroupMethod string
ServerGroupMethod the loadbalancing method
swagger:model ServerGroupMethod
const ( // ServerGroupMethodWrr captures enum value "wrr" ServerGroupMethodWrr ServerGroupMethod = "wrr" // ServerGroupMethodWlc captures enum value "wlc" ServerGroupMethodWlc ServerGroupMethod = "wlc" // ServerGroupMethodSource captures enum value "source" ServerGroupMethodSource ServerGroupMethod = "source" )
func NewServerGroupMethod ¶
func NewServerGroupMethod(value ServerGroupMethod) *ServerGroupMethod
func (ServerGroupMethod) ContextValidate ¶
ContextValidate validates this server group method based on context it is used
func (ServerGroupMethod) Pointer ¶
func (m ServerGroupMethod) Pointer() *ServerGroupMethod
Pointer returns a pointer to a freshly-allocated ServerGroupMethod.
type ServerGroupUpdate ¶
type ServerGroupUpdate struct {
// annotations
Annotations map[string]string `json:"annotations,omitempty"`
// consider the server unhealthy after $down times of failed health checks
Down int64 `json:"down,omitempty"`
// method
Method *ServerGroupMethod `json:"method,omitempty"`
// health check period (ms) (interval between two hc)
Period int64 `json:"period,omitempty"`
// protocol
Protocol *CheckProtocol `json:"protocol,omitempty"`
// health check timeout (ms) (timeout before getting expected response)
Timeout int64 `json:"timeout,omitempty"`
// consider the server healthy after $up times of successful health checks
Up int64 `json:"up,omitempty"`
}
ServerGroupUpdate server group update
swagger:model ServerGroupUpdate
func (*ServerGroupUpdate) ContextValidate ¶
ContextValidate validate this server group update based on the context it is used
func (*ServerGroupUpdate) MarshalBinary ¶
func (m *ServerGroupUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerGroupUpdate) UnmarshalBinary ¶
func (m *ServerGroupUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerUpdate ¶
type ServerUpdate struct {
// weight of the server in the server group
Weight *int64 `json:"weight,omitempty"`
}
ServerUpdate server update
swagger:model ServerUpdate
func (*ServerUpdate) ContextValidate ¶
ContextValidate validates this server update based on context it is used
func (*ServerUpdate) MarshalBinary ¶
func (m *ServerUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerUpdate) UnmarshalBinary ¶
func (m *ServerUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Socks5Server ¶
type Socks5Server struct {
// event loop group for accepting connections
AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`
// binding l4addr
Address string `json:"address,omitempty"`
// allow or disallow to proxy to non-backend endpoints
AllowNonBackend bool `json:"allowNonBackend,omitempty"`
// upstream reference for backend servers
Backend string `json:"backend,omitempty"`
// input buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// name
Name string `json:"name,omitempty"`
// output buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// security group reference for access control
SecurityGroup string `json:"securityGroup,omitempty"`
// event loop group for handling netflow
WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}
Socks5Server socks5 server
swagger:model Socks5Server
func (*Socks5Server) ContextValidate ¶
ContextValidate validates this socks5 server based on context it is used
func (*Socks5Server) MarshalBinary ¶
func (m *Socks5Server) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Socks5Server) UnmarshalBinary ¶
func (m *Socks5Server) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Socks5ServerCreate ¶
type Socks5ServerCreate struct {
// event loop group for accepting connections
AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`
// binding l4addr
// Required: true
Address *string `json:"address"`
// allow or disallow to proxy to non-backend endpoints
AllowNonBackend *bool `json:"allowNonBackend,omitempty"`
// upstream reference for backend servers
// Required: true
Backend *string `json:"backend"`
// input buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// output buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// security group reference for access control
SecurityGroup string `json:"securityGroup,omitempty"`
// event loop group for handling netflow
WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}
Socks5ServerCreate socks5 server create
swagger:model Socks5ServerCreate
func (*Socks5ServerCreate) ContextValidate ¶
ContextValidate validates this socks5 server create based on context it is used
func (*Socks5ServerCreate) MarshalBinary ¶
func (m *Socks5ServerCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Socks5ServerCreate) UnmarshalBinary ¶
func (m *Socks5ServerCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Socks5ServerDetail ¶
type Socks5ServerDetail struct {
// acceptor loop group
AcceptorLoopGroup *EventLoopGroupDetail `json:"acceptorLoopGroup,omitempty"`
// binding l4addr
Address string `json:"address,omitempty"`
// allow or disallow to proxy to non-backend endpoints
AllowNonBackend bool `json:"allowNonBackend,omitempty"`
// backend
Backend *UpstreamDetail `json:"backend,omitempty"`
// input buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// name
Name string `json:"name,omitempty"`
// output buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// security group
SecurityGroup *SecurityGroupDetail `json:"securityGroup,omitempty"`
// worker loop group
WorkerLoopGroup *EventLoopGroupDetail `json:"workerLoopGroup,omitempty"`
}
Socks5ServerDetail socks5 server detail
swagger:model Socks5ServerDetail
func (*Socks5ServerDetail) ContextValidate ¶
ContextValidate validate this socks5 server detail based on the context it is used
func (*Socks5ServerDetail) MarshalBinary ¶
func (m *Socks5ServerDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Socks5ServerDetail) UnmarshalBinary ¶
func (m *Socks5ServerDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Socks5ServerUpdate ¶
type Socks5ServerUpdate struct {
// allow or disallow to proxy to non-backend endpoints
AllowNonBackend *bool `json:"allowNonBackend,omitempty"`
// in buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// out buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// security group reference for access control
SecurityGroup string `json:"securityGroup,omitempty"`
}
Socks5ServerUpdate socks5 server update
swagger:model Socks5ServerUpdate
func (*Socks5ServerUpdate) ContextValidate ¶
ContextValidate validates this socks5 server update based on context it is used
func (*Socks5ServerUpdate) MarshalBinary ¶
func (m *Socks5ServerUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Socks5ServerUpdate) UnmarshalBinary ¶
func (m *Socks5ServerUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TCPLb ¶
type TCPLb struct {
// event loop group for accepting connections
AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`
// binding l4addr
Address string `json:"address,omitempty"`
// upstream reference for backend servers
Backend string `json:"backend,omitempty"`
// input buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// list of cert key
ListOfCertKey []string `json:"listOfCertKey"`
// name
Name string `json:"name,omitempty"`
// output buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// protocol
Protocol Protocol `json:"protocol,omitempty"`
// security group reference for access control
SecurityGroup string `json:"securityGroup,omitempty"`
// event loop group for handling netflow
WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}
TCPLb Tcp lb
swagger:model TcpLb
func (*TCPLb) ContextValidate ¶
ContextValidate validate this Tcp lb based on the context it is used
func (*TCPLb) MarshalBinary ¶
MarshalBinary interface implementation
func (*TCPLb) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TCPLbCreate ¶
type TCPLbCreate struct {
// event loop group for accepting connections
AcceptorLoopGroup string `json:"acceptorLoopGroup,omitempty"`
// binding l4addr
// Required: true
Address *string `json:"address"`
// upstream reference for backend servers
// Required: true
Backend *string `json:"backend"`
// input buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// list of cert key
ListOfCertKey []string `json:"listOfCertKey"`
// name
// Required: true
Name *string `json:"name"`
// output buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// protocol
Protocol Protocol `json:"protocol,omitempty"`
// security group reference for access control
SecurityGroup string `json:"securityGroup,omitempty"`
// event loop group for handling netflow
WorkerLoopGroup string `json:"workerLoopGroup,omitempty"`
}
TCPLbCreate Tcp lb create
swagger:model TcpLbCreate
func (*TCPLbCreate) ContextValidate ¶
ContextValidate validate this Tcp lb create based on the context it is used
func (*TCPLbCreate) MarshalBinary ¶
func (m *TCPLbCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TCPLbCreate) UnmarshalBinary ¶
func (m *TCPLbCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TCPLbDetail ¶
type TCPLbDetail struct {
// acceptor loop group
AcceptorLoopGroup *EventLoopGroupDetail `json:"acceptorLoopGroup,omitempty"`
// l4addr
Address string `json:"address,omitempty"`
// backend
Backend *UpstreamDetail `json:"backend,omitempty"`
// input buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// list of cert key
ListOfCertKey []*CertKeyDetail `json:"listOfCertKey"`
// name
Name string `json:"name,omitempty"`
// output buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// protocol
Protocol Protocol `json:"protocol,omitempty"`
// security group
SecurityGroup *SecurityGroupDetail `json:"securityGroup,omitempty"`
// worker loop group
WorkerLoopGroup *EventLoopGroupDetail `json:"workerLoopGroup,omitempty"`
}
TCPLbDetail Tcp lb detail
swagger:model TcpLbDetail
func (*TCPLbDetail) ContextValidate ¶
ContextValidate validate this Tcp lb detail based on the context it is used
func (*TCPLbDetail) MarshalBinary ¶
func (m *TCPLbDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TCPLbDetail) UnmarshalBinary ¶
func (m *TCPLbDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TCPLbUpdate ¶
type TCPLbUpdate struct {
// in buffer size
InBufferSize int64 `json:"inBufferSize,omitempty"`
// list of cert key
ListOfCertKey []string `json:"listOfCertKey"`
// out buffer size
OutBufferSize int64 `json:"outBufferSize,omitempty"`
// security group reference for access control
SecurityGroup string `json:"securityGroup,omitempty"`
}
TCPLbUpdate Tcp lb update
swagger:model TcpLbUpdate
func (*TCPLbUpdate) ContextValidate ¶
ContextValidate validates this Tcp lb update based on context it is used
func (*TCPLbUpdate) MarshalBinary ¶
func (m *TCPLbUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TCPLbUpdate) UnmarshalBinary ¶
func (m *TCPLbUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Upstream ¶
type Upstream struct {
// name
Name string `json:"name,omitempty"`
}
Upstream upstream
swagger:model Upstream
func (*Upstream) ContextValidate ¶
ContextValidate validates this upstream based on context it is used
func (*Upstream) MarshalBinary ¶
MarshalBinary interface implementation
func (*Upstream) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UpstreamCreate ¶
type UpstreamCreate struct {
// name
// Required: true
Name *string `json:"name"`
}
UpstreamCreate upstream create
swagger:model UpstreamCreate
func (*UpstreamCreate) ContextValidate ¶
ContextValidate validates this upstream create based on context it is used
func (*UpstreamCreate) MarshalBinary ¶
func (m *UpstreamCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpstreamCreate) UnmarshalBinary ¶
func (m *UpstreamCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpstreamDetail ¶
type UpstreamDetail struct {
// name
Name string `json:"name,omitempty"`
// server group list
ServerGroupList []*ServerGroupInUpstreamDetail `json:"serverGroupList"`
}
UpstreamDetail upstream detail
swagger:model UpstreamDetail
func (*UpstreamDetail) ContextValidate ¶
ContextValidate validate this upstream detail based on the context it is used
func (*UpstreamDetail) MarshalBinary ¶
func (m *UpstreamDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpstreamDetail) UnmarshalBinary ¶
func (m *UpstreamDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- cert_key.go
- cert_key_create.go
- cert_key_create_pem.go
- cert_key_detail.go
- check_protocol.go
- dns_server.go
- dns_server_create.go
- dns_server_detail.go
- dns_server_update.go
- error400.go
- error404.go
- error409.go
- error500.go
- event_loop.go
- event_loop_create.go
- event_loop_detail.go
- event_loop_group.go
- event_loop_group_create.go
- event_loop_group_detail.go
- ip_type.go
- protocol.go
- rule.go
- security_group.go
- security_group_create.go
- security_group_detail.go
- security_group_protocol.go
- security_group_rule.go
- security_group_rule_create.go
- security_group_rule_detail.go
- security_group_update.go
- server.go
- server_create.go
- server_detail.go
- server_group.go
- server_group_create.go
- server_group_detail.go
- server_group_in_upstream.go
- server_group_in_upstream_create.go
- server_group_in_upstream_detail.go
- server_group_in_upstream_update.go
- server_group_method.go
- server_group_update.go
- server_update.go
- socks5_server.go
- socks5_server_create.go
- socks5_server_detail.go
- socks5_server_update.go
- tcp_lb.go
- tcp_lb_create.go
- tcp_lb_detail.go
- tcp_lb_update.go
- upstream.go
- upstream_create.go
- upstream_detail.go