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) GetArchitecture() Architecture
- func (x *Installation) GetCpeUri() string
- func (x *Installation) GetLicense() *common_go_proto.License
- func (x *Installation) GetLocation() []*Location
- func (x *Installation) GetName() string
- func (x *Installation) GetPackageType() string
- func (x *Installation) GetVersion() *Version
- 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
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetArchitecture() Architecture
- func (x *Package) GetCpeUri() string
- func (x *Package) GetDescription() string
- func (x *Package) GetDigest() []*common_go_proto.Digest
- func (x *Package) GetDistribution() []*Distribution
- func (x *Package) GetLicense() *common_go_proto.License
- func (x *Package) GetMaintainer() string
- func (x *Package) GetName() string
- func (x *Package) GetPackageType() string
- func (x *Package) GetUrl() string
- func (x *Package) GetVersion() *Version
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetEpoch() int32
- func (x *Version) GetInclusive() bool
- 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_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 ¶ added in v0.2.0
func (Architecture) Descriptor() protoreflect.EnumDescriptor
func (Architecture) Enum ¶ added in v0.2.0
func (x Architecture) Enum() *Architecture
func (Architecture) EnumDescriptor
deprecated
func (Architecture) EnumDescriptor() ([]byte, []int)
Deprecated: Use Architecture.Descriptor instead.
func (Architecture) Number ¶ added in v0.2.0
func (x Architecture) Number() protoreflect.EnumNumber
func (Architecture) String ¶
func (x Architecture) String() string
func (Architecture) Type ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (x *Details) ProtoReflect() protoreflect.Message
type Distribution ¶
type Distribution struct { // 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 ¶ added in v0.2.0
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 { // The name of the installed package. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 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"` // The type of package; whether native or non native (e.g., ruby gems, // node.js packages, etc.). PackageType string `protobuf:"bytes,3,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"` // The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) // denoting the package manager version distributing a package. // The cpe_uri will be blank for language packages. CpeUri string `protobuf:"bytes,4,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"` // The CPU architecture for which packages in this distribution channel were // built. Architecture will be blank for language packages. Architecture Architecture `protobuf:"varint,5,opt,name=architecture,proto3,enum=grafeas.v1beta1.package.Architecture" json:"architecture,omitempty"` // Licenses that have been declared by the authors of the package. License *common_go_proto.License `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty"` // The version of the package. Version *Version `protobuf:"bytes,7,opt,name=version,proto3" json:"version,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) GetArchitecture ¶ added in v0.2.2
func (x *Installation) GetArchitecture() Architecture
func (*Installation) GetCpeUri ¶ added in v0.2.2
func (x *Installation) GetCpeUri() string
func (*Installation) GetLicense ¶ added in v0.2.2
func (x *Installation) GetLicense() *common_go_proto.License
func (*Installation) GetLocation ¶
func (x *Installation) GetLocation() []*Location
func (*Installation) GetName ¶
func (x *Installation) GetName() string
func (*Installation) GetPackageType ¶ added in v0.2.2
func (x *Installation) GetPackageType() string
func (*Installation) GetVersion ¶ added in v0.2.2
func (x *Installation) GetVersion() *Version
func (*Installation) ProtoMessage ¶
func (*Installation) ProtoMessage()
func (*Installation) ProtoReflect ¶ added in v0.2.0
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 { // Deprecated. // 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"` // Deprecated. // 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 ¶ added in v0.2.0
func (x *Location) ProtoReflect() protoreflect.Message
type Package ¶
type Package struct { // 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"` // The type of package; whether native or non native (e.g., ruby gems, // node.js packages, etc.). PackageType string `protobuf:"bytes,11,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"` // The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) // denoting the package manager version distributing a package. // The cpe_uri will be blank for language packages. CpeUri string `protobuf:"bytes,12,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"` // The CPU architecture for which packages in this distribution channel were // built. Architecture will be blank for language packages. Architecture Architecture `protobuf:"varint,13,opt,name=architecture,proto3,enum=grafeas.v1beta1.package.Architecture" json:"architecture,omitempty"` // The version of the package. Version *Version `protobuf:"bytes,14,opt,name=version,proto3" json:"version,omitempty"` // A freeform text denoting the maintainer of this package. Maintainer string `protobuf:"bytes,15,opt,name=maintainer,proto3" json:"maintainer,omitempty"` // The homepage for this package. Url string `protobuf:"bytes,16,opt,name=url,proto3" json:"url,omitempty"` // The description of this package. Description string `protobuf:"bytes,17,opt,name=description,proto3" json:"description,omitempty"` // Licenses that have been declared by the authors of the package. License *common_go_proto.License `protobuf:"bytes,18,opt,name=license,proto3" json:"license,omitempty"` // Hash value, typically a file digest, that allows unique // identification a specific package. Digest []*common_go_proto.Digest `protobuf:"bytes,19,rep,name=digest,proto3" json:"digest,omitempty"` // contains filtered or unexported fields }
Package represents a particular package version.
func (*Package) Descriptor
deprecated
func (*Package) GetArchitecture ¶ added in v0.2.2
func (x *Package) GetArchitecture() Architecture
func (*Package) GetDescription ¶ added in v0.2.2
func (*Package) GetDigest ¶ added in v0.2.2
func (x *Package) GetDigest() []*common_go_proto.Digest
func (*Package) GetDistribution ¶
func (x *Package) GetDistribution() []*Distribution
func (*Package) GetLicense ¶ added in v0.2.2
func (x *Package) GetLicense() *common_go_proto.License
func (*Package) GetMaintainer ¶ added in v0.2.2
func (*Package) GetPackageType ¶ added in v0.2.2
func (*Package) GetVersion ¶ added in v0.2.2
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶ added in v0.2.0
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"` // Whether this version is specifying part of an inclusive range. Grafeas // does not have the capability to specify version ranges; instead we have // fields that specify start version and end versions. At times this is // insufficient - we also need to specify whether the version is included in // the range or is excluded from the range. This boolean is expected to be set // to true when the version is included in a range. Inclusive bool `protobuf:"varint,6,opt,name=inclusive,proto3" json:"inclusive,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) GetInclusive ¶ added in v0.2.0
func (*Version) GetKind ¶
func (x *Version) GetKind() Version_VersionKind
func (*Version) GetRevision ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (Version_VersionKind) Descriptor() protoreflect.EnumDescriptor
func (Version_VersionKind) Enum ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (x Version_VersionKind) Number() protoreflect.EnumNumber
func (Version_VersionKind) String ¶
func (x Version_VersionKind) String() string
func (Version_VersionKind) Type ¶ added in v0.2.0
func (Version_VersionKind) Type() protoreflect.EnumType