appblb

package
v0.9.197 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Overview

Package appblb defines the Application BLB services of BCE. The supported APIs are all defined in sub-package

Index

Constants

View Source
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"

	SECURITY_GROUP_URL            = "/securitygroup"
	ENTERPRISE_SECURITY_GROUP_URL = "/enterprise/securitygroup"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppAllListenerModel added in v0.9.87

type AppAllListenerModel struct {
	ListenerPort          uint16 `json:"listenerPort"`
	ListenerType          string `json:"listenerType"`
	Scheduler             string `json:"scheduler"`
	TcpSessionTimeout     int    `json:"tcpSessionTimeout"`
	UdpSessionTimeout     int    `json:"udpSessionTimeout"`
	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"`
	CertIds             []string `json:"certIds"`
	EncryptionType      string   `json:"encryptionType"`
	EncryptionProtocols []string `json:"encryptionProtocols"`
	AppliedCiphers      string   `json:"appliedCiphers"`
	DualAuth            bool     `json:"dualAuth"`
	ClientCertIds       []string `json:"clientCertIds"`
	// contains filtered or unexported fields
}

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"`
	EipRouteType           string           `json:"eipRouteType"`
	AllowDelete            bool             `json:"allowDelete"`
	Layer4ClusterExclusive bool             `json:"layer4ClusterExclusive"`
	Layer7ClusterExclusive bool             `json:"layer7ClusterExclusive"`
}

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"`
	EncryptionType        string   `json:"encryptionType"`
	EncryptionProtocols   []string `json:"encryptionProtocols"`
	AppliedCiphers        string   `json:"appliedCiphers"`
	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 AppIpGroupMember struct {
	Ip       string                      `json:"ip,omitempty"`
	Port     int                         `json:"port,omitempty"`
	Weight   int                         `json:"weight,omitempty"`
	MemberId string                      `json:"memberId,omitempty"`
	PortList []AppIpGroupMemberPortModel `json:"portList,omitempty"`
}

type AppIpGroupMemberPortModel added in v0.9.138

type AppIpGroupMemberPortModel struct {
	HealthCheckPortType string `json:"healthCheckPortType"`
	Status              string `json:"status"`
}

type AppIpGroupMemberWriteOpArgs added in v0.9.37

type AppIpGroupMemberWriteOpArgs struct {
	IpGroupId   string             `json:"ipGroupId"`
	MemberList  []AppIpGroupMember `json:"memberList"`
	ClientToken string             `json:"-"`
}

type AppListenerModel

type AppListenerModel struct {
	Port              uint16 `json:"listenerPort"`
	Scheduler         string `json:"scheduler"`
	TcpSessionTimeout int    `json:"tcpSessionTimeout"`
	UdpSessionTimeout int    `json:"udpSessionTimeout"`
}

type AppPolicy

