builder

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIPTables added in v0.1.1

func BuildIPTables(cfg config.Config, dnsServers []string, ipv6 bool) (string, error)

func GetDnsServers added in v0.4.0

func GetDnsServers(cfgPath string) ([]string, []string, error)

func RestoreIPTables added in v0.1.3

func RestoreIPTables(cfg config.Config) (string, error)

RestoreIPTables TODO (bartsmykla): add validation if ip{,6}tables are available

Types

type IPTables

type IPTables struct {
	// contains filtered or unexported fields
}

func (*IPTables) Build

func (t *IPTables) Build(verbose bool) string

Jump to

Keyboard shortcuts

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