contiv

package
v0.0.0-...-792cabc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContiv

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

MockContiv is a mock for the Contiv Plugin.

func NewMockContiv

func NewMockContiv() *MockContiv

NewMockContiv is a constructor for MockContiv.

func (*MockContiv) GetIfName

func (mc *MockContiv) GetIfName(podNamespace string, podName string) (name string, exists bool)

GetIfName returns pod's interface name as set previously using SetPodIfName.

func (*MockContiv) SetPodIfName

func (mc *MockContiv) SetPodIfName(pod podmodel.ID, ifName string)

SetPodIfName allows to create a fake association beetween a pod and an interface.

Jump to

Keyboard shortcuts

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