instancefilter

package
v0.0.0-...-b8b15f6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

Filter is the default struct to hold all of the ec2.Filters that would be constructed based on the flags passed.

func (*Filter) Build

func (f *Filter) Build() []*ec2.Filter

Build will construct the AWS ec2 Filter for gathering instances based on given flag. Returns a list of ec2 filters

func (*Filter) ByAvailabilityZone

func (f *Filter) ByAvailabilityZone(s []string) *Filter

ByAvailabilityZone will add a filter to the struct for searching within a given availability-zone. Multiple availability-zones would be comma separated.

func (*Filter) ByInstance

func (f *Filter) ByInstance(s []string) *Filter

ByInstance will add a filter to the struct for searching by instance-id.Multiple instance-id's would be comma separated.

func (*Filter) ByRunning

func (f *Filter) ByRunning() *Filter

ByRunnin will add a filter to only gather instances that are running.

func (*Filter) BySubnet

func (f *Filter) BySubnet(s []string) *Filter

BySubnet will add a filter to the struct for searching within a given subnet. Multiple subnets would be given comma separated.

func (*Filter) ByTag

func (f *Filter) ByTag(s []string) *Filter

ByTag will add a filter to the struct for searching by tag. Multiple tags are passed comma separated, each tag is represented key=value. example: team=devops

Jump to

Keyboard shortcuts

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