availabilitysets

package
v1.1.616 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FaultDomainCount = 2
	AffinityType     = "weak"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Client     availabilityset.AvailabilitySetClient
	NodeClient node.NodeClient
	Scope      scope.ScopeInterface
}

Service provides operations on resource groups

func NewService

func NewService(scope scope.ScopeInterface) *Service

NewService creates a new availability set service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, spec interface{}) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, spec interface{}) (interface{}, error)

func (*Service) GetNodeCount

func (s *Service) GetNodeCount(ctx context.Context, location string) (int, error)

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context, spec interface{}) error

type Spec

type Spec struct {
	Name     string
	Location string
}

Jump to

Keyboard shortcuts

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