aliyungo: github.com/denverdino/aliyungo/slb Index | Files

package slb

import "github.com/denverdino/aliyungo/slb"

Index

Package Files

certificates.go client.go listeners.go loadbalancers.go regions.go rules.go servers.go tags.go vserver_group.go zones.go

Constants

const (
    // SLBDefaultEndpoint is the default API endpoint of SLB services
    SLBDefaultEndpoint = "https://slb.aliyuncs.com"
    SLBAPIVersion      = "2014-05-15"

    SLBServiceCode = "slb"
)
const (
    Starting    = ListenerStatus("starting")
    Running     = ListenerStatus("running")
    Configuring = ListenerStatus("configuring")
    Stopping    = ListenerStatus("stopping")
    Stopped     = ListenerStatus("stopped")
)
const (
    WRRScheduler = SchedulerType("wrr")
    WLCScheduler = SchedulerType("wlc")
)
const (
    OnFlag  = FlagType("on")
    OffFlag = FlagType("off")
)
const (
    InsertStickySessionType = StickySessionType("insert")
    ServerStickySessionType = StickySessionType("server")
)
const (
    HTTP_2XX = HealthCheckHttpCodeType("http_2xx")
    HTTP_3XX = HealthCheckHttpCodeType("http_3xx")
    HTTP_4XX = HealthCheckHttpCodeType("http_4xx")
    HTTP_5XX = HealthCheckHttpCodeType("http_5xx")
)
const (
    TCPHealthCheckType  = HealthCheckType("tcp")
    HTTPHealthCheckType = HealthCheckType("http")
)
const (
    OpenWhileList = AccessControlStatus("open_white_list")
    Close         = AccessControlStatus("close")
)
const (
    UDP   = ListenerType("UDP")
    TCP   = ListenerType("TCP")
    HTTP  = ListenerType("HTTP")
    HTTPS = ListenerType("HTTPS")
)
const (
    InternetAddressType = AddressType("internet")
    IntranetAddressType = AddressType("intranet")
)
const (
    PayByBandwidth = InternetChargeType("paybybandwidth")
    PayByTraffic   = InternetChargeType("paybytraffic")
)
const (
    IPv4 = AddressIPVersionType("ipv4")
    IPv6 = AddressIPVersionType("ipv6")
)
const (
    S1Small  = "slb.s1.small"
    S2Small  = "slb.s2.small"
    S2Medium = "slb.s2.medium"
    S3Small  = "slb.s3.small"
    S3Medium = "slb.s3.medium"
    S3Large  = "slb.s3.large"
)
const (
    NonProtection     = ModificationProtectionType("NonProtection")
    ConsoleProtection = ModificationProtectionType("ConsoleProtection")
)
const ActiveStatus = Status("active")
const BackendServerPort = -520
const DefaultTimeout = 60 //60 seconds
const DefaultWaitForInterval = 5 //5 seconds
const InactiveStatus = Status("inactive")
const LockedStatus = Status("locked")

type AccessControlStatus Uses

type AccessControlStatus string

type AddBackendServersArgs Uses

type AddBackendServersArgs struct {
    LoadBalancerId string
    BackendServers string
}

type AddBackendServersResponse Uses

type AddBackendServersResponse struct {
    common.Response
    LoadBalancerId string
    BackendServers struct {
        BackendServer []BackendServerType
    }
}

type AddTagsArgs Uses

type AddTagsArgs struct {
    RegionId       common.Region
    LoadBalancerID string
    Tags           string
}

type AddTagsResponse Uses

type AddTagsResponse struct {
    common.Response
}

type AddVServerGroupBackendServersArgs Uses

type AddVServerGroupBackendServersArgs CreateVServerGroupArgs

type AddVServerGroupBackendServersResponse Uses

type AddVServerGroupBackendServersResponse CreateVServerGroupResponse

type AddressIPVersionType Uses

type AddressIPVersionType string

type AddressType Uses

type AddressType string

type BackendServerType Uses

type BackendServerType struct {
    ServerId string
    Weight   int
    Type     string
}

type Client Uses

type Client struct {
    common.Client
}

func NewClient Uses

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of ECS client

func NewClientWithEndpoint Uses

func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client

func NewClientWithRegion Uses

func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewSLBClient Uses

func NewSLBClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewSLBClientWithEndpointAndSecurityToken Uses

func NewSLBClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain Uses

func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

only for hangzhou

func NewSLBClientWithSecurityToken Uses

func NewSLBClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewSLBClientWithSecurityToken4RegionalDomain Uses

func NewSLBClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

Only for hangzhou

func (*Client) AddBackendServers Uses

func (client *Client) AddBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)

AddBackendServers Add backend servers

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-backendserver&AddBackendServers

func (*Client) AddListenerWhiteListItem Uses

func (client *Client) AddListenerWhiteListItem(loadBalancerId string, port int, sourceItems string) (err error)

AddListenerWhiteListItem Add listener white-list item

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&AddListenerWhiteListItem

func (*Client) AddTags Uses

func (client *Client) AddTags(args *AddTagsArgs) error

AddTags Add tags to resource

You can read doc at https://help.aliyun.com/document_detail/42871.html

func (*Client) AddVServerGroupBackendServers Uses

func (client *Client) AddVServerGroupBackendServers(args *AddVServerGroupBackendServersArgs) (response *AddVServerGroupBackendServersResponse, err error)

func (*Client) CreateLoadBalancer Uses

func (client *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (response *CreateLoadBalancerResponse, err error)

CreateLoadBalancer create loadbalancer

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&CreateLoadBalancer

func (*Client) CreateLoadBalancerHTTPListener Uses

func (client *Client) CreateLoadBalancerHTTPListener(args *CreateLoadBalancerHTTPListenerArgs) (err error)

CreateLoadBalancerHTTPListener create HTTP listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerHTTPListener

func (*Client) CreateLoadBalancerHTTPSListener Uses

func (client *Client) CreateLoadBalancerHTTPSListener(args *CreateLoadBalancerHTTPSListenerArgs) (err error)

CreateLoadBalancerHTTPSListener create HTTPS listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerHTTPSListener

func (*Client) CreateLoadBalancerTCPListener Uses

func (client *Client) CreateLoadBalancerTCPListener(args *CreateLoadBalancerTCPListenerArgs) (err error)

CreateLoadBalancerTCPListener create TCP listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerTCPListener

func (*Client) CreateLoadBalancerUDPListener Uses

func (client *Client) CreateLoadBalancerUDPListener(args *CreateLoadBalancerUDPListenerArgs) (err error)

CreateLoadBalancerUDPListener create UDP listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerUDPListener

func (*Client) CreateRules Uses

func (client *Client) CreateRules(args *CreateRulesArgs) error

Create forward rules

You can read doc at https://help.aliyun.com/document_detail/35226.html?spm=5176.doc35226.6.671.625Omh

func (*Client) CreateVServerGroup Uses

func (client *Client) CreateVServerGroup(args *CreateVServerGroupArgs) (response *CreateVServerGroupResponse, err error)

func (*Client) DeleteLoadBalancer Uses

func (client *Client) DeleteLoadBalancer(loadBalancerId string) (err error)

DeleteLoadBalancer delete loadbalancer

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&DeleteLoadBalancer

func (*Client) DeleteLoadBalancerListener Uses

func (client *Client) DeleteLoadBalancerListener(loadBalancerId string, port int) (err error)

DeleteLoadBalancerListener Delete listener

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DeleteLoadBalancerListener

func (*Client) DeleteRules Uses

func (client *Client) DeleteRules(args *DeleteRulesArgs) error

Delete forward rules

You can read doc at https://help.aliyun.com/document_detail/35227.html?spm=5176.doc35226.6.672.6iNBtR

func (*Client) DeleteServerCertificate Uses

func (client *Client) DeleteServerCertificate(regionId common.Region, serverCertificateId string) (err error)

DeleteServerCertificate Delete server certificate

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&DeleteServerCertificate

func (*Client) DeleteVServerGroup Uses

func (client *Client) DeleteVServerGroup(args *DeleteVServerGroupArgs) (response *DeleteVServerGroupResponse, err error)

func (*Client) DescribeHealthStatus Uses

func (client *Client) DescribeHealthStatus(args *DescribeHealthStatusArgs) (response *DescribeHealthStatusResponse, err error)

DescribeHealthStatus Describe health status

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-backendserver&DescribeHealthStatus

func (*Client) DescribeListenerAccessControlAttribute Uses

func (client *Client) DescribeListenerAccessControlAttribute(loadBalancerId string, port int) (response *DescribeListenerAccessControlAttributeResponse, err error)

DescribeListenerAccessControlAttribute Describe listener access control attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeListenerAccessControlAttribute

func (*Client) DescribeLoadBalancerAttribute Uses

func (client *Client) DescribeLoadBalancerAttribute(loadBalancerId string) (loadBalancer *LoadBalancerType, err error)

func (*Client) DescribeLoadBalancerHTTPListenerAttribute Uses

func (client *Client) DescribeLoadBalancerHTTPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error)

DescribeLoadBalancerHTTPListenerAttribute Describe HTTP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerHTTPListenerAttribute

func (*Client) DescribeLoadBalancerHTTPSListenerAttribute Uses

func (client *Client) DescribeLoadBalancerHTTPSListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error)

DescribeLoadBalancerHTTPSListenerAttribute Describe HTTPS listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerHTTPSListenerAttribute

func (*Client) DescribeLoadBalancerTCPListenerAttribute Uses

func (client *Client) DescribeLoadBalancerTCPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerTCPListenerAttributeResponse, err error)

DescribeLoadBalancerTCPListenerAttribute Describe TCP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerTCPListenerAttribute

func (*Client) DescribeLoadBalancerUDPListenerAttribute Uses

func (client *Client) DescribeLoadBalancerUDPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerUDPListenerAttributeResponse, err error)

