Documentation ¶
Index ¶
- Variables
- type Architecture
- func (Architecture) Descriptor() protoreflect.EnumDescriptor
- func (x Architecture) Enum() *Architecture
- func (Architecture) EnumDescriptor() ([]byte, []int)deprecated
- func (x Architecture) Number() protoreflect.EnumNumber
- func (x Architecture) String() string
- func (Architecture) Type() protoreflect.EnumType
- type Details
- type Distribution
- func (*Distribution) Descriptor() ([]byte, []int)deprecated
- func (x *Distribution) GetArchitecture() Architecture
- func (x *Distribution) GetCpeUri() string
- func (x *Distribution) GetDescription() string
- func (x *Distribution) GetLatestVersion() *Version
- func (x *Distribution) GetMaintainer() string
- func (x *Distribution) GetUrl() string
- func (*Distribution) ProtoMessage()
- func (x *Distribution) ProtoReflect() protoreflect.Message
- func (x *Distribution) Reset()
- func (x *Distribution) String() string
- type Installation
- func (*Installation) Descriptor() ([]byte, []int)deprecated
- func (x *Installation) GetLocation() []*Location
- func (x *Installation) GetName() string
- func (*Installation) ProtoMessage()
- func (x *Installation) ProtoReflect() protoreflect.Message
- func (x *Installation) Reset()
- func (x *Installation) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetCpeUri() string
- func (x *Location) GetPath() string
- func (x *Location) GetVersion() *Version
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type Package
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetEpoch() int32
- func (x *Version) GetKind() Version_VersionKind
- func (x *Version) GetName() string
- func (x *Version) GetRevision() string
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- type Version_VersionKind
- func (Version_VersionKind) Descriptor() protoreflect.EnumDescriptor
- func (x Version_VersionKind) Enum() *Version_VersionKind
- func (Version_VersionKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Version_VersionKind) Number() protoreflect.EnumNumber
- func (x Version_VersionKind) String() string
- func (Version_VersionKind) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Architecture_name = map[int32]string{ 0: "ARCHITECTURE_UNSPECIFIED", 1: "X86", 2: "X64", } Architecture_value = map[string]int32{ "ARCHITECTURE_UNSPECIFIED": 0, "X86": 1, "X64": 2, } )
Enum value maps for Architecture.
var ( Version_VersionKind_name = map[int32]string{ 0: "VERSION_KIND_UNSPECIFIED", 1: "NORMAL", 2: "MINIMUM", 3: "MAXIMUM", } Version_VersionKind_value = map[string]int32{ "VERSION_KIND_UNSPECIFIED": 0, "NORMAL": 1, "MINIMUM": 2, "MAXIMUM": 3, } )
Enum value maps for Version_VersionKind.
var File_google_devtools_containeranalysis_v1beta1_package_package_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Architecture ¶
type Architecture int32
Instruction set architectures supported by various package managers.
const ( // Unknown architecture. Architecture_ARCHITECTURE_UNSPECIFIED Architecture = 0 // X86 architecture. Architecture_X86 Architecture = 1 // X64 architecture. Architecture_X64 Architecture = 2 )
func (Architecture) Descriptor ¶
func (Architecture) Descriptor() protoreflect.EnumDescriptor
func (Architecture) Enum ¶
func (x Architecture) Enum() *Architecture
func (Architecture) EnumDescriptor
deprecated
func (Architecture) EnumDescriptor() ([]byte, []int)
Deprecated: Use Architecture.Descriptor instead.
func (Architecture) Number ¶
func (x Architecture) Number() protoreflect.EnumNumber
func (Architecture) String ¶
func (x Architecture) String() string
func (Architecture) Type ¶
func (Architecture) Type() protoreflect.EnumType
type Details ¶
type Details struct { // Required. Where the package was installed. Installation *Installation `protobuf:"bytes,1,opt,name=installation,proto3" json:"installation,omitempty"` // contains filtered or unexported fields }
Details of a package occurrence.
func (*Details) Descriptor
deprecated
func (*Details) GetInstallation ¶
func (x *Details) GetInstallation() *Installation
func (*Details) ProtoMessage ¶
func (*Details) ProtoMessage()
func (*Details) ProtoReflect ¶
func (x *Details) ProtoReflect() protoreflect.Message
type Distribution ¶
type Distribution struct { // Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) // denoting the package manager version distributing a package. CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"` // The CPU architecture for which packages in this distribution channel were // built. Architecture Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=grafeas.v1beta1.package.Architecture" json:"architecture,omitempty"` // The latest available version of this package in this distribution channel. LatestVersion *Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"` // A freeform string denoting the maintainer of this package. Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"` // The distribution channel-specific homepage for this package. Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // The distribution channel-specific description of this package. Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror.
func (*Distribution) Descriptor
deprecated
func (*Distribution) Descriptor() ([]byte, []int)
Deprecated: Use Distribution.ProtoReflect.Descriptor instead.
func (*Distribution) GetArchitecture ¶
func (x *Distribution) GetArchitecture() Architecture
func (*Distribution) GetCpeUri ¶
func (x *Distribution) GetCpeUri() string
func (*Distribution) GetDescription ¶
func (x *Distribution) GetDescription() string
func (*Distribution) GetLatestVersion ¶
func (x *Distribution) GetLatestVersion() *Version
func (*Distribution) GetMaintainer ¶
func (x *Distribution) GetMaintainer() string
func (*Distribution) GetUrl ¶
func (x *Distribution) GetUrl() string
func (*Distribution) ProtoMessage ¶
func (*Distribution) ProtoMessage()
func (*Distribution) ProtoReflect ¶
func (x *Distribution) ProtoReflect() protoreflect.Message
func (*Distribution) Reset ¶
func (x *Distribution) Reset()
func (*Distribution) String ¶
func (x *Distribution) String() string
type Installation ¶
type Installation struct { // Output only. The name of the installed package. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. All of the places within the filesystem versions of this package // have been found. Location []*Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
This represents how a particular software package may be installed on a system.
func (*Installation) Descriptor
deprecated
func (*Installation) Descriptor() ([]byte, []int)
Deprecated: Use Installation.ProtoReflect.Descriptor instead.
func (*Installation) GetLocation ¶
func (x *Installation) GetLocation() []*Location
func (*Installation) GetName ¶
func (x *Installation) GetName() string
func (*Installation) ProtoMessage ¶
func (*Installation) ProtoMessage()
func (*Installation) ProtoReflect ¶
func (x *Installation) ProtoReflect() protoreflect.Message
func (*Installation) Reset ¶
func (x *Installation) Reset()
func (*Installation) String ¶
func (x *Installation) String() string
type Location ¶
type Location struct { // Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) // denoting the package manager version distributing a package. CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"` // The version installed at this location. Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // The path from which we gathered that this package/version is installed. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
func (*Location) Descriptor
deprecated
func (*Location) GetVersion ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type Package ¶
type Package struct { // Required. Immutable. The name of the package. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The various channels by which a package is distributed. Distribution []*Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"` // contains filtered or unexported fields }
This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions.
func (*Package) Descriptor
deprecated
func (*Package) GetDistribution ¶
func (x *Package) GetDistribution() []*Distribution
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type Version ¶
type Version struct { // Used to correct mistakes in the version numbering scheme. Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` // Required only when version kind is NORMAL. The main part of the version // name. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The iteration of the package build from the above version. Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` // Required. Distinguishes between sentinel MIN/MAX versions and normal // versions. Kind Version_VersionKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.package.Version_VersionKind" json:"kind,omitempty"` // contains filtered or unexported fields }
Version contains structured information about the version of a package.
func (*Version) Descriptor
deprecated
func (*Version) GetKind ¶
func (x *Version) GetKind() Version_VersionKind
func (*Version) GetRevision ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
type Version_VersionKind ¶
type Version_VersionKind int32
Whether this is an ordinary package version or a sentinel MIN/MAX version.
const ( // Unknown. Version_VERSION_KIND_UNSPECIFIED Version_VersionKind = 0 // A standard package version. Version_NORMAL Version_VersionKind = 1 // A special version representing negative infinity. Version_MINIMUM Version_VersionKind = 2 // A special version representing positive infinity. Version_MAXIMUM Version_VersionKind = 3 )
func (Version_VersionKind) Descriptor ¶
func (Version_VersionKind) Descriptor() protoreflect.EnumDescriptor
func (Version_VersionKind) Enum ¶
func (x Version_VersionKind) Enum() *Version_VersionKind
func (Version_VersionKind) EnumDescriptor
deprecated
func (Version_VersionKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Version_VersionKind.Descriptor instead.
func (Version_VersionKind) Number ¶
func (x Version_VersionKind) Number() protoreflect.EnumNumber
func (Version_VersionKind) String ¶
func (x Version_VersionKind) String() string
func (Version_VersionKind) Type ¶
func (Version_VersionKind) Type() protoreflect.EnumType