configuration

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: GPL-3.0 Imports: 5 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"`
	Certificates *Certificates `yaml:"certificates"`
	Environment  *Environment  `yaml:"-"`
}

func NewConfig

func NewConfig() *Configuration

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 {
	Home          string
	NodeIP        string
	NodeDirectory string
}

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