Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firewaller ¶
type Firewaller struct {
// contains filtered or unexported fields
}
Firewaller watches the state for ports opened or closed and reflects those changes onto the backing environment.
func NewFirewaller ¶
func NewFirewaller(st *state.State) *Firewaller
NewFirewaller returns a new Firewaller.
func (*Firewaller) Err ¶
func (fw *Firewaller) Err() (reason error)
Err returns the reason why the firewaller has stopped or tomb.ErrStillAlive when it is still alive.
func (*Firewaller) Stop ¶
func (fw *Firewaller) Stop() error
Stop stops the Firewaller and returns any error encountered while stopping.
func (*Firewaller) String ¶
func (fw *Firewaller) String() string
Click to show internal directories.
Click to hide internal directories.