ipvs

package
v0.0.0-...-22c38b1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromService

func FromService(s *ipvs.Service) types.Service

func ToIpvsDestination

func ToIpvsDestination(d *types.Destination) *ipvs.Destination

func ToIpvsService

func ToIpvsService(s *types.Service) *ipvs.Service

Types

type Ipvs

type Ipvs struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() (*Ipvs, error)

New creates a new ipvs struct and flushes the IPVS Table

func (*Ipvs) Flush

func (i *Ipvs) Flush() error

Flush flushes all services and destinations from the IPVS table.

func (*Ipvs) Sync

func (ipvs *Ipvs) Sync(state state.State) error

Sync syncs all ipvs rules present in state to kernel

type Syncer

type Syncer interface {
	Sync(state state.State) error
}

Jump to

Keyboard shortcuts

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