generator

package
v0.0.0-...-6175eb3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: GPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewalld

type Firewalld struct {
	// HANAGlobal is the global configuration of HANA services.
	HANAGlobal model.HANAGlobalParameters
	// HANAServiceDefinition has association between short name of HANA services and their definitions.
	HANAServices []model.HANAServiceDefinition
}

Firewalld takes input from existing service configuration to install HANA firewall configuration.

func (*Firewalld) GenerateConfig

func (fw *Firewalld) GenerateConfig() (ret map[string]model.FirewalldService, err error)

GenerateConfig takes HANA configuration as input returns generated XML file paths vs firewalld service definition.

func (*Firewalld) WriteConfig

func (fw *Firewalld) WriteConfig(destDir string, services map[string]model.FirewalldService) error

WriteConfig serialises firewalld service definition into XML files and place them under the directory.

Jump to

Keyboard shortcuts

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