vmextensions

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Scope VMExtensionScope
	async.Reconciler
}

Service provides operations on Azure resources.

func New

func New(scope VMExtensionScope) (*Service, error)

New creates a new vm extension service.

func (*Service) Delete

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

Delete is a no-op. VM Extensions will be deleted as part of VM deletion.

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 VM extension.

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 a VM extension.

type VMExtensionScope

type VMExtensionScope interface {
	azure.Authorizer
	azure.AsyncStatusUpdater
	VMExtensionSpecs() []azure.ResourceSpecGetter
}

VMExtensionScope defines the scope interface for a vm extension service.

type VMExtensionSpec added in v1.3.0

type VMExtensionSpec struct {
	azure.ExtensionSpec
	ResourceGroup string
	Location      string
}

VMExtensionSpec defines the specification for a VM or VMScaleSet extension.

func (*VMExtensionSpec) OwnerResourceName added in v1.3.0

func (s *VMExtensionSpec) OwnerResourceName() string

OwnerResourceName returns the name of the VM that owns this VM extension.

func (*VMExtensionSpec) Parameters added in v1.3.0

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

Parameters returns the parameters for the VM extension.

func (*VMExtensionSpec) ResourceGroupName added in v1.3.0

func (s *VMExtensionSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*VMExtensionSpec) ResourceName added in v1.3.0

func (s *VMExtensionSpec) ResourceName() string

ResourceName returns the name of the VM extension.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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