Documentation
¶
Overview ¶
Package osv defines OSV-specific fields for parsed source packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DepGroupMetadata ¶ added in v0.1.3
type DepGroupMetadata struct {
DepGroupVals []string
}
DepGroupMetadata is a metadata struct that only supports DepGroups
func DepGroupToStruct ¶ added in v0.4.2
func DepGroupToStruct(m *pb.DepGroupMetadata) *DepGroupMetadata
DepGroupToStruct converts the DepGroupMetadata proto to a DepGroupMetadata struct.
func (DepGroupMetadata) DepGroups ¶ added in v0.1.3
func (dgm DepGroupMetadata) DepGroups() []string
DepGroups return the dependency groups property in the metadata
func (DepGroupMetadata) SetProto ¶ added in v0.4.2
func (dgm DepGroupMetadata) SetProto(p *pb.Package)
SetProto sets the DepGroupMetadata field in the Package proto.
type DepGroups ¶ added in v0.1.3
type DepGroups interface {
DepGroups() []string
}
DepGroups provides access to the list of dependency groups a package item belongs to. Dependency groups are used by many language package managers as a way to organize dependencies (e.g. development dependencies will be in the "dev" group)
Click to show internal directories.
Click to hide internal directories.