Documentation
¶
Index ¶
- Variables
- func DetectOpenSearch() (bool, error)
- func DetectOpenSearchInfo() (*osSecondaryInfo, error)
- func EnsureStorageConfig(conf *config.Config, withOpenSearchSecondary bool) error
- func InitSwarm(mainIP string) error
- func InstallDocker(distro string) error
- func PostInstallation() error
- func RecalculateMemory() error
- func SetPluginsConfigs(conf *config.Config, stack *StackConfig) error
- func StackUP(tag string) error
- type ClickHouseConfig
- type ClickHousePluginsConfig
- type Compose
- type Deploy
- type FieldMap
- type Logging
- type Placement
- type PluginConfig
- type PluginsConfig
- type PostgreConfig
- type RUConfig
- type Res
- type Resources
- type RestartPolicy
- type Service
- type StackConfig
- type StorageEngine
- type ValkeyConfig
- type Volume
Constants ¶
This section is empty.
Variables ¶
var Integrations = []string{
"aws",
"azure",
"bitdefender",
"crowdstrike",
"gcp",
"o365",
"o365_graph",
"sophos",
}
Integrations are the pullers, one container each, built from integrations/<name>.
var (
Services = []system.ServiceConfig{}
)
Functions ¶
func DetectOpenSearch ¶
DetectOpenSearch reports whether a running container with an opensearch image exists
func DetectOpenSearchInfo ¶
func DetectOpenSearchInfo() (*osSecondaryInfo, error)
DetectOpenSearchInfo returns the detected container's service name and admin password (env OPENSEARCH_INITIAL_ADMIN_PASSWORD, user always "admin"), so the stack can keep running opensearch on update instead of pruning it.
func EnsureStorageConfig ¶
func InstallDocker ¶
func PostInstallation ¶
func PostInstallation() error
func RecalculateMemory ¶
func RecalculateMemory() error
func SetPluginsConfigs ¶
func SetPluginsConfigs(conf *config.Config, stack *StackConfig) error
Types ¶
type ClickHouseConfig ¶
type ClickHouseConfig struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Database string `yaml:"database"`
User string `yaml:"user"`
Password string `yaml:"password"`
LogsTable string `yaml:"logsTable"`
AlertsTable string `yaml:"alertsTable"`
StatisticsTable string `yaml:"statisticsTable"`
}
type ClickHousePluginsConfig ¶
type ClickHousePluginsConfig struct {
Plugins map[string]ClickHouseConfig `yaml:"plugins"`
}
type Compose ¶
type Deploy ¶
type Deploy struct {
Mode *string `yaml:"mode,omitempty"`
Replicas *int `yaml:"replicas,omitempty"`
EndpointMode *string `yaml:"endpoint_mode,omitempty"`
Labels map[string]string `yaml:"labels,omitempty"`
Placement *Placement `yaml:"placement,omitempty"`
Resources *Resources `yaml:"resources,omitempty"`
RestartPolicy *RestartPolicy `yaml:"restart_policy,omitempty"`
RollbackConfig *RUConfig `yaml:"rollback_config,omitempty"`
UpdateConfig *RUConfig `yaml:"update_config,omitempty"`
}
type PluginConfig ¶
type PluginConfig struct {
Order []string `yaml:"order,omitempty"`
Port int `yaml:"port,omitempty"`
PostgreSQL PostgreConfig `yaml:"postgresql,omitempty"`
InternalKey string `yaml:"internalKey,omitempty"`
EncryptionKey string `yaml:"encryptionKey,omitempty"`
Env string `yaml:"env,omitempty"`
AgentManager string `yaml:"agentManager,omitempty"`
Backend string `yaml:"backend,omitempty"`
CertsFolder string `yaml:"certsFolder,omitempty"`
Valkey ValkeyConfig `yaml:"valkey,omitempty"`
}
type PluginsConfig ¶
type PluginsConfig struct {
Plugins map[string]PluginConfig `yaml:"plugins"`
}
type PostgreConfig ¶
type RUConfig ¶
type RUConfig struct {
Parallelism *int `yaml:"parallelism,omitempty"`
Delay *string `yaml:"delay,omitempty"`
FailureAction *string `yaml:"failure_action,omitempty"`
Monitor *string `yaml:"monitor,omitempty"`
MaxFailureRatio *float64 `yaml:"max_failure_ratio,omitempty"`
Order *string `yaml:"order,omitempty"`
}
type RestartPolicy ¶
type Service ¶
type Service struct {
Image *string `yaml:"image,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Environment []string `yaml:"environment,omitempty"`
DependsOn []string `yaml:"depends_on,omitempty"`
Logging *Logging `yaml:"logging,omitempty"`
Deploy *Deploy `yaml:"deploy,omitempty"`
Command []string `yaml:"command,omitempty,flow"`
}
type StackConfig ¶
type StackConfig struct {
FrontEndNginx string
ServiceResources map[string]*system.ServiceConfig
Threads int
ClickHouseData string
ClickHouseSchema string
ClickHouseConf string
ClickHouseConfigD string
ClickHouseCold string
NATSData string
ValkeyData string
ESData string
ESBackups string
OpenSearchEnabled bool
OpenSearchServiceName string
Cert string
EventsEngineWorkdir string
LocksDir string
ShmFolder string
}
func GetStackConfig ¶
func GetStackConfig() *StackConfig
func (*StackConfig) ApplyMemory ¶
func (s *StackConfig) ApplyMemory() (map[string]*system.ServiceConfig, error)
ApplyMemory loads and validates the persisted allocation, then applies it to this stack config. It never rewrites the file, so admin edits survive this call and the next update.
type StorageEngine ¶
type StorageEngine struct {
Engine string `yaml:"engine"`
ClickHouse *storageCH `yaml:"clickhouse,omitempty"`
OpenSearch *storageOS `yaml:"opensearch,omitempty"`
}