Documentation
¶
Overview ¶
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Code generated by scripts/generate/main.go. DO NOT EDIT.
Index ¶
- func ApplyContextCommandDefaults(parent *cobra.Command, getClient func() *api.Client)
- func ExitCodeFromError(err error) int
- func RegisterAdminCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterAssetGraphCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterBughuntSubcommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterContextCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterContextPushCommand(parent *cobra.Command, getClient func() *api.Client)
- func RegisterCspmCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterDastCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterDepsAnalyzeCommand(parent *cobra.Command, getClient func() *api.Client)
- func RegisterInfrastructureCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterManagerCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterOrchestratorCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterPentestSubcommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterSastCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterScaCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterScpmCommands(parent *cobra.Command, getClient func() *api.Client)
- func RegisterSecretsCommands(parent *cobra.Command, getClient func() *api.Client)
- type Verdict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyContextCommandDefaults ¶ added in v0.16.5
ApplyContextCommandDefaults installs CLI-side opinionated defaults on top of the generated 'context' subcommand tree. Must be called after RegisterContextCommands.
func ExitCodeFromError ¶ added in v0.24.0
ExitCodeFromError returns the exit code an exitErr wants, or exitTransientFailure (1) for any other non-nil error. main.go calls this to translate the workflow's result into a process exit code.
func RegisterAdminCommands ¶
func RegisterAssetGraphCommands ¶ added in v0.18.0
func RegisterBughuntSubcommands ¶ added in v0.12.0
RegisterBughuntSubcommands adds generated DAST API subcommands that relate to bughunt functionality to the handwritten bughunt command.
func RegisterContextCommands ¶ added in v0.14.0
func RegisterContextPushCommand ¶ added in v0.15.1
RegisterContextPushCommand adds the 'push' subcommand to the existing 'context' command. Must be called after RegisterContextCommands.
func RegisterCspmCommands ¶
func RegisterDastCommands ¶
func RegisterDepsAnalyzeCommand ¶ added in v0.24.0
RegisterDepsAnalyzeCommand attaches `deps analyze` to the given parent command. api.Client is reused for auth (BaseURL + Token) — even though the scpm calls aren't in the generated surface yet, credentials and host come from the same source as every other nullify command.
func RegisterManagerCommands ¶
func RegisterPentestSubcommands ¶ added in v0.12.0
RegisterPentestSubcommands adds generated DAST API subcommands that relate to pentest functionality to the handwritten pentest command.
func RegisterSastCommands ¶
func RegisterScaCommands ¶
func RegisterScpmCommands ¶ added in v0.18.0
Types ¶
type Verdict ¶ added in v0.24.0
type Verdict string
Verdict is a dependency malware-analysis verdict as returned by vuln-database (passed through scpm). The recognised set is below; any other non-empty verdict is treated as unknown and fails closed (see classifyVerdict) so a server-side rename can't silently bypass the gate.