scalesetvms

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DeleteFuture is a future that was derived from a DELETE request to VMSS.
	DeleteFuture string = "DELETE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ScaleSetVMScope

type ScaleSetVMScope interface {
	logr.Logger
	azure.ClusterDescriber
	InstanceID() string
	ScaleSetName() string
	SetVMSSVM(vmssvm *azure.VMSSVM)
	GetLongRunningOperationState() *infrav1.Future
	SetLongRunningOperationState(future *infrav1.Future)
}

ScaleSetVMScope defines the scope interface for a scale sets service.

type Service

type Service struct {
	Client client
	Scope  ScaleSetVMScope
}

Service provides operations on Azure resources.

func NewService

func NewService(scope ScaleSetVMScope) *Service

NewService creates a new service.

func (*Service) Delete

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

Delete deletes a scaleset instance asynchronously returning a future which encapsulates the long-running operation.

func (*Service) Reconcile

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

Reconcile idempotently gets, creates, and updates a scale set.

Directories

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

Jump to

Keyboard shortcuts

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