DescribeLoadBalancerUDPListenerAttribute Describe UDP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerUDPListenerAttribute

func (*Client) DescribeLoadBalancers Uses

func (client *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (loadBalancers []LoadBalancerType, err error)

func (*Client) DescribeRegions Uses

func (client *Client) DescribeRegions() (regions []RegionType, err error)

DescribeRegions describes regions

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&DescribeRegions

func (*Client) DescribeRuleAttribute Uses

func (client *Client) DescribeRuleAttribute(args *DescribeRuleAttributeArgs) (*DescribeRuleAttributeResponse, error)

Describe rule

You can read doc at https://help.aliyun.com/document_detail/35229.html?spm=5176.doc35226.6.674.DRJeKJ

func (*Client) DescribeRules Uses

func (client *Client) DescribeRules(args *DescribeRulesArgs) (*DescribeRulesResponse, error)

Describe rule

You can read doc at https://help.aliyun.com/document_detail/35229.html?spm=5176.doc35226.6.674.DRJeKJ

func (*Client) DescribeServerCertificates Uses

func (client *Client) DescribeServerCertificates(args *DescribeServerCertificatesArgs) (response *DescribeServerCertificatesResponse, err error)

DescribeServerCertificates Describe server certificates

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&DescribeServerCertificates

func (*Client) DescribeServerCertificatesArgs Uses

func (client *Client) DescribeServerCertificatesArgs(regionId common.Region, serverCertificateId string) (serverCertificates []ServerCertificateType, err error)

DescribeServerCertificates Describe server certificates

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&DescribeServerCertificates

func (*Client) DescribeTags Uses

func (client *Client) DescribeTags(args *DescribeTagsArgs) (tags []TagItemType, pagination *common.PaginationResult, err error)

DescribeResourceByTags describe resource by tags

You can read doc at https://help.aliyun.com/document_detail/42873.html?spm=5176.doc42872.6.267.CP1iWu

func (*Client) DescribeVServerGroupAttribute Uses

func (client *Client) DescribeVServerGroupAttribute(args *DescribeVServerGroupAttributeArgs) (response *DescribeVServerGroupAttributeResponse, err error)

func (*Client) DescribeVServerGroups Uses

func (client *Client) DescribeVServerGroups(args *DescribeVServerGroupsArgs) (response *DescribeVServerGroupsResponse, err error)

func (*Client) DescribeZones Uses

func (client *Client) DescribeZones(regionId common.Region) (zones []ZoneType, err error)

DescribeZones describes zones

func (*Client) DescribeZonesWithRaw Uses

func (client *Client) DescribeZonesWithRaw(regionId common.Region) (response *DescribeZonesResponse, err error)

func (*Client) ModifyLoadBalancerInstanceSpec Uses

func (client *Client) ModifyLoadBalancerInstanceSpec(args *ModifyLoadBalancerInstanceSpecArgs) (err error)

func (*Client) ModifyLoadBalancerInternetSpec Uses

func (client *Client) ModifyLoadBalancerInternetSpec(args *ModifyLoadBalancerInternetSpecArgs) (err error)

func (*Client) ModifyVServerGroupBackendServers Uses

func (client *Client) ModifyVServerGroupBackendServers(args *ModifyVServerGroupBackendServersArgs) (response *ModifyVServerGroupBackendServersResponse, err error)

func (*Client) NewDescribeLoadBalancerAttribute Uses

func (client *Client) NewDescribeLoadBalancerAttribute(args *NewDescribeLoadBalancerAttributeArgs) (loadBalancer *LoadBalancerType, err error)

func (*Client) RemoveBackendServers Uses

func (client *Client) RemoveBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)

RemoveBackendServers Remove backend servers

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-backendserver&RemoveBackendServers

func (*Client) RemoveListenerWhiteListItem Uses

func (client *Client) RemoveListenerWhiteListItem(loadBalancerId string, port int, sourceItems string) (err error)

RemoveListenerWhiteListItem Remove listener white-list item

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&RemoveListenerWhiteListItem

func (*Client) RemoveTags Uses

func (client *Client) RemoveTags(args *RemoveTagsArgs) error

RemoveTags remove tags to resource

You can read doc at https://help.aliyun.com/document_detail/42872.html

func (*Client) RemoveVServerGroupBackendServers Uses

func (client *Client) RemoveVServerGroupBackendServers(args *RemoveVServerGroupBackendServersArgs) (response *RemoveVServerGroupBackendServersResponse, err error)

func (*Client) SetBackendServers Uses

func (client *Client) SetBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)

func (*Client) SetListenerAccessControlStatus Uses

func (client *Client) SetListenerAccessControlStatus(loadBalancerId string, port int, status AccessControlStatus) (err error)

SetListenerAccessControlStatus Set listener access control status

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetListenerAccessControlStatus

func (*Client) SetLoadBalancerDeleteProtection Uses

