transport

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package for managements postfix transport settings

Index

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 MapLdap

func MapLdap(postfixMainCf map[string][]string) string

Mapping postfix ldap lookup configuration

func MapLdapState

func MapLdapState(postfixMainCf map[string][]string) string

Create json configuration via converting parameter relay_recipient_maps from main.cf. If relay_recipient_maps empty, returning disable status

func MapMain

func MapMain(postfixMainCf map[string][]string) string

Mapping main transport data from postfix main.cf

func MapRegexpTable

func MapRegexpTable(RegexpMap map[string]interface{}) string

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

func ValidateLdap(inputParams io.Reader) (map[string]interface{}, error)

Check incoming "ldap" group parameters from json request and generate map array for postfix.UpdateMainCf method

func ValidateLdapState

func ValidateLdapState(inputParams io.Reader) (bool, error)

Check incoming ldap state parameter and return bool from incoming json

func ValidateMain

func ValidateMain(inputParams io.Reader) (map[string]interface{}, error)

Check incoming "main" group parameters from json request and generate map array for postfix.UpdateMainCf method

func ValidateMapReload

func ValidateMapReload(inputParams io.Reader) (string, error)

Check incoming map name and return extracted map name string from incoming json

func ValidateRegexpTable

func ValidateRegexpTable(inputParams io.Reader, location string) (string, error)

Check incoming parameters from json request and generate regexp lookup table string for postfix. Lookup table sorting by Priority from request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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