Documentation
¶
Overview ¶
Package metadata defines a metadata struct for SNAP packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Name string Version string Grade string Type string Architectures []string OSID string OSVersionCodename string OSVersionID string }
Metadata holds parsing information for a SNAP package.
func ToStruct ¶ added in v0.3.2
func ToStruct(m *pb.SNAPPackageMetadata) *Metadata
ToStruct converts the SNAPPackageMetadata proto to a Metadata struct.
func (*Metadata) SetProto ¶ added in v0.3.2
SetProto sets the SNAPPackageMetadata 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.