types

package
v0.0.0-...-d0e4433 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Services = []utils.ServiceConfig{
	{Name: "correlation", Priority: 1, MinMemory: 3 * 1024, MaxMemory: 60 * 1024},
	{Name: "logstash", Priority: 1, MinMemory: 2700, MaxMemory: 60 * 1024},
	{Name: "opensearch", Priority: 1, MinMemory: 4500, MaxMemory: 60 * 1024},
	{Name: "log-auth-proxy", Priority: 1, MinMemory: 1 * 1024, MaxMemory: 4 * 1024},
	{Name: "backend", Priority: 2, MinMemory: 700, MaxMemory: 8 * 1024},
	{Name: "web-pdf", Priority: 2, MinMemory: 1024, MaxMemory: 2 * 1024},
	{Name: "postgres", Priority: 2, MinMemory: 500, MaxMemory: 1 * 1024},
	{Name: "user-auditor", Priority: 3, MinMemory: 200, MaxMemory: 1024},
	{Name: "agentmanager", Priority: 3, MinMemory: 200, MaxMemory: 1024},
	{Name: "mutate", Priority: 3, MinMemory: 50, MaxMemory: 1024},
	{Name: "aws", Priority: 3, MinMemory: 50, MaxMemory: 1024},
	{Name: "filebrowser", Priority: 3, MinMemory: 50, MaxMemory: 512},
	{Name: "sophos", Priority: 3, MinMemory: 50, MaxMemory: 1024},
	{Name: "frontend", Priority: 3, MinMemory: 80, MaxMemory: 1024},
	{Name: "socai", Priority: 3, MinMemory: 30, MaxMemory: 512},
	{Name: "bitdefender", Priority: 3, MinMemory: 30, MaxMemory: 100},
	{Name: "office365", Priority: 3, MinMemory: 30, MaxMemory: 100},
}

Functions

func CreateLogstashConfig

func CreateLogstashConfig(logstasConfigPath string) error

Types

type Compose

type Compose struct {
	Version  *string            `yaml:"version,omitempty"`
	Volumes  map[string]Volume  `yaml:"volumes,omitempty"`
	Services map[string]Service `yaml:"services,omitempty"`
}

func (*Compose) Encode

func (c *Compose) Encode() ([]byte, error)

func (*Compose) Populate

func (c *Compose) Populate(conf *Config, stack *StackConfig) *Compose

type Config

type Config struct {
	MainServer  string `yaml:"main_server"`
	Branch      string `yaml:"branch"`
	Password    string `yaml:"password"`
	DataDir     string `yaml:"data_dir"`
	ServerType  string `yaml:"server_type"`
	ServerName  string `yaml:"server_name"`
	InternalKey string `yaml:"internal_key"`
}

func (*Config) Get

func (c *Config) Get()

func (*Config) Set

func (c *Config) Set() error

type Deploy

type Deploy struct {
	Placement *Placement `yaml:"placement,omitempty"`
	Resources *Resources `yaml:"resources,omitempty"`
}

type Logging

type Logging struct {
	Driver  *string                `yaml:"driver,omitempty"`
	Options map[string]interface{} `yaml:"options,omitempty"`
}

type LogstashConfig

type LogstashConfig struct {
	Host     string `yaml:"http.host"`
	Size     int    `yaml:"pipeline.batch.size"`
	ECS      string `yaml:"pipeline.ecs_compatibility"`
	Workers  int    `yaml:"pipeline.workers"`
	MaxBytes string `yaml:"queue.max_bytes"`
	Type     string `yaml:"queue.type"`
}

type NginxConfig

type NginxConfig struct {
	SharedKey string
}

type Placement

type Placement struct {
	Constraints []string `yaml:"constraints,omitempty"`
}

type Res

type Res struct {
	CPUs   *string `yaml:"cpus,omitempty"`
	Memory *string `yaml:"memory,omitempty"`
}

type Resources

type Resources struct {
	Limits       *Res `yaml:"limits,omitempty"`
	Reservations *Res `yaml:"reservations,omitempty"`
}

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
	LogstashPipelines string
	LogstashConfig    string
	ServiceResources  map[string]*utils.ServiceConfig
	Threads           int
	ESData            string
	ESBackups         string
	Cert              string
	Datasources       string
	Rules             string
	LocksDir          string
	ShmFolder         string
}

func (*StackConfig) Populate

func (s *StackConfig) Populate(c *Config) error

type Volume

type Volume map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL