Documentation ¶
Index ¶
- func GenerateObservation(res *sdk.DescribeLoadBalancersResponse) v1alpha1.CLBObservation
- func IsUpdateToDate(cr *v1alpha1.CLB, res *sdk.DescribeLoadBalancersResponse) bool
- type ClientInterface
- type SDKClient
- func (c *SDKClient) CreateLoadBalancer(name string, clb v1alpha1.CLBParameter) (*sdk.CreateLoadBalancerResponse, error)
- func (c *SDKClient) DeleteLoadBalancer(region, loadBalancerID *string) error
- func (c *SDKClient) DescribeLoadBalancers(region, loadBalancerID, vpcID, vSwitchID *string) (*sdk.DescribeLoadBalancersResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateObservation ¶
func GenerateObservation(res *sdk.DescribeLoadBalancersResponse) v1alpha1.CLBObservation
GenerateObservation generates CLBObservation from LoadBalancer information
func IsUpdateToDate ¶
func IsUpdateToDate(cr *v1alpha1.CLB, res *sdk.DescribeLoadBalancersResponse) bool
IsUpdateToDate checks whether cr is up to date
Types ¶
type ClientInterface ¶
type ClientInterface interface { DescribeLoadBalancers(region, loadBalancerID, vpcID, vSwitchID *string) (*sdk.DescribeLoadBalancersResponse, error) CreateLoadBalancer(name string, clb v1alpha1.CLBParameter) (*sdk.CreateLoadBalancerResponse, error) DeleteLoadBalancer(region, loadBalancerID *string) error }
ClientInterface creates a client interface
type SDKClient ¶
SDKClient is the SDK client for SLBLoadBalancer
func NewClient ¶
func NewClient(ctx context.Context, endpoint string, accessKeyID string, accessKeySecret string, securityToken string) (*SDKClient, error)
NewClient will create SLB client
func (*SDKClient) CreateLoadBalancer ¶
func (c *SDKClient) CreateLoadBalancer(name string, clb v1alpha1.CLBParameter) (*sdk.CreateLoadBalancerResponse, error)
CreateLoadBalancer creates a SLBLoadBalancer instance
func (*SDKClient) DeleteLoadBalancer ¶
DeleteLoadBalancer deletes the SLBLoadBalancer instance
func (*SDKClient) DescribeLoadBalancers ¶
func (c *SDKClient) DescribeLoadBalancers(region, loadBalancerID, vpcID, vSwitchID *string) (*sdk.DescribeLoadBalancersResponse, error)
DescribeLoadBalancers describes a SLBLoadBalancer instance
Click to show internal directories.
Click to hide internal directories.