Documentation
¶
Index ¶
- Variables
- type DedicatedLoadBalanceClient
- func (s *DedicatedLoadBalanceClient) AddMember(poolID string, req *model.CreateMemberOption) (*model.Member, error)
- func (s *DedicatedLoadBalanceClient) CreateHealthMonitor(req *model.CreateHealthMonitorOption) (*model.HealthMonitor, error)
- func (s *DedicatedLoadBalanceClient) CreateInstance(opt *model.CreateLoadBalancerOption) (*model.LoadBalancer, error)
- func (s *DedicatedLoadBalanceClient) CreateInstanceCompleted(req *model.CreateLoadBalancerOption) (*model.LoadBalancer, error)
- func (s *DedicatedLoadBalanceClient) CreateListener(req *model.CreateListenerOption) (*model.Listener, error)
- func (s *DedicatedLoadBalanceClient) CreatePool(req *model.CreatePoolOption) (*model.Pool, error)
- func (s *DedicatedLoadBalanceClient) DeleteAllPoolMembers(poolID string) error
- func (s *DedicatedLoadBalanceClient) DeleteHealthMonitor(id string) error
- func (s *DedicatedLoadBalanceClient) DeleteInstance(id string) error
- func (s *DedicatedLoadBalanceClient) DeleteListener(elbID string, listenerID string) error
- func (s *DedicatedLoadBalanceClient) DeleteMember(poolID, memberID string) error
- func (s *DedicatedLoadBalanceClient) DeletePool(id string) error
- func (s *DedicatedLoadBalanceClient) GetHealthMonitor(id string) (*model.HealthMonitor, error)
- func (s *DedicatedLoadBalanceClient) GetInstance(id string) (*model.LoadBalancer, error)
- func (s *DedicatedLoadBalanceClient) GetListener(id string) (*model.Listener, error)
- func (s *DedicatedLoadBalanceClient) GetMember(id string) (*model.Member, error)
- func (s *DedicatedLoadBalanceClient) GetPool(id string) (*model.Pool, error)
- func (s *DedicatedLoadBalanceClient) ListInstances(req *model.ListLoadBalancersRequest) ([]model.LoadBalancer, error)
- func (s *DedicatedLoadBalanceClient) ListListeners(req *model.ListListenersRequest) ([]model.Listener, error)
- func (s *DedicatedLoadBalanceClient) ListMembers(req *model.ListMembersRequest) ([]model.Member, error)
- func (s *DedicatedLoadBalanceClient) ListPools(req *model.ListPoolsRequest) ([]model.Pool, error)
- func (s *DedicatedLoadBalanceClient) UpdateHealthMonitor(id string, req *model.UpdateHealthMonitorOption) error
- func (s *DedicatedLoadBalanceClient) UpdateInstance(id, name, description string) (*model.LoadBalancer, error)
- func (s *DedicatedLoadBalanceClient) UpdateListener(id string, opt *model.UpdateListenerOption) error
- func (s *DedicatedLoadBalanceClient) UpdateMember(id string, req *model.UpdateMemberOption) (*model.Member, error)
- func (s *DedicatedLoadBalanceClient) UpdatePool(id string, req *model.UpdatePoolOption) (*model.Pool, error)
- func (s *DedicatedLoadBalanceClient) WaitStatusActive(id string) (*model.LoadBalancer, error)
- type EIpClient
- func (e *EIpClient) Bind(id, portID string) error
- func (e *EIpClient) Create(req *model.CreatePublicipRequestBody) (*model.PublicipCreateResp, error)
- func (e *EIpClient) Delete(id string) error
- func (e *EIpClient) Get(id string) (*model.PublicipShowResp, error)
- func (e *EIpClient) List(req *model.ListPublicipsRequest) ([]model.PublicipShowResp, error)
- func (e *EIpClient) Unbind(id string) error
- func (e *EIpClient) Update(id string, opts *model.UpdatePublicipOption) error
- type EcsClient
- func (e *EcsClient) BuildAddresses(server *model.ServerDetail, interfaces []model.InterfaceAttachment, ...) ([]v1.NodeAddress, error)
- func (e *EcsClient) Get(id string) (*model.ServerDetail, error)
- func (e *EcsClient) GetByName(name string) (*model.ServerDetail, error)
- func (e *EcsClient) List(req *model.ListServersDetailsRequest) (*model.ListServersDetailsResponse, error)
- func (e *EcsClient) ListInterfaces(req *model.ListServerInterfacesRequest) ([]model.InterfaceAttachment, error)
- func (e *EcsClient) ListSecurityGroups(instanceID string) ([]model.NovaSecurityGroup, error)
- type SharedLoadBalanceClient
- func (s *SharedLoadBalanceClient) AddMember(poolID string, req *model.CreateMemberReq) (*model.MemberResp, error)
- func (s *SharedLoadBalanceClient) CreateHealthMonitor(req *model.CreateHealthmonitorReq) (*model.HealthmonitorResp, error)
- func (s *SharedLoadBalanceClient) CreateInstance(req *model.CreateLoadbalancerReq) (*model.LoadbalancerResp, error)
- func (s *SharedLoadBalanceClient) CreateInstanceCompleted(req *model.CreateLoadbalancerReq) (*model.LoadbalancerResp, error)
- func (s *SharedLoadBalanceClient) CreateListener(req *model.CreateListenerReq) (*model.ListenerResp, error)
- func (s *SharedLoadBalanceClient) CreatePool(req *model.CreatePoolReq) (*model.PoolResp, error)
- func (s *SharedLoadBalanceClient) DeleteAllPoolMembers(poolID string) error
- func (s *SharedLoadBalanceClient) DeleteHealthMonitor(id string) error
- func (s *SharedLoadBalanceClient) DeleteInstance(id string) error
- func (s *SharedLoadBalanceClient) DeleteListener(elbID string, listenerID string) error
- func (s *SharedLoadBalanceClient) DeleteMember(poolID, memberID string) error
- func (s *SharedLoadBalanceClient) DeletePool(id string) error
- func (s *SharedLoadBalanceClient) GetHealthMonitor(id string) (*model.HealthmonitorResp, error)
- func (s *SharedLoadBalanceClient) GetInstance(id string) (*model.LoadbalancerResp, error)
- func (s *SharedLoadBalanceClient) GetListener(id string) (*model.ListenerResp, error)
- func (s *SharedLoadBalanceClient) GetMember(id string) (*model.MemberResp, error)
- func (s *SharedLoadBalanceClient) GetPool(id string) (*model.PoolResp, error)
- func (s *SharedLoadBalanceClient) ListInstances(req *model.ListLoadbalancersRequest) ([]model.LoadbalancerResp, error)
- func (s *SharedLoadBalanceClient) ListListeners(req *model.ListListenersRequest) ([]model.ListenerResp, error)
- func (s *SharedLoadBalanceClient) ListMembers(req *model.ListMembersRequest) ([]model.MemberResp, error)
- func (s *SharedLoadBalanceClient) ListPools(req *model.ListPoolsRequest) ([]model.PoolResp, error)
- func (s *SharedLoadBalanceClient) UpdateHealthMonitor(id string, req *model.UpdateHealthmonitorReq) error
- func (s *SharedLoadBalanceClient) UpdateInstance(id, name, description string) (*model.LoadbalancerResp, error)
- func (s *SharedLoadBalanceClient) UpdateListener(id string, req *model.UpdateListenerReq) error
- func (s *SharedLoadBalanceClient) UpdateMember(id string, req *model.UpdateMemberReq) (*model.MemberResp, error)
- func (s *SharedLoadBalanceClient) UpdatePool(id string, req *model.UpdatePoolReq) (*model.PoolResp, error)
- func (s *SharedLoadBalanceClient) WaitStatusActive(id string) (*model.LoadbalancerResp, error)
- type VpcClient
Constants ¶
This section is empty.
Variables ¶
View Source
var OKCodes = []int{200, 201, 204}
Functions ¶
This section is empty.
Types ¶
type DedicatedLoadBalanceClient ¶ added in v0.20.1
type DedicatedLoadBalanceClient struct {
AuthOpts *config.AuthOptions
}
DedicatedLoadBalanceClient is the client of the V3 API. The v3 version API is not fully compatible with the v2 version API, So we need a transition period.
func (*DedicatedLoadBalanceClient) AddMember ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) AddMember(poolID string, req *model.CreateMemberOption) (*model.Member, error)
func (*DedicatedLoadBalanceClient) CreateHealthMonitor ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) CreateHealthMonitor(req *model.CreateHealthMonitorOption) (*model.HealthMonitor, error)
func (*DedicatedLoadBalanceClient) CreateInstance ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) CreateInstance(opt *model.CreateLoadBalancerOption) (*model.LoadBalancer, error)
func (*DedicatedLoadBalanceClient) CreateInstanceCompleted ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) CreateInstanceCompleted(req *model.CreateLoadBalancerOption) (*model.LoadBalancer, error)
func (*DedicatedLoadBalanceClient) CreateListener ¶ added in v0.20.1
func (s *DedicatedLoadBalanceClient) CreateListener(req *model.CreateListenerOption) (*model.Listener, error)
func (*DedicatedLoadBalanceClient) CreatePool ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) CreatePool(req *model.CreatePoolOption) (*model.Pool, error)
func (*DedicatedLoadBalanceClient) DeleteAllPoolMembers ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) DeleteAllPoolMembers(poolID string) error
func (*DedicatedLoadBalanceClient) DeleteHealthMonitor ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) DeleteHealthMonitor(id string) error
func (*DedicatedLoadBalanceClient) DeleteInstance ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) DeleteInstance(id string) error
func (*DedicatedLoadBalanceClient) DeleteListener ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) DeleteListener(elbID string, listenerID string) error
func (*DedicatedLoadBalanceClient) DeleteMember ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) DeleteMember(poolID, memberID string) error
func (*DedicatedLoadBalanceClient) DeletePool ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) DeletePool(id string) error
func (*DedicatedLoadBalanceClient) GetHealthMonitor ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) GetHealthMonitor(id string) (*model.HealthMonitor, error)
func (*DedicatedLoadBalanceClient) GetInstance ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) GetInstance(id string) (*model.LoadBalancer, error)
func (*DedicatedLoadBalanceClient) GetListener ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) GetListener(id string) (*model.Listener, error)
func (*DedicatedLoadBalanceClient) GetMember ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) GetMember(id string) (*model.Member, error)
func (*DedicatedLoadBalanceClient) GetPool ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) GetPool(id string) (*model.Pool, error)
func (*DedicatedLoadBalanceClient) ListInstances ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) ListInstances(req *model.ListLoadBalancersRequest) ([]model.LoadBalancer, error)
func (*DedicatedLoadBalanceClient) ListListeners ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) ListListeners(req *model.ListListenersRequest) ([]model.Listener, error)
func (*DedicatedLoadBalanceClient) ListMembers ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) ListMembers(req *model.ListMembersRequest) ([]model.Member, error)
func (*DedicatedLoadBalanceClient) ListPools ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) ListPools(req *model.ListPoolsRequest) ([]model.Pool, error)
func (*DedicatedLoadBalanceClient) UpdateHealthMonitor ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) UpdateHealthMonitor(id string, req *model.UpdateHealthMonitorOption) error
func (*DedicatedLoadBalanceClient) UpdateInstance ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) UpdateInstance(id, name, description string) (*model.LoadBalancer, error)
func (*DedicatedLoadBalanceClient) UpdateListener ¶ added in v0.20.1
func (s *DedicatedLoadBalanceClient) UpdateListener(id string, opt *model.UpdateListenerOption) error
func (*DedicatedLoadBalanceClient) UpdateMember ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) UpdateMember(id string, req *model.UpdateMemberOption) (*model.Member, error)
func (*DedicatedLoadBalanceClient) UpdatePool ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) UpdatePool(id string, req *model.UpdatePoolOption) (*model.Pool, error)
func (*DedicatedLoadBalanceClient) WaitStatusActive ¶ added in v0.20.2
func (s *DedicatedLoadBalanceClient) WaitStatusActive(id string) (*model.LoadBalancer, error)
type EIpClient ¶
type EIpClient struct {
AuthOpts *config.AuthOptions
}
func (*EIpClient) Create ¶
func (e *EIpClient) Create(req *model.CreatePublicipRequestBody) (*model.PublicipCreateResp, error)
func (*EIpClient) List ¶
func (e *EIpClient) List(req *model.ListPublicipsRequest) ([]model.PublicipShowResp, error)
type EcsClient ¶
type EcsClient struct {
AuthOpts *config.AuthOptions
}
func (*EcsClient) BuildAddresses ¶
func (e *EcsClient) BuildAddresses(server *model.ServerDetail, interfaces []model.InterfaceAttachment, networkingOpts *config.NetworkingOptions) ([]v1.NodeAddress, error)
func (*EcsClient) GetByName ¶
func (e *EcsClient) GetByName(name string) (*model.ServerDetail, error)
func (*EcsClient) List ¶
func (e *EcsClient) List(req *model.ListServersDetailsRequest) (*model.ListServersDetailsResponse, error)
func (*EcsClient) ListInterfaces ¶
func (e *EcsClient) ListInterfaces(req *model.ListServerInterfacesRequest) ([]model.InterfaceAttachment, error)
func (*EcsClient) ListSecurityGroups ¶ added in v0.20.4
func (e *EcsClient) ListSecurityGroups(instanceID string) ([]model.NovaSecurityGroup, error)
type SharedLoadBalanceClient ¶
type SharedLoadBalanceClient struct {
}func (*SharedLoadBalanceClient) AddMember ¶
func (s *SharedLoadBalanceClient) AddMember(poolID string, req *model.CreateMemberReq) (*model.MemberResp, error)
func (*SharedLoadBalanceClient) CreateHealthMonitor ¶
func (s *SharedLoadBalanceClient) CreateHealthMonitor(req *model.CreateHealthmonitorReq) (*model.HealthmonitorResp, error)
func (*SharedLoadBalanceClient) CreateInstance ¶
func (s *SharedLoadBalanceClient) CreateInstance(req *model.CreateLoadbalancerReq) (*model.LoadbalancerResp, error)
func (*SharedLoadBalanceClient) CreateInstanceCompleted ¶
func (s *SharedLoadBalanceClient) CreateInstanceCompleted(req *model.CreateLoadbalancerReq) (*model.LoadbalancerResp, error)
func (*SharedLoadBalanceClient) CreateListener ¶
func (s *SharedLoadBalanceClient) CreateListener(req *model.CreateListenerReq) (*model.ListenerResp, error)
func (*SharedLoadBalanceClient) CreatePool ¶
func (s *SharedLoadBalanceClient) CreatePool(req *model.CreatePoolReq) (*model.PoolResp, error)
func (*SharedLoadBalanceClient) DeleteAllPoolMembers ¶
func (s *SharedLoadBalanceClient) DeleteAllPoolMembers(poolID string) error
func (*SharedLoadBalanceClient) DeleteHealthMonitor ¶
func (s *SharedLoadBalanceClient) DeleteHealthMonitor(id string) error
func (*SharedLoadBalanceClient) DeleteInstance ¶
func (s *SharedLoadBalanceClient) DeleteInstance(id string) error
func (*SharedLoadBalanceClient) DeleteListener ¶
func (s *SharedLoadBalanceClient) DeleteListener(elbID string, listenerID string) error
func (*SharedLoadBalanceClient) DeleteMember ¶
func (s *SharedLoadBalanceClient) DeleteMember(poolID, memberID string) error
func (*SharedLoadBalanceClient) DeletePool ¶
func (s *SharedLoadBalanceClient) DeletePool(id string) error
func (*SharedLoadBalanceClient) GetHealthMonitor ¶
func (s *SharedLoadBalanceClient) GetHealthMonitor(id string) (*model.HealthmonitorResp, error)
func (*SharedLoadBalanceClient) GetInstance ¶
func (s *SharedLoadBalanceClient) GetInstance(id string) (*model.LoadbalancerResp, error)
func (*SharedLoadBalanceClient) GetListener ¶
func (s *SharedLoadBalanceClient) GetListener(id string) (*model.ListenerResp, error)
func (*SharedLoadBalanceClient) GetMember ¶
func (s *SharedLoadBalanceClient) GetMember(id string) (*model.MemberResp, error)
func (*SharedLoadBalanceClient) GetPool ¶
func (s *SharedLoadBalanceClient) GetPool(id string) (*model.PoolResp, error)
func (*SharedLoadBalanceClient) ListInstances ¶
func (s *SharedLoadBalanceClient) ListInstances(req *model.ListLoadbalancersRequest) ([]model.LoadbalancerResp, error)
func (*SharedLoadBalanceClient) ListListeners ¶
func (s *SharedLoadBalanceClient) ListListeners(req *model.ListListenersRequest) ([]model.ListenerResp, error)
func (*SharedLoadBalanceClient) ListMembers ¶
func (s *SharedLoadBalanceClient) ListMembers(req *model.ListMembersRequest) ([]model.MemberResp, error)
func (*SharedLoadBalanceClient) ListPools ¶
func (s *SharedLoadBalanceClient) ListPools(req *model.ListPoolsRequest) ([]model.PoolResp, error)
func (*SharedLoadBalanceClient) UpdateHealthMonitor ¶
func (s *SharedLoadBalanceClient) UpdateHealthMonitor(id string, req *model.UpdateHealthmonitorReq) error
func (*SharedLoadBalanceClient) UpdateInstance ¶
func (s *SharedLoadBalanceClient) UpdateInstance(id, name, description string) (*model.LoadbalancerResp, error)
func (*SharedLoadBalanceClient) UpdateListener ¶
func (s *SharedLoadBalanceClient) UpdateListener(id string, req *model.UpdateListenerReq) error
func (*SharedLoadBalanceClient) UpdateMember ¶
func (s *SharedLoadBalanceClient) UpdateMember(id string, req *model.UpdateMemberReq) (*model.MemberResp, error)
func (*SharedLoadBalanceClient) UpdatePool ¶
func (s *SharedLoadBalanceClient) UpdatePool(id string, req *model.UpdatePoolReq) (*model.PoolResp, error)
func (*SharedLoadBalanceClient) WaitStatusActive ¶
func (s *SharedLoadBalanceClient) WaitStatusActive(id string) (*model.LoadbalancerResp, error)
type VpcClient ¶ added in v0.20.4
type VpcClient struct {
AuthOpts *config.AuthOptions
}
func (*VpcClient) CreateSecurityGroupRule ¶ added in v0.20.4
func (c *VpcClient) CreateSecurityGroupRule(rule *model.CreateSecurityGroupRuleOption) (*model.SecurityGroupRule, error)
func (*VpcClient) DeleteSecurityGroupRule ¶ added in v0.20.4
func (*VpcClient) ListSecurityGroupRules ¶ added in v0.20.4
func (c *VpcClient) ListSecurityGroupRules(securityGroupID string) ([]model.SecurityGroupRule, error)
Click to show internal directories.
Click to hide internal directories.