report

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) GetUrl

func (r *Report) GetUrl() string

func (*Report) HasWordPress

func (r *Report) HasWordPress() bool

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 (r *Report) SetHasReadme(hasReadme bool)

func (*Report) SetHasWordPress

func (r *Report) SetHasWordPress(hasWordPress bool)

func (*Report) SetPlugins

func (r *Report) SetPlugins(plugins []PluginDetails)

func (*Report) SetThemes

func (r *Report) SetThemes(themes []Theme)

func (*Report) SetUrl

func (r *Report) SetUrl(url string) bool

func (*Report) SetUsers

func (r *Report) SetUsers(users []wordpress.User)

func (*Report) SetVersion

func (r *Report) SetVersion(version string)

func (*Report) SetVersionUpdate

func (r *Report) SetVersionUpdate(status, current string)

type Theme

type Theme struct {
	Name        string
	URI         string
	Version     string
	Author      string
	AuthorURI   string
	Licence     string
	LicenceURI  string
	Description string
	MinVersion  string
	MaxVersion  string
	RequiredPHP string
	Template    string
	Status      string
	Tags        []string
	TextDomain  string
	DomainPath  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL