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.
Click to show internal directories.
Click to hide internal directories.