v2

package
v0.0.27-beta Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElbClientBuilder

func ElbClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateCertificate

func GenReqDefForCreateCertificate() *def.HttpRequestDef

func GenReqDefForCreateHealthmonitor

func GenReqDefForCreateHealthmonitor() *def.HttpRequestDef

func GenReqDefForCreateL7policy

func GenReqDefForCreateL7policy() *def.HttpRequestDef

func GenReqDefForCreateL7rule

func GenReqDefForCreateL7rule() *def.HttpRequestDef

func GenReqDefForCreateListener

func GenReqDefForCreateListener() *def.HttpRequestDef

func GenReqDefForCreateLoadbalancer

func GenReqDefForCreateLoadbalancer() *def.HttpRequestDef

func GenReqDefForCreateMember

func GenReqDefForCreateMember() *def.HttpRequestDef

func GenReqDefForCreatePool

func GenReqDefForCreatePool() *def.HttpRequestDef

func GenReqDefForCreateWhitelist

func GenReqDefForCreateWhitelist() *def.HttpRequestDef

func GenReqDefForDeleteCertificate

func GenReqDefForDeleteCertificate() *def.HttpRequestDef

func GenReqDefForDeleteHealthmonitor

func GenReqDefForDeleteHealthmonitor() *def.HttpRequestDef

func GenReqDefForDeleteL7policy

func GenReqDefForDeleteL7policy() *def.HttpRequestDef

func GenReqDefForDeleteL7rule

func GenReqDefForDeleteL7rule() *def.HttpRequestDef

func GenReqDefForDeleteListener

func GenReqDefForDeleteListener() *def.HttpRequestDef

func GenReqDefForDeleteLoadbalancer

func GenReqDefForDeleteLoadbalancer() *def.HttpRequestDef

func GenReqDefForDeleteMember

func GenReqDefForDeleteMember() *def.HttpRequestDef

func GenReqDefForDeletePool

func GenReqDefForDeletePool() *def.HttpRequestDef

func GenReqDefForDeleteWhitelist

func GenReqDefForDeleteWhitelist() *def.HttpRequestDef

func GenReqDefForListCertificates

func GenReqDefForListCertificates() *def.HttpRequestDef

func GenReqDefForListHealthmonitors

func GenReqDefForListHealthmonitors() *def.HttpRequestDef

func GenReqDefForListL7policies

func GenReqDefForListL7policies() *def.HttpRequestDef

func GenReqDefForListL7rules

func GenReqDefForListL7rules() *def.HttpRequestDef

func GenReqDefForListListeners

func GenReqDefForListListeners() *def.HttpRequestDef

func GenReqDefForListLoadbalancers

func GenReqDefForListLoadbalancers() *def.HttpRequestDef

func GenReqDefForListMenbers

func GenReqDefForListMenbers() *def.HttpRequestDef

func GenReqDefForListPools

func GenReqDefForListPools() *def.HttpRequestDef

func GenReqDefForListWhitelists

func GenReqDefForListWhitelists() *def.HttpRequestDef

func GenReqDefForShowCertificate

func GenReqDefForShowCertificate() *def.HttpRequestDef

func GenReqDefForShowHealthmonitors

func GenReqDefForShowHealthmonitors() *def.HttpRequestDef

func GenReqDefForShowL7policy

func GenReqDefForShowL7policy() *def.HttpRequestDef

func GenReqDefForShowL7rule

func GenReqDefForShowL7rule() *def.HttpRequestDef

func GenReqDefForShowListener

func GenReqDefForShowListener() *def.HttpRequestDef

func GenReqDefForShowLoadbalancer

func GenReqDefForShowLoadbalancer() *def.HttpRequestDef

func GenReqDefForShowLoadbalancersStatus

func GenReqDefForShowLoadbalancersStatus() *def.HttpRequestDef

func GenReqDefForShowMember

func GenReqDefForShowMember() *def.HttpRequestDef

func GenReqDefForShowPool

