daemon

package
v0.0.0-...-4892902 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfDirectory = "/etc/flant/negentropy/authd-conf.d"

Can be set at compile time.

View Source
var DefaultConfig = &Config{
	ConfDirectory: DefaultConfDirectory,
}

Functions

func DefineFlags

func DefineFlags(cmd *kingpin.CmdClause, config *Config)

Types

type Authd

type Authd struct {
	Config             *Config
	AuthdConfig        *config.AuthdConfig
	AuthdSocketConfigs []*config.AuthdSocketConfig

	Servers []*server.VaultProxy
	// contains filtered or unexported fields
}

func NewDefaultAuthd

func NewDefaultAuthd() *Authd

func (*Authd) RunRefreshLoop

func (a *Authd) RunRefreshLoop(ctx context.Context, authdConfig *config.AuthdConfig)

RunRefreshLoop

func (*Authd) Start

func (a *Authd) Start() error

Start runs servers for all defined socket configurations.

func (*Authd) Stop

func (a *Authd) Stop()

Stop

type Config

type Config struct {
	ConfDirectory string
}

Jump to

Keyboard shortcuts

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