availabilitysets

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilitySetScope

type AvailabilitySetScope interface {
	logr.Logger
	azure.ClusterDescriber
	AvailabilitySet() (string, bool)
}

AvailabilitySetScope defines the scope interface for a availability sets service.

type AzureClient

type AzureClient struct {
	// contains filtered or unexported fields
}

AzureClient contains the Azure go-sdk Client.

func NewClient

func NewClient(auth azure.Authorizer) *AzureClient

NewClient creates a new Resource SKUs Client from subscription ID.

func (*AzureClient) CreateOrUpdate

func (a *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroup string, availabilitySetsName string,
	params compute.AvailabilitySet) (compute.AvailabilitySet, error)

CreateOrUpdate creates or updates an availability set.

func (*AzureClient) Delete

func (a *AzureClient) Delete(ctx context.Context, resourceGroup, availabilitySetsName string) error

Delete deletes an availability set.

func (*AzureClient) Get

func (a *AzureClient) Get(ctx context.Context, resourceGroup, availabilitySetsName string) (compute.AvailabilitySet, error)

Get gets an availability set.

type Client

type Client interface {
	Get(ctx context.Context, resourceGroup, availabilitySetsName string) (compute.AvailabilitySet, error)
	CreateOrUpdate(ctx context.Context, resourceGroup, availabilitySetsName string, params compute.AvailabilitySet) (compute.AvailabilitySet, error)
	Delete(ctx context.Context, resourceGroup, availabilitySetsName string) error
}

Client wraps go-sdk.

type Service

type Service struct {
	Scope AvailabilitySetScope
	Client
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

func New(scope AvailabilitySetScope, skuCache *resourceskus.Cache) *Service

New creates a new availability sets service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes availability sets.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile creates or updates availability sets.

Directories

Path Synopsis
Package mock_availabilitysets is a generated GoMock package.
Package mock_availabilitysets is a generated GoMock package.

Jump to

Keyboard shortcuts

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