pkgsupply

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedPackageReputation

type CachedPackageReputation struct {
	Purl string   `json:"purl"`
	Tags []string `json:"tags"`
}

type PackageReputation

type PackageReputation struct {
	Purl       string            `json:"purl"`
	Repo       string            `json:"repo"`
	Risk       float64           `json:"risk"`
	Attributes map[string]string `json:"attributes"`
}

type RepoReputation

type RepoReputation struct {
	Repo       string            `json:"repo"`
	Attributes map[string]string `json:"attributes"`
}

type ReputationResponse

type ReputationResponse struct {
	Packages []PackageReputation `json:"packages"`
	Repos    []RepoReputation    `json:"repos"`
}

type StaticClient

type StaticClient struct {
	// contains filtered or unexported fields
}

func NewStaticClient

func NewStaticClient() *StaticClient

func (*StaticClient) GetReputation

func (c *StaticClient) GetReputation(ctx context.Context, purls []string) (*ReputationResponse, error)

Jump to

Keyboard shortcuts

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