Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigFlagName = "config" LevelFlagName = "level" ConfigDir = ".hccli" )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigFile ¶
func DefaultConfigFile() string
Types ¶
type Config ¶
type Config struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion" yamltags:"required"`
Kind string `json:"kind" yaml:"kind" yamltags:"required"`
// AIEndpoint is the endpoint of the model that turns natural language into queries
AIEndpoint string `json:"aiEndpoint" yaml:"aiEndpoint"`
// Replicate is the configuration when using a model deployed on replicate
Replicate *ReplicateConfig `json:"replicate" yaml:"replicate"`
// HoneycombAPIKeyFile contains the URI of the APIKey for HoneyComb
HoneycombAPIKeyFile string `json:"honeycombAPIKeyFile" yaml:"honeycombAPIKeyFile"`
Logging Logging `json:"logging" yaml:"logging"`
}
Config is the configuration data that gets persisted for kubedr.
N.B. Right now the ondisk format and the in memory format are the same. We might want ot change that in the future to make it easier to change the on disk format and also to store derived values in memory that shouldn't be persisted to disk.
func GetConfig ¶
func GetConfig() *Config
GetConfig returns the configuration instantiated from the viper configuration.
func (*Config) GetConfigDir ¶
GetConfigDir returns the configuration directory
func (*Config) GetLogLevel ¶
type ReplicateConfig ¶
Click to show internal directories.
Click to hide internal directories.