common

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 3 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",
}
View Source
var Severity_value = map[string]int32{
	"UNKNOWN":  0,
	"LOW":      1,
	"MEDIUM":   2,
	"HIGH":     3,
	"CRITICAL": 4,
}

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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Application) Descriptor

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

func (*Application) GetFilePath

func (m *Application) GetFilePath() string

func (*Application) GetLibraries

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

func (*Application) GetType

func (m *Application) GetType() string

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) Reset

func (m *Application) Reset()

func (*Application) String

func (m *Application) String() string

func (*Application) XXX_DiscardUnknown

func (m *Application) XXX_DiscardUnknown()

func (*Application) XXX_Marshal

func (m *Application) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Application) XXX_Merge

func (m *Application) XXX_Merge(src proto.Message)

func (*Application) XXX_Size

func (m *Application) XXX_Size() int

func (*Application) XXX_Unmarshal

func (m *Application) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CVSS) Descriptor added in v0.10.0

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

func (*CVSS) GetV2Score added in v0.10.0

func (m *CVSS) GetV2Score() float64

func (*CVSS) GetV2Vector added in v0.10.0

func (m *CVSS) GetV2Vector() string

func (*CVSS) GetV3Score added in v0.10.0

func (m *CVSS) GetV3Score() float64

func (*CVSS) GetV3Vector added in v0.10.0

func (m *CVSS) GetV3Vector() string

func (*CVSS) ProtoMessage added in v0.10.0

func (*CVSS) ProtoMessage()

func (*CVSS) Reset added in v0.10.0

func (m *CVSS) Reset()

func (*CVSS) String added in v0.10.0

func (m *CVSS) String() string

func (*CVSS) XXX_DiscardUnknown added in v0.10.0

func (m *CVSS) XXX_DiscardUnknown()

func (*CVSS) XXX_Marshal added in v0.10.0

func (m *CVSS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CVSS) XXX_Merge added in v0.10.0

func (m *CVSS) XXX_Merge(src proto.Message)

func (*CVSS) XXX_Size added in v0.10.0

func (m *CVSS) XXX_Size() int

func (*CVSS) XXX_Unmarshal added in v0.10.0

func (m *CVSS) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Layer) Descriptor added in v0.6.0

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

func (*Layer) GetDiffId added in v0.6.0

func (m *Layer) GetDiffId() string

func (*Layer) GetDigest added in v0.6.0

func (m *Layer) GetDigest() string

func (*Layer) ProtoMessage added in v0.6.0

func (*Layer) ProtoMessage()

func (*Layer) Reset added in v0.6.0

func (m *Layer) Reset()

func (*Layer) String added in v0.6.0

func (m *Layer) String() string

func (*Layer) XXX_DiscardUnknown added in v0.6.0

func (m *Layer) XXX_DiscardUnknown()

func (*Layer) XXX_Marshal added in v0.6.0

func (m *Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Layer) XXX_Merge added in v0.6.0

func (m *Layer) XXX_Merge(src proto.Message)

func (*Layer) XXX_Size added in v0.6.0

func (m *Layer) XXX_Size() int

func (*Layer) XXX_Unmarshal added in v0.6.0

func (m *Layer) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Library) Descriptor

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

func (*Library) GetName

func (m *Library) GetName() string

func (*Library) GetVersion

func (m *Library) GetVersion() string

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) Reset

func (m *Library) Reset()

func (*Library) String

func (m *Library) String() string

func (*Library) XXX_DiscardUnknown

func (m *Library) XXX_DiscardUnknown()

func (*Library) XXX_Marshal

func (m *Library) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Library) XXX_Merge

func (m *Library) XXX_Merge(src proto.Message)

func (*Library) XXX_Size

func (m *Library) XXX_Size() int

func (*Library) XXX_Unmarshal

func (m *Library) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OS) Descriptor

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

func (*OS) GetFamily

func (m *OS) GetFamily() string

func (*OS) GetName

func (m *OS) GetName() string

func (*OS) ProtoMessage

func (*OS) ProtoMessage()

func (*OS) Reset

func (m *OS) Reset()

func (*OS) String

func (m *OS) String() string

func (*OS) XXX_DiscardUnknown

func (m *OS) XXX_DiscardUnknown()

