loadbalancer

package
v1.1.133 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

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