general

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: 12 Imported by: 0

Documentation

Overview

Package for managements postfix general(global) 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 MapMain

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

Mapping main group parameters from main.cf configuration

func MapSSL

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

Mapping SSL group parameters from main.cf configuration

func PostHandler

func PostHandler(postfix_configs_path string) httprouter.Handle

Update setting groups by names, via case conditions by url location

func ValidateCert

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

Check incoming cert group parameters. Check certificate and key. Return certificate and key as strings from extracted incoming json.

func ValidateGeneral

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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