types

package
v0.0.0-...-f219ead Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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