Documentation ¶
Index ¶
- Variables
- type Application
- type Config
- func (c *Config) AddApplication(application *Application) error
- func (c *Config) AddVHosts(vhosts map[string]*VHost) error
- func (c *Config) DeleteApplication(application *Application) error
- func (c *Config) DeleteVHosts(vhosts map[string]*VHost) error
- func (c *Config) First() (string, int, error)
- func (c *Config) Last() (string, int, error)
- func (c *Config) Load(configName string) (map[string]interface{}, error)
- func (c *Config) LoadFirst() (map[string]interface{}, error)
- func (c *Config) Next() (string, int, error)
- func (c *Config) ReloadLemonLDAPNG() error
- func (c *Config) Save() error
- func (c *Config) SetOverrides(overrides map[string]interface{}) error
- type VHost
Constants ¶
This section is empty.
Variables ¶
DefaultExportedHeaders is the default exported headers when not set
DefaultLocationRules is the default location rules when not set
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Category string Name string Description string Logo string Display string URI string }
Application defines a LemonLDAP::NG application
func NewApplication ¶
func NewApplication(vhost *VHost, annotations map[string]string, prefix string) *Application
NewApplication creates a new LemonLDAP::NG application from annotations
func (*Application) Path ¶
func (a *Application) Path() string
Path returns the application path in the menu
type Config ¶
Config defines a LemonLDAP::NG configuration loader
func NewConfig ¶
func NewConfig(fs filesystem.Filesystem, configDir string) *Config
NewConfig creates a new LemonLDAP::NG configuration loader
func (*Config) AddApplication ¶
func (c *Config) AddApplication(application *Application) error
AddApplication creates a new LemonLDAP::NG application
func (*Config) AddVHosts ¶
AddVHosts creates several new LemonLDAP::NG virtual hosts
func (*Config) DeleteApplication ¶
func (c *Config) DeleteApplication(application *Application) error
DeleteApplication a LemonLDAP::NG application
func (*Config) DeleteVHosts ¶
DeleteVHosts deletes several LemonLDAP::NG virtual hosts
func (*Config) First ¶
First returns the first configuration file name and number
func (*Config) Last ¶
Last returns the current configuration file name and number
func (*Config) Load ¶
Load loads a specific LemonLDAP::NG configuration
func (*Config) LoadFirst ¶
LoadFirst loads the first LemonLDAP::NG configuration
func (*Config) Next ¶
Next returns the following configuration file name and number
func (*Config) ReloadLemonLDAPNG ¶
ReloadLemonLDAPNG issues an HTTP request to http://localhost/reload
func (*Config) Save ¶
Save saves the current LemonLDAP::NG configuration as next