data

package
v2.0.0-...-76effa7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearField

func ClearField(source string) string

Types

type ControlCheck

type ControlCheck struct {
	Control    string `json:"control"`
	PolicyName string `json:"policy_name"`
	Failed     bool   `json:"failed"`
}

type ImageAssuranceResults

type ImageAssuranceResults struct {
	Disallowed      bool           `json:"disallowed"`
	ChecksPerformed []ControlCheck `json:"checks_performed"`
}

type InfoResources

type InfoResources struct {
	Vulnerabilities []Vulnerability `json:"vulnerabilities"`
	ResourceDetails `json:"resource"`
}

type Inpteval

type Inpteval interface {
	Eval(in map[string]interface{}, serverUrl string) (map[string]string, error)
	BuildAggregatedContent(items []map[string]string) (map[string]string, error)
	IsAggregationSupported() bool
}

type MalwareData

type MalwareData struct {
	Malware string `json:"malware"`
	Path    string `json:"path"`
	Hash    string `json:"hash"`
}

type ResourceDetails

type ResourceDetails struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type ScanImageInfo

type ScanImageInfo struct {
	Image                  string `json:"image"`
	Registry               string `json:"registry"`
	Digest                 string `json:"digest"`
	PreviousDigest         string `json:"previous_digest"`
	ImageAssuranceResults  `json:"image_assurance_results,omitempty"`
	VulnerabilitySummary   `json:"vulnerability_summary,omitempty"`
	ScanOptions            `json:"scan_options,omitempty"`
	Resources              []InfoResources `json:"resources,omitempty"`
	ApplicationScopeOwners []string        `json:"application_scope_owners,omitempty"`
	Malwares               []MalwareData   `json:"malware,omitempty"`
	SensitiveData          []SensitiveData `json:"sensitive_data,omitempty"`
}

type ScanOptions

type ScanOptions struct {
	ScanSensitiveData bool `json:"scan_sensitive_data"`
	ScanMalware       bool `json:"scan_malware"`
}

type SensitiveData

type SensitiveData struct {
	Filename string `json:"filename"`
	Path     string `json:"path"`
	Type     string `json:"type"`
	Hash     string `json:"hash"`
}

type SlackBlock

type SlackBlock struct {
	TypeField string           `json:"type"`
	TextField *SlackTextBlock  `json:"text,omitempty"`
	Fields    []SlackTextBlock `json:"fields,omitempty"`
}

type SlackTextBlock

type SlackTextBlock struct {
	TypeField string `json:"type"`
	TextField string `json:"text"`
}

type Vulnerability

type Vulnerability struct {
	Name       string `json:"name"`
	Version    string `json:"version"`
	FixVersion string `json:"fix_version"`
	Severity   string `json:"khulnasoft_severity"` //`json:""`nvd_severity
}

type VulnerabilitySummary

type VulnerabilitySummary struct {
	Total      int `json:"total"`
	Critical   int `json:"critical"`
	High       int `json:"high"`
	Medium     int `json:"medium"`
	Low        int `json:"low"`
	Negligible int `json:"negligible"`
	Sensitive  int `json:"sensitive"`
	Malware    int `json:"malware"`
}

Jump to

Keyboard shortcuts

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