Versions in this module Expand all Collapse all v12 v12.1.0 Jul 18, 2022 v12.0.0 Jul 14, 2022 Changes in this version + func IsFiltered(vol *ec2.Volume, filterFuncs []func(t *ec2.Tag) bool) bool + func IsInvalidConfig(err error) bool + func IsVolumeAttached(err error) bool + func IsVolumeNotFound(err error) bool + func NewDockerVolumeFilter(cr infrastructurev1alpha3.AWSCluster) func(t *ec2.Tag) bool + func NewEtcdVolumeFilter(cr infrastructurev1alpha3.AWSCluster) func(t *ec2.Tag) bool + func NewPersistentVolumeFilter(cr infrastructurev1alpha3.AWSCluster) func(t *ec2.Tag) bool + type Config struct + Client EC2Client + Logger micrologger.Logger + type EBS struct + func New(config Config) (*EBS, error) + func (e *EBS) DeleteVolume(ctx context.Context, volumeID string) error + func (e *EBS) DetachVolume(ctx context.Context, volumeID string, attachment VolumeAttachment, force bool, ...) error + func (e *EBS) ListVolumes(ctx context.Context, cr infrastructurev1alpha3.AWSCluster, ...) ([]Volume, error) + type EC2Client interface + DeleteVolume func(*ec2.DeleteVolumeInput) (*ec2.DeleteVolumeOutput, error) + DescribeInstances func(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) + DescribeVolumes func(*ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error) + DetachVolume func(*ec2.DetachVolumeInput) (*ec2.VolumeAttachment, error) + StopInstances func(*ec2.StopInstancesInput) (*ec2.StopInstancesOutput, error) + WaitUntilInstanceStopped func(*ec2.DescribeInstancesInput) error + type Interface interface + DeleteVolume func(ctx context.Context, volumeID string) error + DetachVolume func(ctx context.Context, volumeID string, attachment VolumeAttachment, force bool, ...) error + ListVolumes func(ctx context.Context, customObject infrastructurev1alpha3.AWSCluster, ...) ([]Volume, error) + type Volume struct + Attachments []VolumeAttachment + VolumeID string + type VolumeAttachment struct + Device string + InstanceID string Other modules containing this package github.com/giantswarm/aws-operator/v13 github.com/giantswarm/aws-operator/v14 github.com/giantswarm/aws-operator/v15 github.com/giantswarm/aws-operator/v16