func (client *Client) SetLoadBalancerDeleteProtection(args *SetLoadBalancerDeleteProtectionArgs) (err error)

SetLoadBalancerDeleteProtection loadbalancer delete protection

You can read doc at https://help.aliyun.com/document_detail/122674.html?spm=a2c4g.11186623.6.720.694f4265hwOdXQ

func (*Client) SetLoadBalancerHTTPListenerAttribute Uses

func (client *Client) SetLoadBalancerHTTPListenerAttribute(args *SetLoadBalancerHTTPListenerAttributeArgs) (err error)

SetLoadBalancerHTTPListenerAttribute Set HTTP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerHTTPListenerAttribute

func (*Client) SetLoadBalancerHTTPSListenerAttribute Uses

func (client *Client) SetLoadBalancerHTTPSListenerAttribute(args *SetLoadBalancerHTTPSListenerAttributeArgs) (err error)

SetLoadBalancerHTTPSListenerAttribute Set HTTPS listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerHTTPSListenerAttribute

func (*Client) SetLoadBalancerModificationProtection Uses

func (client *Client) SetLoadBalancerModificationProtection(args *SetLoadBalancerModificationProtectionArgs) (err error)

func (*Client) SetLoadBalancerName Uses

func (client *Client) SetLoadBalancerName(loadBalancerId string, name string) (err error)

func (*Client) SetLoadBalancerStatus Uses

func (client *Client) SetLoadBalancerStatus(loadBalancerId string, status Status) (err error)

func (*Client) SetLoadBalancerTCPListenerAttribute Uses

func (client *Client) SetLoadBalancerTCPListenerAttribute(args *SetLoadBalancerTCPListenerAttributeArgs) (err error)

SetLoadBalancerTCPListenerAttribute Set TCP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerTCPListenerAttribute

func (*Client) SetLoadBalancerUDPListenerAttribute Uses

func (client *Client) SetLoadBalancerUDPListenerAttribute(args *SetLoadBalancerUDPListenerAttributeArgs) (err error)

SetLoadBalancerUDPListenerAttribute Set UDP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerUDPListenerAttribute

func (*Client) SetRule Uses

func (client *Client) SetRule(args *SetRuleArgs) error

Modify forward rules

You can read doc at https://help.aliyun.com/document_detail/35228.html?spm=5176.doc35227.6.673.rq40a9

func (*Client) SetServerCertificateName Uses

func (client *Client) SetServerCertificateName(regionId common.Region, serverCertificateId string, name string) (err error)

SetServerCertificateName Set name of server certificate

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&SetServerCertificateName

func (*Client) SetVServerGroupAttribute Uses

func (client *Client) SetVServerGroupAttribute(args *SetVServerGroupAttributeArgs) (response *SetVServerGroupAttributeResponse, err error)

func (*Client) StartLoadBalancerListener Uses

func (client *Client) StartLoadBalancerListener(loadBalancerId string, port int) (err error)

StartLoadBalancerListener Start listener

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&StartLoadBalancerListener

func (*Client) StopLoadBalancerListener Uses

func (client *Client) StopLoadBalancerListener(loadBalancerId string, port int) (err error)

StopLoadBalancerListener Stop listener

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&StopLoadBalancerListener

func (*Client) UploadServerCertificate Uses

func (client *Client) UploadServerCertificate(args *UploadServerCertificateArgs) (response *UploadServerCertificateResponse, err error)

UploadServerCertificate Upload server certificate

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&UploadServerCertificate

func (*Client) WaitForListener Uses

func (client *Client) WaitForListener(loadBalancerId string, port int, listenerType ListenerType) (status ListenerStatus, err error)

WaitForListener waits for listener to given status

func (*Client) WaitForListenerAsyn Uses

func (client *Client) WaitForListenerAsyn(loadBalancerId string, port int, listenerType ListenerType, status ListenerStatus, timeout int) error

WaitForListener waits for listener to given status

func (*Client) WaitForLoadBalancerAsyn Uses

func (client *Client) WaitForLoadBalancerAsyn(loadBalancerId string, status Status, timeout int) error

WaitForListener waits for listener to given status

type CommonListenerWhiteListItemArgs Uses

type CommonListenerWhiteListItemArgs struct {
    LoadBalancerId string
    ListenerPort   int
    SourceItems    string
}

type CommonLoadBalancerListenerArgs Uses

type CommonLoadBalancerListenerArgs struct {
    LoadBalancerId string
    ListenerPort   int
}

type CommonLoadBalancerListenerResponse Uses

type CommonLoadBalancerListenerResponse struct {
    common.Response
}

type CreateLoadBalancerArgs Uses

type CreateLoadBalancerArgs struct {
    RegionId                     common.Region
    LoadBalancerName             string
    AddressType                  AddressType
    VSwitchId                    string
    InternetChargeType           InternetChargeType
    Bandwidth                    int
    ClientToken                  string
    MasterZoneId                 string
    SlaveZoneId                  string
    LoadBalancerSpec             LoadBalancerSpecType
    AddressIPVersion             AddressIPVersionType
    DeleteProtection             FlagType
    ModificationProtectionStatus ModificationProtectionType
    ModificationProtectionReason string
    ResourceGroupId              string
}

