cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

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 DOJO_TOKEN = os.Getenv("SCANIO_DEFECTDOJO_TOKEN")

Functions

func Execute

func Execute()

func ReadResultBuffer

func ReadResultBuffer() []byte

Types

type AppConfig

type AppConfig struct {
	TemplatePath         string
	SemgrepRulesPath     string
	TruffleHog3RulesPath string
	ExecutionEnv         string
}

func LoadConfig

func LoadConfig() (*AppConfig, error)

type Arguments

type Arguments interface{}

type Condition

type Condition struct {
	Operation string
	Value     string
}

type DecisionMakerOptions

type DecisionMakerOptions struct {
	Scenario      string
	VCSPlugName   string
	VCSURL        string
	Namespace     string
	Repository    string
	PullRequestId int
	Login         string
}

type HandlerError

type HandlerError struct {
	Text  string
	Stage string
	Err   error
}

func (HandlerError) Error

func (e HandlerError) Error() string

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 RunOptionsAnalyse

type RunOptionsAnalyse struct {
	ScannerPluginName string
	InputFile         string
	ReportFormat      string
	Config            string
	AdditionalArgs    []string
	OutputPrefix      string
	Threads           int
}

type RunOptionsFetch

type RunOptionsFetch struct {
	VCSPlugName string
	AuthType    string
	SSHKey      string
	InputFile   string
	RmExts      string
	Branch      string
	Threads     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
}

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 UploadOptions

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

Jump to

Keyboard shortcuts

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