firewaller

package
v0.0.0-...-6337964 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2014 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(A, B []network.Port) (missing []network.Port)

Diff returns all the ports that exist in A but not B.

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 *apifirewaller.State) (*Firewaller, error)

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) Kill

func (fw *Firewaller) Kill()

Kill implements worker.Worker.Kill.

func (*Firewaller) Stop

func (fw *Firewaller) Stop() error

Stop stops the Firewaller and returns any error encountered while stopping.

func (*Firewaller) Wait

func (fw *Firewaller) Wait() error

Wait implements worker.Worker.Wait.

Jump to

Keyboard shortcuts

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