type CreateLoadBalancerHTTPListenerArgs Uses

type CreateLoadBalancerHTTPListenerArgs HTTPListenerType

type CreateLoadBalancerHTTPSListenerArgs Uses

type CreateLoadBalancerHTTPSListenerArgs HTTPSListenerType

type CreateLoadBalancerResponse Uses

type CreateLoadBalancerResponse struct {
    common.Response
    LoadBalancerId   string
    Address          string
    NetworkType      string
    VpcId            string
    VSwitchId        string
    LoadBalancerName string
    MasterZoneId     string
    SlaveZoneId      string
    AddressIPVersion AddressIPVersionType
}

type CreateLoadBalancerTCPListenerArgs Uses

type CreateLoadBalancerTCPListenerArgs TCPListenerType

type CreateLoadBalancerUDPListenerArgs Uses

type CreateLoadBalancerUDPListenerArgs UDPListenerType

type CreateRulesArgs Uses

type CreateRulesArgs struct {
    RegionId       common.Region
    LoadBalancerId string
    ListenerPort   int
    RuleList       string
}

type CreateRulesResponse Uses

type CreateRulesResponse struct {
    common.Response
}

type CreateVServerGroupArgs Uses

type CreateVServerGroupArgs struct {
    LoadBalancerId   string
    RegionId         common.Region
    VServerGroupName string
    VServerGroupId   string
    BackendServers   string
}

type CreateVServerGroupResponse Uses

type CreateVServerGroupResponse struct {
    common.Response
    VServerGroupId   string
    VServerGroupName string
    BackendServers   VBackendServers
}

type DeleteLoadBalancerArgs Uses

type DeleteLoadBalancerArgs struct {
    LoadBalancerId string
}

type DeleteLoadBalancerResponse Uses

type DeleteLoadBalancerResponse struct {
    common.Response
}

type DeleteRulesArgs Uses

type DeleteRulesArgs struct {
    RegionId common.Region
    RuleIds  string
}

type DeleteRulesResponse Uses

type DeleteRulesResponse struct {
    common.Response
}

type DeleteServerCertificateArgs Uses

type DeleteServerCertificateArgs struct {
    RegionId            common.Region
    ServerCertificateId string
}

type DeleteServerCertificateResponse Uses

type DeleteServerCertificateResponse struct {
    common.Response
}

type DeleteVServerGroupArgs Uses

type DeleteVServerGroupArgs struct {
    VServerGroupId string
    RegionId       common.Region
}

type DeleteVServerGroupResponse Uses

type DeleteVServerGroupResponse struct{ common.Response }

type DescribeHealthStatusArgs Uses

type DescribeHealthStatusArgs struct {
    LoadBalancerId string
    ListenerPort   int
}

type DescribeHealthStatusResponse Uses

type DescribeHealthStatusResponse struct {
    common.Response
    BackendServers struct {
        BackendServer []HealthStatusType
    }
}

type DescribeListenerAccessControlAttributeResponse Uses

type DescribeListenerAccessControlAttributeResponse struct {
    common.Response
    AccessControlStatus AccessControlStatus
    SourceItems         string
}

type DescribeLoadBalancerAttributeArgs Uses

type DescribeLoadBalancerAttributeArgs struct {
    LoadBalancerId string
}

type DescribeLoadBalancerAttributeResponse Uses

type DescribeLoadBalancerAttributeResponse struct {
    common.Response
    LoadBalancerType
}

type DescribeLoadBalancerHTTPListenerAttributeResponse Uses

type DescribeLoadBalancerHTTPListenerAttributeResponse struct {
    DescribeLoadBalancerListenerAttributeResponse
    HTTPListenerType
}

type DescribeLoadBalancerHTTPSListenerAttributeResponse Uses

type DescribeLoadBalancerHTTPSListenerAttributeResponse struct {
    DescribeLoadBalancerListenerAttributeResponse
    HTTPSListenerType
}

type DescribeLoadBalancerListenerAttributeResponse Uses

type DescribeLoadBalancerListenerAttributeResponse struct {
    common.Response
    Status ListenerStatus
}

type DescribeLoadBalancerTCPListenerAttributeResponse Uses

type DescribeLoadBalancerTCPListenerAttributeResponse struct {
    DescribeLoadBalancerListenerAttributeResponse
    TCPListenerType
}

type DescribeLoadBalancerUDPListenerAttributeResponse Uses

type DescribeLoadBalancerUDPListenerAttributeResponse struct {
    DescribeLoadBalancerListenerAttributeResponse
    UDPListenerType
}

type DescribeLoadBalancersArgs Uses

type DescribeLoadBalancersArgs struct {
    RegionId           common.Region
    LoadBalancerId     string
    LoadBalancerName   string
    AddressType        AddressType
    NetworkType        string
    VpcId              string
    VSwitchId          string
    Address            string
    InternetChargeType InternetChargeType
    ServerId           string
    Tags               string
}

