setup

package
v0.1.2-stable Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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