Documentation ¶
Index ¶
- Constants
- func CheckErr(err error)
- func Execute()
- func Fatal(msg string, code int)
- func NewCreateAwsEnvironmentCommand() *cobra.Command
- func NewCreateAzureEnvironmentCommand() *cobra.Command
- func NewCreatePolicyCommand() *cobra.Command
- func NewDeleteEnvironmentCommand() *cobra.Command
- func NewGetEnvironmentCommand() *cobra.Command
- func NewGetResourceTypesCommand() *cobra.Command
- func NewGetScanCommand() *cobra.Command
- func NewGetScanComplianceByResourceTypesCommand() *cobra.Command
- func NewGetScanComplianceByRulesCommand() *cobra.Command
- func NewListEnvironmentsCommand() *cobra.Command
- func NewListEventsCommand() *cobra.Command
- func NewListScansCommand() *cobra.Command
- func NewTriggerScanCommand() *cobra.Command
- func NewUpdateEnvironmentCommand() *cobra.Command
- type Item
Constants ¶
const ( // DefaultHost is the default hostname of the Fugue API DefaultHost = "api.riskmanager.fugue.co" // DefaultBase is the base path of the Fugue API DefaultBase = "v0" )
const (
// DefaultErrorExitCode is the exit code value when an error occurs
DefaultErrorExitCode = 1
)
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶
func CheckErr(err error)
CheckErr prints a user friendly error to STDERR and exits with a non-zero exit code. Unrecognized errors will be printed with an "error: " prefix.
func Execute ¶
func Execute()
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.
func NewCreateAwsEnvironmentCommand ¶ added in v0.2.0
NewCreateAwsEnvironmentCommand returns a command that creates an environment
func NewCreateAzureEnvironmentCommand ¶ added in v0.2.0
NewCreateAzureEnvironmentCommand returns a command that creates an environment
func NewCreatePolicyCommand ¶
NewCreatePolicyCommand returns a command that creates an IAM policy that can be used to allow Fugue to scan an environment
func NewDeleteEnvironmentCommand ¶
NewDeleteEnvironmentCommand returns a command that deletes an environment
func NewGetEnvironmentCommand ¶
NewGetEnvironmentCommand returns a command that retrieves environment details
func NewGetResourceTypesCommand ¶
NewGetResourceTypesCommand returns a command that retrives available resource types for the given provider and region
func NewGetScanCommand ¶
NewGetScanCommand returns a command that retrives details of a single scan
func NewGetScanComplianceByResourceTypesCommand ¶
NewGetScanComplianceByResourceTypesCommand returns a command that retrives compliance by resource types
func NewGetScanComplianceByRulesCommand ¶
NewGetScanComplianceByRulesCommand returns a command that retrives compliance by rule
func NewListEnvironmentsCommand ¶
NewListEnvironmentsCommand returns a command that lists environments in Fugue
func NewListEventsCommand ¶
NewListEventsCommand returns a command that lists events in an environment
func NewListScansCommand ¶
NewListScansCommand returns a command that lists scans in Fugue
func NewTriggerScanCommand ¶
NewTriggerScanCommand returns a command that scans a specified environment
func NewUpdateEnvironmentCommand ¶
NewUpdateEnvironmentCommand returns a command that updates an environment
Types ¶
Source Files ¶
- aws.go
- azure.go
- client.go
- create.go
- createAwsEnvironment.go
- createAzureEnvironment.go
- createPolicy.go
- delete.go
- deleteEnvironment.go
- get.go
- getEnvironment.go
- getResourceTypes.go
- getScan.go
- getScanComplianceByResourceTypes.go
- getScanComplianceByRules.go
- list.go
- listEnvironments.go
- listEvents.go
- listScans.go
- root.go
- triggerScan.go
- update.go
- updateEnvironment.go