testing

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 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, defaultNetAnnotation 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) DeletePod added in v1.0.2

func (f *FakeKubeClient) DeletePod(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)

func (*FakeKubeClient) UpdatePodStatus

func (f *FakeKubeClient) UpdatePodStatus(pod *v1.Pod) (*v1.Pod, error)

Jump to

Keyboard shortcuts

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