nas

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

type SDKClient struct {
	Client *sdk.Client
}

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

func (c *SDKClient) DeleteLoadBalancer(region, loadBalancerID *string) error

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

Jump to

Keyboard shortcuts

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