disks

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDisksClient added in v1.1.0

func NewDisksClient(subscriptionID string, baseURI string, authorizer autorest.Authorizer) compute.DisksClient

NewDisksClient creates a new disks Client from subscription ID.

Types

type DiskScope

type DiskScope interface {
	azure.ClusterDescriber
	azure.AsyncStatusUpdater
	DiskSpecs() []azure.ResourceSpecGetter
}

DiskScope defines the scope interface for a disk service.

type DiskSpec added in v1.1.0

type DiskSpec struct {
	Name          string
	ResourceGroup string
}

DiskSpec defines the specification for a disk.

func (*DiskSpec) OwnerResourceName added in v1.1.0

func (s *DiskSpec) OwnerResourceName() string

OwnerResourceName is a no-op for disks.

func (*DiskSpec) Parameters added in v1.1.0

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

Parameters is a no-op for disks.

func (*DiskSpec) ResourceGroupName added in v1.1.0

func (s *DiskSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*DiskSpec) ResourceName added in v1.1.0

func (s *DiskSpec) ResourceName() string

ResourceName returns the name of the disk.

type Service

type Service struct {
	Scope DiskScope
	async.Reconciler
}

Service provides operations on Azure resources.

func New

func New(scope DiskScope) *Service

New creates a new disks service.

func (*Service) Delete

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

Delete deletes the disk associated with a VM.

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 disk.

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 on disk is currently no-op. OS disks should only be deleted and will create with the VM automatically.

Directories

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

Jump to

Keyboard shortcuts

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