utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeObject added in v0.0.5

func GetNodeObject(clientset *kubernetes.Clientset, hostnameOverride string) (*apiv1.Node, error)

func GetPodCidrFromCniSpec

func GetPodCidrFromCniSpec(cniConfFilePath string) (net.IPNet, error)

func GetPodCidrFromNodeSpec

func GetPodCidrFromNodeSpec(clientset *kubernetes.Clientset, hostnameOverride string) (string, error)

func InsertPodCidrInCniSpec

func InsertPodCidrInCniSpec(cniConfFilePath string, cidr string) error

Types

type Broadcaster

type Broadcaster struct {
	// contains filtered or unexported fields
}

func NewBroadcaster

func NewBroadcaster() *Broadcaster

func (*Broadcaster) Add

func (b *Broadcaster) Add(listener Listener)

func (*Broadcaster) Notify

func (b *Broadcaster) Notify(instance interface{})

type Listener

type Listener interface {
	OnUpdate(instance interface{})
}

type ListenerFunc

type ListenerFunc func(instance interface{})

func (ListenerFunc) OnUpdate

func (f ListenerFunc) OnUpdate(instance interface{})

Jump to

Keyboard shortcuts

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