func GenReqDefForShowPool() *def.HttpRequestDef

func GenReqDefForShowWhitelist

func GenReqDefForShowWhitelist() *def.HttpRequestDef

func GenReqDefForUpdateCertificate

func GenReqDefForUpdateCertificate() *def.HttpRequestDef

func GenReqDefForUpdateHealthmonitor

func GenReqDefForUpdateHealthmonitor() *def.HttpRequestDef

func GenReqDefForUpdateL7policies

func GenReqDefForUpdateL7policies() *def.HttpRequestDef

func GenReqDefForUpdateL7rule

func GenReqDefForUpdateL7rule() *def.HttpRequestDef

func GenReqDefForUpdateListener

func GenReqDefForUpdateListener() *def.HttpRequestDef

func GenReqDefForUpdateLoadbalancer

func GenReqDefForUpdateLoadbalancer() *def.HttpRequestDef

func GenReqDefForUpdateMember

func GenReqDefForUpdateMember() *def.HttpRequestDef

func GenReqDefForUpdatePool

func GenReqDefForUpdatePool() *def.HttpRequestDef

func GenReqDefForUpdateWhitelist

func GenReqDefForUpdateWhitelist() *def.HttpRequestDef

Types

type ElbClient

type ElbClient struct {
	HcClient *http_client.HcHttpClient
}

func NewElbClient

func NewElbClient(hcClient *http_client.HcHttpClient) *ElbClient

func (*ElbClient) CreateCertificate

func (c *ElbClient) CreateCertificate(request *model.CreateCertificateRequest) (*model.CreateCertificateResponse, error)

创建SSL证书。将监听器和SSL证书绑定后,可以通过负载均衡器实现服务端认证,后端服务器只要提供HTTP服务就能实现安全可靠的连接。

func (*ElbClient) CreateHealthmonitor

给后端云服务器组添加健康检查

func (*ElbClient) CreateL7policy

func (c *ElbClient) CreateL7policy(request *model.CreateL7policyRequest) (*model.CreateL7policyResponse, error)

创建listener关联的转发策略

func (*ElbClient) CreateL7rule

func (c *ElbClient) CreateL7rule(request *model.CreateL7ruleRequest) (*model.CreateL7ruleResponse, error)

创建转发规则

func (*ElbClient) CreateListener

func (c *ElbClient) CreateListener(request *model.CreateListenerRequest) (*model.CreateListenerResponse, error)

创建与负载均衡器绑定的监听器。

func (*ElbClient) CreateLoadbalancer

func (c *ElbClient) CreateLoadbalancer(request *model.CreateLoadbalancerRequest) (*model.CreateLoadbalancerResponse, error)

创建私网类型的增强型负载均衡器。创建成功后,该接口会返回创建的增强型负载均衡器的ID、所属子网ID、负载均衡器IP等详细信息。若要创建公网类型的增强型负载均衡器,还需调用创建浮动IP的接口,将浮动IP与私网负载均衡器的vip_port_id绑定。

func (*ElbClient) CreateMember

func (c *ElbClient) CreateMember(request *model.CreateMemberRequest) (*model.CreateMemberResponse, error)

添加属于某个后端云服务器组的后端云服务器。

func (*ElbClient) CreatePool

func (c *ElbClient) CreatePool(request *model.CreatePoolRequest) (*model.CreatePoolResponse, error)

创建后端云服务器组。将多个后端云服务器添加到后端云服务器组中后,请求会在后端云服务器间按后端云服务器组的负载均衡算法和后端云服务器的权重来做请求分发。

func (*ElbClient) CreateWhitelist

func (c *ElbClient) CreateWhitelist(request *model.CreateWhitelistRequest) (*model.CreateWhitelistResponse, error)

创建白名单,控制监听器的访问权限。若开启了白名单功能,只有白名单中放通的IP可以访问该监听器的后端服务。

func (*ElbClient) DeleteCertificate

func (c *ElbClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error)

