Versions in this module Expand all Collapse all v0 v0.1.1 Oct 12, 2020 v0.1.0 Aug 24, 2020 Changes in this version + const ForgeURL + const ForgeURLIPv4Only + const V3ModulesEndpoint + const V3ReleasesEndpoint + const V3UsersEndpoint + func GetRequest(url, agent string, client HTTPClient) (*http.Response, error) + type FetchError struct + Err error + func (r *FetchError) Error() string + type GetError struct + Err error + Headers map[string]string + URL string + func (r *GetError) Error() string + type GetNon200Error struct + StatusCode int + URL string + func (r *GetNon200Error) Error() string + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + var Client HTTPClient + type JSONDecodeError struct + Err error + func (r *JSONDecodeError) Error() string + type ListError struct + Err error + func (r *ListError) Error() string + type ListModulesOpts struct + Endorsements []string + ExcludeFields []string + HideDeprecated bool + IncludeFields []string + Limit int + MinScore int + ModuleGroups []string + Offset int + OnlyLatest bool + OperatingSystem string + Owner string + PERequirement string + PupRequirement string + Query string + ShowDeleted bool + Slugs []string + SortBy string + Tag string + WithHTML bool + WithPDK bool + WithPlans bool + WithTasks bool + type ListPagination struct + Current string + First string + Limit int + Next string + Offset int + Previous string + Total int + type ListResults struct + Pagination ListPagination + Results []Module + func ListModules(url, agent string, opts ListModulesOpts) (ListResults, error) + type Module struct + CreatedAt string + CurrentRelease Release + DeprecatedAt string + DeprecatedFor string + Downloads int + Endorsement string + FeedbackScore int + HomepageURL string + IssuesURL string + ModuleGroup string + Name string + Owner UserAbbreviated + Releases []ReleaseAbbreviated + Slug string + SupersededBy ModuleMinimal + Supported bool + URI string + UpdatedAt string + func FetchModule(nameslug, url, agent string, wg *sync.WaitGroup) (Module, error) + func FetchModuleDependencies(mod Module, url, agent string) ([]Module, []error) + type ModuleAbbreviated struct + DeprecatedAt string + Name string + Owner UserAbbreviated + Slug string + URI string + type ModuleMetadata struct + Author string + Dependencies []ModuleMetadataDependency + IssuesURL string + License string + Name string + OperatingSystemSupport []ModuleMetadataOS + ProjectPage string + Requirements []ModuleMetadataDependency + Source string + Summary string + Tags []string + Version string + type ModuleMetadataDependency struct + Name string + VersionRequirement string + type ModuleMetadataOS struct + OperatingSystem string + OperatingSystemRelease []string + type ModuleMinimal struct + Slug string + URI string + type Release struct + ChangeLog string + CreatedAt string + DeletedAt string + DeletedFor string + Downloads int + FileMD5 string + FileSHA256 string + FileSize int + FileURI string + License string + Metadata ModuleMetadata + Module ModuleAbbreviated + PDK bool + Plans []ReleasePlanAbbreviated + ReadMe string + Reference string + Slug string + Supported bool + Tags []string + Tasks []ReleaseTask + URI string + UpdatedAt string + ValidationScore int + Version string + type ReleaseAbbreviated struct + CreatedAt string + DeletedAt string + FileSize int + FileURI string + Module ModuleAbbreviated + Slug string + Supported bool + URI string + Version string + type ReleaseMinimal struct + FileURI string + Slug string + URI string + type ReleasePlanAbbreviated struct + Name string + URI string + type ReleaseTask struct + Description string + Executables []string + Metadata TaskMetadata + Name string + type TaskMetadata struct + Description string + Files []string + Implementations []TaskMetadataImplementation + InputMethod string + Private bool + PuppetTaskVersion int + Remote bool + SupportsNoop bool + type TaskMetadataImplementation struct + Name string + Requirements []string + type UserAbbreviated struct + GravatarID string + Slug string + URI string + Username string