Documentation
¶
Index ¶
- Variables
- func BuildVersionString() string
- func NewBuildCmd(parent *flag.FlagSet) (*buildCmd, error)
- func NewCaddyCmd(parent *flag.FlagSet) (*caddyCmd, error)
- func NewDemoCmd(parent *flag.FlagSet) (*demoCmd, error)
- func NewLicenseCmd(parent *flag.FlagSet) (*licenseCmd, error)
- func NewLoadCmd(parent *flag.FlagSet) (*loadCmd, error)
- func NewServeCmd(parent *flag.FlagSet) (*serverCmd, error)
- func NewStaticCmd(parent *flag.FlagSet) (*staticCmd, error)
- func NewVersionCmd(parent *flag.FlagSet) (*versionCmd, error)
- type Command
- type PlanConfig
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentVersion = Version{
Major: 0,
Minor: 2,
PatchLevel: 23,
Suffix: "",
}
Functions ¶
func BuildVersionString ¶
func BuildVersionString() string
func NewBuildCmd ¶
func NewCaddyCmd ¶ added in v0.2.3
NewCaddyCmd 创建 Caddy 管理命令
func NewDemoCmd ¶
func NewLicenseCmd ¶ added in v0.2.3
func NewLoadCmd ¶
func NewServeCmd ¶
func NewStaticCmd ¶
func NewVersionCmd ¶
Types ¶
type Command ¶ added in v0.1.24
type Command interface {
// Name returns the name of the command
Name() string
// Description returns the description of the command
Description() string
// Run executes the command
Run() error
}
Command represents a CLI command
func GetCommands ¶ added in v0.1.24
func GetCommands() []Command
GetCommands returns all available commands
type PlanConfig ¶ added in v0.2.3
type PlanConfig struct {
// 设备/IP 限制
MaxDevices int `json:"max_devices"`
MaxIPs int `json:"max_ips"`
// Sync 功能
SyncEnabled bool `json:"sync_enabled"`
SyncQuotaMB int `json:"sync_quota"`
// Publish 功能
PublishEnabled bool `json:"publish_enabled"`
MaxSites int `json:"max_sites"`
MaxStorageMB int `json:"max_storage"`
CustomDomain bool `json:"custom_domain"`
CustomSubDomain bool `json:"custom_sub_domain"` // 二级域名
// 有效期(天数)
ValidityDays int `json:"validity_days"`
}
PlanConfig 定义 plan 配置
Source Files
¶
Click to show internal directories.
Click to hide internal directories.