common

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 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 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"`
	LayerId              string   `protobuf:"bytes,9,opt,name=layer_id,json=layerId,proto3" json:"layer_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vulnerability) Descriptor

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

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

func (m *Vulnerability) GetLayerId() string

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