Documentation
¶
Index ¶
Constants ¶
View Source
const ( DistributorPypi = "pypi" DistributorNpm = "npm" DistributorMaven = "maven" DistributorCratesIo = "crates.io" DistributorGo = "go" )
Variables ¶
View Source
var ErrDatastoreObjectNotFound = errors.New("not found")
View Source
var ErrVersionNotFound = fmt.Errorf("version not found")
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface { DatastoreSaver DatastoreRetriever }
type DatastoreRetriever ¶
type DatastoreSaver ¶
type DistributionPoint ¶
type DistributorClient ¶
type DistributorError ¶ added in v0.4.0
DistributorError is an error type that represents an error that occurred in communicating with a distributor.
func (DistributorError) Error ¶ added in v0.4.0
func (e DistributorError) Error() string
type Entry ¶
type Entry struct { Name string `json:"name"` DistributionPoints []DistributionPoint `json:"distribution_points,omitempty"` License string `json:"license"` Version string `json:"version"` }
type LicenseIDNormalizer ¶
type LicenseIDNormalizer interface { // NormalizeID returns the normalized ID that corresponds to the provided id. // // Implementations must return an empty string if the provided id is not found in the license list. // // The following details are implementation-specific: // - Case-sensitivity of the id // - Matching of the id to the license list // - Normalization of the id to a canonical form // - List of available licenses // // Implementations should document these implementation-specific details. NormalizeID(ctx context.Context, id string) string }
type LicenseRetriever ¶
type LicenseRetriever interface { // Lookup returns the License object that corresponds to the provided id. Case-sensitivity is // implementation-specific. Lookup(id string) License ReleaseDate() string Version() string Source() string // Licenses returns a list of keys for all licenses in the license list. Implementations must return a copy // of the internal list and not the internal list itself to prevent modifications to the internal list. Licenses() []string }
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
mocks
|
|
SPDX License List (sll) provides a simple way to lookup SPDX License Identifiers and their details.
|
SPDX License List (sll) provides a simple way to lookup SPDX License Identifiers and their details. |
Click to show internal directories.
Click to hide internal directories.