testing

package
v2.0.0-...-589877b Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCIDR

func EnsureCIDR(cidr string) *net.IPNet

func NewFakePod

func NewFakePod(name string, netAnnotation string) *v1.Pod

Types

type FakeKubeClient

type FakeKubeClient struct {
	PodCount int

	NetCount int
	// contains filtered or unexported fields
}

func NewFakeKubeClient

func NewFakeKubeClient() *FakeKubeClient

func (*FakeKubeClient) AddNetConfig

func (f *FakeKubeClient) AddNetConfig(namespace, name, data string)

func (*FakeKubeClient) AddNetFile

func (f *FakeKubeClient) AddNetFile(namespace, name, filePath, fileData string)

func (*FakeKubeClient) AddPod

func (f *FakeKubeClient) AddPod(pod *v1.Pod)

func (*FakeKubeClient) GetPod

func (f *FakeKubeClient) GetPod(namespace, name string) (*v1.Pod, error)

func (*FakeKubeClient) GetRawWithPath

func (f *FakeKubeClient) GetRawWithPath(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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