type AppPolicy struct {
	Description      string `json:"desc"`
	AppServerGroupId string `json:"appServerGroupId,omitempty"`
	AppIpGroupId     string `json:"appIpGroupId,omitempty"`
	AppIpGroupName   string `json:"appIpGroupName,omitempty"`
	GroupType        string `json:"groupType,omitempty"`

	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 AppRsPortModel struct {
	ListenerPort        int    `json:"listenerPort"`
	BackendPort         string `json:"backendPort"`
	PortType            string `json:"portType"`
	HealthCheckPortType string `json:"healthCheckPortType"`
	Status              string `json:"status"`
	PortId              string `json:"portId"`
	PolicyId            string `json:"policyId"`
}

type AppRule

type AppRule struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type AppSSLListenerModel

type AppSSLListenerModel struct {
	ListenerPort        uint16   `json:"listenerPort"`
	Scheduler           string   `json:"scheduler"`
	CertIds             []string `json:"certIds"`
	EncryptionType      string   `json:"encryptionType"`
	EncryptionProtocols []string `json:"encryptionProtocols"`
	AppliedCiphers      string   `json:"appliedCiphers"`
	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 BLBStatus

type BLBStatus string
const (
	BLBStatusCreating    BLBStatus = "creating"
	BLBStatusAvailable   BLBStatus = "available"
	BLBStatusUpdating    BLBStatus = "updating"
	BLBStatusPaused      BLBStatus = "paused"
	BLBStatusUnavailable BLBStatus = "unavailable"
)

type Billing added in v0.9.172

type Billing struct {
	PaymentTiming string       `json:"paymentTiming,omitempty"`
	Reservation   *Reservation `json:"reservation,omitempty"`
}

type BlbEnterpriseSecurityGroupModel added in v0.9.164

type BlbEnterpriseSecurityGroupModel struct {
	EnterpriseSecurityGroupId    string                                `json:"enterpriseSecurityGroupId"`
	EnterpriseSecurityGroupName  string                                `json:"enterpriseSecurityGroupName"`
	EnterpriseSecurityGroupDesc  string                                `json:"enterpriseSecurityGroupDesc"`
	EnterpriseSecurityGroupRules []BlbEnterpriseSecurityGroupRuleModel `json:"enterpriseSecurityGroupRules"`
}

type BlbEnterpriseSecurityGroupRuleModel added in v0.9.164

type BlbEnterpriseSecurityGroupRuleModel struct {
	EnterpriseSecurityGroupRuleId string `json:"enterpriseSecurityGroupRuleId"`
	Direction                     string `json:"direction"`
	Action                        string `json:"action"`
	Priority                      string `json:"priority"`
	Remark                        string `json:"remark"`
	Ethertype                     string `json:"ethertype,omitempty"`
	PortRange                     string `json:"portRange,omitempty"`
	Protocol                      string `json:"protocol,omitempty"`
	SourceIp                      string `json:"sourceIp,omitempty"`
	DestIp                        string `json:"destIp,omitempty"`
}

type BlbRsWriteOpArgs

type BlbRsWriteOpArgs struct {
	SgId              string             `json:"sgId"`
	BackendServerList []AppBackendServer `json:"backendServerList"`
	ClientToken       string             `json:"-"`
}

type BlbSecurityGroupModel added in v0.9.164

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.164

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

type Client struct {
	*bce.BceClient
}

Client of APPBLB service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endPoint string) (*Client, error)

func (*Client) BindEnterpriseSecurityGroups added in v0.9.164

func (c *Client) BindEnterpriseSecurityGroups(blbId string, args *UpdateEnterpriseSecurityGroupsArgs) error

BindEnterpriseSecurityGroups - bind the blb enterprise security groups (normal/application/ipv6 LoadBalancer)

PARAMS:

  • blbId: LoadBalancer's ID
  • args: the parameter to update enterprise security groups

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) BindSecurityGroups added in v0.9.164

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) 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

func (c *Client) DeleteLoadBalancer(blbId string) error

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) DescribeAppAllListeners added in v0.9.87

func (c *Client) DescribeAppAllListeners(blbId string, args *DescribeAppListenerArgs) (*DescribeAppAllListenersResult, error)

DescribeAppAllListeners - describe all Listeners

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to describe all Listeners

RETURNS:

  • *DescribeAppAllListenersResult: the result of describe all Listeners
  • 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) DescribeEnterpriseSecurityGroups added in v0.9.164

func (c *Client) DescribeEnterpriseSecurityGroups(blbId string) (*DescribeEnterpriseSecurityGroupsResult, error)

DescribeEnterpriseSecurityGroups - describe all enterprise security groups of the specified LoadBalancer (normal/application/ipv6 LoadBalancer)

PARAMS:

  • blbId: LoadBalancer's ID

RETURNS:

  • *DescribeEnterpriseSecurityGroupsResult: the result of describe all enterprise security groups
  • 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) DescribeSecurityGroups added in v0.9.164

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) UnbindEnterpriseSecurityGroups added in v0.9.164

func (c *Client) UnbindEnterpriseSecurityGroups(blbId string, args *UpdateEnterpriseSecurityGroupsArgs) error

