Documentation ¶
Overview ¶
Package for managements postfix transport settings
Index ¶
- func GetHandler(postfix_configs_path string) httprouter.Handle
- func MapLdap(postfixMainCf map[string][]string) string
- func MapLdapState(postfixMainCf map[string][]string) string
- func MapMain(postfixMainCf map[string][]string) string
- func MapRegexpTable(RegexpMap map[string]interface{}) string
- func PostHandler(postfix_configs_path string) httprouter.Handle
- func ValidateLdap(inputParams io.Reader) (map[string]interface{}, error)
- func ValidateLdapState(inputParams io.Reader) (bool, error)
- func ValidateMain(inputParams io.Reader) (map[string]interface{}, error)
- func ValidateMapReload(inputParams io.Reader) (string, error)
- func ValidateRegexpTable(inputParams io.Reader, location string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandler ¶
func GetHandler(postfix_configs_path string) httprouter.Handle
Get setting groups by names, via case conditions by url location
func MapLdapState ¶
Create json configuration via converting parameter relay_recipient_maps from main.cf. If relay_recipient_maps empty, returning disable status
func MapRegexpTable ¶
Mapping postfix regexp lookup tables
func PostHandler ¶
func PostHandler(postfix_configs_path string) httprouter.Handle
Update transport setting groups by names via case conditions by url location
func ValidateLdap ¶
Check incoming "ldap" group parameters from json request and generate map array for postfix.UpdateMainCf method
func ValidateLdapState ¶
Check incoming ldap state parameter and return bool from incoming json
func ValidateMain ¶
Check incoming "main" group parameters from json request and generate map array for postfix.UpdateMainCf method
func ValidateMapReload ¶
Check incoming map name and return extracted map name string from incoming json
Types ¶
This section is empty.