删除指定的SSL证书

func (*ElbClient) DeleteHealthmonitor

删除健康检查

func (*ElbClient) DeleteL7policy

func (c *ElbClient) DeleteL7policy(request *model.DeleteL7policyRequest) (*model.DeleteL7policyResponse, error)

删除转发策略

func (*ElbClient) DeleteL7rule

func (c *ElbClient) DeleteL7rule(request *model.DeleteL7ruleRequest) (*model.DeleteL7ruleResponse, error)

删除转发规则

func (*ElbClient) DeleteListener

func (c *ElbClient) DeleteListener(request *model.DeleteListenerRequest) (*model.DeleteListenerResponse, error)

根据指定ID删除监听器。提供级联删除选项,当选择级联删除时,删除和负载均衡器关联的转发规则、转发策略、白名单、标签等。

func (*ElbClient) DeleteLoadbalancer

func (c *ElbClient) DeleteLoadbalancer(request *model.DeleteLoadbalancerRequest) (*model.DeleteLoadbalancerResponse, error)

根据指定ID删除负载均衡器。提供级联删除选项,当选择级联删除时,删除和负载均衡器关联的监听器、后端云服务器组、后端云服务器、健康检查、转发策略、转发规则、白名单、标签等

func (*ElbClient) DeleteMember

func (c *ElbClient) DeleteMember(request *model.DeleteMemberRequest) (*model.DeleteMemberResponse, error)

删除后端云服务器

func (*ElbClient) DeletePool

func (c *ElbClient) DeletePool(request *model.DeletePoolRequest) (*model.DeletePoolResponse, error)

删除后端云服务器组。

func (*ElbClient) DeleteWhitelist

func (c *ElbClient) DeleteWhitelist(request *model.DeleteWhitelistRequest) (*model.DeleteWhitelistResponse, error)

删除白名单

func (*ElbClient) ListCertificates

func (c *ElbClient) ListCertificates(request *model.ListCertificatesRequest) (*model.ListCertificatesResponse, error)

查询SSL证书。支持过滤查询和分页查询。

func (*ElbClient) ListHealthmonitors

func (c *ElbClient) ListHealthmonitors(request *model.ListHealthmonitorsRequest) (*model.ListHealthmonitorsResponse, error)

查询健康检查列表

func (*ElbClient) ListL7policies

func (c *ElbClient) ListL7policies(request *model.ListL7policiesRequest) (*model.ListL7policiesResponse, error)

查询转发策略。支持过滤查询和分页查询。

func (*ElbClient) ListL7rules

func (c *ElbClient) ListL7rules(request *model.ListL7rulesRequest) (*model.ListL7rulesResponse, error)

查询指定转发策略下关联的转发规则列表

func (*ElbClient) ListListeners

func (c *ElbClient) ListListeners(request *model.ListListenersRequest) (*model.ListListenersResponse, error)

查询监听器列表。支持过滤查询和分页查询。可以通过监听器ID、协议类型、监听端口号、关联的后端云服务器的IP等查询监听器。

func (*ElbClient) ListLoadbalancers

func (c *ElbClient) ListLoadbalancers(request *model.ListLoadbalancersRequest) (*model.ListLoadbalancersResponse, error)

查询负载均衡器列表。

func (*ElbClient) ListMenbers

func (c *ElbClient) ListMenbers(request *model.ListMenbersRequest) (*model.ListMenbersResponse, error)

添加属于某个后端云服务器组的后端云服务器。

func (*ElbClient) ListPools

func (c *ElbClient) ListPools(request *model.ListPoolsRequest) (*model.ListPoolsResponse, error)

查询后端云服务器组列表。

func (*ElbClient) ListWhitelists

func (c *ElbClient) ListWhitelists(request *model.ListWhitelistsRequest) (*model.ListWhitelistsResponse, error)

查询白名单,支持过滤查询和分页查询。

func (*ElbClient) ShowCertificate

