azure

package
v1.7.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureDiskModifier

func NewAzureDiskModifier() delegation.VolumeModifier

Types

type AzureDiskModifier

type AzureDiskModifier struct {
	// for unit test, add switch for fake client
	// because we need to get subscription id from volume ID, so we cannot initialize it in constructor
	DiskClient DiskClient
}

func (*AzureDiskModifier) MinWaitDuration

func (m *AzureDiskModifier) MinWaitDuration() time.Duration

func (*AzureDiskModifier) ModifyVolume

func (*AzureDiskModifier) Name

func (m *AzureDiskModifier) Name() string

func (*AzureDiskModifier) Validate

func (m *AzureDiskModifier) Validate(spvc, dpvc *corev1.PersistentVolumeClaim, ssc, dsc *storagev1.StorageClass) error

type DiskClient

type DiskClient interface {
	Get(ctx context.Context, resourceGroupName string, diskName string, options *armcompute.DisksClientGetOptions) (armcompute.DisksClientGetResponse, error)
	BeginUpdate(ctx context.Context, resourceGroupName string, diskName string, parameters armcompute.DiskUpdate, options *armcompute.DisksClientBeginUpdateOptions) (*azruntime.Poller[armcompute.DisksClientUpdateResponse], error)
}

type Volume

type Volume struct {
	VolumeId   string
	Size       *int32
	IOPS       *int64
	Throughput *int64
	Type       string
}

Jump to

Keyboard shortcuts

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