cmd

package
v0.1.49 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsoleOnly bool

ConsoleOnly is a flag to indicate whether to filter out accounts that do not have console access.

View Source
var Days int

Days holds the amount of days to search for.

View Source
var Debug bool

Debug controls whether or not debug messages should be printed.

View Source
var Resource string

Resource holds the type of AWS resource we are going to look for.

View Source
var Used bool

Used is a bool to invert the search if needed.

Functions

func Execute

func Execute(v string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CloudformationAPI added in v0.1.44

type CloudformationAPI interface {
	ListStacks(params *cloudformation.ListStacksInput) (*cloudformation.ListStacksOutput, error)
	ListStackResources(params *cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error)
}

type DynamoDBAPI added in v0.1.44

type DynamoDBAPI interface {
	ListTables(params *dynamodb.ListTablesInput) (*dynamodb.ListTablesOutput, error)
}

type ExtendedAccessKeyMetadata

type ExtendedAccessKeyMetadata struct {
	AccessKeyID    string
	CreateDate     *time.Time
	LastUsed       *time.Time
	Status         string
	UserName       string
	Arn            string
	Age            int
	ConsoleEnabled bool
}

ExtendedAccessKeyMetadata extends the key metadata struct.

type KinesisAPI added in v0.1.44

type KinesisAPI interface {
	ListStreams(params *kinesis.ListStreamsInput) (*kinesis.ListStreamsOutput, error)
}

type KmsAPI added in v0.1.44

type KmsAPI interface {
	ListKeys(params *kms.ListKeysInput) (*kms.ListKeysOutput, error)
	DescribeKey(params *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error)
}

type LambdaAPI added in v0.1.44

type LambdaAPI interface {
	GetFunction(params *lambda.GetFunctionInput) (*lambda.GetFunctionOutput, error)
}

type LogsAPI added in v0.1.44

type S3API added in v0.1.44

type S3API interface {
	ListBuckets(params *s3.ListBucketsInput) (*s3.ListBucketsOutput, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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