commands

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCPArtifactRegistryCommand = &cobra.Command{
	Use:     globals.GCP_ARTIFACT_RESGISTRY_MODULE_NAME,
	Aliases: []string{},
	Short:   "Display GCP artifact registry information",
	Args:    cobra.MinimumNArgs(0),
	Long: `
Display available artifact registry resource information:
cloudfox gcp artfact-registry`,
	Run: runGCPArtifactRegistryCommand,
}
View Source
var GCPBigQueryCommand = &cobra.Command{
	Use:     "bigquery",
	Aliases: []string{},
	Short:   "Display Bigquery datasets and tables information",
	Args:    cobra.MinimumNArgs(0),
	Long: `
Display available Bigquery datasets and tables resource information:
cloudfox gcp bigquery`,
	Run: runGCPBigQueryCommand,
}
View Source
var GCPBucketsCommand = &cobra.Command{
	Use:     globals.GCP_BUCKETS_MODULE_NAME,
	Aliases: []string{},
	Short:   "Display GCP buckets information",
	Args:    cobra.MinimumNArgs(0),
	Long: `
Display available bucket information:
cloudfox gcp buckets`,
	Run: runGCPBucketsCommand,
}
View Source
var GCPIAMCommand = &cobra.Command{
	Use:     globals.GCP_IAM_MODULE_NAME,
	Aliases: []string{},
	Short:   "Display GCP IAM information",
	Args:    cobra.MinimumNArgs(0),
	Long: `
Display IAM principals and their roles information within GCP resources:
cloudfox gcp iam`,
	Run: runGCPIAMCommand,
}
View Source
var GCPInstancesCommand = &cobra.Command{
	Use:     globals.GCP_INSTANCES_MODULE_NAME,
	Aliases: []string{},
	Short:   "Display GCP Compute Engine instances information",
	Args:    cobra.MinimumNArgs(0),
	Long: `
Display available Compute Engine instances information:
cloudfox gcp instances`,
	Run: runGCPInstancesCommand,
}
View Source
var GCPSecretsCommand = &cobra.Command{
	Use:     globals.GCP_SECRETS_MODULE_NAME,
	Aliases: []string{},
	Short:   "Display GCP secrets information",
	Args:    cobra.MinimumNArgs(0),
	Long: `
Display available secrets information:
cloudfox gcp secrets`,
	Run: runGCPSecretsCommand,
}
View Source
var GCPWhoAmICommand = &cobra.Command{
	Use:   globals.GCP_WHOAMI_MODULE_NAME,
	Short: "Display the email address of the GCP authenticated user",
	Args:  cobra.NoArgs,
	Run:   runGCPWhoAmICommand,
}

Functions

This section is empty.

Types

type GCPArtifactRegistryResults

type GCPArtifactRegistryResults struct {
	ArtifactData   []ArtifactRegistryService.ArtifactInfo
	RepositoryData []ArtifactRegistryService.RepositoryInfo
}

Results struct that implements the internal.OutputInterface

func (GCPArtifactRegistryResults) LootFiles

Decide what is loot based on resource information

func (GCPArtifactRegistryResults) TableFiles

Decide what format the name, header and body of the CSV & JSON files will be

type GCPBigQueryResults

type GCPBigQueryResults struct {
	DatasetsData []BigQueryService.BigqueryDataset
	TablesData   []BigQueryService.BigqueryTable
}

GCPBigQueryResults struct that implements the internal.OutputInterface

func (GCPBigQueryResults) LootFiles

func (g GCPBigQueryResults) LootFiles() []internal.LootFile

func (GCPBigQueryResults) TableFiles

func (g GCPBigQueryResults) TableFiles() []internal.TableFile

Define the format for CSV & JSON output

type GCPBucketsResults

type GCPBucketsResults struct {
	Data []CloudStorageService.BucketInfo
}

Results struct that implements the internal.OutputInterface

func (GCPBucketsResults) LootFiles

func (g GCPBucketsResults) LootFiles() []internal.LootFile

Decide what is loot based on resource information

func (GCPBucketsResults) TableFiles

func (g GCPBucketsResults) TableFiles() []internal.TableFile

Decide what format the name, header and body of the CSV & JSON files will be

type GCPIAMResults

type GCPIAMResults struct {
	Data []IAMService.PrincipalWithRoles
}

Results struct for IAM command that implements the internal.OutputInterface

func (GCPIAMResults) LootFiles

func (g GCPIAMResults) LootFiles() []internal.LootFile

LootFiles can be implemented if needed

func (GCPIAMResults) TableFiles

func (g GCPIAMResults) TableFiles() []internal.TableFile

TableFiles formats the data for table output, CSV & JSON files

type GCPInstancesResults

type GCPInstancesResults struct {
	Data []ComputeEngineService.ComputeEngineInfo
}

GCPInstancesResults implements internal.OutputInterface for Compute Engine instances

func (GCPInstancesResults) LootFiles

func (g GCPInstancesResults) LootFiles() []internal.LootFile

func (GCPInstancesResults) TableFiles

func (g GCPInstancesResults) TableFiles() []internal.TableFile

type GCPSecretsResults

type GCPSecretsResults struct {
	Data []SecretsService.SecretInfo
}

GCPSecretsResults struct that implements the internal.OutputInterface

func (GCPSecretsResults) LootFiles

func (g GCPSecretsResults) LootFiles() []internal.LootFile

func (GCPSecretsResults) TableFiles

func (g GCPSecretsResults) TableFiles() []internal.TableFile

Jump to

Keyboard shortcuts

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