type DescribeLoadBalancersResponse Uses

type DescribeLoadBalancersResponse struct {
    common.Response
    LoadBalancers struct {
        LoadBalancer []LoadBalancerType
    }
}

type DescribeRegionsArgs Uses

type DescribeRegionsArgs struct {
}

type DescribeRegionsResponse Uses

type DescribeRegionsResponse struct {
    common.Response
    Regions struct {
        Region []RegionType
    }
}

type DescribeRuleAttributeArgs Uses

type DescribeRuleAttributeArgs struct {
    RegionId common.Region
    RuleId   string
}

type DescribeRuleAttributeResponse Uses

type DescribeRuleAttributeResponse struct {
    common.Response
    LoadBalancerId string
    ListenerPort   int
    Rule
}

type DescribeRulesArgs Uses

type DescribeRulesArgs struct {
    RegionId       common.Region
    LoadBalancerId string
    ListenerPort   int
}

type DescribeRulesResponse Uses

type DescribeRulesResponse struct {
    common.Response
    Rules struct {
        Rule []Rule
    }
}

type DescribeServerCertificatesArgs Uses

type DescribeServerCertificatesArgs struct {
    RegionId            common.Region
    ServerCertificateId string
}

type DescribeServerCertificatesResponse Uses

type DescribeServerCertificatesResponse struct {
    common.Response
    ServerCertificates struct {
        ServerCertificate []ServerCertificateType
    }
}

type DescribeTagsArgs Uses

type DescribeTagsArgs struct {
    RegionId       common.Region
    LoadBalancerID string
    Tags           string
    common.Pagination
}

type DescribeTagsResponse Uses

type DescribeTagsResponse struct {
    common.Response
    common.PaginationResult
    TagSets struct {
        TagSet []TagItemType
    }
}

type DescribeVServerGroupAttributeArgs Uses

type DescribeVServerGroupAttributeArgs struct {
    VServerGroupId string
    RegionId       common.Region
}

type DescribeVServerGroupAttributeResponse Uses

type DescribeVServerGroupAttributeResponse CreateVServerGroupResponse

type DescribeVServerGroupsArgs Uses

type DescribeVServerGroupsArgs struct {
    LoadBalancerId  string
    RegionId        common.Region
    IncludeRule     bool
    IncludeListener bool
}

type DescribeVServerGroupsResponse Uses

type DescribeVServerGroupsResponse struct {
    common.Response
    VServerGroups struct {
        VServerGroup []VServerGroup
    }
    AssociatedObjects struct {
        Listeners string
        Rules     string
    }
}

type DescribeZonesArgs Uses

type DescribeZonesArgs struct {
    RegionId common.Region
}

type DescribeZonesResponse Uses

type DescribeZonesResponse struct {
    common.Response
    Zones struct {
        Zone []ZoneType
    }
}

type FlagType Uses

type FlagType string

type HTTPListenerType Uses

type HTTPListenerType struct {
    LoadBalancerId         string
    ListenerPort           int
    BackendServerPort      int
    Bandwidth              int
    Scheduler              SchedulerType
    StickySession          FlagType
    StickySessionType      StickySessionType
    CookieTimeout          int
    Cookie                 string
    HealthCheck            FlagType
    HealthCheckDomain      string
    HealthCheckURI         string
    HealthCheckConnectPort int
    HealthyThreshold       int
    UnhealthyThreshold     int
    HealthCheckTimeout     int
    HealthCheckInterval    int
    ForwardPort            int
    ListenerForward        FlagType
    HealthCheckHttpCode    HealthCheckHttpCodeType
    VServerGroup           FlagType
    VServerGroupId         string
    Gzip                   FlagType
    XForwardedFor_SLBID    FlagType
    XForwardedFor_SLBIP    FlagType
    XForwardedFor_proto    FlagType
    Description            string
    AclId                  string
    AclStatus              string
    AclType                string
}

type HTTPSListenerType Uses

type HTTPSListenerType struct {
    HTTPListenerType
    ServerCertificateId string
}

type HealthCheckHttpCodeType Uses

type HealthCheckHttpCodeType string

func EncodeHealthCheckHttpCodeType Uses

func EncodeHealthCheckHttpCodeType(healthCheckHttpCodes []HealthCheckHttpCodeType) (HealthCheckHttpCodeType, error)

type HealthCheckType Uses

type HealthCheckType string

type HealthStatusType Uses

type HealthStatusType struct {
    ServerId           string
    ServerHealthStatus string
}

type InternetChargeType Uses

type InternetChargeType string

type ListenerPortAndProtocolType Uses

type ListenerPortAndProtocolType struct {
    ListenerPort     int
    ListenerProtocol string
    Description      string
}

type ListenerStatus Uses

type ListenerStatus string

type ListenerType Uses

type ListenerType string

type LoadBalancerSpecType Uses

type LoadBalancerSpecType string

