cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationWhenRule             = "OperationWhenRule"
	OperationWhenTextContains     = "OperationWhenTextContains"
	OperationWhenTextNotContains  = "OperationWhenTextNotContains"
	OperationWhenLocationContains = "OperationWhenLocationContains"
)
View Source
const AWS_DEFAULT_REGION = "eu-west-2"
View Source
const DEFAULT_JOB_HELM_CHART_PATH = "helm/scanio-job"
View Source
const IMAGE = "scanio"

const IMAGE = "356918957485.dkr.ecr.eu-west-2.amazonaws.com/i-am-first"

View Source
const S3_BUCKET = "my-s3-bucket-q97843yt9"

Variables

View Source
var (
	AppConfig *config.Config
)

Global variables for configuration and the command.

View Source
var DOJO_TOKEN = os.Getenv("SCANIO_DEFECTDOJO_TOKEN")

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

Types

type Arguments

type Arguments interface{}

type Condition

type Condition struct {
	Operation string
	Value     string
}

type ReportMetadata added in v0.2.0

type ReportMetadata struct {
	git.RepositoryMetadata
	scaniosarif.ToolMetadata
	Title        string
	Time         time.Time
	SourceFolder string
	SeverityInfo map[string]int
}

type Run2Options

type Run2Options struct {
	AuthType          string
	InputFile         string
	Repositories      []string
	RmExts            string
	Runtime           string
	ScannerPluginName string
	SSHKey            string
	Branch            string
	VCSPlugName       string
	ReportFormat      string
	Config            string
	AdditionalArgs    []string
	NoFetch           bool
	NoScan            bool
	Jobs              int
}

type RunOptions

type RunOptions struct {
	VCSPlugin     string
	VCSURL        string
	Repos         []string
	RmExts        []string
	ScannerPlugin string
	StorageType   string
	S3Bucket      string
	Runtime       string
	Image         string
	// Experiment    string
	InputFile string
	Jobs      int
}

type RunOptionsIntegrationVCS

type RunOptionsIntegrationVCS struct {
	VCSPlugName   string
	VCSURL        string
	Action        string
	Namespace     string
	Repository    string
	Login         string
	PullRequestId int
	Role          string
	Status        string
	Comment       string
	CommentFile   string
	AttachFiles   []string
}

type RunOptionsList

type RunOptionsList struct {
	VCSPlugName string
	VCSURL      string
	OutputFile  string
	Namespace   string
	Repository  string
	Language    string
}

type RunOptionsReportPatch

type RunOptionsReportPatch struct {
	Input                string
	Output               string
	WhenRule             string
	WhenTextContains     []string
	WhenTextNotContains  []string
	WhenLocationContains []string
	SetSeverity          string
	Delete               bool
}

type ToHTMLOptions added in v0.2.0

type ToHTMLOptions struct {
	TempatesPath string
	Title        string
	OutputFile   string
	Input        string
	SourceFolder string
}

type UploadOptions

type UploadOptions struct {
	URL         string
	InputFile   string
	ProductName string
	ScanType    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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