commands

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 23 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyContextCommandDefaults added in v0.16.5

func ApplyContextCommandDefaults(parent *cobra.Command, getClient func() *api.Client)

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

func ExitCodeFromError(err error) int

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 RegisterAdminCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterAssetGraphCommands added in v0.18.0

func RegisterAssetGraphCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterBughuntSubcommands added in v0.12.0

func RegisterBughuntSubcommands(parent *cobra.Command, getClient func() *api.Client)

RegisterBughuntSubcommands adds generated DAST API subcommands that relate to bughunt functionality to the handwritten bughunt command.

func RegisterContextCommands added in v0.14.0

func RegisterContextCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterContextPushCommand added in v0.15.1

func RegisterContextPushCommand(parent *cobra.Command, getClient func() *api.Client)

RegisterContextPushCommand adds the 'push' subcommand to the existing 'context' command. Must be called after RegisterContextCommands.

func RegisterCspmCommands

func RegisterCspmCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterDastCommands

func RegisterDastCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterDepsAnalyzeCommand added in v0.24.0

func RegisterDepsAnalyzeCommand(parent *cobra.Command, getClient func() *api.Client)

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 RegisterInfrastructureCommands

func RegisterInfrastructureCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterManagerCommands

func RegisterManagerCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterOrchestratorCommands

func RegisterOrchestratorCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterPentestSubcommands added in v0.12.0

func RegisterPentestSubcommands(parent *cobra.Command, getClient func() *api.Client)

RegisterPentestSubcommands adds generated DAST API subcommands that relate to pentest functionality to the handwritten pentest command.

func RegisterSastCommands

func RegisterSastCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterScaCommands

func RegisterScaCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterScpmCommands added in v0.18.0

func RegisterScpmCommands(parent *cobra.Command, getClient func() *api.Client)

func RegisterSecretsCommands

func RegisterSecretsCommands(parent *cobra.Command, getClient func() *api.Client)

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.

const (
	VerdictBenign     Verdict = "benign"
	VerdictVulnerable Verdict = "vulnerable"
	VerdictSuspicious Verdict = "suspicious"
	VerdictMalicious  Verdict = "confirmed_malicious"
)

Jump to

Keyboard shortcuts

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