type LoadBalancerType Uses

type LoadBalancerType struct {
    LoadBalancerId               string
    LoadBalancerName             string
    LoadBalancerStatus           string
    Address                      string
    RegionId                     common.Region
    RegionIdAlias                string
    AddressType                  AddressType
    VSwitchId                    string
    VpcId                        string
    NetworkType                  string
    Bandwidth                    int
    InternetChargeType           InternetChargeType
    CreateTime                   string //Why not ISO 6801
    CreateTimeStamp              util.ISO6801Time
    DeleteProtection             FlagType
    ModificationProtectionStatus ModificationProtectionType
    ModificationProtectionReason string
    ListenerPorts                struct {
        ListenerPort []int
    }
    ListenerPortsAndProtocol struct {
        ListenerPortAndProtocol []ListenerPortAndProtocolType
    }
    BackendServers struct {
        BackendServer []BackendServerType
    }
    LoadBalancerSpec LoadBalancerSpecType
    MasterZoneId     string
    SlaveZoneId      string
    AddressIPVersion AddressIPVersionType
}

type ModificationProtectionType Uses

type ModificationProtectionType string

type ModifyLoadBalancerInstanceSpecArgs Uses

type ModifyLoadBalancerInstanceSpecArgs struct {
    RegionId         common.Region
    LoadBalancerId   string
    LoadBalancerSpec LoadBalancerSpecType
}

type ModifyLoadBalancerInternetSpecArgs Uses

type ModifyLoadBalancerInternetSpecArgs struct {
    LoadBalancerId     string
    InternetChargeType InternetChargeType
    Bandwidth          int
}

type ModifyLoadBalancerInternetSpecResponse Uses

type ModifyLoadBalancerInternetSpecResponse struct {
    common.Response
}

type ModifyVServerGroupBackendServersArgs Uses

type ModifyVServerGroupBackendServersArgs struct {
    VServerGroupId    string
    RegionId          common.Region
    OldBackendServers string
    NewBackendServers string
}

type ModifyVServerGroupBackendServersResponse Uses

type ModifyVServerGroupBackendServersResponse CreateVServerGroupResponse

type NewDescribeLoadBalancerAttributeArgs Uses

type NewDescribeLoadBalancerAttributeArgs struct {
    LoadBalancerId string
    RegionId       common.Region
    MasterZoneId   string
    SlaveZoneId    string
}

type RegionType Uses

