Documentation
¶
Index ¶
- type PluginDetails
- type Report
- func (r *Report) GetUrl() string
- func (r *Report) HasWordPress() bool
- func (r *Report) Render()
- func (r *Report) SetHasReadme(hasReadme bool)
- func (r *Report) SetHasWordPress(hasWordPress bool)
- func (r *Report) SetPlugins(plugins []PluginDetails)
- func (r *Report) SetThemes(themes []Theme)
- func (r *Report) SetUrl(url string) bool
- func (r *Report) SetUsers(users []wordpress.User)
- func (r *Report) SetVersion(version string)
- func (r *Report) SetVersionUpdate(status, current string)
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginDetails ¶
type PluginDetails struct {
Name string `json:"name"`
Slug string `json:"slug"`
Version string `json:"version"`
Author string `json:"author"`
AuthorProfile string `json:"author_profile"`
Requires string `json:"requires"`
Tested string `json:"tested"`
RequiresPHP string `json:"requires_php"`
RequiresPlugins []string `json:"requires_plugins"`
Compatibility []string `json:"compatibility"`
Rating int `json:"rating"`
Ratings map[string]int `json:"ratings"`
NumRatings int `json:"num_ratings"`
SupportThreads int `json:"support_threads"`
SupportThreadsResolved int `json:"support_threads_resolved"`
Downloaded int `json:"downloaded"`
LastUpdated string `json:"last_updated"`
Added string `json:"added"`
Homepage string `json:"homepage"`
Description string `json:"description"`
FAQ string `json:"faq"`
Changelog string `json:"changelog"`
Screenshots map[string]struct {
Src string `json:"src"`
Caption string `json:"caption"`
} `json:"screenshots"`
Tags map[string]string `json:"tags"`
Versions map[string]string `json:"versions"`
DownloadLink string `json:"download_link"`
DonateLink string `json:"donate_link"`
Contributors map[string]string `json:"contributors"`
}
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) HasWordPress ¶
func (*Report) Render ¶
func (r *Report) Render()
Render renders the report by calling the RenderOverview, RenderPlugins, and RenderThemes methods. It applies the provided headline style to the rendered sections.
func (*Report) SetHasReadme ¶
func (*Report) SetHasWordPress ¶
func (*Report) SetPlugins ¶
func (r *Report) SetPlugins(plugins []PluginDetails)
func (*Report) SetVersion ¶
func (*Report) SetVersionUpdate ¶
Click to show internal directories.
Click to hide internal directories.