Documentation
¶
Overview ¶
Package config resolves XDG-compliant paths for the yomiro CLI.
Index ¶
- func CacheDir() (string, error)
- func ConfigDir() (string, error)
- func CredentialsFile() (string, error)
- func GwConfigFile() (string, error)
- func SaveGwConfig(path string, c *GwConfig) error
- func StateDir() (string, error)
- type ConnectorsConfig
- type DaemonConfig
- type DatabaseConfig
- type GatewayIdentity
- type GwConfig
- type LoggingConfig
- type PlatformConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialsFile ¶
CredentialsFile returns the fallback credentials path used when keyring is unavailable.
func GwConfigFile ¶
GwConfigFile returns the gateway daemon config path.
func SaveGwConfig ¶
Types ¶
type ConnectorsConfig ¶
type ConnectorsConfig struct {
Enabled []string `yaml:"enabled"`
}
type DaemonConfig ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
URL string `yaml:"url"`
ReadOnly bool `yaml:"read_only"`
MaxConnections int `yaml:"max_connections"`
QueryTimeoutSeconds int `yaml:"query_timeout_seconds"`
AllowedSchemas []string `yaml:"allowed_schemas"`
AllowedTables []string `yaml:"allowed_tables"`
BlockedColumns []string `yaml:"blocked_columns"`
MaxRowsPerQuery int `yaml:"max_rows_per_query"`
}
type GatewayIdentity ¶
type GwConfig ¶
type GwConfig struct {
Platform PlatformConfig `yaml:"platform"`
Gateway GatewayIdentity `yaml:"gateway"`
Database DatabaseConfig `yaml:"database,omitempty"`
Connectors ConnectorsConfig `yaml:"connectors"`
Daemon DaemonConfig `yaml:"daemon"`
Logging LoggingConfig `yaml:"logging"`
}
func LoadGwConfig ¶
type LoggingConfig ¶
type PlatformConfig ¶
Click to show internal directories.
Click to hide internal directories.