Documentation ¶
Index ¶
- func EnsureCIDR(cidr string) *net.IPNet
- func NewFakePod(name string, netAnnotation string, defaultNetAnnotation string) *v1.Pod
- type FakeKubeClient
- func (f *FakeKubeClient) AddNetConfig(namespace, name, data string)
- func (f *FakeKubeClient) AddNetFile(namespace, name, filePath, fileData string)
- func (f *FakeKubeClient) AddPod(pod *v1.Pod)
- func (f *FakeKubeClient) DeletePod(pod *v1.Pod)
- func (f *FakeKubeClient) GetPod(namespace, name string) (*v1.Pod, error)
- func (f *FakeKubeClient) GetRawWithPath(path string) ([]byte, error)
- func (f *FakeKubeClient) UpdatePodStatus(pod *v1.Pod) (*v1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCIDR ¶
Types ¶
type FakeKubeClient ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.