internal

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDateFromDays

func GetDateFromDays(numDays int, now time.Time) string

func OpenPathInExplorer

func OpenPathInExplorer(path string) error

OpenPathInExplorer opens file explorer if running on Windows; does nothing on other platforms

func RunExport

func RunExport(args *Args) error

Types

type Args

type Args struct {
	URL,
	Username,
	Password,
	OutputPath,
	ProductName string
	Export                      []string
	ProjectsActiveSince         int
	IsDefaultProjectActiveSince bool
	Debug                       bool
	DBConnectionString,
	ProjectsIDs,
	TeamName string
	RunTime          time.Time
	QueryMappingFile string
	NestedTeams      bool
	SimIDVersion     int
	ExcludeFile      string
	ExcludeFiles     []string
}

type Configuration added in v1.9.0

type Configuration struct {
	Name string      `json:"Name"`
	Keys interface{} `json:"Keys"`
}

type EngineConfig added in v1.7.0

type EngineConfig struct {
	ProjectID               int
	EngineConfigurationID   int
	EngineConfigurationName string
}

type EngineConfigMapping added in v1.9.0

type EngineConfigMapping struct {
	EngineConfigurationID int    `json:"id"`
	Name                  string `json:"name"`
}

type EngineKey added in v1.9.0

type EngineKey struct {
	Name  string `json:"Name"`
	Value string `json:"Value"`
}

type EngineKeysData added in v1.9.0

type EngineKeysData struct {
	EngineConfig struct {
		Configurations struct {
			Configuration []Configuration `json:"Configuration"`
		} `json:"Configurations"`
	} `json:"EngineConfig"`
}

type JoinedConfig added in v1.9.0

type JoinedConfig struct {
	ProjectID               int         `json:"ProjectID"`
	EngineConfigurationID   int         `json:"EngineConfigurationID"`
	EngineConfigurationName string      `json:"Name"`
	ConfigurationKeys       []EngineKey `json:"Keys"`
}

type PresetConsumeOutput added in v1.0.4

type PresetConsumeOutput struct {
	Err      error
	PresetID int
}

type PresetJob added in v1.0.4

type PresetJob struct {
	PresetID int
}

type ReportConsumeOutput

type ReportConsumeOutput struct {
	Err       error
	ProjectID int
	ScanID    int
	Record    *metadata.Record
}

type ReportJob

type ReportJob struct {
	ProjectID  int
	ScanID     int
	ReportType string
}

type TriagedScan

type TriagedScan struct {
	ProjectID int
	ScanID    int
}

Jump to

Keyboard shortcuts

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