Versions in this module Expand all Collapse all v1 v1.0.4 May 16, 2024 Changes in this version + type Conf struct + func NewConf() Conf + func (conf Conf) AddHooks() + func (conf Conf) AddUserHooks(name string, env string) + func (conf Conf) Log() + func (conf Conf) Oneshot() bool + func (conf Conf) RunExitHook(name string) + func (conf Conf) RunExitHooks() + func (conf Conf) RunInitHook(name string) + func (conf Conf) RunInitHooks() + type Hook interface + RunExit func() error + RunInit func() error + String func() []string + type HookMulti struct + func NewIPRouteHooks(nameInit string, envInit string, nameExit string, envExit string) HookMulti + func NewUserHooks(nameInit string, envInit string, nameExit string, envExit string) HookMulti + func (hooks HookMulti) RunExit() error + func (hooks HookMulti) RunInit() error + func (hooks HookMulti) String() []string + type HookSingle interface + Run func() error + String func() []string + type IPRouteHook struct + func NewIPRouteHook(name string, env string) IPRouteHook + func (hook IPRouteHook) Run() error + func (hook IPRouteHook) String() []string + type Nat4Hook struct + func NewNat4Hooks() Nat4Hook + func (hook Nat4Hook) RunExit() error + func (hook Nat4Hook) RunInit() error + func (hook Nat4Hook) String() []string + type UserHook struct + func NewUserHook(name string, env string) UserHook + func (hook UserHook) Run() error + func (hook UserHook) String() []string