config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Type    string                 `yaml:"type"`
	Options map[string]interface{} `yaml:"options"`
	Require []filter.RequireConfig `yaml:"require"`
}

type CertAuthConfig

type CertAuthConfig struct {
	Name    string                 `yaml:"name"`
	Type    string                 `yaml:"type"`
	Options map[string]interface{} `yaml:"options"`
}

func (*CertAuthConfig) ApplyDefaults

func (c *CertAuthConfig) ApplyDefaults()

type Config

type Config struct {
	CertAuths []CertAuthConfig `yaml:"certauths,omitempty"`
	Auth      AuthConfig       `yaml:"auth"`
	Env       envconfig.Config `yaml:"env"`
	Server    ServerConfig     `yaml:"server"`
	Services  []ServiceConfig  `yaml:"services"`
}

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults()

type ServerConfig

type ServerConfig struct {
	CertificatePath string               `yaml:"certificate_path"`
	Host            string               `yaml:"host"`
	Port            int                  `yaml:"port"`
	PrivateKeyPath  string               `yaml:"private_key_path"`
	Redirect        ServerRedirectConfig `yaml:"redirect"`
}

func (*ServerConfig) ApplyDefaults

func (c *ServerConfig) ApplyDefaults()

type ServerRedirectConfig

type ServerRedirectConfig struct {
	Root        string `yaml:"root"`
	AuthSuccess string `yaml:"auth_success"`
	AuthFailure string `yaml:"auth_failure"`
}

type ServiceConfig

type ServiceConfig struct {
	Name    string                 `yaml:"name"`
	Type    string                 `yaml:"type"`
	Require []filter.RequireConfig `yaml:"require"`
	Options map[string]interface{} `yaml:"options"`
}

func (*ServiceConfig) ApplyDefaults

func (c *ServiceConfig) ApplyDefaults()

Jump to

Keyboard shortcuts

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