Documentation ¶
Overview ¶
Package appblb defines the Application BLB services of BCE. The supported APIs are all defined in sub-package
Index ¶
- Constants
- type AppBLBModel
- type AppBackendServer
- type AppHTTPListenerModel
- type AppHTTPSListenerModel
- type AppIpGroup
- type AppIpGroupBackendPolicy
- type AppIpGroupMember
- type AppIpGroupMemberWriteOpArgs
- type AppListenerModel
- type AppPolicy
- type AppRsPortModel
- type AppRule
- type AppSSLListenerModel
- type AppServerGroup
- type AppServerGroupPort
- type AppTCPListenerModel
- type AppUDPListenerModel
- type BLBStatus
- type BlbRsWriteOpArgs
- type Client
- func (c *Client) CreateAppHTTPListener(blbId string, args *CreateAppHTTPListenerArgs) error
- func (c *Client) CreateAppHTTPSListener(blbId string, args *CreateAppHTTPSListenerArgs) error
- func (c *Client) CreateAppIpGroup(blbId string, args *CreateAppIpGroupArgs) (*CreateAppIpGroupResult, error)
- func (c *Client) CreateAppIpGroupBackendPolicy(blbId string, args *CreateAppIpGroupBackendPolicyArgs) error
- func (c *Client) CreateAppIpGroupMember(blbId string, args *CreateAppIpGroupMemberArgs) error
- func (c *Client) CreateAppSSLListener(blbId string, args *CreateAppSSLListenerArgs) error
- func (c *Client) CreateAppServerGroup(blbId string, args *CreateAppServerGroupArgs) (*CreateAppServerGroupResult, error)
- func (c *Client) CreateAppServerGroupPort(blbId string, args *CreateAppServerGroupPortArgs) (*CreateAppServerGroupPortResult, error)
- func (c *Client) CreateAppTCPListener(blbId string, args *CreateAppTCPListenerArgs) error
- func (c *Client) CreateAppUDPListener(blbId string, args *CreateAppUDPListenerArgs) error
- func (c *Client) CreateBlbRs(blbId string, args *CreateBlbRsArgs) error
- func (c *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (*CreateLoadBalanceResult, error)
- func (c *Client) CreatePolicys(blbId string, args *CreatePolicysArgs) error
- func (c *Client) DeleteAppIpGroup(blbId string, args *DeleteAppIpGroupArgs) error
- func (c *Client) DeleteAppIpGroupBackendPolicy(blbId string, args *DeleteAppIpGroupBackendPolicyArgs) error
- func (c *Client) DeleteAppIpGroupMember(blbId string, args *DeleteAppIpGroupMemberArgs) error
- func (c *Client) DeleteAppListeners(blbId string, args *DeleteAppListenersArgs) error
- func (c *Client) DeleteAppServerGroup(blbId string, args *DeleteAppServerGroupArgs) error
- func (c *Client) DeleteAppServerGroupPort(blbId string, args *DeleteAppServerGroupPortArgs) error
- func (c *Client) DeleteBlbRs(blbId string, args *DeleteBlbRsArgs) error
- func (c *Client) DeleteLoadBalancer(blbId string) error
- func (c *Client) DeletePolicys(blbId string, args *DeletePolicysArgs) error
- func (c *Client) DescribeAppHTTPListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppHTTPListenersResult, error)
- func (c *Client) DescribeAppHTTPSListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppHTTPSListenersResult, error)
- func (c *Client) DescribeAppIpGroup(blbId string, args *DescribeAppIpGroupArgs) (*DescribeAppIpGroupResult, error)
- func (c *Client) DescribeAppIpGroupMember(blbId string, args *DescribeAppIpGroupMemberArgs) (*DescribeAppIpGroupMemberResult, error)
- func (c *Client) DescribeAppSSLListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppSSLListenersResult, error)
- func (c *Client) DescribeAppServerGroup(blbId string, args *DescribeAppServerGroupArgs) (*DescribeAppServerGroupResult, error)
- func (c *Client) DescribeAppTCPListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppTCPListenersResult, error)
- func (c *Client) DescribeAppUDPListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppUDPListenersResult, error)
- func (c *Client) DescribeBlbRs(blbId string, args *DescribeBlbRsArgs) (*DescribeBlbRsResult, error)
- func (c *Client) DescribeLoadBalancerDetail(blbId string) (*DescribeLoadBalancerDetailResult, error)
- func (c *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (*DescribeLoadBalancersResult, error)
- func (c *Client) DescribePolicys(blbId string, args *DescribePolicysArgs) (*DescribePolicysResult, error)
- func (c *Client) DescribeRsMount(blbId, sgId string) (*DescribeRsMountResult, error)
- func (c *Client) DescribeRsUnMount(blbId, sgId string) (*DescribeRsMountResult, error)
- func (c *Client) UpdateAppHTTPListener(blbId string, args *UpdateAppHTTPListenerArgs) error
- func (c *Client) UpdateAppHTTPSListener(blbId string, args *UpdateAppHTTPSListenerArgs) error
- func (c *Client) UpdateAppIpGroup(blbId string, args *UpdateAppIpGroupArgs) error
- func (c *Client) UpdateAppIpGroupBackendPolicy(blbId string, args *UpdateAppIpGroupBackendPolicyArgs) error
- func (c *Client) UpdateAppIpGroupMember(blbId string, args *UpdateAppIpGroupMemberArgs) error
- func (c *Client) UpdateAppSSLListener(blbId string, args *UpdateAppSSLListenerArgs) error
- func (c *Client) UpdateAppServerGroup(blbId string, args *UpdateAppServerGroupArgs) error
- func (c *Client) UpdateAppServerGroupPort(blbId string, args *UpdateAppServerGroupPortArgs) error
- func (c *Client) UpdateAppTCPListener(blbId string, args *UpdateAppTCPListenerArgs) error
- func (c *Client) UpdateAppUDPListener(blbId string, args *UpdateAppUDPListenerArgs) error
- func (c *Client) UpdateBlbRs(blbId string, args *UpdateBlbRsArgs) error
- func (c *Client) UpdateLoadBalancer(blbId string, args *UpdateLoadBalancerArgs) error
- type CreateAppHTTPListenerArgs
- type CreateAppHTTPSListenerArgs
- type CreateAppIpGroupArgs
- type CreateAppIpGroupBackendPolicyArgs
- type CreateAppIpGroupMemberArgs
- type CreateAppIpGroupResult
- type CreateAppSSLListenerArgs
- type CreateAppServerGroupArgs
- type CreateAppServerGroupPortArgs
- type CreateAppServerGroupPortResult
- type CreateAppServerGroupResult
- type CreateAppTCPListenerArgs
- type CreateAppUDPListenerArgs
- type CreateBlbRsArgs
- type CreateLoadBalanceResult
- type CreateLoadBalancerArgs
- type CreatePolicysArgs
- type DeleteAppIpGroupArgs
- type DeleteAppIpGroupBackendPolicyArgs
- type DeleteAppIpGroupMemberArgs
- type DeleteAppListenersArgs
- type DeleteAppServerGroupArgs
- type DeleteAppServerGroupPortArgs
- type DeleteBlbRsArgs
- type DeletePolicysArgs
- type DescribeAppHTTPListenersResult
- type DescribeAppHTTPSListenersResult
- type DescribeAppIpGroupArgs
- type DescribeAppIpGroupMemberArgs
- type DescribeAppIpGroupMemberResult
- type DescribeAppIpGroupResult
- type DescribeAppListenerArgs
- type DescribeAppSSLListenersResult
- type DescribeAppServerGroupArgs
- type DescribeAppServerGroupResult
- type DescribeAppTCPListenersResult
- type DescribeAppUDPListenersResult
- type DescribeBlbRsArgs
- type DescribeBlbRsResult
- type DescribeLoadBalancerDetailResult
- type DescribeLoadBalancersArgs
- type DescribeLoadBalancersResult
- type DescribePolicysArgs
- type DescribePolicysResult
- type DescribeResultMeta
- type DescribeRsMountResult
- type ListenerModel
- type UpdateAppHTTPListenerArgs
- type UpdateAppHTTPSListenerArgs
- type UpdateAppIpGroupArgs
- type UpdateAppIpGroupBackendPolicyArgs
- type UpdateAppIpGroupMemberArgs
- type UpdateAppListenerArgs
- type UpdateAppSSLListenerArgs
- type UpdateAppServerGroupArgs
- type UpdateAppServerGroupPortArgs
- type UpdateAppTCPListenerArgs
- type UpdateAppUDPListenerArgs
- type UpdateBlbRsArgs
- type UpdateLoadBalancerArgs
Constants ¶
const ( DEFAULT_SERVICE_DOMAIN = "blb." + bce.DEFAULT_REGION + ".baidubce.com" URI_PREFIX = bce.URI_PREFIX + "v1" REQUEST_APPBLB_URL = "/appblb" APP_SERVER_GROUP_URL = "/appservergroup" APP_SERVER_GROUP_PORT_URL = "/appservergroupport" BLB_RS_URL = "/blbrs" BLB_RS_MOUNT_URL = "/blbrsmount" BLB_RS_UNMOUNT_URL = "/blbrsunmount" APP_LISTENER_URL = "/listener" APP_TCPLISTENER_URL = "/TCPlistener" APP_UDPLISTENER_URL = "/UDPlistener" APP_HTTPLISTENER_URL = "/HTTPlistener" APP_HTTPSLISTENER_URL = "/HTTPSlistener" APP_SSLLISTENER_URL = "/SSLlistener" POLICYS_URL = "/policys" APP_IP_GROUP_URL = "/ipgroup" APP_IP_GROUP_BACKEND_POLICY_URL = "/ipgroup/backendpolicy" APP_IP_GROUP_MEMBER_URL = "/ipgroup/member" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppBLBModel ¶
type AppBLBModel 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"` }
type AppBackendServer ¶
type AppBackendServer struct { InstanceId string `json:"instanceId,omitempty"` Weight int `json:"weight,omitempty"` PrivateIp string `json:"privateIp,omitempty"` PortList []AppRsPortModel `json:"portList,omitempty"` }
type AppHTTPListenerModel ¶
type AppHTTPListenerModel struct { ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession"` KeepSessionType string `json:"keepSessionType"` KeepSessionTimeout int `json:"keepSessionTimeout"` KeepSessionCookieName string `json:"keepSessionCookieName"` XForwardedFor bool `json:"xForwardedFor"` ServerTimeout int `json:"serverTimeout"` RedirectPort int `json:"redirectPort"` }
type AppHTTPSListenerModel ¶
type AppHTTPSListenerModel struct { ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession"` KeepSessionType string `json:"keepSessionType"` KeepSessionTimeout int `json:"keepSessionTimeout"` KeepSessionCookieName string `json:"keepSessionCookieName"` XForwardedFor bool `json:"xForwardedFor"` ServerTimeout int `json:"serverTimeout"` CertIds []string `json:"certIds"` Ie6Compatible bool `json:"ie6Compatible"` EncryptionType string `json:"encryptionType"` EncryptionProtocols []string `json:"encryptionProtocols"` DualAuth bool `json:"dualAuth"` ClientCertIds []string `json:"clientCertIds"` }
type AppIpGroup ¶ added in v0.9.37
type AppIpGroup struct { Id string `json:"id"` Name string `json:"name"` Desc string `json:"desc"` BackendPolicyList []AppIpGroupBackendPolicy `json:"backendPolicyList"` }
type AppIpGroupBackendPolicy ¶ added in v0.9.37
type AppIpGroupBackendPolicy struct { Id string `json:"id"` Type string `json:"type"` HealthCheck string `json:"healthCheck"` HealthCheckPort int `json:"healthCheckPort"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond"` HealthCheckDownRetry int `json:"healthCheckDownRetry"` HealthCheckUpRetry int `json:"healthCheckUpRetry"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus"` HealthCheckUrlPath string `json:"healthCheckUrlPath"` UdpHealthCheckString string `json:"udpHealthCheckString"` }
type AppIpGroupMember ¶ added in v0.9.37
type AppIpGroupMemberWriteOpArgs ¶ added in v0.9.37
type AppIpGroupMemberWriteOpArgs struct { IpGroupId string `json:"ipGroupId"` MemberList []AppIpGroupMember `json:"memberList"` ClientToken string `json:"-"` }
type AppListenerModel ¶
type AppPolicy ¶
type AppPolicy struct { Description string `json:"desc"` AppServerGroupId string `json:"appServerGroupId"` AppIpGroupId string `json:"appIpGroupId"` AppIpGroupName string `json:"appIpGroupName"` GroupType string `json:"groupType"` BackendPort uint16 `json:"backendPort,omitempty"` Priority int `json:"priority"` RuleList []AppRule `json:"ruleList"` Id string `json:"id"` FrontendPort int `json:"frontendPort"` AppServerGroupName string `json:"appServerGroupName"` PortType string `json:"portType"` }
type AppRsPortModel ¶
type AppSSLListenerModel ¶
type AppSSLListenerModel struct { ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` CertIds []string `json:"certIds"` Ie6Compatible bool `json:"ie6Compatible"` EncryptionType string `json:"encryptionType"` EncryptionProtocols []string `json:"encryptionProtocols"` DualAuth bool `json:"dualAuth"` ClientCertIds []string `json:"clientCertIds"` }
type AppServerGroup ¶
type AppServerGroup struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"desc"` Status BLBStatus `json:"status"` PortList []AppServerGroupPort `json:"portList"` }
type AppServerGroupPort ¶
type AppServerGroupPort struct { Id string `json:"id"` Port int `json:"port"` Type string `json:"type"` Status BLBStatus `json:"status"` HealthCheck string `json:"healthCheck"` HealthCheckPort int `json:"healthCheckPort"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"` HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond"` HealthCheckDownRetry int `json:"healthCheckDownRetry"` HealthCheckUpRetry int `json:"healthCheckUpRetry"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus"` HealthCheckUrlPath string `json:"healthCheckUrlPath"` UdpHealthCheckString string `json:"udpHealthCheckString"` }
type AppTCPListenerModel ¶
type AppTCPListenerModel struct {
AppListenerModel
}
type AppUDPListenerModel ¶
type AppUDPListenerModel struct {
AppListenerModel
}
type BlbRsWriteOpArgs ¶
type BlbRsWriteOpArgs struct { SgId string `json:"sgId"` BackendServerList []AppBackendServer `json:"backendServerList"` ClientToken string `json:"-"` }
type Client ¶
Client of APPBLB service is a kind of BceClient, so derived from BceClient
func (*Client) CreateAppHTTPListener ¶
func (c *Client) CreateAppHTTPListener(blbId string, args *CreateAppHTTPListenerArgs) error
CreateAppHTTPListener - 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) CreateAppHTTPSListener ¶
func (c *Client) CreateAppHTTPSListener(blbId string, args *CreateAppHTTPSListenerArgs) error
CreateAppHTTPSListener - 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) CreateAppIpGroup ¶ added in v0.9.37
func (c *Client) CreateAppIpGroup(blbId string, args *CreateAppIpGroupArgs) (*CreateAppIpGroupResult, error)
CreateAppIpGroup - create an ip group
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create IpGroup
RETURNS:
- *CreateAppIpGroupResult: the result of create IpGroup, contains new IpGroup's ID
- error: nil if ok otherwise the specific error
func (*Client) CreateAppIpGroupBackendPolicy ¶ added in v0.9.37
func (c *Client) CreateAppIpGroupBackendPolicy(blbId string, args *CreateAppIpGroupBackendPolicyArgs) error
CreateAppIpGroupBackendPolicy - create an ip group backend policy
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create an ip group backend policy
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateAppIpGroupMember ¶ added in v0.9.37
func (c *Client) CreateAppIpGroupMember(blbId string, args *CreateAppIpGroupMemberArgs) error
CreateAppIpGroupMember - create ip group members
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create ip group members
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) CreateAppSSLListener ¶
func (c *Client) CreateAppSSLListener(blbId string, args *CreateAppSSLListenerArgs) 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) CreateAppServerGroup ¶
func (c *Client) CreateAppServerGroup(blbId string, args *CreateAppServerGroupArgs) (*CreateAppServerGroupResult, error)
CreateAppServerGroup - create a LoadBalancer
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create ServerGroup
RETURNS:
- *CreateAppServerGroupResult: the result of create ServerGroup, contains new ServerGroup's ID
- error: nil if ok otherwise the specific error
func (*Client) CreateAppServerGroupPort ¶
func (c *Client) CreateAppServerGroupPort(blbId string, args *CreateAppServerGroupPortArgs) (*CreateAppServerGroupPortResult, error)
CreateAppServerGroupPort - create a server group port
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create a server group port
RETURNS:
- *CreateAppServerGroupPortResult: the result of create a server group port
- error: nil if ok otherwise the specific error
func (*Client) CreateAppTCPListener ¶
func (c *Client) CreateAppTCPListener(blbId string, args *CreateAppTCPListenerArgs) error
CreateAppTCPListener - 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) CreateAppUDPListener ¶
func (c *Client) CreateAppUDPListener(blbId string, args *CreateAppUDPListenerArgs) error
CreateAppUDPListener - 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) CreateBlbRs ¶
func (c *Client) CreateBlbRs(blbId string, args *CreateBlbRsArgs) error
CreateBlbRs - 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) CreateLoadBalancer ¶
func (c *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (*CreateLoadBalanceResult, error)
CreateLoadBalancer - create a LoadBalancer
PARAMS:
- args: parameters to create LoadBalancer
RETURNS:
- *CreateLoadBalanceResult: the result of create LoadBalancer, contains new LoadBalancer's ID
- error: nil if ok otherwise the specific error
func (*Client) CreatePolicys ¶
func (c *Client) CreatePolicys(blbId string, args *CreatePolicysArgs) error
CreatePolicys - create a policy bind with Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create a policy
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteAppIpGroup ¶ added in v0.9.37
func (c *Client) DeleteAppIpGroup(blbId string, args *DeleteAppIpGroupArgs) error
DeleteAppIpGroup - delete an ip group
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete an ip group
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteAppIpGroupBackendPolicy ¶ added in v0.9.37
func (c *Client) DeleteAppIpGroupBackendPolicy(blbId string, args *DeleteAppIpGroupBackendPolicyArgs) error
DeleteAppIpGroupBackendPolicy - delete an ip group backend policy
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete ip group backend policies
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteAppIpGroupMember ¶ added in v0.9.37
func (c *Client) DeleteAppIpGroupMember(blbId string, args *DeleteAppIpGroupMemberArgs) error
DeleteAppIpGroupMember - delete ip group members
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete ip group members
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteAppListeners ¶
func (c *Client) DeleteAppListeners(blbId string, args *DeleteAppListenersArgs) error
DeleteAppListeners - 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) DeleteAppServerGroup ¶
func (c *Client) DeleteAppServerGroup(blbId string, args *DeleteAppServerGroupArgs) error
DeleteAppServerGroup - delete a server group
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete a server group
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteAppServerGroupPort ¶
func (c *Client) DeleteAppServerGroupPort(blbId string, args *DeleteAppServerGroupPortArgs) error
DeleteAppServerGroupPort - delete server group ports
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete server group ports
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteBlbRs ¶
func (c *Client) DeleteBlbRs(blbId string, args *DeleteBlbRsArgs) error
DeleteBlbRs - delete backend servers
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete backend servers
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeleteLoadBalancer ¶
DeleteLoadBalancer - delete a group
PARAMS:
- blbId: parameters to delete LoadBalancer
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DeletePolicys ¶
func (c *Client) DeletePolicys(blbId string, args *DeletePolicysArgs) error
DeletePolicys - delete a policy
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to delete a policy
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppHTTPListeners ¶
func (c *Client) DescribeAppHTTPListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppHTTPListenersResult, error)
DescribeAppHTTPListeners - describe all HTTP Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all HTTP Listeners
RETURNS:
- *DescribeAppHTTPListenersResult: the result of describe all HTTP Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppHTTPSListeners ¶
func (c *Client) DescribeAppHTTPSListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppHTTPSListenersResult, error)
DescribeAppHTTPSListeners - describe all HTTPS Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all HTTPS Listeners
RETURNS:
- *DescribeAppHTTPSListenersResult: the result of describe all HTTPS Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppIpGroup ¶ added in v0.9.37
func (c *Client) DescribeAppIpGroup(blbId string, args *DescribeAppIpGroupArgs) (*DescribeAppIpGroupResult, error)
DescribeAppIpGroup - describe all ip groups
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all ip groups
RETURNS:
- *DescribeAppIpGroupResult: the result of describe all ip groups
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppIpGroupMember ¶ added in v0.9.37
func (c *Client) DescribeAppIpGroupMember(blbId string, args *DescribeAppIpGroupMemberArgs) (*DescribeAppIpGroupMemberResult, error)
DescribeAppIpGroupMember - describe ip group members
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe ip group members
RETURNS:
- *DescribeAppIpGroupMemberResult: the result of describe ip group members
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppSSLListeners ¶
func (c *Client) DescribeAppSSLListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppSSLListenersResult, error)
DescribeAppSSLListeners - describe all SSL Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all SSL Listeners
RETURNS:
- *DescribeAppSSLListenersResult: the result of describe all SSL Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppServerGroup ¶
func (c *Client) DescribeAppServerGroup(blbId string, args *DescribeAppServerGroupArgs) (*DescribeAppServerGroupResult, error)
DescribeAppServerGroup - describe all server groups
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all server groups
RETURNS:
- *DescribeAppServerGroupResult: the result of describe all server groups
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppTCPListeners ¶
func (c *Client) DescribeAppTCPListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppTCPListenersResult, error)
DescribeAppTCPListeners - describe all TCP Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all TCP Listeners
RETURNS:
- *DescribeAppTCPListenersResult: the result of describe all TCP Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeAppUDPListeners ¶
func (c *Client) DescribeAppUDPListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppUDPListenersResult, error)
DescribeAppUDPListeners - describe all UDP Listeners
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe all UDP Listeners
RETURNS:
- *DescribeAppUDPListenersResult: the result of describe all UDP Listeners
- error: nil if ok otherwise the specific error
func (*Client) DescribeBlbRs ¶
func (c *Client) DescribeBlbRs(blbId string, args *DescribeBlbRsArgs) (*DescribeBlbRsResult, error)
DescribeBlbRs - describe backend servers
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to describe backend servers
RETURNS:
- *DescribeBlbRsResult: the result of describe backend servers
- 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) DescribePolicys ¶
func (c *Client) DescribePolicys(blbId string, args *DescribePolicysArgs) (*DescribePolicysResult, error)
DescribePolicys - descirbe a policy
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to create a policy
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) DescribeRsMount ¶
func (c *Client) DescribeRsMount(blbId, sgId string) (*DescribeRsMountResult, error)
DescribeRsMount - get all mount backend server list
PARAMS:
- blbId: LoadBalancer's ID
- sgId: ServerGroup's ID
RETURNS:
- *DescribeRsMountResult: the mount backend server list
- error: nil if ok otherwise the specific error
func (*Client) DescribeRsUnMount ¶
func (c *Client) DescribeRsUnMount(blbId, sgId string) (*DescribeRsMountResult, error)
DescribeRsUnMount - get all unmount backend server list
PARAMS:
- blbId: LoadBalancer's ID
- sgId: ServerGroup's ID
RETURNS:
- *DescribeRsMountResult: the unMount backend server list
- error: nil if ok otherwise the specific error
func (*Client) UpdateAppHTTPListener ¶
func (c *Client) UpdateAppHTTPListener(blbId string, args *UpdateAppHTTPListenerArgs) error
UpdateAppHTTPListener - 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) UpdateAppHTTPSListener ¶
func (c *Client) UpdateAppHTTPSListener(blbId string, args *UpdateAppHTTPSListenerArgs) error
UpdateAppHTTPSListener - 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) UpdateAppIpGroup ¶ added in v0.9.37
func (c *Client) UpdateAppIpGroup(blbId string, args *UpdateAppIpGroupArgs) error
UpdateAppIpGroup - update an ip group
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update an ip group
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateAppIpGroupBackendPolicy ¶ added in v0.9.37
func (c *Client) UpdateAppIpGroupBackendPolicy(blbId string, args *UpdateAppIpGroupBackendPolicyArgs) error
UpdateAppIpGroupBackendPolicy - update ip group backend policy
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update ip group backend policy
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateAppIpGroupMember ¶ added in v0.9.37
func (c *Client) UpdateAppIpGroupMember(blbId string, args *UpdateAppIpGroupMemberArgs) error
UpdateAppIpGroupMember - update ip group members
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update ip group members
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateAppSSLListener ¶
func (c *Client) UpdateAppSSLListener(blbId string, args *UpdateAppSSLListenerArgs) error
UpdateAppSSLListener - 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) UpdateAppServerGroup ¶
func (c *Client) UpdateAppServerGroup(blbId string, args *UpdateAppServerGroupArgs) error
UpdateAppServerGroup - update a server group
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update a server group
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateAppServerGroupPort ¶
func (c *Client) UpdateAppServerGroupPort(blbId string, args *UpdateAppServerGroupPortArgs) error
UpdateAppServerGroupPort - update server group port
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update server group port
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateAppTCPListener ¶
func (c *Client) UpdateAppTCPListener(blbId string, args *UpdateAppTCPListenerArgs) error
UpdateAppTCPListener - 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) UpdateAppUDPListener ¶
func (c *Client) UpdateAppUDPListener(blbId string, args *UpdateAppUDPListenerArgs) error
UpdateAppUDPListener - update a UDP Listener
PARAMS:
- blbId: LoadBalancer's ID
- args: parameters to update UDP Listener
RETURNS:
- error: nil if ok otherwise the specific error
func (*Client) UpdateBlbRs ¶
func (c *Client) UpdateBlbRs(blbId string, args *UpdateBlbRsArgs) error
UpdateBlbRs - 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) 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
type CreateAppHTTPListenerArgs ¶
type CreateAppHTTPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionTimeout int `json:"keepSessionTimeout,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` RedirectPort uint16 `json:"redirectPort,omitempty"` }
type CreateAppHTTPSListenerArgs ¶
type CreateAppHTTPSListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionTimeout int `json:"keepSessionTimeout,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` CertIds []string `json:"certIds"` Ie6Compatible bool `json:"ie6Compatible,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type CreateAppIpGroupArgs ¶ added in v0.9.37
type CreateAppIpGroupArgs struct { Name string `json:"name,omitempty"` Desc string `json:"desc,omitempty"` MemberList []AppIpGroupMember `json:"memberList,omitempty"` ClientToken string `json:"-"` }
type CreateAppIpGroupBackendPolicyArgs ¶ added in v0.9.37
type CreateAppIpGroupBackendPolicyArgs struct { ClientToken string `json:"-"` IpGroupId string `json:"ipGroupId"` Type string `json:"type"` HealthCheckPort int `json:"healthCheckPort,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond,omitempty"` HealthCheckDownRetry int `json:"healthCheckDownRetry,omitempty"` HealthCheckUpRetry int `json:"healthCheckUpRetry,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` HealthCheckUrlPath string `json:"healthCheckUrlPath,omitempty"` UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"` }
type CreateAppIpGroupMemberArgs ¶ added in v0.9.37
type CreateAppIpGroupMemberArgs struct {
AppIpGroupMemberWriteOpArgs
}
type CreateAppIpGroupResult ¶ added in v0.9.37
type CreateAppSSLListenerArgs ¶
type CreateAppSSLListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` CertIds []string `json:"certIds"` Ie6Compatible bool `json:"ie6Compatible,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type CreateAppServerGroupArgs ¶
type CreateAppServerGroupArgs struct { Name string `json:"name,omitempty"` Description string `json:"desc,omitempty"` BackendServerList []AppBackendServer `json:"backendServerList,omitempty"` ClientToken string `json:"-"` }
type CreateAppServerGroupPortArgs ¶
type CreateAppServerGroupPortArgs struct { ClientToken string `json:"-"` SgId string `json:"sgId"` Port uint16 `json:"port"` Type string `json:"type"` HealthCheck string `json:"healthCheck,omitempty"` HealthCheckPort int `json:"healthCheckPort,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond,omitempty"` HealthCheckDownRetry int `json:"healthCheckDownRetry,omitempty"` HealthCheckUpRetry int `json:"healthCheckUpRetry,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` HealthCheckUrlPath string `json:"healthCheckUrlPath,omitempty"` UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"` }
type CreateBlbRsArgs ¶
type CreateBlbRsArgs struct {
BlbRsWriteOpArgs
}
type CreateLoadBalanceResult ¶
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"` Tags []model.TagModel `json:"tags,omitempty"` }
type CreatePolicysArgs ¶
type DeleteAppIpGroupArgs ¶ added in v0.9.37
type DeleteAppIpGroupBackendPolicyArgs ¶ added in v0.9.37
type DeleteAppIpGroupMemberArgs ¶ added in v0.9.37
type DeleteAppListenersArgs ¶
type DeleteBlbRsArgs ¶
type DeletePolicysArgs ¶
type DescribeAppHTTPListenersResult ¶
type DescribeAppHTTPListenersResult struct { ListenerList []AppHTTPListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeAppHTTPSListenersResult ¶
type DescribeAppHTTPSListenersResult struct { ListenerList []AppHTTPSListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeAppIpGroupArgs ¶ added in v0.9.37
type DescribeAppIpGroupMemberArgs ¶ added in v0.9.37
type DescribeAppIpGroupMemberResult ¶ added in v0.9.37
type DescribeAppIpGroupMemberResult struct { MemberList []AppIpGroupMember `json:"memberList"` DescribeResultMeta }
type DescribeAppIpGroupResult ¶ added in v0.9.37
type DescribeAppIpGroupResult struct { DescribeResultMeta AppIpGroupList []AppIpGroup `json:"appIpGroupList"` }
type DescribeAppListenerArgs ¶
type DescribeAppSSLListenersResult ¶
type DescribeAppSSLListenersResult struct { ListenerList []AppSSLListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeAppServerGroupResult ¶
type DescribeAppServerGroupResult struct { DescribeResultMeta AppServerGroupList []AppServerGroup `json:"appServerGroupList"` }
type DescribeAppTCPListenersResult ¶
type DescribeAppTCPListenersResult struct { ListenerList []AppTCPListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeAppUDPListenersResult ¶
type DescribeAppUDPListenersResult struct { ListenerList []AppUDPListenerModel `json:"listenerList"` DescribeResultMeta }
type DescribeBlbRsArgs ¶
type DescribeBlbRsResult ¶
type DescribeBlbRsResult struct { BackendServerList []AppBackendServer `json:"backendServerList"` DescribeResultMeta }
type DescribeLoadBalancerDetailResult ¶
type DescribeLoadBalancerDetailResult struct { BlbId string `json:"blbId"` Status BLBStatus `json:"status"` Description string `json:"desc"` Address string `json:"address"` PublicIp string `json:"publicIp"` Cidr string `json:"cidr"` VpcName string `json:"vpcName"` SubnetCider string `json:"subnetCider"` SubnetName string `json:"subnetName"` CreateTime string `json:"createTime"` ReleaseTime string `json:"releaseTime"` Layer4ClusterId string `json:"layer4ClusterId"` Layer7ClusterId string `json:"layer7ClusterId"` Listener []ListenerModel `json:"listener"` Tags []model.TagModel `json:"tags"` }
type DescribeLoadBalancersResult ¶
type DescribeLoadBalancersResult struct { BlbList []AppBLBModel `json:"blbList"` DescribeResultMeta }
type DescribePolicysArgs ¶
type DescribePolicysResult ¶
type DescribePolicysResult struct { PolicyList []AppPolicy `json:"policyList"` DescribeResultMeta }
type DescribeResultMeta ¶
type DescribeRsMountResult ¶
type DescribeRsMountResult struct {
BackendServerList []AppBackendServer `json:"backendServerList"`
}
type ListenerModel ¶
type UpdateAppHTTPListenerArgs ¶
type UpdateAppHTTPListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"-"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionTimeout int `json:"keepSessionTimeout,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` RedirectPort uint16 `json:"redirectPort,omitempty"` }
type UpdateAppHTTPSListenerArgs ¶
type UpdateAppHTTPSListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"listenerPort"` Scheduler string `json:"scheduler"` KeepSession bool `json:"keepSession,omitempty"` KeepSessionType string `json:"keepSessionType,omitempty"` KeepSessionTimeout int `json:"keepSessionTimeout,omitempty"` KeepSessionCookieName string `json:"keepSessionCookieName,omitempty"` XForwardedFor bool `json:"xForwardedFor,omitempty"` ServerTimeout int `json:"serverTimeout,omitempty"` CertIds []string `json:"certIds"` Ie6Compatible bool `json:"ie6Compatible,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type UpdateAppIpGroupArgs ¶ added in v0.9.37
type UpdateAppIpGroupBackendPolicyArgs ¶ added in v0.9.37
type UpdateAppIpGroupBackendPolicyArgs struct { ClientToken string `json:"-"` IpGroupId string `json:"ipGroupId"` Id string `json:"id"` HealthCheckPort int `json:"healthCheckPort,omitempty"` HealthCheckUrlPath string `json:"healthCheckUrlPath,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond,omitempty"` HealthCheckDownRetry int `json:"healthCheckDownRetry,omitempty"` HealthCheckUpRetry int `json:"healthCheckUpRetry,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"` }
type UpdateAppIpGroupMemberArgs ¶ added in v0.9.37
type UpdateAppIpGroupMemberArgs struct {
AppIpGroupMemberWriteOpArgs
}
type UpdateAppListenerArgs ¶
type UpdateAppSSLListenerArgs ¶
type UpdateAppSSLListenerArgs struct { ClientToken string `json:"-"` ListenerPort uint16 `json:"-"` Scheduler string `json:"scheduler"` CertIds []string `json:"certIds"` Ie6Compatible bool `json:"ie6Compatible,omitempty"` EncryptionType string `json:"encryptionType,omitempty"` EncryptionProtocols []string `json:"encryptionProtocols,omitempty"` DualAuth bool `json:"dualAuth,omitempty"` ClientCertIds []string `json:"clientCertIds,omitempty"` }
type UpdateAppServerGroupPortArgs ¶
type UpdateAppServerGroupPortArgs struct { ClientToken string `json:"-"` SgId string `json:"sgId"` PortId string `json:"portId"` HealthCheck string `json:"healthCheck,omitempty"` HealthCheckPort int `json:"healthCheckPort,omitempty"` HealthCheckUrlPath string `json:"healthCheckUrlPath,omitempty"` HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"` HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond,omitempty"` HealthCheckDownRetry int `json:"healthCheckDownRetry,omitempty"` HealthCheckUpRetry int `json:"healthCheckUpRetry,omitempty"` HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"` UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"` }
type UpdateAppTCPListenerArgs ¶
type UpdateAppTCPListenerArgs struct {
UpdateAppListenerArgs
}
type UpdateAppUDPListenerArgs ¶
type UpdateAppUDPListenerArgs struct {
UpdateAppListenerArgs
}
type UpdateBlbRsArgs ¶
type UpdateBlbRsArgs struct {
BlbRsWriteOpArgs
}