Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuiltinListeners = map[string]ListenerFactory{
"tcp": tcpListenerFactory,
"atlas": atlasListenerFactory,
}
BuiltinListeners is the list of built-in listener types.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Listeners []*Listener `hcl:"-"` Backend *Backend `hcl:"-"` HABackend *Backend `hcl:"-"` DisableCache bool `hcl:"disable_cache"` DisableMlock bool `hcl:"disable_mlock"` Telemetry *Telemetry `hcl:"telemetry"` MaxLeaseTTL time.Duration `hcl:"-"` MaxLeaseTTLRaw string `hcl:"max_lease_ttl"` DefaultLeaseTTL time.Duration `hcl:"-"` DefaultLeaseTTLRaw string `hcl:"default_lease_ttl"` }
Config is the configuration for the vault server.
func LoadConfig ¶
LoadConfig loads the configuration at the given path, regardless if its a file or directory.
func LoadConfigDir ¶
LoadConfigDir loads all the configurations in the given directory in alphabetical order.
func LoadConfigFile ¶
LoadConfigFile loads the configuration from the given file.
func ParseConfig ¶ added in v0.5.2
type ListenerFactory ¶
type ListenerFactory func(map[string]string, io.Writer) (net.Listener, map[string]string, ReloadFunc, error)
ListenerFactory is the factory function to create a listener.
type ReloadFunc ¶ added in v0.5.2
ReloadFunc are functions that are called when a reload is requested.
type SCADAListener ¶ added in v0.6.0
type SCADAListener struct {
// contains filtered or unexported fields
}
func (*SCADAListener) Addr ¶ added in v0.6.0
func (s *SCADAListener) Addr() net.Addr
func (*SCADAListener) Close ¶ added in v0.6.0
func (s *SCADAListener) Close() error
Click to show internal directories.
Click to hide internal directories.