hostgw

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoPodCIDR it may happen when kube-controller-manager not update pod CIDR for a new node that in time.
	ErrNoPodCIDR = errors.New("no pod CIDR found")
	// ErrNoPodAddress if a node does not have a address
	ErrNoPodAddress = errors.New("no pod address found")
	// ErrCNIConfNonexist if no .conf/.conflist/.json file found in /etc/cni/net.d/
	ErrCNIConfNonexist = errors.New("cni conf nonexist")
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	CNIBinDir  string
	CNIConfDir string
}

Handler ResourceEventHandler

func (*Handler) OnAdd

func (h *Handler) OnAdd(obj interface{})

OnAdd handle ADDED event

func (*Handler) OnDelete

func (h *Handler) OnDelete(obj interface{})

OnDelete handle DELETED event

func (*Handler) OnUpdate

func (h *Handler) OnUpdate(oldObj, newObj interface{})

OnUpdate handle `MODIFIED` event

Jump to

Keyboard shortcuts

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