common

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Severity_name = map[int32]string{
		0: "UNKNOWN",
		1: "LOW",
		2: "MEDIUM",
		3: "HIGH",
		4: "CRITICAL",
	}
	Severity_value = map[string]int32{
		"UNKNOWN":  0,
		"LOW":      1,
		"MEDIUM":   2,
		"HIGH":     3,
		"CRITICAL": 4,
	}
)

Enum value maps for Severity.

View Source
var File_rpc_common_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Application

type Application struct {
	Type      string     `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	FilePath  string     `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	Libraries []*Library `protobuf:"bytes,3,rep,name=libraries,proto3" json:"libraries,omitempty"`
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

func (*Application) Descriptor() ([]byte, []int)

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetFilePath

func (x *Application) GetFilePath() string

func (*Application) GetLibraries

func (x *Application) GetLibraries() []*Library

func (*Application) GetType

func (x *Application) GetType() string

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect added in v0.19.0

func (x *Application) ProtoReflect() protoreflect.Message

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type CVSS added in v0.10.0

type CVSS struct {
	V2Vector string  `protobuf:"bytes,1,opt,name=v2_vector,json=v2Vector,proto3" json:"v2_vector,omitempty"`
	V3Vector string  `protobuf:"bytes,2,opt,name=v3_vector,json=v3Vector,proto3" json:"v3_vector,omitempty"`
	V2Score  float64 `protobuf:"fixed64,3,opt,name=v2_score,json=v2Score,proto3" json:"v2_score,omitempty"`
	V3Score  float64 `protobuf:"fixed64,4,opt,name=v3_score,json=v3Score,proto3" json:"v3_score,omitempty"`
	// contains filtered or unexported fields
}

func (*CVSS) Descriptor deprecated added in v0.10.0

func (*CVSS) Descriptor() ([]byte, []int)

Deprecated: Use CVSS.ProtoReflect.Descriptor instead.

func (*CVSS) GetV2Score added in v0.10.0

func (x *CVSS) GetV2Score() float64

func (*CVSS) GetV2Vector added in v0.10.0

func (x *CVSS) GetV2Vector() string

func (*CVSS) GetV3Score added in v0.10.0

func (x *CVSS) GetV3Score() float64

func (*CVSS) GetV3Vector added in v0.10.0

func (x *CVSS) GetV3Vector() string

func (*CVSS) ProtoMessage added in v0.10.0

func (*CVSS) ProtoMessage()

func (*CVSS) ProtoReflect added in v0.19.0

func (x *CVSS) ProtoReflect() protoreflect.Message

func (*CVSS) Reset added in v0.10.0

func (x *CVSS) Reset()

func (*CVSS) String added in v0.10.0

func (x *CVSS) String() string

type DetectedMisconfiguration added in v0.19.0

type DetectedMisconfiguration struct {
	Type        string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id          string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Title       string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description string   `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Message     string   `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	Namespace   string   `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Resolution  string   `protobuf:"bytes,7,opt,name=resolution,proto3" json:"resolution,omitempty"`
	Severity    Severity `protobuf:"varint,8,opt,name=severity,proto3,enum=trivy.common.Severity" json:"severity,omitempty"`
	PrimaryUrl  string   `protobuf:"bytes,9,opt,name=primary_url,json=primaryUrl,proto3" json:"primary_url,omitempty"`
	References  []string `protobuf:"bytes,10,rep,name=references,proto3" json:"references,omitempty"`
	Status      string   `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
	Layer       *Layer   `protobuf:"bytes,12,opt,name=layer,proto3" json:"layer,omitempty"`
	// contains filtered or unexported fields
}

func (*DetectedMisconfiguration) Descriptor deprecated added in v0.19.0

func (*DetectedMisconfiguration) Descriptor() ([]byte, []int)

Deprecated: Use DetectedMisconfiguration.ProtoReflect.Descriptor instead.

func (*DetectedMisconfiguration) GetDescription added in v0.19.0

func (x *DetectedMisconfiguration) GetDescription() string

func (*DetectedMisconfiguration) GetId added in v0.19.0

func (x *DetectedMisconfiguration) GetId() string

func (*DetectedMisconfiguration) GetLayer added in v0.19.0

func (x *DetectedMisconfiguration) GetLayer() *Layer

func (*DetectedMisconfiguration) GetMessage added in v0.19.0

func (x *DetectedMisconfiguration) GetMessage() string

func (*DetectedMisconfiguration) GetNamespace added in v0.19.0

func (x *DetectedMisconfiguration) GetNamespace() string

func (*DetectedMisconfiguration) GetPrimaryUrl added in v0.19.0

func (x *DetectedMisconfiguration) GetPrimaryUrl() string

func (*DetectedMisconfiguration) GetReferences added in v0.19.0

func (x *DetectedMisconfiguration) GetReferences() []string

func (*DetectedMisconfiguration) GetResolution added in v0.19.0

func (x *DetectedMisconfiguration) GetResolution() string

func (*DetectedMisconfiguration) GetSeverity added in v0.19.0

func (x *DetectedMisconfiguration) GetSeverity() Severity

func (*DetectedMisconfiguration) GetStatus added in v0.19.0

func (x *DetectedMisconfiguration) GetStatus() string

func (*DetectedMisconfiguration) GetTitle added in v0.19.0

func (x *DetectedMisconfiguration) GetTitle() string

func (*DetectedMisconfiguration) GetType added in v0.19.0

func (x *DetectedMisconfiguration) GetType() string

func (*DetectedMisconfiguration) ProtoMessage added in v0.19.0

func (*DetectedMisconfiguration) ProtoMessage()

func (*DetectedMisconfiguration) ProtoReflect added in v0.19.0

func (x *DetectedMisconfiguration) ProtoReflect() protoreflect.Message

func (*DetectedMisconfiguration) Reset added in v0.19.0

func (x *DetectedMisconfiguration) Reset()

func (*DetectedMisconfiguration) String added in v0.19.0

func (x *DetectedMisconfiguration) String() string

type Layer added in v0.6.0

type Layer struct {
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	DiffId string `protobuf:"bytes,2,opt,name=diff_id,json=diffId,proto3" json:"diff_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Layer) Descriptor deprecated added in v0.6.0

func (*Layer) Descriptor() ([]byte, []int)

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetDiffId added in v0.6.0

func (x *Layer) GetDiffId() string

func (*Layer) GetDigest added in v0.6.0

func (x *Layer) GetDigest() string

func (*Layer) ProtoMessage added in v0.6.0

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect added in v0.19.0

func (x *Layer) ProtoReflect() protoreflect.Message

func (*Layer) Reset added in v0.6.0

func (x *Layer) Reset()

func (*Layer) String added in v0.6.0

func (x *Layer) String() string

type Library

type Library struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Library) Descriptor deprecated

func (*Library) Descriptor() ([]byte, []int)

Deprecated: Use Library.ProtoReflect.Descriptor instead.

func (*Library) GetName

func (x *Library) GetName() string

func (*Library) GetVersion

func (x *Library) GetVersion() string

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) ProtoReflect added in v0.19.0

func (x *Library) ProtoReflect() protoreflect.Message

func (*Library) Reset

func (x *Library) Reset()

func (*Library) String

func (x *Library) String() string

type MisconfResult added in v0.19.0

type MisconfResult struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Message   string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Type      string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Id        string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	Title     string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Severity  string `protobuf:"bytes,6,opt,name=severity,proto3" json:"severity,omitempty"`
	// contains filtered or unexported fields
}

func (*MisconfResult) Descriptor deprecated added in v0.19.0

func (*MisconfResult) Descriptor() ([]byte, []int)

Deprecated: Use MisconfResult.ProtoReflect.Descriptor instead.

func (*MisconfResult) GetId added in v0.19.0

func (x *MisconfResult) GetId() string

func (*MisconfResult) GetMessage added in v0.19.0

func (x *MisconfResult) GetMessage() string

func (*MisconfResult) GetNamespace added in v0.19.0

func (x *MisconfResult) GetNamespace() string

func (*MisconfResult) GetSeverity added in v0.19.0

func (x *MisconfResult) GetSeverity() string

func (*MisconfResult) GetTitle added in v0.19.0

func (x *MisconfResult) GetTitle() string

func (*MisconfResult) GetType added in v0.19.0

func (x *MisconfResult) GetType() string

func (*MisconfResult) ProtoMessage added in v0.19.0

func (*MisconfResult) ProtoMessage()

func (*MisconfResult) ProtoReflect added in v0.19.0

func (x *MisconfResult) ProtoReflect() protoreflect.Message

func (*MisconfResult) Reset added in v0.19.0

func (x *MisconfResult) Reset()

func (*MisconfResult) String added in v0.19.0

func (x *MisconfResult) String() string

type Misconfiguration added in v0.19.0

type Misconfiguration struct {
	FileType   string           `protobuf:"bytes,1,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	FilePath   string           `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	Successes  []*MisconfResult `protobuf:"bytes,3,rep,name=successes,proto3" json:"successes,omitempty"`
	Warnings   []*MisconfResult `protobuf:"bytes,4,rep,name=warnings,proto3" json:"warnings,omitempty"`
	Failures   []*MisconfResult `protobuf:"bytes,5,rep,name=failures,proto3" json:"failures,omitempty"`
	Exceptions []*MisconfResult `protobuf:"bytes,6,rep,name=exceptions,proto3" json:"exceptions,omitempty"`
	// contains filtered or unexported fields
}

func (*Misconfiguration) Descriptor deprecated added in v0.19.0

func (*Misconfiguration) Descriptor() ([]byte, []int)

Deprecated: Use Misconfiguration.ProtoReflect.Descriptor instead.

func (*Misconfiguration) GetExceptions added in v0.19.0

func (x *Misconfiguration) GetExceptions() []*MisconfResult

func (*Misconfiguration) GetFailures added in v0.19.0

func (x *Misconfiguration) GetFailures() []*MisconfResult

func (*Misconfiguration) GetFilePath added in v0.19.0

func (x *Misconfiguration) GetFilePath() string

func (*Misconfiguration) GetFileType added in v0.19.0

func (x *Misconfiguration) GetFileType() string

func (*Misconfiguration) GetSuccesses added in v0.19.0

func (x *Misconfiguration) GetSuccesses() []*MisconfResult

func (*Misconfiguration) GetWarnings added in v0.19.0

func (x *Misconfiguration) GetWarnings() []*MisconfResult

func (*Misconfiguration) ProtoMessage added in v0.19.0

func (*Misconfiguration) ProtoMessage()

func (*Misconfiguration) ProtoReflect added in v0.19.0

func (x *Misconfiguration) ProtoReflect() protoreflect.Message

func (*Misconfiguration) Reset added in v0.19.0

func (x *Misconfiguration) Reset()

func (*Misconfiguration) String added in v0.19.0

func (x *Misconfiguration) String() string

type OS

type OS struct {
	Family string `protobuf:"bytes,1,opt,name=family,proto3" json:"family,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*OS) Descriptor deprecated

func (*OS) Descriptor() ([]byte, []int)

Deprecated: Use OS.ProtoReflect.Descriptor instead.

func (*OS) GetFamily

func (x *OS) GetFamily() string

func (*OS) GetName

func (x *OS) GetName() string

func (*OS) ProtoMessage

func (*OS) ProtoMessage()

func (*OS) ProtoReflect added in v0.19.0

func (x *OS) ProtoReflect() protoreflect.Message

func (*OS) Reset

func (x *OS) Reset()

func (*OS) String

func (x *OS) String() string

type Package

type Package struct {

	// binary package
	// e.g. bind-utils
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Release string `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
	Epoch   int32  `protobuf:"varint,4,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Arch    string `protobuf:"bytes,5,opt,name=arch,proto3" json:"arch,omitempty"`
	// src package containing some binary packages
	// e.g. bind
	SrcName    string `protobuf:"bytes,6,opt,name=src_name,json=srcName,proto3" json:"src_name,omitempty"`
	SrcVersion string `protobuf:"bytes,7,opt,name=src_version,json=srcVersion,proto3" json:"src_version,omitempty"`
	SrcRelease string `protobuf:"bytes,8,opt,name=src_release,json=srcRelease,proto3" json:"src_release,omitempty"`
	SrcEpoch   int32  `protobuf:"varint,9,opt,name=src_epoch,json=srcEpoch,proto3" json:"src_epoch,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

func (*Package) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetArch

func (x *Package) GetArch() string

func (*Package) GetEpoch

func (x *Package) GetEpoch() int32

func (*Package) GetName

func (x *Package) GetName() string

func (*Package) GetRelease

func (x *Package) GetRelease() string

func (*Package) GetSrcEpoch

func (x *Package) GetSrcEpoch() int32

func (*Package) GetSrcName

func (x *Package) GetSrcName() string

func (*Package) GetSrcRelease

func (x *Package) GetSrcRelease() string

func (*Package) GetSrcVersion

func (x *Package) GetSrcVersion() string

func (*Package) GetVersion

func (x *Package) GetVersion() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect added in v0.19.0

func (x *Package) ProtoReflect() protoreflect.Message

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PackageInfo

type PackageInfo struct {
	FilePath string     `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	Packages []*Package `protobuf:"bytes,2,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageInfo) Descriptor deprecated

func (*PackageInfo) Descriptor() ([]byte, []int)

Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.

func (*PackageInfo) GetFilePath

func (x *PackageInfo) GetFilePath() string

func (*PackageInfo) GetPackages

func (x *PackageInfo) GetPackages() []*Package

func (*PackageInfo) ProtoMessage

func (*PackageInfo) ProtoMessage()

func (*PackageInfo) ProtoReflect added in v0.19.0

func (x *PackageInfo) ProtoReflect() protoreflect.Message

func (*PackageInfo) Reset

func (x *PackageInfo) Reset()

func (*PackageInfo) String

func (x *PackageInfo) String() string

type Severity

type Severity int32
const (
	Severity_UNKNOWN  Severity = 0
	Severity_LOW      Severity = 1
	Severity_MEDIUM   Severity = 2
	Severity_HIGH     Severity = 3
	Severity_CRITICAL Severity = 4
)

func (Severity) Descriptor added in v0.19.0

func (Severity) Descriptor() protoreflect.EnumDescriptor

func (Severity) Enum added in v0.19.0

func (x Severity) Enum() *Severity

func (Severity) EnumDescriptor deprecated

func (Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use Severity.Descriptor instead.

func (Severity) Number added in v0.19.0

func (x Severity) Number() protoreflect.EnumNumber

func (Severity) String

func (x Severity) String() string

func (Severity) Type added in v0.19.0

type Vulnerability

type Vulnerability struct {
	VulnerabilityId  string                 `protobuf:"bytes,1,opt,name=vulnerability_id,json=vulnerabilityId,proto3" json:"vulnerability_id,omitempty"`
	PkgName          string                 `protobuf:"bytes,2,opt,name=pkg_name,json=pkgName,proto3" json:"pkg_name,omitempty"`
	InstalledVersion string                 `protobuf:"bytes,3,opt,name=installed_version,json=installedVersion,proto3" json:"installed_version,omitempty"`
	FixedVersion     string                 `protobuf:"bytes,4,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
	Title            string                 `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Description      string                 `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Severity         Severity               `protobuf:"varint,7,opt,name=severity,proto3,enum=trivy.common.Severity" json:"severity,omitempty"`
	References       []string               `protobuf:"bytes,8,rep,name=references,proto3" json:"references,omitempty"`
	Layer            *Layer                 `protobuf:"bytes,10,opt,name=layer,proto3" json:"layer,omitempty"`
	SeveritySource   string                 `protobuf:"bytes,11,opt,name=severity_source,json=severitySource,proto3" json:"severity_source,omitempty"`
	Cvss             map[string]*CVSS       `` /* 150-byte string literal not displayed */
	CweIds           []string               `protobuf:"bytes,13,rep,name=cwe_ids,json=cweIds,proto3" json:"cwe_ids,omitempty"`
	PrimaryUrl       string                 `protobuf:"bytes,14,opt,name=primary_url,json=primaryUrl,proto3" json:"primary_url,omitempty"`
	PublishedDate    *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=published_date,json=publishedDate,proto3" json:"published_date,omitempty"`
	LastModifiedDate *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=last_modified_date,json=lastModifiedDate,proto3" json:"last_modified_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Vulnerability) Descriptor deprecated

func (*Vulnerability) Descriptor() ([]byte, []int)

Deprecated: Use Vulnerability.ProtoReflect.Descriptor instead.

func (*Vulnerability) GetCvss added in v0.10.0

func (x *Vulnerability) GetCvss() map[string]*CVSS

func (*Vulnerability) GetCweIds added in v0.12.0

func (x *Vulnerability) GetCweIds() []string

func (*Vulnerability) GetDescription

func (x *Vulnerability) GetDescription() string

func (*Vulnerability) GetFixedVersion

func (x *Vulnerability) GetFixedVersion() string

func (*Vulnerability) GetInstalledVersion

func (x *Vulnerability) GetInstalledVersion() string

func (*Vulnerability) GetLastModifiedDate added in v0.15.0

func (x *Vulnerability) GetLastModifiedDate() *timestamppb.Timestamp

func (*Vulnerability) GetLayer added in v0.6.0

func (x *Vulnerability) GetLayer() *Layer

func (*Vulnerability) GetPkgName

func (x *Vulnerability) GetPkgName() string

func (*Vulnerability) GetPrimaryUrl added in v0.14.0

func (x *Vulnerability) GetPrimaryUrl() string

func (*Vulnerability) GetPublishedDate added in v0.15.0

func (x *Vulnerability) GetPublishedDate() *timestamppb.Timestamp

func (*Vulnerability) GetReferences

func (x *Vulnerability) GetReferences() []string

func (*Vulnerability) GetSeverity

func (x *Vulnerability) GetSeverity() Severity

func (*Vulnerability) GetSeveritySource added in v0.7.0

func (x *Vulnerability) GetSeveritySource() string

func (*Vulnerability) GetTitle

func (x *Vulnerability) GetTitle() string

func (*Vulnerability) GetVulnerabilityId

func (x *Vulnerability) GetVulnerabilityId() string

func (*Vulnerability) ProtoMessage

func (*Vulnerability) ProtoMessage()

func (*Vulnerability) ProtoReflect added in v0.19.0

func (x *Vulnerability) ProtoReflect() protoreflect.Message

func (*Vulnerability) Reset

func (x *Vulnerability) Reset()

func (*Vulnerability) String

func (x *Vulnerability) String() string

Jump to

Keyboard shortcuts

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