func (*OS) XXX_Marshal

func (m *OS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OS) XXX_Merge

func (m *OS) XXX_Merge(src proto.Message)

func (*OS) XXX_Size

func (m *OS) XXX_Size() int

func (*OS) XXX_Unmarshal

func (m *OS) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Package) Descriptor

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

func (*Package) GetArch

func (m *Package) GetArch() string

func (*Package) GetEpoch

func (m *Package) GetEpoch() int32

func (*Package) GetName

func (m *Package) GetName() string

func (*Package) GetRelease

func (m *Package) GetRelease() string

func (*Package) GetSrcEpoch

func (m *Package) GetSrcEpoch() int32

func (*Package) GetSrcName

func (m *Package) GetSrcName() string

func (*Package) GetSrcRelease

func (m *Package) GetSrcRelease() string

func (*Package) GetSrcVersion

func (m *Package) GetSrcVersion() string

func (*Package) GetVersion

func (m *Package) GetVersion() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) Reset

func (m *Package) Reset()

func (*Package) String

func (m *Package) String() string

func (*Package) XXX_DiscardUnknown

func (m *Package) XXX_DiscardUnknown()

func (*Package) XXX_Marshal

func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Package) XXX_Merge

func (m *Package) XXX_Merge(src proto.Message)

func (*Package) XXX_Size

func (m *Package) XXX_Size() int

func (*Package) XXX_Unmarshal

func (m *Package) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*PackageInfo) Descriptor

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

func (*PackageInfo) GetFilePath

func (m *PackageInfo) GetFilePath() string

func (*PackageInfo) GetPackages

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

func (*PackageInfo) ProtoMessage

func (*PackageInfo) ProtoMessage()

func (*PackageInfo) Reset

func (m *PackageInfo) Reset()

func (*PackageInfo) String

func (m *PackageInfo) String() string

func (*PackageInfo) XXX_DiscardUnknown

func (m *PackageInfo) XXX_DiscardUnknown()

func (*PackageInfo) XXX_Marshal

func (m *PackageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageInfo) XXX_Merge

func (m *PackageInfo) XXX_Merge(src proto.Message)

func (*PackageInfo) XXX_Size

func (m *PackageInfo) XXX_Size() int

func (*PackageInfo) XXX_Unmarshal

func (m *PackageInfo) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

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

func (Severity) String

func (x Severity) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Vulnerability) Descriptor

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

func (*Vulnerability) GetCvss added in v0.10.0

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

func (*Vulnerability) GetCweIds added in v0.12.0

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

func (*Vulnerability) GetDescription

func (m *Vulnerability) GetDescription() string

func (*Vulnerability) GetFixedVersion

func (m *Vulnerability) GetFixedVersion() string

func (*Vulnerability) GetInstalledVersion

func (m *Vulnerability) GetInstalledVersion() string

func (*Vulnerability) GetLayer added in v0.6.0

func (m *Vulnerability) GetLayer() *Layer

func (*Vulnerability) GetPkgName

func (m *Vulnerability) GetPkgName() string

func (*Vulnerability) GetReferences

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

func (*Vulnerability) GetSeverity

func (m *Vulnerability) GetSeverity() Severity

func (*Vulnerability) GetSeveritySource added in v0.7.0

func (m *Vulnerability) GetSeveritySource() string

func (*Vulnerability) GetTitle

func (m *Vulnerability) GetTitle() string

func (*Vulnerability) GetVulnerabilityId

func (m *Vulnerability) GetVulnerabilityId() string

func (*Vulnerability) ProtoMessage

func (*Vulnerability) ProtoMessage()

func (*Vulnerability) Reset

func (m *Vulnerability) Reset()

func (*Vulnerability) String

func (m *Vulnerability) String() string

func (*Vulnerability) XXX_DiscardUnknown

func (m *Vulnerability) XXX_DiscardUnknown()

func (*Vulnerability) XXX_Marshal

func (m *Vulnerability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vulnerability) XXX_Merge

func (m *Vulnerability) XXX_Merge(src proto.Message)

func (*Vulnerability) XXX_Size

func (m *Vulnerability) XXX_Size() int

func (*Vulnerability) XXX_Unmarshal

func (m *Vulnerability) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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