config

package
v0.0.0-...-13643d7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilePath     string
	GlobalConfig Config
)

Functions

func Init

func Init() error

Types

type Backend

type Backend struct {
	Type      string `yaml:"type"`
	BasePath  string `yaml:"base-path"`
	Endpoints string `yaml:"endpoints"`
	Username  string `yaml:"username"`
	Password  string `yaml:"password"`
}

type Base

type Base struct {
	ServeAddress  string `yaml:"address"`
	AdminPassword string `yaml:"admin-pass"`
}

type Config

type Config struct {
	Dashboard Base    `yaml:"dashboard"`
	LDAP      LDAP    `yaml:"ldap"`
	Provider  Backend `yaml:"provider"`
}

type LDAP

type LDAP struct {
	Enable  bool   `yaml:"enable"`
	Address string `yaml:"address"`
	BaseDN  string `yaml:"base-dn"`
}

Jump to

Keyboard shortcuts

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