availabilityset

package
v1.1.117 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilitySetClient

type AvailabilitySetClient struct {
	compute.BaseClient
	// contains filtered or unexported fields
}

func NewAvailabilitySetClient

func NewAvailabilitySetClient(cloudFQDN string, authorizer auth.Authorizer) (*AvailabilitySetClient, error)

func (*AvailabilitySetClient) Create

CreateOrUpdate methods invokes create or update on the client

func (*AvailabilitySetClient) Delete

func (c *AvailabilitySetClient) Delete(ctx context.Context, group, name string) error

Delete methods invokes delete of the compute resource

func (*AvailabilitySetClient) Get

func (c *AvailabilitySetClient) Get(ctx context.Context, group, name string) (*[]compute.AvailabilitySet, error)

Get methods invokes the client Get method

func (*AvailabilitySetClient) Precheck added in v0.19.3

func (c *AvailabilitySetClient) Precheck(ctx context.Context, group string, avsets []*compute.AvailabilitySet) (bool, error)

Prechecks whether the system is able to create specified availability sets. 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) (*[]compute.AvailabilitySet, error)
	Create(ctx context.Context, group string, name string, avset *compute.AvailabilitySet) (*compute.AvailabilitySet, error)
	Delete(context.Context, string, string) error
	Precheck(ctx context.Context, group string, avsets []*compute.AvailabilitySet) (bool, error)
}

Jump to

Keyboard shortcuts

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