Documentation
¶
Index ¶
- type API
- func (r *API) AppBySlug(slug string) (*App, error)
- func (r *API) AppCallback(slug string) error
- func (r *API) Apps() (*Apps, error)
- func (r *API) Categories() (*Categories, error)
- func (r *API) EnvironmentCallback(typ, slug string) error
- func (r *API) Environments() (*Environments, error)
- func (r *API) GoogleEAB() (*EAB, error)
- func (r *API) IntermediateVersions(channel string) (*Versions, error)
- func (r *API) LatestVersion(channel string) (*Version, error)
- func (r *API) TemplateBySlug(slug string) (*Template, error)
- func (r *API) TemplateCallback(slug string) error
- func (r *API) Templates() (*Templates, error)
- type App
- type Apps
- type Categories
- type Category
- type EAB
- type Environment
- type Environments
- type Response
- type Template
- type Templates
- type Version
- type VersionDownload
- type Versions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) EnvironmentCallback ¶
EnvironmentCallback 环境下载回调
func (*API) IntermediateVersions ¶
IntermediateVersions 返回当前版本之后的所有版本
func (*API) LatestVersion ¶
LatestVersion 返回最新版本
func (*API) TemplateBySlug ¶
TemplateBySlug 根据slug返回模版
func (*API) TemplateCallback ¶
TemplateCallback 模版下载回调
type App ¶
type App struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Slug string `json:"slug"`
Name string `json:"name"`
Description string `json:"description"`
Categories []string `json:"categories"`
Depends string `json:"depends"` // 依赖表达式
Channels []struct {
Slug string `json:"slug"` // 渠道代号
Name string `json:"name"` // 渠道名称
Panel string `json:"panel"` // 最低支持面板版本
Install string `json:"install"` // 安装脚本
Uninstall string `json:"uninstall"` // 卸载脚本
Update string `json:"update"` // 更新脚本
Version string `json:"version"` // 版本号
Log string `json:"log"` // 更新日志
} `json:"channels"`
Order int `json:"order"`
}
type Categories ¶
type Categories []*Category
type Environment ¶
type Environments ¶
type Environments []*Environment
type Template ¶
type Template struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Slug string `json:"slug"`
Icon string `json:"icon"`
Name string `json:"name"`
Description string `json:"description"`
Website string `json:"website"`
Categories []string `json:"categories"`
Architectures []string `json:"architectures"`
Compose string `json:"compose"`
Environments []struct {
Name string `json:"name"` // 变量名
Description string `json:"description"` // 变量描述
Type string `json:"type"` // 变量类型, text, password, number, port, select
Options map[string]string `json:"options,omitempty"` // 下拉框选项,key -> value
Default any `json:"default,omitempty"` // 默认值,string or number
} `json:"environments"`
}
type Templates ¶
type Templates []*Template
func (Templates) FilterByCategory ¶
FilterByCategory 按分类过滤模版
type VersionDownload ¶
Click to show internal directories.
Click to hide internal directories.