configuration

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Platform       string       `yaml:"platform"`
	OverlayNetwork string       `yaml:"overlaynetwork"`
	Agent          string       `yaml:"agent"`
	Port           int          `yaml:"port"`
	KVStore        *KVStore     `yaml:"kvstore"`
	Target         string       `default:"development" yaml:"target"`
	Root           string       `yaml:"root"`
	OptRoot        string       `yaml:"optroot"`
	Domains        []string     `yaml:"domains"`
	IPs            []string     `yaml:"ips"`
	CommonName     string       `yaml:"CN"`
	HostHome       string       `yaml:"hostHome"`
	Node           string       `yaml:"node"`
	Environment    *Environment `yaml:"-"`
	Flags          Flags        `yaml:"-"`
}

func NewConfig

func NewConfig() *Configuration

type Environment

type Environment struct {
	HOMEDIR    string
	OPTDIR     string
	PROJECTDIR string
	PROJECT    string
	AGENTIP    string
}

type Flags

type Flags struct {
	Opt     bool
	Verbose bool
}

type KVStore added in v0.0.57

type KVStore struct {
	Cluster     []*node.Node `yaml:"cluster"`
	Node        uint64       `yaml:"node"`
	URL         string       `yaml:"url"`
	JoinCluster bool         `yaml:"join"`
}

Jump to

Keyboard shortcuts

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