Documentation ¶
Index ¶
- Constants
- func CheckErr(err error)
- func Execute(version, commit string)
- func Fatal(msg string, code int)
- func NewCreateAwsEnvironmentCommand() *cobra.Command
- func NewCreateAzureEnvironmentCommand() *cobra.Command
- func NewCreateFamilyCommand() *cobra.Command
- func NewCreateGoogleEnvironmentCommand() *cobra.Command
- func NewCreateGroupCommand() *cobra.Command
- func NewCreateInviteCommand() *cobra.Command
- func NewCreatePolicyCommand() *cobra.Command
- func NewCreateRepositoryEnvironmentCommand() *cobra.Command
- func NewCreateRuleCommand() *cobra.Command
- func NewCreateRuleWaiverCommand() *cobra.Command
- func NewDeleteEnvironmentCommand() *cobra.Command
- func NewDeleteFamilyCommand() *cobra.Command
- func NewDeleteRuleCommand() *cobra.Command
- func NewDeleteRuleWaiverCommand() *cobra.Command
- func NewGetEnvironmentCommand() *cobra.Command
- func NewGetFamilyCommand() *cobra.Command
- func NewGetInviteCommand() *cobra.Command
- func NewGetResourceTypesCommand() *cobra.Command
- func NewGetRuleCommand() *cobra.Command
- func NewGetRuleInputCommand() *cobra.Command
- func NewGetRuleWaiverCommand() *cobra.Command
- func NewGetScanCommand() *cobra.Command
- func NewGetScanComplianceByResourceTypesCommand() *cobra.Command
- func NewGetScanComplianceByRulesCommand() *cobra.Command
- func NewGetUserCommand() *cobra.Command
- func NewListEnvironmentsCommand() *cobra.Command
- func NewListEventsCommand() *cobra.Command
- func NewListFamiliesCommand() *cobra.Command
- func NewListGroupsCommand() *cobra.Command
- func NewListInvitesCommand() *cobra.Command
- func NewListRuleWaiversCommand() *cobra.Command
- func NewListRulesCommand() *cobra.Command
- func NewListScansCommand() *cobra.Command
- func NewListUsersCommand() *cobra.Command
- func NewSyncRulesCommand() *cobra.Command
- func NewTestRuleCommand() *cobra.Command
- func NewTriggerScanCommand() *cobra.Command
- func NewUpdateEnvironmentCommand() *cobra.Command
- func NewUpdateFamilyCommand() *cobra.Command
- func NewUpdateRuleCommand() *cobra.Command
- func NewUpdateRuleWaiverCommand() *cobra.Command
- func NewUpdateUsersGroups() *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(version, commit 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.
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 NewCreateFamilyCommand ¶ added in v0.15.0
NewCreateFamilyCommand returns a command that creates a family
func NewCreateGoogleEnvironmentCommand ¶ added in v0.13.0
NewCreateGoogleEnvironmentCommand returns a command that creates an environment
func NewCreateGroupCommand ¶ added in v0.9.0
NewCreateGroupCommand returns a command that creates an group
func NewCreateInviteCommand ¶ added in v0.9.0
NewCreateInviteCommand returns a command that creates an invite
func NewCreatePolicyCommand ¶
NewCreatePolicyCommand returns a command that creates an IAM policy that can be used to allow Fugue to scan an environment
func NewCreateRepositoryEnvironmentCommand ¶ added in v0.18.0
NewCreateRepositoryEnvironmentCommand returns a command that creates a repository environment
func NewCreateRuleCommand ¶ added in v0.4.0
NewCreateRuleCommand returns a command that creates a custom rule
func NewCreateRuleWaiverCommand ¶ added in v0.11.0
NewCreateRuleWaiverCommand returns a command that creates a custom rule
func NewDeleteEnvironmentCommand ¶
NewDeleteEnvironmentCommand returns a command that deletes an environment
func NewDeleteFamilyCommand ¶ added in v0.15.0
NewDeleteFamilyCommand returns a command that deletes a family
func NewDeleteRuleCommand ¶ added in v0.4.0
NewDeleteRuleCommand returns a command that deletes a custom rule
func NewDeleteRuleWaiverCommand ¶ added in v0.11.0
NewDeleteRuleWaiverCommand returns a command that deletes a custom rule
func NewGetEnvironmentCommand ¶
NewGetEnvironmentCommand returns a command that retrieves environment details
func NewGetFamilyCommand ¶ added in v0.15.0
NewGetFamilyCommand returns a command that retrieves custom family details
func NewGetInviteCommand ¶ added in v0.9.0
NewGetInviteCommand returns a command that retrieves invite details
func NewGetResourceTypesCommand ¶
NewGetResourceTypesCommand returns a command that retrives available resource types for the given provider and region
func NewGetRuleCommand ¶ added in v0.4.0
NewGetRuleCommand returns a command that retrieves custom rule details
func NewGetRuleInputCommand ¶ added in v0.8.0
func NewGetRuleWaiverCommand ¶ added in v0.11.0
NewGetRuleWaiverCommand returns a command that retrieves rule waiver details
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 NewGetUserCommand ¶ added in v0.9.0
NewGetUserCommand returns a command that retrieves user details
func NewListEnvironmentsCommand ¶
NewListEnvironmentsCommand returns a command that lists environments in Fugue
func NewListEventsCommand ¶
NewListEventsCommand returns a command that lists events in an environment
func NewListFamiliesCommand ¶ added in v0.15.0
NewListFamiliesCommand returns a command that lists families in Fugue
func NewListGroupsCommand ¶ added in v0.9.0
NewListGroupsCommand returns a command that lists groups in Fugue
func NewListInvitesCommand ¶ added in v0.9.0
NewListInvitesCommand returns a command that lists invites in Fugue
func NewListRuleWaiversCommand ¶ added in v0.11.0
NewListRuleWaiversCommand returns a command that lists rule waivers in Fugue
func NewListRulesCommand ¶ added in v0.4.0
NewListRulesCommand returns a command that lists custom rules in Fugue
func NewListScansCommand ¶
NewListScansCommand returns a command that lists scans in Fugue
func NewListUsersCommand ¶ added in v0.9.0
NewListUsersCommand returns a command that lists users in Fugue
func NewSyncRulesCommand ¶ added in v0.4.0
NewSyncRulesCommand returns a command that watches a directory for changes to rego files
func NewTestRuleCommand ¶ added in v0.8.0
func NewTriggerScanCommand ¶
NewTriggerScanCommand returns a command that scans a specified environment
func NewUpdateEnvironmentCommand ¶
NewUpdateEnvironmentCommand returns a command that updates an environment
func NewUpdateFamilyCommand ¶ added in v0.15.0
NewUpdateFamilyCommand returns a command that updates a custom family
func NewUpdateRuleCommand ¶ added in v0.4.0
NewUpdateRuleCommand returns a command that updates a custom rule
func NewUpdateRuleWaiverCommand ¶ added in v0.11.0
NewUpdateRuleWaiverCommand returns a command that updates a rule waiver
func NewUpdateUsersGroups ¶ added in v0.9.0
NewUpdateUsersGroups returns a command that allows updating groups for multiple users
Types ¶
Source Files ¶
- aws.go
- azure.go
- client.go
- create.go
- createAwsEnvironment.go
- createAzureEnvironment.go
- createFamily.go
- createGoogleEnvironment.go
- createGroup.go
- createInvite.go
- createPolicy.go
- createRepositoryEnvironment.go
- createRule.go
- createRuleWaiver.go
- delete.go
- deleteEnvironment.go
- deleteFamily.go
- deleteRule.go
- deleteRuleWaiver.go
- get.go
- getEnvironment.go
- getFamily.go
- getInvite.go
- getResourceTypes.go
- getRule.go
- getRuleInput.go
- getRuleWaiver.go
- getScan.go
- getScanComplianceByResourceTypes.go
- getScanComplianceByRules.go
- getUser.go
- google.go
- list.go
- listEnvironments.go
- listEvents.go
- listFamilies.go
- listGroups.go
- listInvites.go
- listRuleWaivers.go
- listRules.go
- listScans.go
- listUsers.go
- repository.go
- root.go
- sync.go
- syncRules.go
- test.go
- testRule.go
- triggerScan.go
- update.go
- updateEnvironment.go
- updateFamily.go
- updateRule.go
- updateRuleWaiver.go
- updateUsersGroups.go