Versions in this module Expand all Collapse all v0 v0.9.22 Sep 16, 2020 Changes in this version + const BACKENDSERVER_URL + const DEFAULT_SERVICE_DOMAIN + const HTTPLISTENER_URL + const HTTPSLISTENER_URL + const LISTENER_URL + const REQUEST_BLB_URL + const SSLLISTENER_URL + const TCPLISTENER_URL + const UDPLISTENER_URL + const URI_PREFIX + type AddBackendServersArgs struct + BackendServerList []BackendServerModel + ClientToken string + type BLBModel struct + Address string + BlbId string + Description string + Name string + PublicIp string + Status BLBStatus + SubnetId string + Tags []model.TagModel + VpcId string + type BLBStatus string + const BLBStatusAvailable + const BLBStatusCreating + const BLBStatusPaused + const BLBStatusUnavailable + const BLBStatusUpdating + type BackendServerModel struct + InstanceId string + Weight int + type BackendServerStatus struct + InstanceId string + PrivateIp string + Status string + Weight int + type Client struct + func NewClient(ak, sk, endPoint string) (*Client, error) + func (c *Client) AddBackendServers(blbId string, args *AddBackendServersArgs) 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) 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) 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) 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) 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) 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 CreateHTTPListenerArgs struct + BackendPort uint16 + ClientToken string + HealthCheckInterval int + HealthCheckNormalStatus string + HealthCheckPort uint16 + HealthCheckTimeoutInSecond int + HealthCheckType string + HealthCheckURI string + HealthyThreshold int + KeepSession bool + KeepSessionCookieName string + KeepSessionDuration int + KeepSessionType string + ListenerPort uint16 + RedirectPort uint16 + Scheduler string + ServerTimeout int + UnhealthyThreshold int + XForwardedFor bool + type CreateHTTPSListenerArgs struct + BackendPort uint16 + CertIds []string + ClientCertIds []string + ClientToken string + DualAuth bool + EncryptionProtocols []string + EncryptionType string + HealthCheckInterval int + HealthCheckNormalStatus string + HealthCheckPort uint16 + HealthCheckTimeoutInSecond int + HealthCheckType string + HealthCheckURI string + HealthyThreshold int + Ie6Compatible bool + KeepSession bool + KeepSessionCookieName string + KeepSessionDuration int + KeepSessionType string + ListenerPort uint16 + RedirectPort uint16 + Scheduler string + ServerTimeout int + UnhealthyThreshold int + XForwardedFor bool + type CreateLoadBalancerArgs struct + ClientToken string + Description string + Name string + SubnetId string + Tags []model.TagModel + VpcId string + type CreateLoadBalancerResult struct + Address string + BlbId string + Description string + Name string + type CreateSSLListenerArgs struct + BackendPort uint16 + CertIds []string + ClientCertIds []string + ClientToken string + DualAuth bool + EncryptionProtocols []string + EncryptionType string + HealthCheckInterval int + HealthCheckTimeoutInSecond int + HealthyThreshold int + Ie6Compatible bool + ListenerPort uint16 + Scheduler string + UnhealthyThreshold int + type CreateTCPListenerArgs struct + BackendPort uint16 + ClientToken string + HealthCheckInterval int + HealthCheckTimeoutInSecond int + HealthyThreshold int + ListenerPort uint16 + Scheduler string + TcpSessionTimeout int + UnhealthyThreshold int + type CreateUDPListenerArgs struct + BackendPort uint16 + ClientToken string + HealthCheckInterval int + HealthCheckString string + HealthCheckTimeoutInSecond int + HealthyThreshold int + ListenerPort uint16 + Scheduler string + UnhealthyThreshold int + type DeleteListenersArgs struct + ClientToken string + PortList []uint16 + type DescribeBackendServersArgs struct + Marker string + MaxKeys int + type DescribeBackendServersResult struct + BackendServerList []BackendServerModel + type DescribeHTTPListenersResult struct + ListenerList []HTTPListenerModel + type DescribeHTTPSListenersResult struct + ListenerList []HTTPSListenerModel + type DescribeHealthStatusArgs struct + ListenerPort uint16 + Marker string + MaxKeys int + type DescribeHealthStatusResult struct + BackendPort uint16 + BackendServerList []BackendServerStatus + ListenerPort uint16 + Type string + type DescribeListenerArgs struct + ListenerPort uint16 + Marker string + MaxKeys int + type DescribeLoadBalancerDetailResult struct + Address string + BlbId string + Cidr string + CreateTime string + Description string + Listener []ListenerModel + Name string + PublicIp string + Status BLBStatus + Tags []model.TagModel + VpcName string + type DescribeLoadBalancersArgs struct + Address string + BccId string + BlbId string + ExactlyMatch bool + Marker string + MaxKeys int + Name string + type DescribeLoadBalancersResult struct + BlbList []BLBModel + type DescribeResultMeta struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + type DescribeSSLListenersResult struct + ListenerList []SSLListenerModel + type DescribeTCPListenersResult struct + ListenerList []TCPListenerModel + type DescribeUDPListenersResult struct + ListenerList []UDPListenerModel + type HTTPListenerModel struct + BackendPort uint16 + GetBlbIp bool + HealthCheckInterval int + HealthCheckNormalStatus string + HealthCheckPort uint16 + HealthCheckTimeoutInSecond int + HealthCheckType string + HealthCheckURI string + HealthyThreshold int + KeepSession bool + KeepSessionCookieName string + KeepSessionDuration int + KeepSessionType string + ListenerPort uint16 + RedirectPort int + Scheduler string + ServerTimeout int + UnhealthyThreshold int + XForwardedFor bool + type HTTPSListenerModel struct + BackendPort uint16 + CertIds []string + ClientCertIds []string + DualAuth bool + GetBlbIp bool + HealthCheckInterval int + HealthCheckNormalStatus string + HealthCheckPort uint16 + HealthCheckTimeoutInSecond int + HealthCheckType string + HealthCheckURI string + HealthyThreshold int + Ie6Compatible bool + KeepSession bool + KeepSessionCookieName string + KeepSessionDuration int + KeepSessionType string + ListenerPort uint16 + Scheduler string + ServerTimeout int + UnhealthyThreshold int + XForwardedFor bool + type ListenerModel struct + Port string + Type string + type RemoveBackendServersArgs struct + BackendServerList []string + ClientToken string + type SSLListenerModel struct + BackendPort uint16 + CertIds []string + ClientCertIds []string + DualAuth bool + EncryptionProtocols []string + EncryptionType string + GetBlbIp bool + HealthCheckInterval int + HealthCheckTimeoutInSecond int + HealthyThreshold int + Ie6Compatible bool + ListenerPort uint16 + Scheduler string + ServerTimeout int + UnhealthyThreshold int + type TCPListenerModel struct + BackendPort uint16 + GetBlbIp bool + HealthCheckInterval int + HealthCheckTimeoutInSecond int + HealthyThreshold int + ListenerPort uint16 + Scheduler string + TcpSessionTimeout int + UnhealthyThreshold int + type UDPListenerModel struct + BackendPort uint16 + GetBlbIp bool + HealthCheckInterval int + HealthCheckString string + HealthCheckTimeoutInSecond int + HealthyThreshold int + ListenerPort uint16 + Scheduler string + UnhealthyThreshold int + type UpdateBackendServersArgs struct + BackendServerList []BackendServerModel + ClientToken string + type UpdateHTTPListenerArgs struct + BackendPort uint16 + ClientToken string + HealthCheckInterval int + HealthCheckNormalStatus string + HealthCheckPort uint16 + HealthCheckTimeoutInSecond int + HealthCheckType string + HealthCheckURI string + HealthyThreshold int + KeepSession bool + KeepSessionCookieName string + KeepSessionDuration int + KeepSessionType string + ListenerPort uint16 + RedirectPort uint16 + Scheduler string + ServerTimeout int + UnhealthyThreshold int + XForwardedFor bool + type UpdateHTTPSListenerArgs struct + BackendPort uint16 + CertIds []string + ClientToken string + HealthCheckInterval int + HealthCheckNormalStatus string + HealthCheckPort uint16 + HealthCheckTimeoutInSecond int + HealthCheckType string + HealthCheckURI string + HealthyThreshold int + Ie6Compatible bool + KeepSession bool + KeepSessionCookieName string + KeepSessionDuration int + KeepSessionType string + ListenerPort uint16 + Scheduler string + ServerTimeout int + UnhealthyThreshold int + XForwardedFor bool + type UpdateListenerArgs struct + ClientToken string + ListenerPort uint16 + Scheduler string + TcpSessionTimeout int + type UpdateLoadBalancerArgs struct + ClientToken string + Description string + Name string + type UpdateSSLListenerArgs struct + BackendPort uint16 + CertIds []string + ClientCertIds []string + ClientToken string + DualAuth bool + EncryptionProtocols []string + EncryptionType string + HealthCheckInterval int + HealthCheckTimeoutInSecond int + HealthyThreshold int + Ie6Compatible bool + ListenerPort uint16 + Scheduler string + UnhealthyThreshold int + type UpdateTCPListenerArgs struct + BackendPort uint16 + ClientToken string + HealthCheckInterval int + HealthCheckTimeoutInSecond int + HealthyThreshold int + ListenerPort uint16 + Scheduler string + TcpSessionTimeout int + UnhealthyThreshold int + type UpdateUDPListenerArgs struct + BackendPort uint16 + ClientToken string + HealthCheckInterval int + HealthCheckString string + HealthCheckTimeoutInSecond int + HealthyThreshold int + ListenerPort uint16 + Scheduler string + UnhealthyThreshold int