Documentation ¶
Index ¶
- func CheckError(err error, logFunc func(tpl string, args ...interface{}))
- func Contains(arr []string, elem string) bool
- func MatchAny(str string, regExps []string) (bool, error)
- func UniqueAppend(arr []string, elem string) []string
- type AWS
- func (a AWS) DeleteVolume(volumeId string, dryrun bool) error
- func (a AWS) DeregisterImage(imageId string, dryRun bool) error
- func (a AWS) DescribeImages(accountId string) ([]ec2Types.Image, error)
- func (a AWS) GetAvailableEBSVolumes() []ec2Types.Volume
- func (a *AWS) GetUsedAMIsFromEC2() []string
- func (a *AWS) GetUsedAMIsFromLaunchTpls() []string
- type Ec2client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func UniqueAppend ¶
Types ¶
type AWS ¶
type AWS struct {
// contains filtered or unexported fields
}
func NewAWSClient ¶
func NewFromInterface ¶
func (AWS) GetAvailableEBSVolumes ¶
func (*AWS) GetUsedAMIsFromEC2 ¶
func (*AWS) GetUsedAMIsFromLaunchTpls ¶
type Ec2client ¶
type Ec2client interface { DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error) DescribeImages(ctx context.Context, params *ec2.DescribeImagesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeImagesOutput, error) DeregisterImage(ctx context.Context, params *ec2.DeregisterImageInput, optFns ...func(*ec2.Options)) (*ec2.DeregisterImageOutput, error) DescribeLaunchTemplateVersions(ctx context.Context, params *ec2.DescribeLaunchTemplateVersionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLaunchTemplateVersionsOutput, error) DescribeVolumes(ctx context.Context, params *ec2.DescribeVolumesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesOutput, error) DeleteVolume(ctx context.Context, params *ec2.DeleteVolumeInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVolumeOutput, error) }
Click to show internal directories.
Click to hide internal directories.