blb

package
v0.9.22 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package blb defines the Normal 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_BLB_URL        = "/blb"

	LISTENER_URL      = "/listener"
	TCPLISTENER_URL   = "/TCPlistener"
	UDPLISTENER_URL   = "/UDPlistener"
	HTTPLISTENER_URL  = "/HTTPlistener"
	HTTPSLISTENER_URL = "/HTTPSlistener"
	SSLLISTENER_URL   = "/SSLlistener"

	BACKENDSERVER_URL = "/backendserver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBackendServersArgs

type AddBackendServersArgs struct {
	ClientToken       string               `json:"-"`
	BackendServerList []BackendServerModel `json:"backendServerList"`
}

type BLBModel

type BLBModel struct {
	BlbId       string           `json:"blbId"`
	Name        string           `json:"name"`
	Description string           `json:"desc"`
	Address     string           `json:"address"`
	Status      BLBStatus        `json:"status"`
	VpcId       string           `json:"vpcId"`
	SubnetId    string           `json:"subnetId"`
	PublicIp    string           `json:"publicIp"`
	Tags        []model.TagModel `json:"tags"`
}

type BLBStatus

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

type BackendServerModel

type BackendServerModel struct {
	InstanceId string `json:"instanceId"`
	Weight     int    `json:"weight"`
}

type BackendServerStatus

type BackendServerStatus struct {
	InstanceId string `json:"instanceId"`
	Weight     int    `json:"weight"`
	Status     string `json:"status"`
	PrivateIp  string `json:"privateIp"`
}

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

func (c *Client) AddBackendServers(blbId string, args *AddBackendServersArgs) error

AddBackendServers - add backend servers

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to add backend servers

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) CreateHTTPListener

func (c *Client) CreateHTTPListener(blbId string, args *CreateHTTPListenerArgs) error

CreateHTTPListener - create a HTTP Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to create HTTP Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) CreateHTTPSListener

func (c *Client) CreateHTTPSListener(blbId string, args *CreateHTTPSListenerArgs) error

CreateHTTPSListener - create a HTTPS Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to create HTTPS Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) CreateLoadBalancer

func (c *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (*CreateLoadBalancerResult, error)

CreateLoadBalancer - create a LoadBalancer

PARAMS:

  • args: parameters to create LoadBalancer

RETURNS:

  • *CreateLoadBalancerResult: the result of create LoadBalancer, contains new LoadBalancer's ID
  • error: nil if ok otherwise the specific error

func (*Client) CreateSSLListener

func (c *Client) CreateSSLListener(blbId string, args *CreateSSLListenerArgs) error

CreateAppSSLListener - create a SSL Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to create SSL Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) CreateTCPListener

func (c *Client) CreateTCPListener(blbId string, args *CreateTCPListenerArgs) error

CreateTCPListener - create a TCP Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to create TCP Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) CreateUDPListener

func (c *Client) CreateUDPListener(blbId string, args *CreateUDPListenerArgs) error

CreateUDPListener - create a UDP Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to create UDP Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) DeleteListeners

func (c *Client) DeleteListeners(blbId string, args *DeleteListenersArgs) error

DeleteListeners - delete Listeners

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to delete Listeners, a listener port list

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) DeleteLoadBalancer

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

DeleteLoadBalancer - delete a LoadBalancer

PARAMS:

  • blbId: parameters to delete LoadBalancer

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) DescribeBackendServers

func (c *Client) DescribeBackendServers(blbId string, args *DescribeBackendServersArgs) (*DescribeBackendServersResult, error)

DescribeBackendServers - describe all backend servers

PARAMS:

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

RETURNS:

  • *DescribeBackendServersResult: the result of describe all backend servers
  • error: nil if ok otherwise the specific error

func (*Client) DescribeHTTPListeners

func (c *Client) DescribeHTTPListeners(blbId string, args *DescribeListenerArgs) (*DescribeHTTPListenersResult, error)

DescribeHTTPListeners - describe all HTTP Listeners

PARAMS:

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

RETURNS:

  • *DescribeHTTPListenersResult: the result of describe all HTTP Listeners
  • error: nil if ok otherwise the specific error

func (*Client) DescribeHTTPSListeners

