Documentation
¶
Index ¶
- Variables
- type Architecture
- type Details
- func (*Details) Descriptor() ([]byte, []int)
- func (m *Details) GetInstallation() *Installation
- func (*Details) ProtoMessage()
- func (m *Details) Reset()
- func (m *Details) String() string
- func (m *Details) XXX_DiscardUnknown()
- func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Details) XXX_Merge(src proto.Message)
- func (m *Details) XXX_Size() int
- func (m *Details) XXX_Unmarshal(b []byte) error
- type Distribution
- func (*Distribution) Descriptor() ([]byte, []int)
- func (m *Distribution) GetArchitecture() Architecture
- func (m *Distribution) GetCpeUri() string
- func (m *Distribution) GetDescription() string
- func (m *Distribution) GetLatestVersion() *Version
- func (m *Distribution) GetMaintainer() string
- func (m *Distribution) GetUrl() string
- func (*Distribution) ProtoMessage()
- func (m *Distribution) Reset()
- func (m *Distribution) String() string
- func (m *Distribution) XXX_DiscardUnknown()
- func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Distribution) XXX_Merge(src proto.Message)
- func (m *Distribution) XXX_Size() int
- func (m *Distribution) XXX_Unmarshal(b []byte) error
- type Installation
- func (*Installation) Descriptor() ([]byte, []int)
- func (m *Installation) GetLocation() []*Location
- func (m *Installation) GetName() string
- func (*Installation) ProtoMessage()
- func (m *Installation) Reset()
- func (m *Installation) String() string
- func (m *Installation) XXX_DiscardUnknown()
- func (m *Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Installation) XXX_Merge(src proto.Message)
- func (m *Installation) XXX_Size() int
- func (m *Installation) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetCpeUri() string
- func (m *Location) GetPath() string
- func (m *Location) GetVersion() *Version
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type Package
- func (*Package) Descriptor() ([]byte, []int)
- func (m *Package) GetDistribution() []*Distribution
- func (m *Package) GetName() string
- func (*Package) ProtoMessage()
- func (m *Package) Reset()
- func (m *Package) String() string
- func (m *Package) XXX_DiscardUnknown()
- func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Package) XXX_Merge(src proto.Message)
- func (m *Package) XXX_Size() int
- func (m *Package) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetEpoch() int32
- func (m *Version) GetKind() Version_VersionKind
- func (m *Version) GetName() string
- func (m *Version) GetRevision() string
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
- type Version_VersionKind
Constants ¶
This section is empty.
Variables ¶
var Architecture_name = map[int32]string{
0: "ARCHITECTURE_UNSPECIFIED",
1: "X86",
2: "X64",
}
var Architecture_value = map[string]int32{
"ARCHITECTURE_UNSPECIFIED": 0,
"X86": 1,
"X64": 2,
}
var Version_VersionKind_name = map[int32]string{
0: "VERSION_KIND_UNSPECIFIED",
1: "NORMAL",
2: "MINIMUM",
3: "MAXIMUM",
}
var Version_VersionKind_value = map[string]int32{
"VERSION_KIND_UNSPECIFIED": 0,
"NORMAL": 1,
"MINIMUM": 2,
"MAXIMUM": 3,
}
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) EnumDescriptor ¶
func (Architecture) EnumDescriptor() ([]byte, []int)
func (Architecture) String ¶
func (x Architecture) String() string
type Details ¶
type Details struct { // Where the package was installed. Installation *Installation `protobuf:"bytes,1,opt,name=installation,proto3" json:"installation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Details of a package occurrence.
func (*Details) Descriptor ¶
func (*Details) GetInstallation ¶
func (m *Details) GetInstallation() *Installation
func (*Details) ProtoMessage ¶
func (*Details) ProtoMessage()
func (*Details) XXX_DiscardUnknown ¶
func (m *Details) XXX_DiscardUnknown()
func (*Details) XXX_Marshal ¶
func (*Details) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror.
func (*Distribution) Descriptor ¶
func (*Distribution) Descriptor() ([]byte, []int)
func (*Distribution) GetArchitecture ¶
func (m *Distribution) GetArchitecture() Architecture
func (*Distribution) GetCpeUri ¶
func (m *Distribution) GetCpeUri() string
func (*Distribution) GetDescription ¶
func (m *Distribution) GetDescription() string
func (*Distribution) GetLatestVersion ¶
func (m *Distribution) GetLatestVersion() *Version
func (*Distribution) GetMaintainer ¶
func (m *Distribution) GetMaintainer() string
func (*Distribution) GetUrl ¶
func (m *Distribution) GetUrl() string
func (*Distribution) ProtoMessage ¶
func (*Distribution) ProtoMessage()
func (*Distribution) Reset ¶
func (m *Distribution) Reset()
func (*Distribution) String ¶
func (m *Distribution) String() string
func (*Distribution) XXX_DiscardUnknown ¶
func (m *Distribution) XXX_DiscardUnknown()
func (*Distribution) XXX_Marshal ¶
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Distribution) XXX_Merge ¶
func (dst *Distribution) XXX_Merge(src proto.Message)
func (*Distribution) XXX_Size ¶
func (m *Distribution) XXX_Size() int
func (*Distribution) XXX_Unmarshal ¶
func (m *Distribution) XXX_Unmarshal(b []byte) error
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"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This represents how a particular software package may be installed on a system.
func (*Installation) Descriptor ¶
func (*Installation) Descriptor() ([]byte, []int)
func (*Installation) GetLocation ¶
func (m *Installation) GetLocation() []*Location
func (*Installation) GetName ¶
func (m *Installation) GetName() string
func (*Installation) ProtoMessage ¶
func (*Installation) ProtoMessage()
func (*Installation) Reset ¶
func (m *Installation) Reset()
func (*Installation) String ¶
func (m *Installation) String() string
func (*Installation) XXX_DiscardUnknown ¶
func (m *Installation) XXX_DiscardUnknown()
func (*Installation) XXX_Marshal ¶
func (m *Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Installation) XXX_Merge ¶
func (dst *Installation) XXX_Merge(src proto.Message)
func (*Installation) XXX_Size ¶
func (m *Installation) XXX_Size() int
func (*Installation) XXX_Unmarshal ¶
func (m *Installation) XXX_Unmarshal(b []byte) error
type Location ¶
type Location 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 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Location) GetVersion ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Package) GetDistribution ¶
func (m *Package) GetDistribution() []*Distribution
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) XXX_DiscardUnknown ¶
func (m *Package) XXX_DiscardUnknown()
func (*Package) XXX_Marshal ¶
func (*Package) XXX_Unmarshal ¶
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"` // 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"` // Distinguish between sentinel MIN/MAX versions and normal versions. If // kind is not NORMAL, then the other fields are ignored. Kind Version_VersionKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.package.Version_VersionKind" json:"kind,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Version contains structured information about the version of a package.
func (*Version) Descriptor ¶
func (*Version) GetKind ¶
func (m *Version) GetKind() Version_VersionKind
func (*Version) GetRevision ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
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, defined by the other fields. Version_NORMAL Version_VersionKind = 1 // A special version representing negative infinity, other fields are // ignored. Version_MINIMUM Version_VersionKind = 2 // A special version representing positive infinity, other fields are // ignored. Version_MAXIMUM Version_VersionKind = 3 )
func (Version_VersionKind) EnumDescriptor ¶
func (Version_VersionKind) EnumDescriptor() ([]byte, []int)
func (Version_VersionKind) String ¶
func (x Version_VersionKind) String() string