configuration

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Environment *Environment

	Static  Static
	Dynamic Dynamic
	Flannel *Flannel

	Id   uint64 `yaml:"-"`
	Node string `yaml:"-"`
	Raft string `yaml:"-"`
	Peer string `yaml:"-"`

	Image      string `yaml:"-"`
	Tag        string `yaml:"-"`
	Entrypoint string `yaml:"-"`
	Args       string `yaml:"-"`

	Y bool   `yaml:"-"`
	F bool   `yaml:"-"`
	O string `yaml:"-"`
	W string `yaml:"-"`
	G string `yaml:"-"`
}

func NewConfig

func NewConfig() *Configuration

type Dynamic added in v0.0.94

type Dynamic struct {
	HostPort    string
	OverlayPort string
	EtcdPort    string
}

type Environment

type Environment struct {
	Home            string
	LogsDirectory   string
	ClientDirectory string
}

func GetEnvironmentInfo added in v0.0.90

func GetEnvironmentInfo() *Environment

type Flannel added in v0.0.33

type Flannel struct {
	Backend            string
	CIDR               string
	InterfaceSpecified string
	EnableIPv4         bool
	EnableIPv6         bool
	IPv6Masq           bool
}

type Static added in v0.0.90

type Static struct {
	Platform string
	Node     string
	Context  string

	LogLevel string
	Domains  string
	IPs      string

	Image string
	Tag   string
}

Jump to

Keyboard shortcuts

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