availabilitysets

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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 {
	azure.ClusterDescriber
	azure.AsyncStatusUpdater
	AvailabilitySetSpec() azure.ResourceSpecGetter
}

AvailabilitySetScope defines the scope interface for a availability sets service.

type AvailabilitySetSpec added in v1.1.0

type AvailabilitySetSpec struct {
	Name           string
	ResourceGroup  string
	ClusterName    string
	Location       string
	SKU            *resourceskus.SKU
	AdditionalTags infrav1.Tags
}

AvailabilitySetSpec defines the specification for an availability set.

func (*AvailabilitySetSpec) OwnerResourceName added in v1.1.0

func (s *AvailabilitySetSpec) OwnerResourceName() string

OwnerResourceName is a no-op for availability sets.

func (*AvailabilitySetSpec) Parameters added in v1.1.0

func (s *AvailabilitySetSpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)

Parameters returns the parameters for the availability set.

func (*AvailabilitySetSpec) ResourceGroupName added in v1.1.0

func (s *AvailabilitySetSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*AvailabilitySetSpec) ResourceName added in v1.1.0

func (s *AvailabilitySetSpec) ResourceName() string

ResourceName returns the name of the availability set.

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, error)

NewClient creates a new availability sets client from an authorizer.

func (*AzureClient) CreateOrUpdateAsync added in v1.1.0

func (ac *AzureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, _resumeToken string, parameters interface{}) (result interface{}, poller *runtime.Poller[armcompute.AvailabilitySetsClientCreateOrUpdateResponse], err error)

CreateOrUpdateAsync creates or updates an availability set asynchronously. It sends a PUT request to Azure and if accepted without error, the func will return a Poller which can be used to track the ongoing progress of the operation.

func (*AzureClient) DeleteAsync added in v1.1.0

func (ac *AzureClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter, _resumeToken string) (poller *runtime.Poller[armcompute.AvailabilitySetsClientDeleteResponse], err error)

DeleteAsync deletes a availability set asynchronously. DeleteAsync sends a DELETE request to Azure and if accepted without error, the func will return a Poller which can be used to track the ongoing progress of the operation.

func (*AzureClient) Get

func (ac *AzureClient) Get(ctx context.Context, spec azure.ResourceSpecGetter) (result interface{}, err error)

Get gets an availability set.

type Service

type Service struct {
	Scope AvailabilitySetScope
	async.Getter
	async.Reconciler
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

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

New creates a new availability sets service.

func (*Service) Delete

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

Delete deletes availability sets.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns always returns true as CAPZ does not support BYO availability set.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

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

Reconcile idempotently creates or updates an availability set.

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