UnbindEnterpriseSecurityGroups - unbind the blb enterprise security groups (normal/application/ipv6 LoadBalancer)

PARAMS:

  • blbId: LoadBalancer's ID
  • args: the parameter to update enterprise security groups

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UnbindSecurityGroups added in v0.9.164

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) 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"`
	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 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 CreateAppIpGroupResult struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Desc string `json:"desc"`
}

type CreateAppSSLListenerArgs

type CreateAppSSLListenerArgs struct {
	ClientToken         string   `json:"-"`
	ListenerPort        uint16   `json:"listenerPort"`
	Scheduler           string   `json:"scheduler"`
	CertIds             []string `json:"certIds"`
	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 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 CreateAppServerGroupPortResult

type CreateAppServerGroupPortResult struct {
	Id          string    `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"desc"`
	Status      BLBStatus `json:"status"`
}

type CreateAppServerGroupResult

type CreateAppServerGroupResult struct {
	Id          string    `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"desc"`
	Status      BLBStatus `json:"status"`
}

type CreateAppTCPListenerArgs

type CreateAppTCPListenerArgs struct {
	TcpSessionTimeout int    `json:"tcpSessionTimeout,omitempty"`
	ListenerPort      uint16 `json:"listenerPort"`
	Scheduler         string `json:"scheduler"`
	ClientToken       string `json:"-"`
}

type CreateAppUDPListenerArgs

type CreateAppUDPListenerArgs struct {
	UdpSessionTimeout int    `json:"udpSessionTimeout,omitempty"`
	ListenerPort      uint16 `json:"listenerPort"`
	Scheduler         string `json:"scheduler"`
	ClientToken       string `json:"-"`
}

type CreateBlbRsArgs

type CreateBlbRsArgs struct {
	BlbRsWriteOpArgs
}

type CreateLoadBalanceResult

type CreateLoadBalanceResult struct {
	Address     string `json:"address"`
	Name        string `json:"name"`
	Description string `json:"desc"`
	BlbId       string `json:"blbId"`
	Ipv6        string `json:"ipv6"`
}

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"`
	Address                string           `json:"address,omitempty"`
	Eip                    string           `json:"eip,omitempty"`
	ResourceGroupId        string           `json:"resourceGroupId,omitempty"`
	AutoRenewLength        int              `json:"autoRenewLength,omitempty"`
	AutoRenewTimeUnit      string           `json:"autoRenewTimeUnit,omitempty"`
	PerformanceLevel       string           `json:"performanceLevel,omitempty"`
	Billing                *Billing         `json:"billing,omitempty"`
	Tags                   []model.TagModel `json:"tags,omitempty"`
	AllowDelete            *bool            `json:"allowDelete,omitempty"`
	AllocateIpv6           *bool            `json:"allocateIpv6,omitempty"`
	Layer4ClusterExclusive *bool            `json:"layer4ClusterExclusive,omitempty"`
	Layer7ClusterExclusive *bool            `json:"layer7ClusterExclusive,omitempty"`
	Layer4ClusterId        string           `json:"layer4ClusterId,omitempty"`
	Layer7ClusterId        string           `json:"layer7ClusterId,omitempty"`
}

type CreatePolicysArgs

type CreatePolicysArgs struct {
	ClientToken  string      `json:"-"`
	ListenerPort uint16      `json:"listenerPort"`
	AppPolicyVos []AppPolicy `json:"appPolicyVos"`
	Type         string      `json:"type"`
}

type DeleteAppIpGroupArgs added in v0.9.37

type DeleteAppIpGroupArgs struct {
	IpGroupId   string `json:"ipGroupId"`
	ClientToken string `json:"-"`
}

type DeleteAppIpGroupBackendPolicyArgs added in v0.9.37

type DeleteAppIpGroupBackendPolicyArgs struct {
	IpGroupId           string   `json:"ipGroupId"`
	BackendPolicyIdList []string `json:"backendPolicyIdList"`
	ClientToken         string   `json:"-"`
}

type DeleteAppIpGroupMemberArgs added in v0.9.37

type DeleteAppIpGroupMemberArgs struct {
	IpGroupId    string   `json:"ipGroupId"`
	MemberIdList []string `json:"memberIdList"`
	ClientToken  string   `json:"-"`
}

type DeleteAppListenersArgs

type DeleteAppListenersArgs struct {
	ClientToken  string          `json:"-"`
	PortList     []uint16        `json:"portList"`
	PortTypeList []PortTypeModel `json:"portTypeList"`
}

type DeleteAppServerGroupArgs

type DeleteAppServerGroupArgs struct {
	SgId        string `json:"sgId"`
	ClientToken string `json:"-"`
}

type DeleteAppServerGroupPortArgs

type DeleteAppServerGroupPortArgs struct {
	SgId        string   `json:"sgId"`
	PortIdList  []string `json:"portIdList"`
	ClientToken string   `json:"-"`
}

type DeleteBlbRsArgs

type DeleteBlbRsArgs struct {
	SgId                string   `json:"sgId"`
	BackendServerIdList []string `json:"backendServerIdList"`
	ClientToken         string   `json:"-"`
}

type DeletePolicysArgs

type DeletePolicysArgs struct {
	ClientToken  string   `json:"-"`
	Port         uint16   `json:"port"`
	PolicyIdList []string `json:"policyIdList"`
	Type         string   `json:"type"`
}

type DescribeAppAllListenersResult added in v0.9.87

type DescribeAppAllListenersResult struct {
	ListenerList []AppAllListenerModel `json:"listenerList"`
	DescribeResultMeta
}

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 DescribeAppIpGroupArgs struct {
	Name         string
	ExactlyMatch bool
	Marker       string
	MaxKeys      int
}

type DescribeAppIpGroupMemberArgs added in v0.9.37

type DescribeAppIpGroupMemberArgs struct {
	Marker    string
	MaxKeys   int
	IpGroupId string
}

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 DescribeAppListenerArgs struct {
	ListenerPort uint16
	Marker       string
	MaxKeys      int
}

type DescribeAppSSLListenersResult

type DescribeAppSSLListenersResult struct {
	ListenerList []AppSSLListenerModel `json:"listenerList"`
	DescribeResultMeta
}

type DescribeAppServerGroupArgs

type DescribeAppServerGroupArgs struct {
	Name         string
	ExactlyMatch bool
	Marker       string
	MaxKeys      int
}

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 DescribeBlbRsArgs struct {
	Marker  string
	MaxKeys int
	SgId    string
}

type DescribeBlbRsResult

type DescribeBlbRsResult struct {
	BackendServerList []AppBackendServer `json:"backendServerList"`
	DescribeResultMeta
}

type DescribeEnterpriseSecurityGroupsResult added in v0.9.164

type DescribeEnterpriseSecurityGroupsResult struct {
	BlbEnterpriseSecurityGroups []BlbEnterpriseSecurityGroupModel `json:"enterpriseSecurityGroups"`
}

type DescribeLoadBalancerDetailResult

type DescribeLoadBalancerDetailResult struct {
	BlbId                  string           `json:"blbId"`
	Name                   string           `json:"name"`
	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"`
	EipRouteType           string           `json:"eipRouteType"`
	Layer4ClusterExclusive bool             `json:"layer4ClusterExclusive"`
	Layer7ClusterExclusive bool             `json:"layer7ClusterExclusive"`
	Layer4ClusterMode      string           `json:"layer4ClusterMode"`
	Layer7ClusterMode      string           `json:"layer7ClusterMode"`
	Layer4MasterAz         string           `json:"layer4MasterAz"`
	Layer7MasterAz         string           `json:"layer7MasterAz"`
	Layer4SlaveAz          string           `json:"layer4SlaveAz"`
	Layer7SlaveAz          string           `json:"layer7SlaveAz"`
	PaymentTiming          string           `json:"paymentTiming"`
	PerformanceLevel       string           `json:"performanceLevel"`
	ExpireTime             string           `json:"expireTime"`
	AllowDelete            bool             `json:"allowDelete"`
	VpcId                  string           `json:"vpcId"`
}

