configuration

package
v0.0.132 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificates added in v0.0.85

type Certificates struct {
	Domains *Domains `yaml:"domains"`
	IPs     *IPs     `yaml:"ips"`
}

type Configuration

type Configuration struct {
	Platform     string        `yaml:"platform"`
	NodeName     string        `yaml:"nodeName"`
	HostPort     HostPort      `yaml:"hostport"`
	KVStore      *KVStore      `yaml:"kvstore"`
	Target       string        `default:"development" yaml:"target"`
	Root         string        `yaml:"root"`
	Certificates *Certificates `yaml:"certificates"`
	HostHome     string        `yaml:"hostHome"`
	Environment  *Environment  `yaml:"-"`
	Flags        Flags         `yaml:"-"`
}

func NewConfig

func NewConfig() *Configuration

func (*Configuration) GetDomainOrIP added in v0.0.86

func (configuration *Configuration) GetDomainOrIP() string

type Domains added in v0.0.85

type Domains struct {
	Members []string `yaml:"members"`
}

func NewDomains added in v0.0.85

func NewDomains(domains []string) *Domains

func (*Domains) Add added in v0.0.85

func (domains *Domains) Add(domain string)

func (*Domains) Remove added in v0.0.85

func (domains *Domains) Remove(domain string)

func (*Domains) ToStringSlice added in v0.0.85

func (domains *Domains) ToStringSlice() []string

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 HostPort added in v0.0.85

type HostPort struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

type IPs added in v0.0.85

type IPs struct {
	Members []string `yaml:"members"`
}

func NewIPs added in v0.0.85

func NewIPs(ips []string) *IPs

func (*IPs) Add added in v0.0.85

func (ips *IPs) Add(ip string)

func (*IPs) Remove added in v0.0.85

func (ips *IPs) Remove(ip string)

func (*IPs) ToIPNetSlice added in v0.0.85

func (ips *IPs) ToIPNetSlice() []net.IP

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