config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChatThread *thread.Thread

	AllowedKubectlCmds []string
	BlockedKubectlCmds []string

	DuckASCIIArt        string
	Provider            string
	Model               string
	ApiURL              string
	Retries             int
	Timeout             int
	MaxTokens           int
	SafeMode            bool
	Verbose             bool
	DisableSecretFilter bool

	KubectlPrompts []KubectlPrompt
}

func LoadConfig

func LoadConfig() *Config

LoadConfig initializes the application configuration

type KubectlPrompt

type KubectlPrompt = struct {
	MatchRe         *regexp.Regexp
	Prompt          string
	AllowedKubectls []string
	BlockedKubectls []string
	UseDefaultCmds  bool
}

Jump to

Keyboard shortcuts

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