kubernetes: k8s.io/kubernetes/pkg/kubelet/pod/testing Index | Files

package testing

import "k8s.io/kubernetes/pkg/kubelet/pod/testing"

Code generated by mockery v1.0.0

Index

Package Files

fake_mirror_client.go mock_manager.go

func NewMockCheckpointManager Uses

func NewMockCheckpointManager() checkpointmanager.CheckpointManager

type FakeMirrorClient Uses

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

func NewFakeMirrorClient Uses

func NewFakeMirrorClient() *FakeMirrorClient

func (*FakeMirrorClient) CreateMirrorPod Uses

func (fmc *FakeMirrorClient) CreateMirrorPod(pod *v1.Pod) error

func (*FakeMirrorClient) DeleteMirrorPod Uses

func (fmc *FakeMirrorClient) DeleteMirrorPod(podFullName string, _ *types.UID) (bool, error)

TODO (Robert Krawitz): Implement UID checking

func (*FakeMirrorClient) GetCounts Uses

func (fmc *FakeMirrorClient) GetCounts(podFullName string) (int, int)

func (*FakeMirrorClient) GetPods Uses

func (fmc *FakeMirrorClient) GetPods() []string

func (*FakeMirrorClient) HasPod Uses

func (fmc *FakeMirrorClient) HasPod(podFullName string) bool

func (*FakeMirrorClient) NumOfPods Uses

func (fmc *FakeMirrorClient) NumOfPods() int

type MockCheckpointManager Uses

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

func (*MockCheckpointManager) CreateCheckpoint Uses

func (ckm *MockCheckpointManager) CreateCheckpoint(checkpointKey string, checkpoint checkpointmanager.Checkpoint) error

func (*MockCheckpointManager) GetCheckpoint Uses

func (ckm *MockCheckpointManager) GetCheckpoint(checkpointKey string, checkpoint checkpointmanager.Checkpoint) error

func (*MockCheckpointManager) ListCheckpoints Uses

func (ckm *MockCheckpointManager) ListCheckpoints() ([]string, error)

func (*MockCheckpointManager) RemoveCheckpoint Uses

func (ckm *MockCheckpointManager) RemoveCheckpoint(checkpointKey string) error

type MockManager Uses

type MockManager struct {
    mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func (*MockManager) AddPod Uses

func (_m *MockManager) AddPod(_a0 *v1.Pod)

AddPod provides a mock function with given fields: _a0

func (*MockManager) CreateMirrorPod Uses

func (_m *MockManager) CreateMirrorPod(_a0 *v1.Pod) error

CreateMirrorPod provides a mock function with given fields: _a0

func (*MockManager) DeleteMirrorPod Uses

func (_m *MockManager) DeleteMirrorPod(podFullName string, _ *types.UID) (bool, error)

DeleteMirrorPod provides a mock function with given fields: podFullName

func (*MockManager) DeleteOrphanedMirrorPods Uses

func (_m *MockManager) DeleteOrphanedMirrorPods()

DeleteOrphanedMirrorPods provides a mock function with given fields:

func (*MockManager) DeletePod Uses

func (_m *MockManager) DeletePod(_a0 *v1.Pod)

DeletePod provides a mock function with given fields: _a0

func (*MockManager) GetMirrorPodByPod Uses

func (_m *MockManager) GetMirrorPodByPod(_a0 *v1.Pod) (*v1.Pod, bool)

GetMirrorPodByPod provides a mock function with given fields: _a0

func (*MockManager) GetPodByFullName Uses

func (_m *MockManager) GetPodByFullName(podFullName string) (*v1.Pod, bool)

GetPodByFullName provides a mock function with given fields: podFullName

func (*MockManager) GetPodByMirrorPod Uses

func (_m *MockManager) GetPodByMirrorPod(_a0 *v1.Pod) (*v1.Pod, bool)

GetPodByMirrorPod provides a mock function with given fields: _a0

func (*MockManager) GetPodByName Uses

func (_m *MockManager) GetPodByName(namespace string, name string) (*v1.Pod, bool)

GetPodByName provides a mock function with given fields: namespace, name

func (*MockManager) GetPodByUID Uses

func (_m *MockManager) GetPodByUID(_a0 types.UID) (*v1.Pod, bool)

GetPodByUID provides a mock function with given fields: _a0

func (*MockManager) GetPods Uses

func (_m *MockManager) GetPods() []*v1.Pod

GetPods provides a mock function with given fields:

func (*MockManager) GetPodsAndMirrorPods Uses

func (_m *MockManager) GetPodsAndMirrorPods() ([]*v1.Pod, []*v1.Pod)

GetPodsAndMirrorPods provides a mock function with given fields:

func (*MockManager) GetUIDTranslations Uses

func (_m *MockManager) GetUIDTranslations() (map[kubelettypes.ResolvedPodUID]kubelettypes.MirrorPodUID, map[kubelettypes.MirrorPodUID]kubelettypes.ResolvedPodUID)

GetUIDTranslations provides a mock function with given fields:

func (*MockManager) IsMirrorPodOf Uses

func (_m *MockManager) IsMirrorPodOf(mirrorPod *v1.Pod, _a1 *v1.Pod) bool

IsMirrorPodOf provides a mock function with given fields: mirrorPod, _a1

func (*MockManager) SetPods Uses

func (_m *MockManager) SetPods(pods []*v1.Pod)

SetPods provides a mock function with given fields: pods

func (*MockManager) TranslatePodUID Uses

func (_m *MockManager) TranslatePodUID(uid types.UID) kubelettypes.ResolvedPodUID

TranslatePodUID provides a mock function with given fields: uid

func (*MockManager) UpdatePod Uses

func (_m *MockManager) UpdatePod(_a0 *v1.Pod)

UpdatePod provides a mock function with given fields: _a0

Package testing imports 9 packages (graph). Updated 2019-07-07. Refresh now. Tools for package owners.