Documentation
¶
Index ¶
Constants ¶
View Source
const GithubLatestReleaseAPI = "https://api.github.com/repos/0xJacky/nginx-ui/releases/latest"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigDetail ¶
func ParseTemplate ¶
func ParseTemplate(path, name string, bindData map[string]TVariable) (c ConfigDetail, err error)
type ConfigInfoItem ¶
type ConfigInfoItem struct {
Name string `json:"name"`
Description map[string]string `json:"description"`
Author string `json:"author"`
Filename string `json:"filename"`
Variables map[string]TVariable `json:"variables"`
}
func GetTemplateInfo ¶
func GetTemplateInfo(path, name string) (configListItem ConfigInfoItem)
func GetTemplateList ¶
func GetTemplateList(path string) (configList []ConfigInfoItem, err error)
type CurVersion ¶ added in v1.7.2
type CurVersion struct {
Version string `json:"version"`
BuildID int `json:"build_id"`
TotalBuild int `json:"total_build"`
}
func GetCurrentVersion ¶ added in v1.7.2
func GetCurrentVersion() (c CurVersion, err error)
type ProgressWriter ¶ added in v1.8.0
type RuntimeInfo ¶ added in v1.7.2
type RuntimeInfo struct {
OS string `json:"os"`
Arch string `json:"arch"`
ExPath string `json:"ex_path"`
}
func GetRuntimeInfo ¶ added in v1.7.2
func GetRuntimeInfo() (r RuntimeInfo, err error)
type TRelease ¶ added in v1.7.2
type TRelease struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
PublishedAt time.Time `json:"published_at"`
Body string `json:"body"`
Assets []TReleaseAsset `json:"assets"`
RuntimeInfo
}
func GetRelease ¶ added in v1.7.2
type TReleaseAsset ¶ added in v1.7.2
type Upgrader ¶ added in v1.7.2
type Upgrader struct {
Release TRelease
}
func NewUpgrader ¶ added in v1.7.2
func (*Upgrader) DownloadLatestRelease ¶ added in v1.7.2
Click to show internal directories.
Click to hide internal directories.