type DescribeLoadBalancersArgs

type DescribeLoadBalancersArgs struct {
	Address      string
	Name         string
	BlbId        string
	BccId        string
	Type         string
	ExactlyMatch bool
	Marker       string
	MaxKeys      int
}

type DescribeLoadBalancersResult

type DescribeLoadBalancersResult struct {
	BlbList []AppBLBModel `json:"blbList"`
	DescribeResultMeta
}

type DescribePolicysArgs

type DescribePolicysArgs struct {
	Port    uint16
	Type    string
	Marker  string
	MaxKeys int
}

type DescribePolicysResult

type DescribePolicysResult struct {
	PolicyList []AppPolicy `json:"policyList"`
	DescribeResultMeta
}

type DescribeResultMeta

type DescribeResultMeta struct {
	Marker      string `json:"marker"`
	IsTruncated bool   `json:"isTruncated"`
	NextMarker  string `json:"nextMarker"`
	MaxKeys     int    `json:"maxKeys"`
}

type DescribeRsMountResult

type DescribeRsMountResult struct {
	BackendServerList []AppBackendServer `json:"backendServerList"`
}

type DescribeSecurityGroupsResult added in v0.9.164

type DescribeSecurityGroupsResult struct {
	BlbSecurityGroups []BlbSecurityGroupModel `json:"blbSecurityGroups"`
}

type ListenerModel

type ListenerModel struct {
	Port string `json:"port"`
	Type string `json:"type"`
}

type PortTypeModel added in v0.9.90

type PortTypeModel struct {
	Port int    `json:"port"`
	Type string `json:"type"`
}

type Reservation added in v0.9.172

type Reservation struct {
	ReservationLength   int    `json:"reservationLength,omitempty"`
	ReservationTimeUnit string `json:"reservationTimeUnit,omitempty"`
}

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"`
	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 UpdateAppIpGroupArgs added in v0.9.37

type UpdateAppIpGroupArgs struct {
	IpGroupId   string `json:"ipGroupId"`
	Name        string `json:"name,omitempty"`
	Desc        string `json:"desc,omitempty"`
	ClientToken string `json:"-"`
}

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 UpdateAppListenerArgs struct {
	ClientToken       string `json:"-"`
	ListenerPort      uint16 `json:"-"`
	Scheduler         string `json:"scheduler,omitempty"`
	TcpSessionTimeout int    `json:"tcpSessionTimeout,omitempty"`
	UdpSessionTimeout int    `json:"udpSessionTimeout,omitempty"`
}

type UpdateAppSSLListenerArgs

type UpdateAppSSLListenerArgs struct {
	ClientToken         string   `json:"-"`
	ListenerPort        uint16   `json:"-"`
	Scheduler           string   `json:"scheduler"`
	CertIds             []string `json:"certIds"`
	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 UpdateAppServerGroupArgs

type UpdateAppServerGroupArgs struct {
	SgId        string `json:"sgId"`
	Name        string `json:"name,omitempty"`
	Description string `json:"desc,omitempty"`
	ClientToken string `json:"-"`
}

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
}

type UpdateEnterpriseSecurityGroupsArgs added in v0.9.164

type UpdateEnterpriseSecurityGroupsArgs struct {
	ClientToken                string   `json:"-"`
	EnterpriseSecurityGroupIds []string `json:"enterpriseSecurityGroupIds"`
}

type UpdateLoadBalancerArgs

type UpdateLoadBalancerArgs struct {
	ClientToken string `json:"-"`
	Name        string `json:"name,omitempty"`
	Description string `json:"desc,omitempty"`
	AllowDelete *bool  `json:"allowDelete,omitempty"`
}

type UpdateSecurityGroupsArgs added in v0.9.164

type UpdateSecurityGroupsArgs struct {
	ClientToken      string   `json:"-"`
	SecurityGroupIds []string `json:"securityGroupIds"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL