Versions in this module Expand all Collapse all v0 v0.7.1 Jul 25, 2023 v0.7.0 Jul 20, 2023 Changes in this version + const ClientName + const DefaultConfigFilename + const DefaultEnvPrefix + const DefaultFileExtension + const DefaultFilename + const EmptyPath + const ServerName + var BuildCommit = "" + var BuildDate = "" + var BuildVersion = "dev" + var FS = afero.NewReadOnlyFs(afero.NewOsFs()) + func AppName() string + func ValidateClientConfig(conf *ClientConfig) error + func ValidateServerConfig(_ *ServerConfig) error + type Auth struct + ClientID string + ClientSecret string + type ClientConfig struct + Auth Auth + Host string + Log LogConfig + Namespaces []*Namespace + Project Project + Version Version + func LoadClientConfig(filePath string) (*ClientConfig, error) + func (c *ClientConfig) GetAllNamespaceNames() []string + func (c *ClientConfig) GetNamespaceByName(name string) (*Namespace, error) + func (c *ClientConfig) GetSelectedNamespaces(namespaceNames ...string) ([]*Namespace, error) + func (c *ClientConfig) ValidateNamespaceNames(namespaceNames ...string) error + type Config interface + type DBConfig struct + DSN string + MaxOpenConnection int + MinOpenConnection int + type Datastore struct + Backup map[string]string + Path string + Type string + type Job struct + Path string + type LogConfig struct + Format string + Level LogLevel + type LogLevel string + const LogLevelDebug + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelWarning + func (l LogLevel) String() string + type Namespace struct + Config map[string]string + Datastore []Datastore + Job Job + Name string + type Optimus struct + Host string + Log LogConfig + Namespaces []*Namespace + Project Project + Scheduler SchedulerConfig + Server Serve + Telemetry TelemetryConfig + Version int + func (o *Optimus) GetNamespaceByName(name string) (*Namespace, error) + func (o *Optimus) GetVersion() string + type PluginConfig struct + Artifacts []string + type Project struct + Config map[string]string + Name string + type Publisher struct + Buffer int + Config interface{} + Type string + type PublisherKafkaConfig struct + BatchIntervalSecond int + BrokerURLs []string + Topic string + type ReplayConfig struct + ReplayTimeout time.Duration + type ResourceManager struct + Config interface{} + Description string + Name string + Type string + type ResourceManagerConfigOptimus struct + Headers map[string]string + Host string + type SchedulerConfig struct + Name string + type Serve struct + AppKey string + DB DBConfig + IngressHost string + Port int + type ServerConfig struct + Log LogConfig + Plugin PluginConfig + Publisher *Publisher + Replay ReplayConfig + ResourceManagers []ResourceManager + Scheduler SchedulerConfig + Serve Serve + Telemetry TelemetryConfig + Version Version + func LoadServerConfig(filePath string) (*ServerConfig, error) + type TelemetryConfig struct + JaegerAddr string + ProfileAddr string + type Version int + const DefaultVersion + func (v Version) String() string