domain

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CriticalSeverity   = "Critical"
	HighSeverity       = "High"
	MediumSeverity     = "Medium"
	LowSeverity        = "Low"
	NegligibleSeverity = "Negligible"
	UnknownSeverity    = "Unknown"
)
View Source
const (
	Accepted = iota
	Started
	Success
	Done
)
View Source
const (
	AttributeUseHTTP       = identifiers.AttributeUseHTTP
	AttributeSkipTLSVerify = identifiers.AttributeSkipTLSVerify
)

Variables

View Source
var (
	ErrExpectedError            = errors.New("expected error")
	ErrInitVulnDB               = errors.New("vulnerability DB is not initialized, run readiness probe")
	ErrIncompleteSBOM           = errors.New("incomplete SBOM, skipping CVE scan")
	ErrOutdatedSBOM             = errors.New("SBOM is outdated")
	ErrSBOMWithPartialArtifacts = errors.New("SBOM having partial artifacts")
	ErrInvalidScanID            = errors.New("invalid scanID")
	ErrMissingImageInfo         = errors.New("missing image information")
	ErrMissingScanID            = errors.New("missing scanID")
	ErrMissingTimestamp         = errors.New("missing timestamp")
	ErrCastingWorkload          = errors.New("casting workload")
	ErrMockError                = errors.New("mock error")
	ErrTooManyRequests          = errors.New("too many requests")
)

Functions

This section is empty.

Types

type CVEExceptions added in v0.2.99

type CVEManifest

type CVEManifest struct {
	Content            *v1beta1.GrypeDocument
	Annotations        map[string]string
	Labels             map[string]string
	Name               string
	Wlid               string
	SBOMCreatorName    string
	SBOMCreatorVersion string
	CVEScannerName     string
	CVEScannerVersion  string
	CVEDBVersion       string
}

CVEManifest contains a JSON CVE report manifest with some metadata

type RegistryCredentials

type RegistryCredentials struct {
	Authority string
	Username  string
	Password  string
	Token     string
}

RegistryCredentials contains OCI registry credentials required for connection it is closely related to the Stereoscope image.RegistryCredentials struct

type RegistryOptions

type RegistryOptions struct {
	Platform              string
	Credentials           []RegistryCredentials
	InsecureSkipTLSVerify bool
	InsecureUseHTTP       bool
}

RegistryOptions contains OCI registry configuration parameters required for connection it is closely related to the Stereoscope image.RegistryOptions struct used by Grype

type SBOM

type SBOM struct {
	Content            *v1beta1.SyftDocument
	Annotations        map[string]string
	Labels             map[string]string
	Name               string
	SBOMCreatorName    string
	SBOMCreatorVersion string
	Status             string
}

SBOM contains an syft SBOM in JSON format with some metadata

type ScanCommand

type ScanCommand struct {
	Args               map[string]interface{}
	ImageTagNormalized string
	ImageSlug          string
	InstanceID         string
	Wlid               string
	ImageTag           string
	JobID              string
	ContainerName      string
	ParentJobID        string
	ImageHash          string
	CredentialsList    []registry.AuthConfig
	Session            Session
	LastAction         int
}

type ScanIDKey added in v0.2.99

type ScanIDKey struct{}

type Session added in v0.2.99

type Session struct {
	JobIDs []string
}

type TimestampKey added in v0.2.99

type TimestampKey struct{}

type WorkloadKey added in v0.2.99

type WorkloadKey struct{}

Jump to

Keyboard shortcuts

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