bazaar

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageREADME

func GetPackageREADME(repoURL, repoHash string, systemID string) (ret string)

func IconJSON

func IconJSON(iconDirName string) (ret map[string]interface{}, err error)

func InstallIcon

func InstallIcon(repoURL, repoHash, installPath string, systemID string) error

func InstallTemplate

func InstallTemplate(repoURL, repoHash, installPath string, systemID string) error

func InstallTheme

func InstallTheme(repoURL, repoHash, installPath string, systemID string) error

func InstallWidget

func InstallWidget(repoURL, repoHash, installPath string, systemID string) error

func TemplateJSON

func TemplateJSON(templateDirName string) (ret map[string]interface{}, err error)

func ThemeJSON

func ThemeJSON(themeDirName string) (ret map[string]interface{}, err error)

func UninstallIcon

func UninstallIcon(installPath string) error

func UninstallTemplate

func UninstallTemplate(installPath string) error

func UninstallTheme

func UninstallTheme(installPath string) error

func UninstallWidget

func UninstallWidget(installPath string) error

func WidgetJSON

func WidgetJSON(widgetDirName string) (ret map[string]interface{}, err error)

Types

type Icon

type Icon struct {
	Package
}

func Icons

func Icons() (icons []*Icon)

func InstalledIcons

func InstalledIcons() (ret []*Icon)

type Package

type Package struct {
	Author  string `json:"author"`
	URL     string `json:"url"`
	Version string `json:"version"`

	Name            string `json:"name"`
	RepoURL         string `json:"repoURL"`
	RepoHash        string `json:"repoHash"`
	PreviewURL      string `json:"previewURL"`
	PreviewURLThumb string `json:"previewURLThumb"`

	README string `json:"readme"`

	Installed    bool   `json:"installed"`
	Outdated     bool   `json:"outdated"`
	Current      bool   `json:"current"`
	Updated      string `json:"updated"`
	Stars        int    `json:"stars"`
	OpenIssues   int    `json:"openIssues"`
	Size         int64  `json:"size"`
	HSize        string `json:"hSize"`
	InstallSize  int64  `json:"installSize"`
	HInstallSize string `json:"hInstallSize"`
	HInstallDate string `json:"hInstallDate"`
	HUpdated     string `json:"hUpdated"`
	Downloads    int    `json:"downloads"`
}

type Template

type Template struct {
	Package
}

func InstalledTemplates

func InstalledTemplates() (ret []*Template)

func Templates

func Templates() (templates []*Template)

type Theme

type Theme struct {
	Package

	Modes []string `json:"modes"`
}

func InstalledThemes

func InstalledThemes() (ret []*Theme)

func Themes

func Themes() (ret []*Theme)

type Widget

type Widget struct {
	Package
}

func InstalledWidgets

func InstalledWidgets() (ret []*Widget)

func Widgets

func Widgets() (widgets []*Widget)

Jump to

Keyboard shortcuts

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