Documentation
¶
Index ¶
- func GenerateLicenseFile(client *retryablehttp.Client, licenseFileName string, licenseMeta License) (bool, error)
- func GetRequestLogHookForLicenses(client *retryablehttp.Client) retryablehttp.RequestLogHook
- type Crawler
- type Dependency
- type Index
- type License
- type Metadata
- type Option
- type PomParsedValues
- type PomProject
- type Version
- type Versioning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLicenseFile ¶
func GetRequestLogHookForLicenses ¶
func GetRequestLogHookForLicenses(client *retryablehttp.Client) retryablehttp.RequestLogHook
Func returns the custom request log hook required for fetching license URLs
Types ¶
type Dependency ¶
type Index ¶
type Index struct { GroupID string ArtifactID string Versions []Version ArchiveType types.ArchiveType }
type Metadata ¶
type Metadata struct { GroupID string `xml:"groupId"` ArtifactID string `xml:"artifactId"` Versioning Versioning `xml:"versioning"` }
type PomParsedValues ¶
type PomParsedValues struct { Licenses []string Dependencies []Dependency }
type PomProject ¶
type PomProject struct { GroupID string `xml:"groupId"` ArtifactID string `xml:"artifactId"` Version string `xml:"version"` Name string `xml:"name"` Description string `xml:"description"` URL string `xml:"url"` Licenses []License `xml:"licenses>license"` Dependencies []Dependency `xml:"dependencies>dependency"` Properties properties `xml:"properties"` }
type Versioning ¶
Click to show internal directories.
Click to hide internal directories.