kubernetes/pkg/kubelet/apis/podresources/testing/pods_provider.go

type MockPodsProvider

type MockPodsProvider_Expecter

func (_m *MockPodsProvider) EXPECT() *MockPodsProvider_Expecter {}

// GetPodByName provides a mock function with given fields: namespace, name
func (_m *MockPodsProvider) GetPodByName(namespace string, name string) (*v1.Pod, bool) {}

type MockPodsProvider_GetPodByName_Call

// GetPodByName is a helper method to define mock.On call
//   - namespace string
//   - name string
func (_e *MockPodsProvider_Expecter) GetPodByName(namespace interface{}

func (_c *MockPodsProvider_GetPodByName_Call) Run(run func(namespace string, name string)) *MockPodsProvider_GetPodByName_Call {}

func (_c *MockPodsProvider_GetPodByName_Call) Return(_a0 *v1.Pod, _a1 bool) *MockPodsProvider_GetPodByName_Call {}

func (_c *MockPodsProvider_GetPodByName_Call) RunAndReturn(run func(string, string) (*v1.Pod, bool)) *MockPodsProvider_GetPodByName_Call {}

// GetPods provides a mock function with given fields:
func (_m *MockPodsProvider) GetPods() []*v1.Pod {}

type MockPodsProvider_GetPods_Call

// GetPods is a helper method to define mock.On call
func (_e *MockPodsProvider_Expecter) GetPods() *MockPodsProvider_GetPods_Call {}

func (_c *MockPodsProvider_GetPods_Call) Run(run func()) *MockPodsProvider_GetPods_Call {}

func (_c *MockPodsProvider_GetPods_Call) Return(_a0 []*v1.Pod) *MockPodsProvider_GetPods_Call {}

func (_c *MockPodsProvider_GetPods_Call) RunAndReturn(run func() []*v1.Pod) *MockPodsProvider_GetPods_Call {}

// NewMockPodsProvider creates a new instance of MockPodsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockPodsProvider(t interface {}