Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Available = make(map[string]Moduler)
The set of registered modules
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Name string `yaml:"name" json:"name"` LdapGroups []string `yaml:"ldapgroups" json:"ldapgroups"` UidMap []umap `yaml:"uidmap" json:"uidmap"` Create bool `yaml:"create" json:"create"` Delete bool `yaml:"delete" json:"delete"` Reset bool `yaml:"reset" json:"reset"` ResetUsers string `yaml:"resetusers" json:"resetusers"` Notify NotifyConf `yaml:"notify" json:"notify"` Credentials interface{} `yaml:"credentials" json:"credentials"` Parameters interface{} `yaml:"parameters" json:"parameters"` ApplyChanges bool `yaml:"applychanges" json:"applychanges"` NotifyUsers bool `yaml:"notifyusers" json:"notifyusers"` LdapCli mozldap.Client `yaml:"-" json:"-"` Debug bool `yaml:"-" json:"-"` }
Configuration holds module specific parameters
func (Configuration) GetCredentials ¶
func (c Configuration) GetCredentials(cred interface{}) (err error)
GetCredentials reads the credentials from a Configuration into the c interface
func (Configuration) GetParameters ¶
func (c Configuration) GetParameters(p interface{}) (err error)
GetParameters reads the parameters from a Configuration into the p interface
type Moduler ¶
type Moduler interface {
NewRun(Configuration) Runner
}
A module implements this interface
type Notification ¶
type NotifyConf ¶
type NotifyConf struct { Mode string `yaml:"mode" json:"mode"` Recipient string `yaml:"recipient" json:"recipient"` Channel chan Notification `yaml:"-" json:"-"` }
Click to show internal directories.
Click to hide internal directories.