Documentation ¶
Index ¶
- func ConvertReleaseToDependency(release Release) (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, target string) error
- type Fetcher
- type OutputDependency
- type Release
- type ReleaseFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertReleaseToDependency ¶
func ConvertReleaseToDependency(release Release) (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 ¶
func WriteOutput(path string, dependencies []cargo.ConfigMetadataDependency, target string) error
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher() Fetcher
func (Fetcher) WithReleasePage ¶
type OutputDependency ¶
type OutputDependency struct { cargo.ConfigMetadataDependency Target string `json:"target"` }
type Release ¶
type Release struct { SemVer *semver.Version Version string `json:"version"` Stable bool `json:"stable"` Files []ReleaseFile `json:"files"` }
Click to show internal directories.
Click to hide internal directories.