Documentation
¶
Index ¶
- Constants
- Variables
- func NewBundleCmd() *cobra.Command
- func NewConfigCmd() *cobra.Command
- func NewEPSSCmd(service EPSSService) *cobra.Command
- func NewExportCmd(service DDExportService, timeout time.Duration, ...) *cobra.Command
- func NewPrintCommand(decodeTimeout time.Duration, pipedFile *os.File) *cobra.Command
- func NewRootCommand(config CLIConfig) *cobra.Command
- func NewValidateCmd(decodeTimeout time.Duration) *cobra.Command
- func ParseAndFPrint(r io.Reader, w io.Writer, timeout time.Duration) error
- func ParseAndValidate(r io.Reader, config artifact.Config, timeout time.Duration) error
- type CLIConfig
- type DDExportService
- type EPSSService
Constants ¶
View Source
const GatecheckLogo string = `` /* 5388-byte string literal not displayed */
Variables ¶
View Source
var ErrorAPI = errors.New("request API")
View Source
var ErrorEncoding = errors.New("encoding")
View Source
var ErrorFileAccess = errors.New("file access")
View Source
var ErrorValidation = errors.New("validation")
Functions ¶
func NewBundleCmd ¶ added in v0.0.8
func NewConfigCmd ¶ added in v0.0.2
func NewEPSSCmd ¶ added in v0.0.8
func NewEPSSCmd(service EPSSService) *cobra.Command
func NewExportCmd ¶ added in v0.0.2
func NewExportCmd(service DDExportService, timeout time.Duration, engagement defectdojo.EngagementQuery) *cobra.Command
func NewPrintCommand ¶ added in v0.0.8
NewPrintCommand will pretty print a report file table, r can be piped input from standard out
func NewRootCommand ¶ added in v0.0.8
func NewValidateCmd ¶ added in v0.0.2
func ParseAndFPrint ¶ added in v0.0.8
Types ¶
type CLIConfig ¶ added in v0.0.8
type CLIConfig struct {
AutoDecoderTimeout time.Duration
Version string
PipedInput *os.File
DefaultReport string
EPSSService EPSSService
DDExportService DDExportService
DDEngagement defectdojo.EngagementQuery
DDExportTimeout time.Duration
}
type DDExportService ¶ added in v0.0.8
type DDExportService interface {
Export(context.Context, io.Reader, defectdojo.EngagementQuery, defectdojo.ScanType) error
}
Click to show internal directories.
Click to hide internal directories.