Documentation
¶
Index ¶
- Variables
- func InitSwarm(mainIP string) error
- func InstallDocker(distro string) error
- func PostInstallation() error
- func RemoveServices(services []string) error
- func SetPluginsConfigs(conf *config.Config, stack *StackConfig) error
- func StackUP(tag string) error
- type Compose
- type Deploy
- type Logging
- type Placement
- type PluginConfig
- type PluginsConfig
- type PostgreConfig
- type RUConfig
- type Res
- type Resources
- type RestartPolicy
- type Service
- type StackConfig
- type Volume
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Services = []system.ServiceConfig{}
)
Functions ¶
func InstallDocker ¶
func PostInstallation ¶
func PostInstallation() error
func RemoveServices ¶
func SetPluginsConfigs ¶
func SetPluginsConfigs(conf *config.Config, stack *StackConfig) error
Types ¶
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"`
RulesFolder string `yaml:"rulesFolder,omitempty"`
GeoIPFolder string `yaml:"geoipFolder,omitempty"`
OpenSearch string `yaml:"opensearch,omitempty"`
PostgreSQL PostgreConfig `yaml:"postgresql,omitempty"`
ServerName string `yaml:"serverName,omitempty"`
InternalKey string `yaml:"internalKey,omitempty"`
AgentManager string `yaml:"agentManager,omitempty"`
Backend string `yaml:"backend,omitempty"`
CertsFolder string `yaml:"certsFolder,omitempty"`
ModulesConfig string `yaml:"modulesConfig,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
ESData string
ESBackups string
Cert string
DataSources string
EventsEngineWorkdir string
LocksDir string
ShmFolder string
}
func GetStackConfig ¶
func GetStackConfig() *StackConfig
Click to show internal directories.
Click to hide internal directories.