type RegionType struct {
    RegionId  common.Region
    LocalName string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&regiontype

type RemoveBackendServersArgs Uses

type RemoveBackendServersArgs struct {
    LoadBalancerId string
    BackendServers string
}

type RemoveBackendServersResponse Uses

type RemoveBackendServersResponse struct {
    common.Response
    LoadBalancerId string
    BackendServers struct {
        BackendServer []BackendServerType
    }
}

type RemoveTagsArgs Uses

type RemoveTagsArgs struct {
    RegionId       common.Region
    LoadBalancerID string
    Tags           string
}

type RemoveTagsResponse Uses

type RemoveTagsResponse struct {
    common.Response
}

type RemoveVServerGroupBackendServersArgs Uses

type RemoveVServerGroupBackendServersArgs CreateVServerGroupArgs

type RemoveVServerGroupBackendServersResponse Uses

type RemoveVServerGroupBackendServersResponse CreateVServerGroupResponse

type Rule Uses

type Rule struct {
    RuleId         string
    RuleName       string
    Domain         string
    Url            string `json:",omitempty"`
    VServerGroupId string
}

type Rules Uses

type Rules struct {
    Rule []Rule
}

type SchedulerType Uses

type SchedulerType string

type ServerCertificateType Uses

type ServerCertificateType struct {
    RegionId              common.Region
    ServerCertificateId   string
    ServerCertificateName string
    Fingerprint           string
}

type SetBackendServersArgs Uses

type SetBackendServersArgs AddBackendServersArgs

type SetBackendServersResponse Uses

type SetBackendServersResponse AddBackendServersResponse

type SetListenerAccessControlStatusArgs Uses

type SetListenerAccessControlStatusArgs struct {
    LoadBalancerId      string
    ListenerPort        int
    AccessControlStatus AccessControlStatus
}

type SetLoadBalancerDeleteProtectionArgs Uses

type SetLoadBalancerDeleteProtectionArgs struct {
    LoadBalancerId   string
    DeleteProtection FlagType
    RegionId         common.Region
}

type SetLoadBalancerDeleteProtectionResponse Uses

type SetLoadBalancerDeleteProtectionResponse struct {
    common.Response
}

type SetLoadBalancerHTTPListenerAttributeArgs Uses

type SetLoadBalancerHTTPListenerAttributeArgs CreateLoadBalancerHTTPListenerArgs

type SetLoadBalancerHTTPSListenerAttributeArgs Uses

type SetLoadBalancerHTTPSListenerAttributeArgs CreateLoadBalancerHTTPSListenerArgs

type SetLoadBalancerModificationProtectionArgs Uses

type SetLoadBalancerModificationProtectionArgs struct {
    RegionId                     common.Region
    LoadBalancerId               string
    ModificationProtectionStatus ModificationProtectionType
    ModificationProtectionReason string
}

type SetLoadBalancerModificationProtectionResponse Uses

type SetLoadBalancerModificationProtectionResponse struct {
    common.Response
}

type SetLoadBalancerNameArgs Uses

type SetLoadBalancerNameArgs struct {
    LoadBalancerId   string
    LoadBalancerName string
}

type SetLoadBalancerNameResponse Uses

type SetLoadBalancerNameResponse struct {
    common.Response
}

type SetLoadBalancerStatusArgs Uses

type SetLoadBalancerStatusArgs struct {
    LoadBalancerId     string
    LoadBalancerStatus Status
}

type SetLoadBalancerStatusResponse Uses

type SetLoadBalancerStatusResponse struct {
    common.Response
}

type SetLoadBalancerTCPListenerAttributeArgs Uses

type SetLoadBalancerTCPListenerAttributeArgs CreateLoadBalancerTCPListenerArgs

type SetLoadBalancerUDPListenerAttributeArgs Uses

type SetLoadBalancerUDPListenerAttributeArgs CreateLoadBalancerUDPListenerArgs

type SetRuleArgs Uses

type SetRuleArgs struct {
    RegionId       common.Region
    RuleId         string
    VServerGroupId string
}

type SetRuleResponse Uses

type SetRuleResponse struct {
    common.Response
}

type SetServerCertificateNameArgs Uses

type SetServerCertificateNameArgs struct {
    RegionId              common.Region
    ServerCertificateId   string
    ServerCertificateName string
}

type SetServerCertificateNameResponse Uses

type SetServerCertificateNameResponse struct {
    common.Response
}

type SetVServerGroupAttributeArgs Uses

type SetVServerGroupAttributeArgs struct {
    LoadBalancerId   string
    RegionId         common.Region
    VServerGroupName string
    VServerGroupId   string
    BackendServers   string
}

type SetVServerGroupAttributeResponse Uses

type SetVServerGroupAttributeResponse struct {
    common.Response
    VServerGroupId   string
    VServerGroupName string
    BackendServers   VBackendServers
}

type Status Uses

type Status string

type StickySessionType Uses

type StickySessionType string

type TCPListenerType Uses

type TCPListenerType struct {
    LoadBalancerId            string
    ListenerPort              int
    BackendServerPort         int
    Bandwidth                 int
    Scheduler                 SchedulerType
    PersistenceTimeout        *int
    HealthCheck               FlagType
    HealthCheckType           HealthCheckType
    HealthCheckDomain         string
    HealthCheckURI            string
    HealthCheckConnectPort    int
    HealthyThreshold          int
    UnhealthyThreshold        int
    HealthCheckConnectTimeout int
    HealthCheckInterval       int
    HealthCheckHttpCode       HealthCheckHttpCodeType
    VServerGroup              FlagType
    VServerGroupId            string
    Description               string
    AclId                     string
    AclStatus                 string
    AclType                   string
}

type TagItem Uses

type TagItem struct {
    TagKey   string
    TagValue string
}

type TagItemType Uses

type TagItemType struct {
    TagItem
    InstanceCount int
}

type UDPListenerType Uses

type UDPListenerType struct {
    LoadBalancerId            string
    ListenerPort              int
    BackendServerPort         int
    Bandwidth                 int
    Scheduler                 SchedulerType
    PersistenceTimeout        *int
    HealthCheck               FlagType
    HealthCheckConnectPort    int
    HealthyThreshold          int
    UnhealthyThreshold        int
    HealthCheckConnectTimeout int
    HealthCheckInterval       int
    VServerGroup              FlagType
    VServerGroupId            string
    Description               string

    AclId     string
    AclStatus string
    AclType   string
}

type UploadServerCertificateArgs Uses

type UploadServerCertificateArgs struct {
    RegionId              common.Region
    ServerCertificate     string
    ServerCertificateName string
    PrivateKey            string
}

type UploadServerCertificateResponse Uses

type UploadServerCertificateResponse struct {
    common.Response
    ServerCertificateId   string
    ServerCertificateName string
    Fingerprint           string
}

type VBackendServerType Uses

type VBackendServerType struct {
    ServerId    string
    Weight      int
    Port        int
    Type        string
    ServerIp    string
    Description string
}

type VBackendServers Uses

type VBackendServers struct {
    BackendServer []VBackendServerType
}

type VServerGroup Uses

type VServerGroup struct {
    RegionId         common.Region
    VServerGroupName string
    VServerGroupId   string
}

type ZoneType Uses

type ZoneType struct {
    ZoneId     string
    LocalName  string
    SlaveZones struct {
        SlaveZone []ZoneType
    }
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&zonetype

Package slb imports 7 packages (graph) and is imported by 24 packages. Updated 2020-07-21. Refresh now. Tools for package owners.