packageclient

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDepsDevAPI            = errors.New("deps.dev")
	ErrProjNotFoundInDepsDev = errors.New("project not found in deps.dev")
)

Functions

This section is empty.

Types

type ProjectPackageClient

type ProjectPackageClient interface {
	GetProjectPackageVersions(ctx context.Context, host, project string) (*ProjectPackageVersions, error)
}

This interface lets Scorecard look up package manager metadata for a project.

func CreateDepsDevClient

func CreateDepsDevClient() ProjectPackageClient

type ProjectPackageVersions

type ProjectPackageVersions struct {
	// field alignment
	//nolint:govet
	Versions []struct {
		VersionKey struct {
			System  string `json:"system"`
			Name    string `json:"name"`
			Version string `json:"version"`
		} `json:"versionKey"`
		SLSAProvenances []struct {
			SourceRepository string `json:"sourceRepository"`
			Commit           string `json:"commit"`
			Verified         bool   `json:"verified"`
		} `json:"slsaProvenances"`
		RelationType       string `json:"relationType"`
		RelationProvenance string `json:"relationProvenance"`
	} `json:"versions"`
}

Jump to

Keyboard shortcuts

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