mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
* Move BackupDatabase and AnonymiseDatabase to internal/manager * Rename config.Instance to config.Config * Rename FFMPEG * Rework manager and initialization process * Fix Makefile * Tweak phasher * Fix config races * Fix setup error not clearing
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
package manager
|
|
|
|
import (
|
|
"github.com/stashapp/stash/internal/manager/config"
|
|
)
|
|
|
|
type SystemStatus struct {
|
|
DatabaseSchema *int `json:"databaseSchema"`
|
|
DatabasePath *string `json:"databasePath"`
|
|
ConfigPath *string `json:"configPath"`
|
|
AppSchema int `json:"appSchema"`
|
|
Status SystemStatusEnum `json:"status"`
|
|
Os string `json:"os"`
|
|
WorkingDir string `json:"working_dir"`
|
|
HomeDir string `json:"home_dir"`
|
|
}
|
|
|
|
type SetupInput struct {
|
|
// Empty to indicate $HOME/.stash/config.yml default
|
|
ConfigLocation string `json:"configLocation"`
|
|
Stashes []*config.StashConfigInput `json:"stashes"`
|
|
// Empty to indicate default
|
|
DatabaseFile string `json:"databaseFile"`
|
|
// Empty to indicate default
|
|
GeneratedLocation string `json:"generatedLocation"`
|
|
// Empty to indicate default
|
|
CacheLocation string `json:"cacheLocation"`
|
|
|
|
StoreBlobsInDatabase bool `json:"storeBlobsInDatabase"`
|
|
// Empty to indicate default
|
|
BlobsLocation string `json:"blobsLocation"`
|
|
}
|
|
|
|
type MigrateInput struct {
|
|
BackupPath string `json:"backupPath"`
|
|
}
|