Documentation
¶
Overview ¶
Package setup provides configuration setup and management utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunNonInteractiveSetup ¶
func RunNonInteractiveSetup(sc *SetupConfig) error
RunNonInteractiveSetup performs non-interactive setup with the given configuration
Types ¶
type SetupConfig ¶
type SetupConfig struct {
ConfigPath string
OpenAIAPIKey string
ManagementToken string
DatabasePath string
ListenAddr string
}
SetupConfig holds configuration parameters for setup
func (*SetupConfig) GenerateManagementToken ¶
func (sc *SetupConfig) GenerateManagementToken() error
GenerateManagementToken generates a management token if not provided
func (*SetupConfig) ValidateConfig ¶
func (sc *SetupConfig) ValidateConfig() error
ValidateConfig validates the setup configuration
func (*SetupConfig) WriteConfigFile ¶
func (sc *SetupConfig) WriteConfigFile() error
WriteConfigFile writes the configuration to a file
Click to show internal directories.
Click to hide internal directories.