vippool

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Get(context.Context, string, string) (*[]network.VipPool, error)
	CreateOrUpdate(context.Context, string, string, *network.VipPool) (*network.VipPool, error)
	Delete(context.Context, string, string) error
	Precheck(ctx context.Context, location string, resources []*network.VipPool) (bool, error)
}

Service interface

type VipPoolClient

type VipPoolClient struct {
	network.BaseClient
	// contains filtered or unexported fields
}

VipPoolClient structure

func NewVipPoolClient

func NewVipPoolClient(cloudFQDN string, authorizer auth.Authorizer) (*VipPoolClient, error)

NewVipPoolClient method returns new client

func (*VipPoolClient) CreateOrUpdate

func (c *VipPoolClient) CreateOrUpdate(ctx context.Context, location, name string, vp *network.VipPool) (*network.VipPool, error)

Ensure methods invokes create or update on the client

func (*VipPoolClient) Delete

func (c *VipPoolClient) Delete(ctx context.Context, location, name string) error

Delete methods invokes delete of the network resource

func (*VipPoolClient) Get

func (c *VipPoolClient) Get(ctx context.Context, location, name string) (*[]network.VipPool, error)

Get methods invokes the client Get method

func (*VipPoolClient) Precheck added in v0.19.3

func (c *VipPoolClient) Precheck(ctx context.Context, location string, resources []*network.VipPool) (bool, error)

Prechecks whether the system is able to create specified resources. Returns true if it is possible; or false with reason in error message if not.

Jump to

Keyboard shortcuts

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