Documentation ¶
Index ¶
- func ConvertReleaseToDependency(release Release, signatureVerifier SignatureVerifier) (cargo.ConfigMetadataDependency, error)
- func FindNewVersions(path string, versions []string) ([]string, error)
- func GenerateLicenseInformation(url string) ([]interface{}, error)
- func GeneratePURL(id, version, checksum, source string) string
- func WriteOutput(path string, dependencies []cargo.ConfigMetadataDependency, ...) error
- type Fetcher
- type OutputDependency
- type Release
- type ReleaseFile
- type SignatureVerifier
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertReleaseToDependency ¶
func ConvertReleaseToDependency(release Release, signatureVerifier SignatureVerifier) (cargo.ConfigMetadataDependency, error)
func GeneratePURL ¶
GeneratePURL can be used to populate the `purl` field of dependency metadata PURL stands for package URL. https://github.com/package-url/purl-spec
func WriteOutput ¶
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher() Fetcher
type OutputDependency ¶
type OutputDependency struct { cargo.ConfigMetadataDependency Target string `json:"target"` }
type Release ¶
type Release struct { SemVer *semver.Version Version string Files []ReleaseFile }
type ReleaseFile ¶
type SignatureVerifier ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifier ¶
func NewVerifier() Verifier
func (Verifier) WithPublicKeyBlock ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.