config

package
v0.0.0-...-07dfffa Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	Level   string
	Logfile string
}

Audit struct contains the config of the Audit logger

type Config

type Config struct {
	Dashboard *GlobalConfig `json:",omitempty"`
	Sensu     []SensuConfig
	Uchiwa    GlobalConfig
}

Config struct contains []SensuConfig and UchiwaConfig structs

var (

	// Private contains the private configuration
	Private *Config
)

func Load

func Load(file, directories string) *Config

Load retrieves the Uchiwa configuration from files and directories and returns the private configuration as a Config struct pointer

func (*Config) GetPublic

func (c *Config) GetPublic() *Config

GetPublic generates the public configuration

type Db

type Db struct {
	Driver string
	Scheme string
}

Db struct contains the SQL driver configuration

type Email

type Email struct {
	Host         string
	Port         int
	Email        string
	Name         string
	Subject      string
	TemplatePath string
	TemplateFile string
}

Email struct contains the Email configuration for sending notifications

type FreeIPA

type FreeIPA struct {
	Server string
	Port   int
	Domain string
	BaseDn string
	User   string
	Pass   string
	Roles  []authentication.Role
}

FreeIPA struct contains the FreeIPA driver configuration

type Github

type Github struct {
	ClientID     string
	ClientSecret string
	Roles        []authentication.Role
	Server       string
}

Github struct contains the GitHub driver configuration

type Gitlab

type Gitlab struct {
	ApplicationID string
	Secret        string
	RedirectURL   string
	Roles         []authentication.Role
	Server        string
}

Gitlab struct contains the Gitlab driver configuration

type GlobalConfig

type GlobalConfig struct {
	Host       string
	Port       int
	LogLevel   string
	Refresh    int
	Pass       string
	User       string
	Users      []authentication.User
	Audit      Audit
	Auth       structs.Auth
	Db         Db
	Email      Email
	Enterprise bool
	FreeIPA    FreeIPA
	Github     Github
	Gitlab     Gitlab
	Ldap       Ldap
	ReCaptcha  ReCaptcha
	SMS        SMS
	Sql        Sql
	SSL        SSL
}

GlobalConfig struct contains conf about Uchiwa

type Ldap

type Ldap struct {
	Server               string
	Port                 int
	BaseDN               string
	BindUser             string
	BindPass             string
	Debug                bool
	Dialect              string
	GroupBaseDN          string
	GroupObjectClass     string
	GroupMemberAttribute string
	Insecure             bool
	Roles                []authentication.Role
	Security             string
	UserAttribute        string
	UserBaseDN           string
	UserObjectClass      string
}

Ldap struct contains the LDAP driver configuration

type ReCaptcha

type ReCaptcha struct {
	Url       string
	SecretKey string
}

reCAPTCHA struct contains the reCAPTCHA url and key

type SMS

type SMS struct {
	Url             string
	User            string
	Pass            string
	NewUserText     string
	ResetPasswdText string
	TemplatePath    string
	TemplateFile    string
}

SMS struct contains the SMS configuration for sending notifications

type SSL

type SSL struct {
	CertFile string
	KeyFile  string
}

SSL struct contains the path the SSL certificate and key

type SensuConfig

type SensuConfig struct {
	Name     string
	Host     string
	Port     int
	Ssl      bool
	Insecure bool
	URL      string
	User     string
	Path     string
	Pass     string
	Timeout  int
}

SensuConfig struct contains conf about a Sensu API

type Sql

type Sql struct {
	Host string
	Port int
	User string
	Pass string
	Db   string
}

SQL struct contains the SQL server information

Jump to

Keyboard shortcuts

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