Documentation ¶
Index ¶
- Constants
- type AuditLogLine
- type Authentication
- type BasicAuth
- type Config
- func (c Config) AccessLog(v interface{})
- func (c Config) ApplicationLogf(format string, v ...interface{})
- func (c Config) AuditLog(v interface{})
- func (c *Config) SetAccessEncoder(e *json.Encoder) *Config
- func (c *Config) SetAccessLogFile(p string) *Config
- func (c *Config) SetApplicationLogFile(p string) *Config
- func (c *Config) SetApplicationLogger(l *log.Logger) *Config
- func (c *Config) SetAuditLogFile(p string) *Config
- func (c *Config) SetAuditLogger(e *json.Encoder) *Config
- func (c *Config) SetSocket(s string) *Config
- func (c *Config) SetTLS(tlsConf TLS) *Config
- func (c *Config) SetVault(addr, caFilePath, appID, userID, secretsRoot string) *Config
- func (c Config) Summary() string
- func (c *Config) ToString() string
- type Database
- type JWT
- type KRB5Basic
- type Kerberos
- type LDAPBasic
- type Loggers
- type Server
- type StaticBasic
- type TLS
- type Vault
Constants ¶
View Source
const ( TemplateJSON = `` /* 1268-byte string literal not displayed */ MockStaticSecret = "mocktestsecret" MockStaticAttribute = "authzattrib" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogLine ¶
type Authentication ¶
type Config ¶
type Config struct { Server Server `json:"Server"` Vault Vault `json:"Vault"` Database Database `json:"Database"` }
func (Config) ApplicationLogf ¶
func (*Config) SetAccessLogFile ¶
func (*Config) SetApplicationLogFile ¶
func (*Config) SetAuditLogFile ¶
type LDAPBasic ¶
type LDAPBasic struct { EndPoint string `json:"EndPoint"` BaseDN string `json:"BaseDN"` UsernameAttribute string `json:"UsernameAttribute"` // "cn" "sAMAccountName" UserObjectClass string `json:"UserObjectClass"` DisplayNameAttribute string `json:"DisplayNameAttribute"` MembershipAttribute string `json:"MembershipAttribute"` BindUserDN string `json:"BindUserDN"` BindUserPasswordVaultPath string `json:"BindUserPasswordVaultPath"` BindUserPassword string TLSEnabled bool `json:"TLSEnabled"` TrustedCAPath string `json:"TrustedCAPath"` LDAPConn *ldap.Conn }
type Server ¶
type Server struct { Socket string `json:"Socket"` TLS TLS `json:"TLS"` Authentication Authentication `json:"Authentication"` Logging *Loggers `json:"Logging"` }
type StaticBasic ¶
type TLS ¶
type TLS struct { Enabled bool `json:"Enabled"` CertificateFile string `json:"CertificateFile"` KeyFile string `json:"KeyFile"` }
func NewTLSConfig ¶
type Vault ¶
type Vault struct { Config *vaultclient.Config `json:"Config"` Credentials *vaultclient.Credentials `json:"Credentials"` }
Click to show internal directories.
Click to hide internal directories.