setup

package
v0.1.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiskFreeGB

func GetDiskFreeGB(path string) float64

func GetHostMemoryMB

func GetHostMemoryMB() uint64

func IsComplete

func IsComplete(deploymentsPath string) bool

func IsPortAvailable

func IsPortAvailable(port int) bool

func ResolvePublicIP

func ResolvePublicIP() string

Types

type CheckResult

type CheckResult struct {
	Name     string `json:"name"`
	Status   string `json:"status"`
	Message  string `json:"message"`
	Required bool   `json:"required"`
}

func CheckDiskSpace

func CheckDiskSpace(path string) CheckResult

func CheckDocker

func CheckDocker() CheckResult

func CheckDockerCompose

func CheckDockerCompose() CheckResult

func CheckMemory

func CheckMemory() CheckResult

func CheckPort

func CheckPort(port int, inUseBy string) CheckResult

func RunSystemChecks

func RunSystemChecks(deploymentsPath string) []CheckResult

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(manager *Manager, authManager *auth.Manager) *Handlers

func (*Handlers) Complete

func (h *Handlers) Complete(c *gin.Context)

func (*Handlers) ConfigureAuthentication

func (h *Handlers) ConfigureAuthentication(c *gin.Context)

func (*Handlers) ConfigureSettings

func (h *Handlers) ConfigureSettings(c *gin.Context)

func (*Handlers) GetInfo

func (h *Handlers) GetInfo(c *gin.Context)

func (*Handlers) GetStatus

func (h *Handlers) GetStatus(c *gin.Context)

func (*Handlers) Guard

func (h *Handlers) Guard() gin.HandlerFunc

func (*Handlers) ValidateSystem

func (h *Handlers) ValidateSystem(c *gin.Context)

func (*Handlers) VerifyDNS

func (h *Handlers) VerifyDNS(c *gin.Context)

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(cfg *config.Config, configPath string) *Manager

func (*Manager) Config

func (m *Manager) Config() *config.Config

func (*Manager) ConfigPath

func (m *Manager) ConfigPath() string

func (*Manager) GetInstanceIP

func (m *Manager) GetInstanceIP() string

func (*Manager) IsComplete

func (m *Manager) IsComplete() bool

func (*Manager) MarkComplete

func (m *Manager) MarkComplete() error

type State

type State struct {
	Initialized bool   `json:"initialized"`
	CompletedAt string `json:"completed_at,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL