aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsgZeroCapacity

func AsgZeroCapacity(a interface{}, log *logrus.Entry) bool

func EbsIgnoreAttachedFilter

func EbsIgnoreAttachedFilter(v interface{}, log *logrus.Entry) bool

func Ec2IgnoreAutoScaleInstanceFilter

func Ec2IgnoreAutoScaleInstanceFilter(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

func Ec2IgnoreTerminatedFilter

func Ec2IgnoreTerminatedFilter(i interface{}, log *logrus.Entry) bool

func IgnoreK8sTagFilter

func IgnoreK8sTagFilter(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

func NoTTLTagFilter

func NoTTLTagFilter(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

func NoTagFilter

func NoTagFilter(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

func SGIgnoreChild

func SGIgnoreChild(secGroup interface{}, log *logrus.Entry) bool

func TTLTagExpiredFilter

func TTLTagExpiredFilter(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

Types

type AwsCandidateFuncMap

type AwsCandidateFuncMap map[string]func() error

type AwsMarker

type AwsMarker struct {
	Config *config.Aws
	Logger *logrus.Entry
	Cache  cache.Cache
	Ctx    context.Context
	// contains filtered or unexported fields
}

func NewAwsMarker

func NewAwsMarker(ctx context.Context, cfg *config.Aws, logger *logrus.Logger, cache cache.Cache) *AwsMarker

func (*AwsMarker) ExtractTags

func (am *AwsMarker) ExtractTags(awsObject interface{}) (*string, []*ec2.Tag, *time.Time, string)

func (*AwsMarker) FilterAwsObject

func (am *AwsMarker) FilterAwsObject(filterable genericAwsFilter)

func (*AwsMarker) GetMarkSchedule

func (am *AwsMarker) GetMarkSchedule() string

func (*AwsMarker) GetName

func (am *AwsMarker) GetName() string

func (*AwsMarker) GetNotifySchedule

func (am *AwsMarker) GetNotifySchedule() string

func (*AwsMarker) GetSweepSchedule

func (am *AwsMarker) GetSweepSchedule() string

func (*AwsMarker) GetType

func (am *AwsMarker) GetType() mark.MarkerType

func (*AwsMarker) IgnoreConfigFilter

func (am *AwsMarker) IgnoreConfigFilter(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

func (*AwsMarker) Mark

func (am *AwsMarker) Mark()

func (*AwsMarker) SGIgnoreInUse

func (am *AwsMarker) SGIgnoreInUse(secGroup interface{}, log *logrus.Entry) bool

func (*AwsMarker) Sweep

func (am *AwsMarker) Sweep()

type Filter

type Filter func(id *string, tags []*ec2.Tag, created *time.Time, log *logrus.Entry) bool

----------------- START FILTER -----------------

type TypedFilter

type TypedFilter func(interface{}, *logrus.Entry) bool

Jump to

Keyboard shortcuts

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