func (c *Client) DescribeHTTPSListeners(blbId string, args *DescribeListenerArgs) (*DescribeHTTPSListenersResult, error)

DescribeHTTPSListeners - describe all HTTPS Listeners

PARAMS:

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

RETURNS:

  • *DescribeHTTPSListenersResult: the result of describe all HTTPS Listeners
  • error: nil if ok otherwise the specific error

func (*Client) DescribeHealthStatus

func (c *Client) DescribeHealthStatus(blbId string, args *DescribeHealthStatusArgs) (*DescribeHealthStatusResult, error)

DescribeHealthStatus - describe all backend servers health status

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to describe all backend servers health status

RETURNS:

  • *DescribeHealthStatusResult: the result of describe all backend servers health status
  • error: nil if ok otherwise the specific error

func (*Client) DescribeLoadBalancerDetail

func (c *Client) DescribeLoadBalancerDetail(blbId string) (*DescribeLoadBalancerDetailResult, error)

DescribeLoadBalancerDetail - describe a LoadBalancer

PARAMS:

  • blbId: describe LoadBalancer's ID

RETURNS:

  • *DescribeLoadBalancerDetailResult: the result LoadBalancer detail
  • error: nil if ok otherwise the specific error

func (*Client) DescribeLoadBalancers

func (c *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (*DescribeLoadBalancersResult, error)

DescribeLoadBalancers - describe all LoadBalancers

PARAMS:

  • args: parameters to describe all LoadBalancers

RETURNS:

  • *DescribeLoadBalancersResult: the result all LoadBalancers's detail
  • error: nil if ok otherwise the specific error

func (*Client) DescribeSSLListeners

func (c *Client) DescribeSSLListeners(blbId string, args *DescribeListenerArgs) (*DescribeSSLListenersResult, error)

DescribeSSLListeners - describe all SSL Listeners

PARAMS:

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

RETURNS:

  • *DescribeSSLListenersResult: the result of describe all SSL Listeners
  • error: nil if ok otherwise the specific error

func (*Client) DescribeTCPListeners

func (c *Client) DescribeTCPListeners(blbId string, args *DescribeListenerArgs) (*DescribeTCPListenersResult, error)

DescribeTCPListeners - describe all TCP Listeners

PARAMS:

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

RETURNS:

  • *DescribeTCPListenersResult: the result of describe all TCP Listeners
  • error: nil if ok otherwise the specific error

func (*Client) DescribeUDPListeners

func (c *Client) DescribeUDPListeners(blbId string, args *DescribeListenerArgs) (*DescribeUDPListenersResult, error)

DescribeUDPListeners - describe all UDP Listeners

PARAMS:

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

RETURNS:

  • *DescribeUDPListenersResult: the result of describe all UDP Listeners
  • error: nil if ok otherwise the specific error

func (*Client) RemoveBackendServers

func (c *Client) RemoveBackendServers(blbId string, args *RemoveBackendServersArgs) error

RemoveBackendServers - remove backend servers

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to remove backend servers, a backend server list

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateBackendServers

func (c *Client) UpdateBackendServers(blbId string, args *UpdateBackendServersArgs) error

UpdateBackendServers - update backend servers

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update backend servers

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateHTTPListener

func (c *Client) UpdateHTTPListener(blbId string, args *UpdateHTTPListenerArgs) error

UpdateHTTPListener - update a HTTP Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update HTTP Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateHTTPSListener

func (c *Client) UpdateHTTPSListener(blbId string, args *UpdateHTTPSListenerArgs) error

UpdateHTTPSListener - update a HTTPS Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update HTTPS Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateLoadBalancer

func (c *Client) UpdateLoadBalancer(blbId string, args *UpdateLoadBalancerArgs) error

UpdateLoadBalancer - update a LoadBalancer

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update LoadBalancer

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateSSLListener

func (c *Client) UpdateSSLListener(blbId string, args *UpdateSSLListenerArgs) error

UpdateSSLListener - update a SSL Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update SSL Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateTCPListener

func (c *Client) UpdateTCPListener(blbId string, args *UpdateTCPListenerArgs) error

UpdateTCPListener - update a TCP Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update TCP Listener

RETURNS:

  • error: nil if ok otherwise the specific error

func (*Client) UpdateUDPListener

func (c *Client) UpdateUDPListener(blbId string, args *UpdateUDPListenerArgs) error

UpdateUDPListener - update a UDP Listener

PARAMS:

  • blbId: LoadBalancer's ID
  • args: parameters to update UDP Listener

RETURNS:

  • error: nil if ok otherwise the specific error

type CreateHTTPListenerArgs

type CreateHTTPListenerArgs struct {
	ClientToken                string `json:"-"`
	ListenerPort               uint16 `json:"listenerPort"`
	BackendPort                uint16 `json:"backendPort"`
	Scheduler                  string `json:"scheduler"`
	KeepSession                bool   `json:"keepSession,omitempty"`
	KeepSessionType            string `json:"keepSessionType,omitempty"`
	KeepSessionDuration        int    `json:"keepSessionDuration,omitempty"`
	KeepSessionCookieName      string `json:"keepSessionCookieName,omitempty"`
	XForwardedFor              bool   `json:"xForwardedFor,omitempty"`
	HealthCheckType            string `json:"healthCheckType,omitempty"`
	HealthCheckPort            uint16 `json:"healthCheckPort,omitempty"`
	HealthCheckURI             string `json:"healthCheckURI,omitempty"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int    `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int    `json:"healthyThreshold,omitempty"`
	HealthCheckNormalStatus    string `json:"healthCheckNormalStatus,omitempty"`
	ServerTimeout              int    `json:"serverTimeout,omitempty"`
	RedirectPort               uint16 `json:"redirectPort,omitempty"`
}

type CreateHTTPSListenerArgs

type CreateHTTPSListenerArgs struct {
	ClientToken                string   `json:"-"`
	ListenerPort               uint16   `json:"listenerPort"`
	BackendPort                uint16   `json:"backendPort"`
	Scheduler                  string   `json:"scheduler"`
	CertIds                    []string `json:"certIds"`
	KeepSession                bool     `json:"keepSession,omitempty"`
	KeepSessionType            string   `json:"keepSessionType,omitempty"`
	KeepSessionDuration        int      `json:"keepSessionDuration,omitempty"`
	KeepSessionCookieName      string   `json:"keepSessionCookieName,omitempty"`
	XForwardedFor              bool     `json:"xForwardedFor,omitempty"`
	HealthCheckType            string   `json:"healthCheckType,omitempty"`
	HealthCheckPort            uint16   `json:"healthCheckPort,omitempty"`
	HealthCheckURI             string   `json:"healthCheckURI,omitempty"`
	HealthCheckTimeoutInSecond int      `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int      `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int      `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int      `json:"healthyThreshold,omitempty"`
	HealthCheckNormalStatus    string   `json:"healthCheckNormalStatus,omitempty"`
	ServerTimeout              int      `json:"serverTimeout,omitempty"`
	RedirectPort               uint16   `json:"redirectPort,omitempty"`
	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 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"`
	Tags        []model.TagModel `json:"tags,omitempty"`
}

type CreateLoadBalancerResult

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

type CreateSSLListenerArgs

type CreateSSLListenerArgs struct {
	ClientToken                string   `json:"-"`
	ListenerPort               uint16   `json:"listenerPort"`
	BackendPort                uint16   `json:"backendPort"`
	Scheduler                  string   `json:"scheduler"`
	CertIds                    []string `json:"certIds"`
	HealthCheckTimeoutInSecond int      `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int      `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int      `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int      `json:"healthyThreshold,omitempty"`
	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 CreateTCPListenerArgs

type CreateTCPListenerArgs struct {
	ClientToken                string `json:"-"`
	ListenerPort               uint16 `json:"listenerPort"`
	BackendPort                uint16 `json:"backendPort"`
	Scheduler                  string `json:"scheduler"`
	TcpSessionTimeout          int    `json:"tcpSessionTimeout,omitempty"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int    `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int    `json:"healthyThreshold,omitempty"`
}

type CreateUDPListenerArgs

type CreateUDPListenerArgs struct {
	ClientToken                string `json:"-"`
	ListenerPort               uint16 `json:"listenerPort"`
	BackendPort                uint16 `json:"backendPort"`
	Scheduler                  string `json:"scheduler"`
	HealthCheckString          string `json:"healthCheckString"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int    `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int    `json:"healthyThreshold,omitempty"`
}

type DeleteListenersArgs

type DeleteListenersArgs struct {
	ClientToken string   `json:"-"`
	PortList    []uint16 `json:"portList"`
}

type DescribeBackendServersArgs

type DescribeBackendServersArgs struct {
	Marker  string
	MaxKeys int
}

type DescribeBackendServersResult

type DescribeBackendServersResult struct {
	BackendServerList []BackendServerModel `json:"backendServerList"`
	DescribeResultMeta
}

type DescribeHTTPListenersResult

type DescribeHTTPListenersResult struct {
	ListenerList []HTTPListenerModel `json:"listenerList"`
	DescribeResultMeta
}

type DescribeHTTPSListenersResult

type DescribeHTTPSListenersResult struct {
	ListenerList []HTTPSListenerModel `json:"listenerList"`
	DescribeResultMeta
}

type DescribeHealthStatusArgs

type DescribeHealthStatusArgs struct {
	ListenerPort uint16
	Marker       string
	MaxKeys      int
}

type DescribeHealthStatusResult

type DescribeHealthStatusResult struct {
	BackendServerList []BackendServerStatus `json:"backendServerList"`
	Type              string                `json:"type"`
	ListenerPort      uint16                `json:"listenerPort"`
	BackendPort       uint16                `json:"backendPort"`
	DescribeResultMeta
}

type DescribeListenerArgs

type DescribeListenerArgs struct {
	ListenerPort uint16
	Marker       string
	MaxKeys      int
}

type DescribeLoadBalancerDetailResult

type DescribeLoadBalancerDetailResult struct {
	BlbId       string           `json:"blbId"`
	Status      BLBStatus        `json:"status"`
	Name        string           `json:"name"`
	Description string           `json:"desc"`
	Address     string           `json:"address"`
	PublicIp    string           `json:"publicIp"`
	Cidr        string           `json:"cidr"`
	VpcName     string           `json:"vpcName"`
	CreateTime  string           `json:"createTime"`
	Listener    []ListenerModel  `json:"listener"`
	Tags        []model.TagModel `json:"tags"`
}

type DescribeLoadBalancersArgs

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

type DescribeLoadBalancersResult

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

type DescribeResultMeta

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

type DescribeSSLListenersResult

type DescribeSSLListenersResult struct {
	ListenerList []SSLListenerModel `json:"listenerList"`
	DescribeResultMeta
}

type DescribeTCPListenersResult

type DescribeTCPListenersResult struct {
	ListenerList []TCPListenerModel `json:"listenerList"`
	DescribeResultMeta
}

type DescribeUDPListenersResult

type DescribeUDPListenersResult struct {
	ListenerList []UDPListenerModel `json:"listenerList"`
	DescribeResultMeta
}

type HTTPListenerModel

type HTTPListenerModel struct {
	ListenerPort               uint16 `json:"listenerPort"`
	BackendPort                uint16 `json:"backendPort"`
	Scheduler                  string `json:"scheduler"`
	KeepSession                bool   `json:"keepSession"`
	KeepSessionType            string `json:"keepSessionType"`
	KeepSessionDuration        int    `json:"keepSessionDuration"`
	KeepSessionCookieName      string `json:"keepSessionCookieName"`
	XForwardedFor              bool   `json:"xForwardedFor"`
	HealthCheckType            string `json:"healthCheckType"`
	HealthCheckPort            uint16 `json:"healthCheckPort"`
	HealthCheckURI             string `json:"healthCheckURI"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond"`
	HealthCheckInterval        int    `json:"healthCheckInterval"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold"`
	HealthyThreshold           int    `json:"healthyThreshold"`
	GetBlbIp                   bool   `json:"getBlbIp"`
	HealthCheckNormalStatus    string `json:"healthCheckNormalStatus"`
	ServerTimeout              int    `json:"serverTimeout"`
	RedirectPort               int    `json:"redirectPort"`
}

type HTTPSListenerModel

type HTTPSListenerModel struct {
	ListenerPort               uint16   `json:"listenerPort"`
	BackendPort                uint16   `json:"backendPort"`
	Scheduler                  string   `json:"scheduler"`
	KeepSession                bool     `json:"keepSession"`
	KeepSessionType            string   `json:"keepSessionType"`
	KeepSessionDuration        int      `json:"keepSessionDuration"`
	KeepSessionCookieName      string   `json:"keepSessionCookieName"`
	XForwardedFor              bool     `json:"xForwardedFor"`
	HealthCheckType            string   `json:"healthCheckType"`
	HealthCheckPort            uint16   `json:"healthCheckPort"`
	HealthCheckURI             string   `json:"healthCheckURI"`
	HealthCheckTimeoutInSecond int      `json:"healthCheckTimeoutInSecond"`
	HealthCheckInterval        int      `json:"healthCheckInterval"`
	UnhealthyThreshold         int      `json:"unhealthyThreshold"`
	HealthyThreshold           int      `json:"healthyThreshold"`
	GetBlbIp                   bool     `json:"getBlbIp"`
	HealthCheckNormalStatus    string   `json:"healthCheckNormalStatus"`
	ServerTimeout              int      `json:"serverTimeout"`
	CertIds                    []string `json:"certIds"`
	Ie6Compatible              bool     `json:"ie6Compatible"`
	DualAuth                   bool     `json:"dualAuth"`
	ClientCertIds              []string `json:"clientCertIds"`
}

type ListenerModel

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

type RemoveBackendServersArgs

type RemoveBackendServersArgs struct {
	ClientToken       string   `json:"-"`
	BackendServerList []string `json:"backendServerList"`
}

type SSLListenerModel

type SSLListenerModel struct {
	ListenerPort               uint16   `json:"listenerPort"`
	BackendPort                uint16   `json:"backendPort"`
	Scheduler                  string   `json:"scheduler"`
	HealthCheckTimeoutInSecond int      `json:"healthCheckTimeoutInSecond"`
	HealthCheckInterval        int      `json:"healthCheckInterval"`
	UnhealthyThreshold         int      `json:"unhealthyThreshold"`
	HealthyThreshold           int      `json:"healthyThreshold"`
	GetBlbIp                   bool     `json:"getBlbIp"`
	CertIds                    []string `json:"certIds"`
	Ie6Compatible              bool     `json:"ie6Compatible"`
	EncryptionType             string   `json:"encryptionType"`
	EncryptionProtocols        []string `json:"encryptionProtocols"`
	DualAuth                   bool     `json:"dualAuth"`
	ClientCertIds              []string `json:"clientCertIds"`
	ServerTimeout              int      `json:"serverTimeout"`
}

type TCPListenerModel

type TCPListenerModel struct {
	ListenerPort               uint16 `json:"listenerPort"`
	BackendPort                uint16 `json:"backendPort"`
	Scheduler                  string `json:"scheduler"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond"`
	HealthCheckInterval        int    `json:"healthCheckInterval"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold"`
	HealthyThreshold           int    `json:"healthyThreshold"`
	GetBlbIp                   bool   `json:"getBlbIp"`
	TcpSessionTimeout          int    `json:"tcpSessionTimeout"`
}

type UDPListenerModel

type UDPListenerModel struct {
	ListenerPort               uint16 `json:"listenerPort"`
	BackendPort                uint16 `json:"backendPort"`
	Scheduler                  string `json:"scheduler"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond"`
	HealthCheckInterval        int    `json:"healthCheckInterval"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold"`
	HealthyThreshold           int    `json:"healthyThreshold"`
	GetBlbIp                   bool   `json:"getBlbIp"`
	HealthCheckString          string `json:"healthCheckString"`
}

type UpdateBackendServersArgs

type UpdateBackendServersArgs struct {
	ClientToken       string               `json:"-"`
	BackendServerList []BackendServerModel `json:"backendServerList"`
}

type UpdateHTTPListenerArgs

type UpdateHTTPListenerArgs struct {
	ClientToken                string `json:"-"`
	ListenerPort               uint16 `json:"-"`
	BackendPort                uint16 `json:"backendPort,omitempty"`
	Scheduler                  string `json:"scheduler,omitempty"`
	KeepSession                bool   `json:"keepSession,omitempty"`
	KeepSessionType            string `json:"keepSessionType,omitempty"`
	KeepSessionDuration        int    `json:"keepSessionDuration,omitempty"`
	KeepSessionCookieName      string `json:"keepSessionCookieName,omitempty"`
	XForwardedFor              bool   `json:"xForwardedFor,omitempty"`
	HealthCheckType            string `json:"healthCheckType,omitempty"`
	HealthCheckPort            uint16 `json:"healthCheckPort,omitempty"`
	HealthCheckURI             string `json:"healthCheckURI,omitempty"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int    `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int    `json:"healthyThreshold,omitempty"`
	HealthCheckNormalStatus    string `json:"healthCheckNormalStatus,omitempty"`
	ServerTimeout              int    `json:"serverTimeout,omitempty"`
	RedirectPort               uint16 `json:"redirectPort,omitempty"`
}

type UpdateHTTPSListenerArgs

type UpdateHTTPSListenerArgs struct {
	ClientToken                string   `json:"-"`
	ListenerPort               uint16   `json:"listenerPort"`
	BackendPort                uint16   `json:"backendPort,omitempty"`
	Scheduler                  string   `json:"scheduler,omitempty"`
	KeepSession                bool     `json:"keepSession,omitempty"`
	KeepSessionType            string   `json:"keepSessionType,omitempty"`
	KeepSessionDuration        int      `json:"keepSessionDuration,omitempty"`
	KeepSessionCookieName      string   `json:"keepSessionCookieName,omitempty"`
	XForwardedFor              bool     `json:"xForwardedFor,omitempty"`
	HealthCheckType            string   `json:"healthCheckType,omitempty"`
	HealthCheckPort            uint16   `json:"healthCheckPort,omitempty"`
	HealthCheckURI             string   `json:"healthCheckURI,omitempty"`
	HealthCheckTimeoutInSecond int      `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int      `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int      `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int      `json:"healthyThreshold,omitempty"`
	HealthCheckNormalStatus    string   `json:"healthCheckNormalStatus,omitempty"`
	ServerTimeout              int      `json:"serverTimeout,omitempty"`
	CertIds                    []string `json:"certIds,omitempty"`
	Ie6Compatible              bool     `json:"ie6Compatible,omitempty"`
}

type UpdateListenerArgs

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

type UpdateLoadBalancerArgs

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

type UpdateSSLListenerArgs

type UpdateSSLListenerArgs struct {
	ClientToken                string   `json:"-"`
	ListenerPort               uint16   `json:"-"`
	BackendPort                uint16   `json:"backendPort,omitempty"`
	Scheduler                  string   `json:"scheduler,omitempty"`
	HealthCheckTimeoutInSecond int      `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int      `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int      `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int      `json:"healthyThreshold,omitempty"`
	CertIds                    []string `json:"certIds,omitempty"`
	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 UpdateTCPListenerArgs

type UpdateTCPListenerArgs struct {
	ClientToken                string `json:"-"`
	ListenerPort               uint16 `json:"-"`
	BackendPort                uint16 `json:"backendPort,omitempty"`
	Scheduler                  string `json:"scheduler,omitempty"`
	TcpSessionTimeout          int    `json:"tcpSessionTimeout,omitempty"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int    `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int    `json:"healthyThreshold,omitempty"`
}

type UpdateUDPListenerArgs

type UpdateUDPListenerArgs struct {
	ClientToken                string `json:"-"`
	ListenerPort               uint16 `json:"-"`
	BackendPort                uint16 `json:"backendPort,omitempty"`
	Scheduler                  string `json:"scheduler,omitempty"`
	HealthCheckTimeoutInSecond int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckInterval        int    `json:"healthCheckInterval,omitempty"`
	UnhealthyThreshold         int    `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold           int    `json:"healthyThreshold,omitempty"`
	HealthCheckString          string `json:"healthCheckString,omitempty"`
}

Jump to

Keyboard shortcuts

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