Documentation
¶
Index ¶
- Variables
- func FillDefaults(config *Config) error
- func Update(config *Config) error
- type Config
- func (config *Config) DeepCopy() *Config
- func (config *Config) GetRegistryURL() string
- func (config *Config) LocalImageRegistryNodeAddressConsideringTunnelling() string
- func (config *Config) LocalImageRegistryNodePortConsideringTunnelling() int
- func (config *Config) ManagementNodeAddressConsideringTunnelling() string
- func (config *Config) ManagementNodePortConsideringTunnelling() int
- func (config *Config) String() (string, error)
- type EnvironmentVariables
- type LocalImageRegistryConfig
- type ManagementNodeTunnellingConfig
- type PostgresqlConfig
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorLogFilePath = filepath.Join(LogDirectoryPath, "swiftwave.error.log")
View Source
var InfoLogFilePath = filepath.Join(LogDirectoryPath, "swiftwave.log")
View Source
var LocalConfigPath = filepath.Join(defaultDataDirectory, "config.yml")
View Source
var LogDirectoryPath = "/var/log/swiftwave"
Functions ¶
func FillDefaults ¶
Types ¶
type Config ¶
type Config struct {
IsDevelopmentMode bool `yaml:"dev_mode"`
Version string `yaml:"-"`
ServiceConfig ServiceConfig `yaml:"service"`
PostgresqlConfig PostgresqlConfig `yaml:"postgresql"`
LocalImageRegistryConfig LocalImageRegistryConfig `yaml:"local_image_registry"`
EnvironmentVariables EnvironmentVariables `yaml:"environment_variables"`
ManagementNodeTunnellingConfig ManagementNodeTunnellingConfig `yaml:"management_node_tunnelling"`
}
func (*Config) GetRegistryURL ¶
func (*Config) LocalImageRegistryNodeAddressConsideringTunnelling ¶
func (*Config) LocalImageRegistryNodePortConsideringTunnelling ¶
func (*Config) ManagementNodeAddressConsideringTunnelling ¶
func (*Config) ManagementNodePortConsideringTunnelling ¶
type EnvironmentVariables ¶
type LocalImageRegistryConfig ¶
type LocalImageRegistryConfig struct {
// TLS of this depends on the TLS status of the service
// both will use same certificate
Port int `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Image string `yaml:"image"`
DataPath string `yaml:"-"`
CertPath string `yaml:"-"`
AuthPath string `yaml:"-"`
}
func (*LocalImageRegistryConfig) Htpasswd ¶
func (l *LocalImageRegistryConfig) Htpasswd() (string, error)
type ManagementNodeTunnellingConfig ¶
type ManagementNodeTunnellingConfig struct {
Enabled bool `yaml:"enabled"`
ManagementNodeAddress string `yaml:"management_node_address"`
ManagementNodePort int `yaml:"management_node_port"`
LocalImageRegistryNodeAddress string `yaml:"local_image_registry_node_address"`
LocalImageRegistryNodePort int `yaml:"local_image_registry_node_port"`
}
type PostgresqlConfig ¶
type PostgresqlConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
TimeZone string `yaml:"time_zone"`
SSLMode string `yaml:"ssl_mode"`
RunLocalPostgres bool `yaml:"run_local_postgres"`
}
func (PostgresqlConfig) DSN ¶
func (p PostgresqlConfig) DSN() string
type ServiceConfig ¶
type ServiceConfig struct {
UseTLS bool `yaml:"use_tls"`
ManagementNodeAddress string `yaml:"management_node_address"`
AutoRenewManagementNodeCert bool `yaml:"auto_renew_management_node_cert"`
BindAddress string `yaml:"bind_address"`
BindPort int `yaml:"bind_port"`
SSHTimeout int `yaml:"ssh_timeout"`
SocketPathDirectory string `yaml:"-"`
DataDirectory string `yaml:"-"`
LocalPostgresDataDirectory string `yaml:"-"`
TarballDirectoryPath string `yaml:"-"`
PVBackupDirectoryPath string `yaml:"-"`
PVRestoreDirectoryPath string `yaml:"-"`
NetworkName string `yaml:"-"`
HAProxyServiceName string `yaml:"-"`
HAProxyUnixSocketDirectory string `yaml:"-"`
HAProxyUnixSocketPath string `yaml:"-"`
HAProxyDataDirectoryPath string `yaml:"-"`
UDPProxyServiceName string `yaml:"-"`
UDPProxyUnixSocketDirectory string `yaml:"-"`
UDPProxyUnixSocketPath string `yaml:"-"`
UDPProxyDataDirectoryPath string `yaml:"-"`
SSLCertDirectoryPath string `yaml:"-"`
LocalImageRegistryDirectoryPath string `yaml:"-"`
LogDirectoryPath string `yaml:"-"`
InfoLogFilePath string `yaml:"-"`
ErrorLogFilePath string `yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.