Documentation
¶
Overview ¶
Package metadata defined a Metadata struct for DPKG packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct {
PackageName string
Status string
SourceName string
SourceVersion string
PackageVersion string
OSID string
OSVersionCodename string
OSVersionID string
Maintainer string
Architecture string
}
Metadata holds parsing information for a dpkg package.
func ToStruct ¶ added in v0.3.2
func ToStruct(m *pb.DPKGPackageMetadata) *Metadata
ToStruct converts the NetportsMetadata proto to a Metadata struct.
func (*Metadata) SetProto ¶ added in v0.3.2
SetProto sets the DPKGPackageMetadata field in the Package proto.
func (*Metadata) ToNamespace ¶
ToNamespace extracts the PURL namespace from the metadata.
Click to show internal directories.
Click to hide internal directories.