cmd

package
v0.0.0-...-b0384cf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxThreads     int
	RequestTimeout int
	CLIVerbose     bool
	SaveOutput     bool
)
View Source
var AwsServiceGrouping = map[string][]string{
	"common": {
		aws.Lambda,
		aws.IAM,
		aws.S3,
		aws.APIGateway,
		aws.EC2,
	},
	"compute": {
		aws.Lambda,
		aws.EC2,
		aws.ElasticBeanStalk,
		aws.ElasticFileSystem,
		aws.ELB,
	},
	"databases": {
		aws.RDS,
		aws.Redshift,
		aws.Dynamodb,
	},
	"serverless": {
		aws.APIGateway,
		aws.Lambda,
		aws.S3,
		aws.SNS,
		aws.SQS,
		aws.Dynamodb,
	},
	"storage": {
		aws.S3,
		aws.Snowball,
		aws.StorageGateway,
		aws.ElasticFileSystem,
	},
}

AwsServiceGrouping common service mappings to group services together

View Source
var RootCmd = &cobra.Command{
	Use:   "cliam",
	Short: "Cliam is a tool to enumerate cloud credentials for their permissions.",
	Long:  `Set DEBUG=* and/or VERBOSE=* to see debug output.`,
	PreRun: func(cmd *cobra.Command, args []string) {
		if len(args) == 0 {
			cmd.Help()
		}
	},
	PostRun: PostRunStatsFunc,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

func ModifyExtraMap

func ModifyExtraMap(m []string) map[string]string

func PostRunStatsFunc

func PostRunStatsFunc(cmd *cobra.Command, _ []string)

func ValidateJwtExpiration

func ValidateJwtExpiration(token string) (isValid bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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