Documentation
¶
Index ¶
- func CustomDomainFolder() string
- func DataDir() string
- func DeleteDir(dir string) error
- func DeployToNetlify(target string, deployment *valueobject.Deployment, domain *valueobject.Domain, ...) error
- func DeployToNetlifyBK(target string, deployment *valueobject.Deployment, domain *valueobject.Domain, ...) error
- func EnsureDirExists(dir string) error
- func EnterpriseDir() string
- func FridayDir() string
- func FridayFolder() string
- func FridayResourceRecycle(log loggers.Logger)
- func GenerateStaticSite() error
- func GenerateStaticSiteWithTarget(target string) error
- func ImageStorageDir() string
- func LicenseResourceRecycle(cs *contentEntity.Content, adminApp *adminEntity.Admin, log loggers.Logger)
- func LoadHugoProject() error
- func LogDir() string
- func NewContentServer(db repository.Repository) *entity.Content
- func NewDemo() (string, error)
- func PreviewDir() string
- func PreviewFolder() string
- func PreviewSiteRecycle(cs *contentEntity.Content, token string)
- func PublishDir() string
- func PublishFolder() string
- func ServeGenerateStaticSite() (afero.Fs, error)
- func SubDomainFolder() string
- func TLSDir() string
- func UploadDir() string
- type BackupMetadata
- type BackupScheduler
- type CaddyBackupInfo
- type CaddyStartParams
- type CompressionInfo
- type CouchDBBackupInfo
- type DatabaseBackupInfo
- type HugoverseBackupInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomDomainFolder ¶ added in v0.2.3
func CustomDomainFolder() string
func DeployToNetlify ¶
func DeployToNetlify(target string, deployment *valueobject.Deployment, domain *valueobject.Domain, token string) error
func DeployToNetlifyBK ¶
func DeployToNetlifyBK(target string, deployment *valueobject.Deployment, domain *valueobject.Domain, token string) error
func EnsureDirExists ¶ added in v0.2.1
func EnterpriseDir ¶ added in v0.2.23
func EnterpriseDir() string
func FridayFolder ¶ added in v0.2.44
func FridayFolder() string
func FridayResourceRecycle ¶ added in v0.2.44
FridayResourceRecycle 定期清理 Friday 免费预览目录 每小时检查一次,删除超过 24 小时的文件夹
func GenerateStaticSite ¶
func GenerateStaticSite() error
func ImageStorageDir ¶ added in v0.1.27
func ImageStorageDir() string
func LicenseResourceRecycle ¶ added in v0.2.25
func LicenseResourceRecycle(cs *contentEntity.Content, adminApp *adminEntity.Admin, log loggers.Logger)
func LoadHugoProject ¶
func LoadHugoProject() error
func NewContentServer ¶
func NewContentServer(db repository.Repository) *entity.Content
func PreviewDir ¶
func PreviewDir() string
func PreviewFolder ¶
func PreviewFolder() string
func PreviewSiteRecycle ¶
func PreviewSiteRecycle(cs *contentEntity.Content, token string)
func ServeGenerateStaticSite ¶
func SubDomainFolder ¶ added in v0.2.3
func SubDomainFolder() string
Types ¶
type BackupMetadata ¶ added in v0.2.36
type BackupMetadata struct {
Version string `json:"version"`
BackupType string `json:"backup_type"`
Timestamp time.Time `json:"timestamp"`
Hostname string `json:"hostname"`
Service string `json:"service"`
CouchDB CouchDBBackupInfo `json:"couchdb"`
Caddy CaddyBackupInfo `json:"caddy"`
Hugoverse HugoverseBackupInfo `json:"hugoverse"`
Compression CompressionInfo `json:"compression"`
TotalDuration int64 `json:"total_duration_ms"`
Status string `json:"status"`
}
BackupMetadata 备份元数据
type BackupScheduler ¶ added in v0.2.36
type BackupScheduler struct {
// contains filtered or unexported fields
}
BackupScheduler 备份调度器
func NewBackupScheduler ¶ added in v0.2.36
func NewBackupScheduler(couchdbCfg *couchdb.Config, caddyCfg *caddy.Config, contentServer *contentEntity.Content, log loggers.Logger) *BackupScheduler
NewBackupScheduler 创建备份调度器
type CaddyBackupInfo ¶ added in v0.2.36
type CaddyBackupInfo struct {
Status string `json:"status"`
Size int64 `json:"size_bytes"`
Duration int64 `json:"duration_ms"`
}
CaddyBackupInfo Caddy 备份信息
type CaddyStartParams ¶ added in v0.2.36
type CaddyStartParams struct {
Domain string `json:"domain"`
DNSPodToken string `json:"dnspod_token"`
ServerIP string `json:"server_ip"`
Backend string `json:"backend"`
CouchDB string `json:"couchdb"`
PIDFile string `json:"pid_file"`
LogFile string `json:"log_file"`
}
CaddyStartParams Caddy 启动参数
type CompressionInfo ¶ added in v0.2.36
type CompressionInfo struct {
OriginalSize int64 `json:"original_size_bytes"`
CompressedSize int64 `json:"compressed_size_bytes"`
Ratio float64 `json:"ratio"`
Algorithm string `json:"algorithm"`
}
CompressionInfo 压缩信息
type CouchDBBackupInfo ¶ added in v0.2.36
type CouchDBBackupInfo struct {
Status string `json:"status"`
URL string `json:"url"`
Databases map[string]DatabaseBackupInfo `json:"databases"`
TotalDatabases int `json:"total_databases"`
TotalDocs int `json:"total_docs"`
TotalSize int64 `json:"total_size_bytes"`
Duration int64 `json:"total_duration_ms"`
}
CouchDBBackupInfo CouchDB 备份信息