Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeleteState ¶
func DeleteState() error
func EnsureStateDir ¶
func EnsureStateDir() error
EnsureStateDir creates the state directory if needed and verifies it is writable. Call this before any state operations to surface permission errors early (e.g. when running inside Docker with a mismatched UID).
func SaveState ¶
func SaveState(state *ProvisionState) error
func StateExists ¶
func StateExists() bool
Types ¶
type CompletedSteps ¶
type ProvisionState ¶
type ProvisionState struct {
Provider string `json:"provider"`
StartedAt time.Time `json:"started_at"`
VPS *infra.VPSConfig `json:"vps,omitempty"`
DO *infra.DOConfig `json:"do,omitempty"`
Hetzner *infra.HetznerConfig `json:"hetzner,omitempty"`
Steps CompletedSteps `json:"steps"`
DatabaseURL string `json:"database_url,omitempty"`
Registry *infra.RegistryConfig `json:"registry,omitempty"`
EncryptionKey string `json:"encryption_key,omitempty"`
HashSalt string `json:"hash_salt,omitempty"`
SSHKey *infra.SSHKey `json:"ssh_key,omitempty"`
AdminUsername string `json:"admin_username,omitempty"`
AdminPassword string `json:"admin_password,omitempty"`
}
func LoadState ¶
func LoadState() (*ProvisionState, error)
Click to show internal directories.
Click to hide internal directories.