osv

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 2

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)

type Metadata

type Metadata struct {
	PURLType  string
	Commit    string
	Ecosystem string
	CompareAs string
}

Metadata holds parsing information for packages extracted by an OSV extractor wrapper.

func ToStruct added in v0.4.2

func ToStruct(m *pb.OSVPackageMetadata) *Metadata

ToStruct converts the OSVPackageMetadata proto to a Metadata struct.

func (*Metadata) SetProto added in v0.4.2

func (m *Metadata) SetProto(p *pb.Package)

SetProto sets the OSVPackageMetadata field in the Package proto.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL