configuration

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: GPL-3.0 Imports: 0 Imported by: 4

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"`
	Domain         string       `yaml:"domain"`
	ExternalIP     string       `yaml:"externalIP"`
	CommonName     string       `yaml:"CN"`
	HostHome       string       `yaml:"home"`
	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     []string `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