Documentation ¶
Overview ¶
Package blb defines the Normal BLB services of BCE. The supported APIs are all defined in sub-package
Index ¶
- Constants
- type AddBackendServersArgs
- type AllListenerModel
- type BLBModel
- type BLBStatus
- type BackendServerModel
- type BackendServerStatus
- type BlbSecurityGroupModel
- type BlbSecurityGroupRuleModel
- type Client
- func (c *Client) AddBackendServers(blbId string, args *AddBackendServersArgs) error
- func (c *Client) BindSecurityGroups(blbId string, args *UpdateSecurityGroupsArgs) error
- func (c *Client) CreateHTTPListener(blbId string, args *CreateHTTPListenerArgs) error
- func (c *Client) CreateHTTPSListener(blbId string, args *CreateHTTPSListenerArgs) error
- func (c *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (*CreateLoadBalancerResult, error)
- func (c *Client) CreateSSLListener(blbId string, args *CreateSSLListenerArgs) error
- func (c *Client) CreateTCPListener(blbId string, args *CreateTCPListenerArgs) error
- func (c *Client) CreateUDPListener(blbId string, args *CreateUDPListenerArgs) error
- func (c *Client) DeleteListeners(blbId string, args *DeleteListenersArgs) error
- func (c *Client) DeleteLoadBalancer(blbId string) error
- func (c *Client) DescribeAllListeners(blbId string, args *DescribeListenerArgs) (*DescribeAllListenersResult, error)
- func (c *Client) DescribeBackendServers(blbId string, args *DescribeBackendServersArgs) (*DescribeBackendServersResult, error)
- func (c *Client) DescribeHTTPListeners(blbId string, args *DescribeListenerArgs) (*DescribeHTTPListenersResult, error)
- func (c *Client) DescribeHTTPSListeners(blbId string, args *DescribeListenerArgs) (*DescribeHTTPSListenersResult, error)
- func (c *Client) DescribeHealthStatus(blbId string, args *DescribeHealthStatusArgs) (*DescribeHealthStatusResult, error)
- func (c *Client) DescribeLbClusterDetail(clusterId string) (*DescribeLbClusterDetailResult, error)
- func (c *Client) DescribeLbClusters(args *DescribeLbClustersArgs) (*DescribeLbClustersResult, error)
- func (c *Client) DescribeLoadBalancerDetail(blbId string) (*DescribeLoadBalancerDetailResult, error)
- func (c *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (*DescribeLoadBalancersResult, error)
- func (c *Client) DescribeSSLListeners(blbId string, args *DescribeListenerArgs) (*DescribeSSLListenersResult, error)
- func (c *Client) DescribeSecurityGroups(blbId string) (*DescribeSecurityGroupsResult, error)
- func (c *Client) DescribeTCPListeners(blbId string, args *DescribeListenerArgs) (*DescribeTCPListenersResult, error)
- func (c *Client) DescribeUDPListeners(blbId string, args *DescribeListenerArgs) (*DescribeUDPListenersResult, error)
- func (c *Client) RemoveBackendServers(blbId string, args *RemoveBackendServersArgs) error
- func (c *Client) UnbindSecurityGroups(blbId string, args *UpdateSecurityGroupsArgs) error
- func (c *Client) UpdateBackendServers(blbId string, args *UpdateBackendServersArgs) error
- func (c *Client) UpdateHTTPListener(blbId string, args *UpdateHTTPListenerArgs) error
- func (c *Client) UpdateHTTPSListener(blbId string, args *UpdateHTTPSListenerArgs) error
- func (c *Client) UpdateLoadBalancer(blbId string, args *UpdateLoadBalancerArgs) error
- func (c *Client) UpdateLoadBalancerAcl(blbId string, args *UpdateLoadBalancerAclArgs) error
- func (c *Client) UpdateSSLListener(blbId string, args *UpdateSSLListenerArgs) error
- func (c *Client) UpdateTCPListener(blbId string, args *UpdateTCPListenerArgs) error
- func (c *Client) UpdateUDPListener(blbId string, args *UpdateUDPListenerArgs) error
- type ClusterModel
- type CreateHTTPListenerArgs
- type CreateHTTPSListenerArgs
- type CreateLoadBalancerArgs
- type CreateLoadBalancerResult
- type CreateSSLListenerArgs
- type CreateTCPListenerArgs
- type CreateUDPListenerArgs
- type DeleteListenersArgs
- type DescribeAllListenersResult
- type DescribeBackendServersArgs
- type DescribeBackendServersResult
- type DescribeHTTPListenersResult
- type DescribeHTTPSListenersResult
- type DescribeHealthStatusArgs
- type DescribeHealthStatusResult
- type DescribeLbClusterDetailResult
- type DescribeLbClustersArgs
- type DescribeLbClustersResult
- type DescribeListenerArgs
- type DescribeLoadBalancerDetailResult
- type DescribeLoadBalancersArgs
- type DescribeLoadBalancersResult
- type DescribeResultMeta
- type DescribeSSLListenersResult
- type DescribeSecurityGroupsResult
- type DescribeTCPListenersResult
- type DescribeUDPListenersResult
- type HTTPListenerModel
- type HTTPSListenerModel
- type ListenerModel
- type PortTypeModel
- type RemoveBackendServersArgs
- type SSLListenerModel
- type TCPListenerModel
- type UDPListenerModel
- type UpdateBackendServersArgs
- type UpdateHTTPListenerArgs
- type UpdateHTTPSListenerArgs
- type UpdateListenerArgs
- type UpdateLoadBalancerAclArgs
- type UpdateLoadBalancerArgs
- type UpdateSSLListenerArgs
- type UpdateSecurityGroupsArgs
- type UpdateTCPListenerArgs
- type UpdateUDPListenerArgs
Constants ¶
const ( DEFAULT_SERVICE_DOMAIN = "blb." + bce.DEFAULT_REGION + ".baidubce.com" URI_PREFIX = bce.URI_PREFIX + "v1" REQUEST_BLB_URL = "/blb" LISTENER_URL = "/listener" TCPLISTENER_URL = "/TCPlistener" UDPLISTENER_URL = "/UDPlistener" HTTPLISTENER_URL = "/HTTPlistener" HTTPSLISTENER_URL = "/HTTPSlistener" SSLLISTENER_URL = "/SSLlistener" BACKENDSERVER_URL = "/backendserver" REQUEST_BLB_CLUSTER_URL = "/blbcluster" SECURITY_GROUP_URL = "/securitygroup" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBackendServersArgs ¶
type AddBackendServersArgs struct { ClientToken string `json:"-"` BackendServerList []BackendServerModel `json:"backendServerList"` }
type AllListenerModel ¶ added in v0.9.87
type AllListenerModel struct { ListenerPort uint16 `json:"listenerPort"` ListenerType string `json:"listenerType"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` GetBlbIp bool `json:"getBlbIp"` TcpSessionTimeout int `json:"tcpSessionTimeout"` UdpSessionTimeout int `json:"udpSessionTimeout"` HealthCheckString string `json:"healthCheckString"` KeepSession bool `json:"keepSession"` KeepSessionType string `json:"keepSessionType"` KeepSessionDuration int `json:"keepSessionDuration"` KeepSessionCookieName string `json:"keepSessionCookieName"` XForwardedFor bool `json:"xForwardedFor"` HealthCheckType string `json:"healthCheckType"` HealthCheckPort uint16 `json:"healthCheckPort"` HealthCheckURI string `json:"healthCheckURI"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckInterval int `json:"healthCheckInterval"` UnhealthyThreshold int `json:"unhealthyThreshold"` HealthyThreshold int `json:"healthyThreshold"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus"` HealthCheckHost string `json:"healthCheckHost"` ServerTimeout int `json:"serverTimeout"` RedirectPort int `json:"redirectPort"` CertIds []string `json:"certIds"` DualAuth bool `json:"dualAuth"` ClientCertIds []string `json:"clientCertIds"` EncryptionType string `json:"encryptionType"` EncryptionProtocols []string `json:"encryptionProtocols"` AppliedCiphers string `json:"appliedCiphers"` }
type BLBModel ¶
type BLBModel struct { BlbId string `json:"blbId"` Name string `json:"name"` Description string `json:"desc"` Address string `json:"address"` Status BLBStatus `json:"status"` VpcId string `json:"vpcId"` SubnetId string `json:"subnetId"` PublicIp string `json:"publicIp"` Layer4ClusterId string `json:"layer4ClusterId"` Layer7ClusterId string `json:"layer7ClusterId"` Tags []model.TagModel `json:"tags"` EipRouteType string `json:"eipRouteType"` AllowDelete bool `json:"allowDelete"` }
type BackendServerModel ¶
type BackendServerStatus ¶
type BlbSecurityGroupModel ¶ added in v0.9.135
type BlbSecurityGroupModel struct { SecurityGroupId string `json:"securityGroupId"` SecurityGroupName string `json:"securityGroupName"` SecurityGroupDesc string `json:"securityGroupDesc"` VpcName string `json:"vpcName"` SecurityGroupRules []BlbSecurityGroupRuleModel `json:"securityGroupRules"` }
type BlbSecurityGroupRuleModel ¶ added in v0.9.135
type BlbSecurityGroupRuleModel struct { SecurityGroupRuleId string `json:"securityGroupRuleId"` Direction string `json:"direction"` Ethertype string `json:"ethertype,omitempty"` PortRange string `json:"portRange,omitempty"` Protocol string `json:"protocol,omitempty"` SourceGroupId string `json:"sourceGroupId,omitempty"` SourceIp string `json:"sourceIp,omitempty"` DestGroupId string `json:"destGroupId,omitempty"` DestIp string `json:"destIp,omitempty"` }
type Client ¶
Client of APPBLB service is a kind of BceClient, so derived from BceClient
func (*Client) AddBackendServers ¶
func (c *Client) AddBackendServers(blbId string, args *AddBackendServersArgs) error
AddBackendServers - add backend servers
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to add backend servers
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) BindSecurityGroups ¶ added in v0.9.135
func (c *Client) BindSecurityGroups(blbId string, args *UpdateSecurityGroupsArgs) error
BindSecurityGroups - bind the blb security groups (normal/application/ipv6 LoadBalancer)
PARAMS:
- blbId: LoadBalancer's ID
- args: the parameter to update security groups
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateHTTPListener ¶
func (c *Client) CreateHTTPListener(blbId string, args *CreateHTTPListenerArgs) error
CreateHTTPListener - create a HTTP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create HTTP Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateHTTPSListener ¶
func (c *Client) CreateHTTPSListener(blbId string, args *CreateHTTPSListenerArgs) error
CreateHTTPSListener - create a HTTPS Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create HTTPS Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateLoadBalancer ¶
func (c *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (*CreateLoadBalancerResult, error)
CreateLoadBalancer - create a LoadBalancer
PARAMS:
- args: parameters to create LoadBalancer
RETURNS:
- *CreateLoadBalancerResult: the result of create LoadBalancer, contains new LoadBalancer's ID
- error: nil if ok otherwise the specific error
func (*Client) CreateSSLListener ¶
func (c *Client) CreateSSLListener(blbId string, args *CreateSSLListenerArgs) error
CreateAppSSLListener - create a SSL Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create SSL Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateTCPListener ¶
func (c *Client) CreateTCPListener(blbId string, args *CreateTCPListenerArgs) error
CreateTCPListener - create a TCP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create TCP Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateUDPListener ¶
func (c *Client) CreateUDPListener(blbId string, args *CreateUDPListenerArgs) error
CreateUDPListener - create a UDP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create UDP Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteListeners ¶
func (c *Client) DeleteListeners(blbId string, args *DeleteListenersArgs) error
DeleteListeners - delete Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete Listeners, a listener port list
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteLoadBalancer ¶
DeleteLoadBalancer - delete a LoadBalancer
PARAMS:
- blbId: parameters to delete LoadBalancer
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DescribeAllListeners ¶ added in v0.9.87
func (c *Client) DescribeAllListeners(blbId string, args *DescribeListenerArgs) (*DescribeAllListenersResult, error)
DescribeAllListeners - describe all Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all Listeners
RETURNS:
- *DescribeAllListenersResult: the result of describe all Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeBackendServers ¶
func (c *Client) DescribeBackendServers(blbId string, args *DescribeBackendServersArgs) (*DescribeBackendServersResult, error)
DescribeBackendServers - describe all backend servers
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all backend servers
RETURNS:
- *DescribeBackendServersResult: the result of describe all backend servers
- error: nil if ok otherwise the specific error
func (*Client) DescribeHTTPListeners ¶
func (c *Client) DescribeHTTPListeners(blbId string, args *DescribeListenerArgs) (*DescribeHTTPListenersResult, error)
DescribeHTTPListeners - describe all HTTP Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all HTTP Listeners
RETURNS:
- *DescribeHTTPListenersResult: the result of describe all HTTP Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeHTTPSListeners ¶
func (c *Client) DescribeHTTPSListeners(blbId string, args *DescribeListenerArgs) (*DescribeHTTPSListenersResult, error)
DescribeHTTPSListeners - describe all HTTPS Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all HTTPS Listeners
RETURNS:
- *DescribeHTTPSListenersResult: the result of describe all HTTPS Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeHealthStatus ¶
func (c *Client) DescribeHealthStatus(blbId string, args *DescribeHealthStatusArgs) (*DescribeHealthStatusResult, error)
DescribeHealthStatus - describe all backend servers health status
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all backend servers health status
RETURNS:
- *DescribeHealthStatusResult: the result of describe all backend servers health status
- error: nil if ok otherwise the specific error
func (*Client) DescribeLbClusterDetail ¶ added in v0.9.35
func (c *Client) DescribeLbClusterDetail(clusterId string) (*DescribeLbClusterDetailResult, error)
DescribeLbClusterDetail - describe a LoadBalancer cluster
PARAMS:
- clusterId: describe LoadBalancer cluster's ID
RETURNS:
- *DescribeLbClusterDetailResult: the result LoadBalancer cluster detail
- error: nil if ok otherwise the specific error
func (*Client) DescribeLbClusters ¶ added in v0.9.35
func (c *Client) DescribeLbClusters(args *DescribeLbClustersArgs) (*DescribeLbClustersResult, error)
DescribeLbClusters - describe all LoadBalancerClusters
PARAMS:
- args: parameters to describe all LoadBalancerClusters
RETURNS:
- *DescribeLbClustersResult: the result all LoadBalancerClusters's detail
- error: nil if ok otherwise the specific error
func (*Client) DescribeLoadBalancerDetail ¶
func (c *Client) DescribeLoadBalancerDetail(blbId string) (*DescribeLoadBalancerDetailResult, error)
DescribeLoadBalancerDetail - describe a LoadBalancer
PARAMS:
- blbId: describe LoadBalancer's ID
RETURNS:
- *DescribeLoadBalancerDetailResult: the result LoadBalancer detail
- error: nil if ok otherwise the specific error
func (*Client) DescribeLoadBalancers ¶
func (c *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (*DescribeLoadBalancersResult, error)
DescribeLoadBalancers - describe all LoadBalancers
PARAMS:
- args: parameters to describe all LoadBalancers
RETURNS:
- *DescribeLoadBalancersResult: the result all LoadBalancers's detail
- error: nil if ok otherwise the specific error
func (*Client) DescribeSSLListeners ¶
func (c *Client) DescribeSSLListeners(blbId string, args *DescribeListenerArgs) (*DescribeSSLListenersResult, error)
DescribeSSLListeners - describe all SSL Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all SSL Listeners
RETURNS:
- *DescribeSSLListenersResult: the result of describe all SSL Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeSecurityGroups ¶ added in v0.9.135
func (c *Client) DescribeSecurityGroups(blbId string) (*DescribeSecurityGroupsResult, error)
DescribeSecurityGroups - describe all security groups of the specified LoadBalancer (normal/application/ipv6 LoadBalancer)
PARAMS:
- blbId: LoadBalancer's ID
RETURNS:
- *DescribeSecurityGroupsResult: the result of describe all security groups
- error: nil if ok otherwise the specific error
func (*Client) DescribeTCPListeners ¶
func (c *Client) DescribeTCPListeners(blbId string, args *DescribeListenerArgs) (*DescribeTCPListenersResult, error)
DescribeTCPListeners - describe all TCP Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all TCP Listeners
RETURNS:
- *DescribeTCPListenersResult: the result of describe all TCP Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeUDPListeners ¶
func (c *Client) DescribeUDPListeners(blbId string, args *DescribeListenerArgs) (*DescribeUDPListenersResult, error)
DescribeUDPListeners - describe all UDP Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all UDP Listeners
RETURNS:
- *DescribeUDPListenersResult: the result of describe all UDP Listeners
- error: nil if ok otherwise the specific error
func (*Client) RemoveBackendServers ¶
func (c *Client) RemoveBackendServers(blbId string, args *RemoveBackendServersArgs) error
RemoveBackendServers - remove backend servers
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to remove backend servers, a backend server list
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UnbindSecurityGroups ¶ added in v0.9.135
func (c *Client) UnbindSecurityGroups(blbId string, args *UpdateSecurityGroupsArgs) error
UnbindSecurityGroups - unbind the blb security groups (normal/application/ipv6 LoadBalancer)
PARAMS:
- blbId: LoadBalancer's ID
- args: the parameter to update security groups
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateBackendServers ¶
func (c *Client) UpdateBackendServers(blbId string, args *UpdateBackendServersArgs) error
UpdateBackendServers - update backend servers
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update backend servers
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateHTTPListener ¶
func (c *Client) UpdateHTTPListener(blbId string, args *UpdateHTTPListenerArgs) error
UpdateHTTPListener - update a HTTP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update HTTP Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateHTTPSListener ¶
func (c *Client) UpdateHTTPSListener(blbId string, args *UpdateHTTPSListenerArgs) error
UpdateHTTPSListener - update a HTTPS Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update HTTPS Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateLoadBalancer ¶
func (c *Client) UpdateLoadBalancer(blbId string, args *UpdateLoadBalancerArgs) error
UpdateLoadBalancer - update a LoadBalancer
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update LoadBalancer
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateLoadBalancerAcl ¶ added in v0.9.135
func (c *Client) UpdateLoadBalancerAcl(blbId string, args *UpdateLoadBalancerAclArgs) error
UpdateLoadBalancerAcl - update the specified LoadBalancer to support the acl feature
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update LoadBalancer acl
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateSSLListener ¶
func (c *Client) UpdateSSLListener(blbId string, args *UpdateSSLListenerArgs) error
UpdateSSLListener - update a SSL Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update SSL Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateTCPListener ¶
func (c *Client) UpdateTCPListener(blbId string, args *UpdateTCPListenerArgs) error
UpdateTCPListener - update a TCP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update TCP Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateUDPListener ¶
func (c *Client) UpdateUDPListener(blbId string, args *UpdateUDPListenerArgs) error
UpdateUDPListener - update a UDP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update UDP Listener
RETURNS:
- error: nil if ok otherwise the specific error
type ClusterModel ¶ added in v0.9.35
type CreateHTTPListenerArgs ¶
type CreateHTTPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionDuration int `json:"keepSessionDuration,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` HealthCheckType string `json:"healthCheckType,omitempty"` HealthCheckPort uint16 `json:"healthCheckPort,omitempty"` HealthCheckURI string `json:"healthCheckURI,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` RedirectPort uint16 `json:"redirectPort,omitempty"` }
type CreateHTTPSListenerArgs ¶
type CreateHTTPSListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` CertIds []string `json:"certIds"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionDuration int `json:"keepSessionDuration,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` HealthCheckType string `json:"healthCheckType,omitempty"` HealthCheckPort uint16 `json:"healthCheckPort,omitempty"` HealthCheckURI string `json:"healthCheckURI,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` RedirectPort uint16 `json:"redirectPort,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` AppliedCiphers string `json:"appliedCiphers,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type CreateLoadBalancerArgs ¶
type CreateLoadBalancerArgs struct { ClientToken string `json:"-"` Name string `json:"name,omitempty"` Description string `json:"desc,omitempty"` SubnetId string `json:"subnetId"` VpcId string `json:"vpcId"` ClusterProperty string `json:"clusterProperty"` Type string `json:"type,omitempty"` Tags []model.TagModel `json:"tags,omitempty"` }
type CreateSSLListenerArgs ¶
type CreateSSLListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` CertIds []string `json:"certIds"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` AppliedCiphers string `json:"appliedCiphers,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type CreateTCPListenerArgs ¶
type CreateTCPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` TcpSessionTimeout int `json:"tcpSessionTimeout,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` }
type CreateUDPListenerArgs ¶
type CreateUDPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` UdpSessionTimeout int `json:"udpSessionTimeout,omitempty"` HealthCheckString string `json:"healthCheckString"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` }
type DeleteListenersArgs ¶
type DeleteListenersArgs struct { ClientToken string `json:"-"` PortList []uint16 `json:"portList"` PortTypeList []PortTypeModel `json:"portTypeList"` }
type DescribeAllListenersResult ¶ added in v0.9.87
type DescribeAllListenersResult struct { AllListenerList []AllListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeBackendServersResult ¶
type DescribeBackendServersResult struct { BackendServerList []BackendServerModel `json:"backendServerList"` DescribeResultMeta }
type DescribeHTTPListenersResult ¶
type DescribeHTTPListenersResult struct { ListenerList []HTTPListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeHTTPSListenersResult ¶
type DescribeHTTPSListenersResult struct { ListenerList []HTTPSListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeHealthStatusResult ¶
type DescribeHealthStatusResult struct { BackendServerList []BackendServerStatus `json:"backendServerList"` Type string `json:"type"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` DescribeResultMeta }
type DescribeLbClusterDetailResult ¶ added in v0.9.35
type DescribeLbClusterDetailResult struct { ClusterId string `json:"clusterId"` ClusterName string `json:"clusterName"` ClusterType string `json:"clusterType"` ClusterRegion string `json:"clusterRegion"` ClusterAz string `json:"clusterAz"` TotalConnectCount uint64 `json:"totalConnectCount"` NewConnectCps uint64 `json:"newConnectCps"` NetworkInBps uint64 `json:"networkInBps"` NetworkOutBps uint64 `json:"networkOutBps"` NetworkInPps uint64 `json:"networkInPps"` NetworkOutPps uint64 `json:"networkOutPps"` HttpsQps uint64 `json:"httpsQps"` HttpQps uint64 `json:"httpQps"` HttpNewConnectCps uint64 `json:"httpNewConnectCps"` HttpsNewConnectCps uint64 `json:"httpsNewConnectCps"` }
type DescribeLbClustersArgs ¶ added in v0.9.35
type DescribeLbClustersResult ¶ added in v0.9.35
type DescribeLbClustersResult struct { ClusterList []ClusterModel `json:"clusterList"` DescribeResultMeta }
type DescribeListenerArgs ¶
type DescribeLoadBalancerDetailResult ¶
type DescribeLoadBalancerDetailResult struct { BlbId string `json:"blbId"` Status BLBStatus `json:"status"` Name string `json:"name"` Description string `json:"desc"` Address string `json:"address"` PublicIp string `json:"publicIp"` Cidr string `json:"cidr"` VpcName string `json:"vpcName"` CreateTime string `json:"createTime"` Layer4ClusterId string `json:"layer4ClusterId"` Layer7ClusterId string `json:"layer7ClusterId"` Listener []ListenerModel `json:"listener"` Tags []model.TagModel `json:"tags"` EipRouteType string `json:"eipRouteType"` Ipv6 string `json:"ipv6,omitempty"` }
type DescribeLoadBalancersResult ¶
type DescribeLoadBalancersResult struct { BlbList []BLBModel `json:"blbList"` DescribeResultMeta }
type DescribeResultMeta ¶
type DescribeSSLListenersResult ¶
type DescribeSSLListenersResult struct { ListenerList []SSLListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeSecurityGroupsResult ¶ added in v0.9.135
type DescribeSecurityGroupsResult struct {
BlbSecurityGroups []BlbSecurityGroupModel `json:"blbSecurityGroups"`
}
type DescribeTCPListenersResult ¶
type DescribeTCPListenersResult struct { ListenerList []TCPListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeUDPListenersResult ¶
type DescribeUDPListenersResult struct { ListenerList []UDPListenerModel `json:"listenerList"` DescribeResultMeta }
type HTTPListenerModel ¶
type HTTPListenerModel struct { ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession"` KeepSessionType string `json:"keepSessionType"` KeepSessionDuration int `json:"keepSessionDuration"` KeepSessionCookieName string `json:"keepSessionCookieName"` XForwardedFor bool `json:"xForwardedFor"` HealthCheckType string `json:"healthCheckType"` HealthCheckPort uint16 `json:"healthCheckPort"` HealthCheckURI string `json:"healthCheckURI"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckInterval int `json:"healthCheckInterval"` UnhealthyThreshold int `json:"unhealthyThreshold"` HealthyThreshold int `json:"healthyThreshold"` GetBlbIp bool `json:"getBlbIp"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus"` ServerTimeout int `json:"serverTimeout"` RedirectPort int `json:"redirectPort"` }
type HTTPSListenerModel ¶
type HTTPSListenerModel struct { ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession"` KeepSessionType string `json:"keepSessionType"` KeepSessionDuration int `json:"keepSessionDuration"` KeepSessionCookieName string `json:"keepSessionCookieName"` XForwardedFor bool `json:"xForwardedFor"` HealthCheckType string `json:"healthCheckType"` HealthCheckPort uint16 `json:"healthCheckPort"` HealthCheckURI string `json:"healthCheckURI"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckInterval int `json:"healthCheckInterval"` UnhealthyThreshold int `json:"unhealthyThreshold"` HealthyThreshold int `json:"healthyThreshold"` GetBlbIp bool `json:"getBlbIp"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus"` ServerTimeout int `json:"serverTimeout"` CertIds []string `json:"certIds"` DualAuth bool `json:"dualAuth"` ClientCertIds []string `json:"clientCertIds"` EncryptionType string `json:"encryptionType"` EncryptionProtocols []string `json:"encryptionProtocols"` AppliedCiphers string `json:"appliedCiphers"` }
type ListenerModel ¶
type PortTypeModel ¶ added in v0.9.90
type SSLListenerModel ¶
type SSLListenerModel struct { ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckInterval int `json:"healthCheckInterval"` UnhealthyThreshold int `json:"unhealthyThreshold"` HealthyThreshold int `json:"healthyThreshold"` GetBlbIp bool `json:"getBlbIp"` CertIds []string `json:"certIds"` EncryptionType string `json:"encryptionType"` EncryptionProtocols []string `json:"encryptionProtocols"` AppliedCiphers string `json:"appliedCiphers"` DualAuth bool `json:"dualAuth"` ClientCertIds []string `json:"clientCertIds"` ServerTimeout int `json:"serverTimeout"` }
type TCPListenerModel ¶
type TCPListenerModel struct { ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckInterval int `json:"healthCheckInterval"` UnhealthyThreshold int `json:"unhealthyThreshold"` HealthyThreshold int `json:"healthyThreshold"` GetBlbIp bool `json:"getBlbIp"` TcpSessionTimeout int `json:"tcpSessionTimeout"` }
type UDPListenerModel ¶
type UDPListenerModel struct { ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort"` Scheduler string `json:"scheduler"` UdpSessionTimeout int `json:"udpSessionTimeout"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckInterval int `json:"healthCheckInterval"` UnhealthyThreshold int `json:"unhealthyThreshold"` HealthyThreshold int `json:"healthyThreshold"` GetBlbIp bool `json:"getBlbIp"` HealthCheckString string `json:"healthCheckString"` }
type UpdateBackendServersArgs ¶
type UpdateBackendServersArgs struct { ClientToken string `json:"-"` BackendServerList []BackendServerModel `json:"backendServerList"` }
type UpdateHTTPListenerArgs ¶
type UpdateHTTPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"-"` BackendPort uint16 `json:"backendPort,omitempty"` Scheduler string `json:"scheduler,omitempty"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionDuration int `json:"keepSessionDuration,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` HealthCheckType string `json:"healthCheckType,omitempty"` HealthCheckPort uint16 `json:"healthCheckPort,omitempty"` HealthCheckURI string `json:"healthCheckURI,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` RedirectPort uint16 `json:"redirectPort,omitempty"` }
type UpdateHTTPSListenerArgs ¶
type UpdateHTTPSListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` BackendPort uint16 `json:"backendPort,omitempty"` Scheduler string `json:"scheduler,omitempty"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionDuration int `json:"keepSessionDuration,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` HealthCheckType string `json:"healthCheckType,omitempty"` HealthCheckPort uint16 `json:"healthCheckPort,omitempty"` HealthCheckURI string `json:"healthCheckURI,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` CertIds []string `json:"certIds,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` AppliedCiphers string `json:"appliedCiphers,omitempty"` }
type UpdateListenerArgs ¶
type UpdateLoadBalancerAclArgs ¶ added in v0.9.135
type UpdateLoadBalancerArgs ¶
type UpdateSSLListenerArgs ¶
type UpdateSSLListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"-"` BackendPort uint16 `json:"backendPort,omitempty"` Scheduler string `json:"scheduler,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` CertIds []string `json:"certIds,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` AppliedCiphers string `json:"appliedCiphers,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type UpdateSecurityGroupsArgs ¶ added in v0.9.135
type UpdateTCPListenerArgs ¶
type UpdateTCPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"-"` BackendPort uint16 `json:"backendPort,omitempty"` Scheduler string `json:"scheduler,omitempty"` TcpSessionTimeout int `json:"tcpSessionTimeout,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` }
type UpdateUDPListenerArgs ¶
type UpdateUDPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"-"` BackendPort uint16 `json:"backendPort,omitempty"` Scheduler string `json:"scheduler,omitempty"` UdpSessionTimeout int `json:"udpSessionTimeout,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckInterval int `json:"healthCheckInterval,omitempty"` UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"` HealthyThreshold int `json:"healthyThreshold,omitempty"` HealthCheckString string `json:"healthCheckString,omitempty"` }