aws

package
v1.6.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEBSModifier

func NewEBSModifier(cfg aws.Config) delegation.VolumeModifier

Types

type EBSModifier

type EBSModifier struct {
	// contains filtered or unexported fields
}

func (*EBSModifier) MinWaitDuration

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

func (*EBSModifier) ModifyVolume

func (*EBSModifier) Name

func (m *EBSModifier) Name() string

func (*EBSModifier) Validate

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

TODO: add more validation to avoid call aws api too frequent

type EC2VolumeAPI

type EC2VolumeAPI interface {
	ModifyVolume(ctx context.Context, param *ec2.ModifyVolumeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVolumeOutput, error)
	DescribeVolumesModifications(ctx context.Context, param *ec2.DescribeVolumesModificationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesModificationsOutput, error)
}

type FakeEC2VolumeAPI

type FakeEC2VolumeAPI struct {
	// contains filtered or unexported fields
}

func NewFakeEC2VolumeAPI

func NewFakeEC2VolumeAPI(f GetVolumeStateFunc) *FakeEC2VolumeAPI

func (*FakeEC2VolumeAPI) DescribeVolumesModifications

func (m *FakeEC2VolumeAPI) DescribeVolumesModifications(ctx context.Context, param *ec2.DescribeVolumesModificationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesModificationsOutput, error)

func (*FakeEC2VolumeAPI) ModifyVolume

func (m *FakeEC2VolumeAPI) ModifyVolume(ctx context.Context, param *ec2.ModifyVolumeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVolumeOutput, error)

type GetVolumeStateFunc

type GetVolumeStateFunc func(id string) types.VolumeModificationState

type Volume

type Volume struct {
	VolumeId   string
	Size       *int32
	IOPS       *int32
	Throughput *int32
	Type       types.VolumeType

	IsCompleted bool
	IsFaild     bool
}

Jump to

Keyboard shortcuts

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