func (c *ElbClient) ShowCertificate(request *model.ShowCertificateRequest) (*model.ShowCertificateResponse, error)

查询指定SSL证书的详情信息。

func (*ElbClient) ShowHealthmonitors

func (c *ElbClient) ShowHealthmonitors(request *model.ShowHealthmonitorsRequest) (*model.ShowHealthmonitorsResponse, error)

根据指定ID查询健康检查详情。

func (*ElbClient) ShowL7policy

func (c *ElbClient) ShowL7policy(request *model.ShowL7policyRequest) (*model.ShowL7policyResponse, error)

根据指定ID查询转发策略详情。

func (*ElbClient) ShowL7rule

func (c *ElbClient) ShowL7rule(request *model.ShowL7ruleRequest) (*model.ShowL7ruleResponse, error)

根据指定ID查询某转发策略下关联的转发规则详情。

func (*ElbClient) ShowListener

func (c *ElbClient) ShowListener(request *model.ShowListenerRequest) (*model.ShowListenerResponse, error)

根据指定ID查询监听器详情。

func (*ElbClient) ShowLoadbalancer

func (c *ElbClient) ShowLoadbalancer(request *model.ShowLoadbalancerRequest) (*model.ShowLoadbalancerResponse, error)

根据指定负载均衡器ID查询负载均衡器详情

func (*ElbClient) ShowLoadbalancersStatus

查询负载均衡器状态树。可通过该接口查询负载均衡器关联的监听器、后端云服务器组、后端云服务器、健康检查、转发策略、转发规则的主要信息,了解负载均衡器下资源的拓扑情况。

func (*ElbClient) ShowMember

func (c *ElbClient) ShowMember(request *model.ShowMemberRequest) (*model.ShowMemberResponse, error)

根据指定ID查询后端云服务器详情。

func (*ElbClient) ShowPool

func (c *ElbClient) ShowPool(request *model.ShowPoolRequest) (*model.ShowPoolResponse, error)

根据指定ID查询后端云服务器组详情。

func (*ElbClient) ShowWhitelist

func (c *ElbClient) ShowWhitelist(request *model.ShowWhitelistRequest) (*model.ShowWhitelistResponse, error)

根据指定ID查询白名单详情。

func (*ElbClient) UpdateCertificate

func (c *ElbClient) UpdateCertificate(request *model.UpdateCertificateRequest) (*model.UpdateCertificateResponse, error)

更新指定的SSL证书

func (*ElbClient) UpdateHealthmonitor

更新健康检查

func (*ElbClient) UpdateL7policies

func (c *ElbClient) UpdateL7policies(request *model.UpdateL7policiesRequest) (*model.UpdateL7policiesResponse, error)

更新转发策略

func (*ElbClient) UpdateL7rule

func (c *ElbClient) UpdateL7rule(request *model.UpdateL7ruleRequest) (*model.UpdateL7ruleResponse, error)

更新指定的转发规则

func (*ElbClient) UpdateListener

func (c *ElbClient) UpdateListener(request *model.UpdateListenerRequest) (*model.UpdateListenerResponse, error)

更新监听器。

func (*ElbClient) UpdateLoadbalancer

func (c *ElbClient) UpdateLoadbalancer(request *model.UpdateLoadbalancerRequest) (*model.UpdateLoadbalancerResponse, error)

更新负载均衡器。

func (*ElbClient) UpdateMember

func (c *ElbClient) UpdateMember(request *model.UpdateMemberRequest) (*model.UpdateMemberResponse, error)

更新后端云服务器

func (*ElbClient) UpdatePool

func (c *ElbClient) UpdatePool(request *model.UpdatePoolRequest) (*model.UpdatePoolResponse, error)

更新后端云服务器组。

func (*ElbClient) UpdateWhitelist

func (c *ElbClient) UpdateWhitelist(request *model.UpdateWhitelistRequest) (*model.UpdateWhitelistResponse, error)

更新白名单。可以打开或关闭白名单,或更新访问控制的IP。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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