test

package
v0.0.0-...-aa771b6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBCache

type FakeBCache map[string]string

FakeBCache is a fake bridgecache.Cache for testing

func (FakeBCache) GetVMIDFromNode

func (c FakeBCache) GetVMIDFromNode(name string) string

GetVMIDFromNode returns the vmid from nodename

type FakeNodeListWatch

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

FakeNodeListWatch implements an in memory ListWatch for node, mainly for testing purpose

func NewFakeNodeListWatch

func NewFakeNodeListWatch() *FakeNodeListWatch

NewFakeNodeListWatch creates an instance of FakeNodeListWatch

func (*FakeNodeListWatch) Add

func (lw *FakeNodeListWatch) Add(obj *v1.Node)

Add adds a node to FakeNodeListWatch

func (*FakeNodeListWatch) Delete

func (lw *FakeNodeListWatch) Delete(obj *v1.Node)

Delete deletes a node from FakeNodeListWatch

func (*FakeNodeListWatch) List

List returns a list representation of objects. The ListOptions is ignored.

func (*FakeNodeListWatch) Update

func (lw *FakeNodeListWatch) Update(obj *v1.Node)

Update updates a node in FakeNodeListWatch

func (*FakeNodeListWatch) Watch

Watch returns a watcher. The ListOptions is ignored.

Jump to

Keyboard shortcuts

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