config

package
v0.12.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthModule

type AuthModule struct {
	Type     string   `yaml:"type"`
	UserPass UserPass `yaml:"userpass,omitempty"`
	// Add alternative auth modules here
	Options map[string]string `yaml:"options"`
}

func (AuthModule) ConfigureTarget

func (m AuthModule) ConfigureTarget(target string) (string, error)

type Config

type Config struct {
	AuthModules map[string]AuthModule `yaml:"auth_modules"`
}

type ConfigHandler

type ConfigHandler struct {
	sync.RWMutex
	Config *Config
}

func (*ConfigHandler) GetConfig

func (ch *ConfigHandler) GetConfig() *Config

func (*ConfigHandler) ReloadConfig

func (ch *ConfigHandler) ReloadConfig(f string, logger log.Logger) error

type UserPass

type UserPass struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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