configuration

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bind       string
	Port       string
	NomadToken *conceal.Text
	SocketPath string
	Rules      *Firewall
}

func Load

func Load(log loggy.Logger) *Config

func (*Config) Log

func (c *Config) Log(log loggy.Logger)

type Firewall

type Firewall struct {
	All             bool // /v1/*
	Metrics         bool // /v1/metrics              (allow by default)
	Nodes           bool // /v1/nodes
	AgentHealth     bool // /v1/agent/health         (allow by default)
	AgentMembers    bool // /v1/agent/members
	AgentServers    bool // /v1/agent/servers
	AgentSelf       bool // /v1/agent/self
	AgentHost       bool // /v1/agent/host
	AgentSchedulers bool // /v1/agent/schedulers[/config]
	Plugins         bool // /v1/plugins
	Services        bool // /v1/service[s/*]
	Status          bool // /v1/status/[leader,peers]
}

Jump to

Keyboard shortcuts

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