Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPaths ¶ added in v0.157.0
ConfigPaths returns the computed list of configuration paths to load.
func GetDefaultConfigPath ¶ added in v0.176.0
func GetDefaultConfigPath() string
Types ¶
type Config ¶
type Config struct { Global ConfigAndSecrets `toml:"global"` Modules map[string]ConfigAndSecrets `toml:"modules"` ModuleDirs []string `toml:"module-dirs"` ExternalDirs []string `toml:"external-dirs"` Executables Executables `toml:"executables"` Commands Commands `toml:"commands"` FTLMinVersion string `toml:"ftl-min-version"` }
func LoadConfig ¶ added in v0.157.0
func LoadWritableConfig ¶ added in v0.157.0
LoadWritableConfig loads the last config file in the list of paths, or an empty config if none are found.
type ConfigAndSecrets ¶
type Executables ¶ added in v0.163.11
type Executables struct {
FTL string `toml:"ftl"`
}
type URL ¶
A URL that supports marshalling and unmarshalling which is, very frustratingly, not possible with the stdlib url.URL.
func MustParseURL ¶
func (URL) MarshalText ¶
func (*URL) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.