Documentation ¶
Index ¶
- type LoadBalancerClient
- func (c *LoadBalancerClient) CreateOrUpdate(ctx context.Context, group, name string, lb *network.LoadBalancer) (*network.LoadBalancer, error)
- func (c *LoadBalancerClient) Delete(ctx context.Context, group, name string) error
- func (c *LoadBalancerClient) Get(ctx context.Context, group, name string) (*[]network.LoadBalancer, error)
- func (c *LoadBalancerClient) Precheck(ctx context.Context, group string, loadBalancers []*network.LoadBalancer) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancerClient ¶
type LoadBalancerClient struct { network.BaseClient // contains filtered or unexported fields }
LoadBalancerClient structure
func NewLoadBalancerClient ¶
func NewLoadBalancerClient(cloudFQDN string, authorizer auth.Authorizer) (*LoadBalancerClient, error)
NewLoadBalancerClient method returns new client
func (*LoadBalancerClient) CreateOrUpdate ¶
func (c *LoadBalancerClient) CreateOrUpdate(ctx context.Context, group, name string, lb *network.LoadBalancer) (*network.LoadBalancer, error)
Ensure methods invokes create or update on the client
func (*LoadBalancerClient) Delete ¶
func (c *LoadBalancerClient) Delete(ctx context.Context, group, name string) error
Delete methods invokes delete of the network resource
func (*LoadBalancerClient) Get ¶
func (c *LoadBalancerClient) Get(ctx context.Context, group, name string) (*[]network.LoadBalancer, error)
Get methods invokes the client Get method
func (*LoadBalancerClient) Precheck ¶ added in v0.19.3
func (c *LoadBalancerClient) Precheck(ctx context.Context, group string, loadBalancers []*network.LoadBalancer) (bool, error)
Prechecks whether the system is able to create specified loadBalancers. Returns true if it is possible; or false with reason in error message if not.
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]network.LoadBalancer, error) CreateOrUpdate(context.Context, string, string, *network.LoadBalancer) (*network.LoadBalancer, error) Delete(context.Context, string, string) error Precheck(ctx context.Context, group string, loadBalancers []*network.LoadBalancer) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.