mock_kubernetes

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_kubernetes is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) DeleteClusterRole

func (m *MockClient) DeleteClusterRole(role *v11.ClusterRole) error

DeleteClusterRole mocks base method

func (*MockClient) DeleteDaemonSet

func (m *MockClient) DeleteDaemonSet(ds *v1.DaemonSet) error

DeleteDaemonSet mocks base method

func (*MockClient) DeleteDeployment

func (m *MockClient) DeleteDeployment(ds *v1.Deployment) error

DeleteDeployment mocks base method

func (*MockClient) DeleteNode

func (m *MockClient) DeleteNode(name string) error

DeleteNode mocks base method

func (*MockClient) DeletePod

func (m *MockClient) DeletePod(pod *v10.Pod) error

DeletePod mocks base method

func (*MockClient) DeleteServiceAccount

func (m *MockClient) DeleteServiceAccount(sa *v10.ServiceAccount) error

DeleteServiceAccount mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClient) EvictPod

func (m *MockClient) EvictPod(pod *v10.Pod, policyGroupVersion string) error

EvictPod mocks base method

func (*MockClient) GetDaemonSet

func (m *MockClient) GetDaemonSet(namespace, name string) (*v1.DaemonSet, error)

GetDaemonSet mocks base method

func (*MockClient) GetDeployment

func (m *MockClient) GetDeployment(namespace, name string) (*v1.Deployment, error)

GetDeployment mocks base method

func (*MockClient) GetNode

func (m *MockClient) GetNode(name string) (*v10.Node, error)

GetNode mocks base method

func (*MockClient) ListAllPods

func (m *MockClient) ListAllPods() (*v10.PodList, error)

ListAllPods mocks base method

func (*MockClient) ListNodes

func (m *MockClient) ListNodes() (*v10.NodeList, error)

ListNodes mocks base method

func (*MockClient) ListNodesByOptions

func (m *MockClient) ListNodesByOptions(opts v12.ListOptions) (*v10.NodeList, error)

ListNodesByOptions mocks base method

func (*MockClient) ListPods

func (m *MockClient) ListPods(node *v10.Node) (*v10.PodList, error)

ListPods mocks base method

func (*MockClient) ListServiceAccounts

func (m *MockClient) ListServiceAccounts(namespace string) (*v10.ServiceAccountList, error)

ListServiceAccounts mocks base method

func (*MockClient) SupportEviction

func (m *MockClient) SupportEviction() (string, error)

SupportEviction mocks base method

func (*MockClient) UpdateDeployment

func (m *MockClient) UpdateDeployment(namespace string, deployment *v1.Deployment) (*v1.Deployment, error)

UpdateDeployment mocks base method

func (*MockClient) UpdateNode

func (m *MockClient) UpdateNode(node *v10.Node) (*v10.Node, error)

UpdateNode mocks base method

func (*MockClient) WaitForDelete

func (m *MockClient) WaitForDelete(logger *logrus.Entry, pods []v10.Pod, usingEviction bool) ([]v10.Pod, error)

WaitForDelete mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) DeleteClusterRole

func (mr *MockClientMockRecorder) DeleteClusterRole(role interface{}) *gomock.Call

DeleteClusterRole indicates an expected call of DeleteClusterRole

func (*MockClientMockRecorder) DeleteDaemonSet

func (mr *MockClientMockRecorder) DeleteDaemonSet(ds interface{}) *gomock.Call

DeleteDaemonSet indicates an expected call of DeleteDaemonSet

func (*MockClientMockRecorder) DeleteDeployment

func (mr *MockClientMockRecorder) DeleteDeployment(ds interface{}) *gomock.Call

DeleteDeployment indicates an expected call of DeleteDeployment

func (*MockClientMockRecorder) DeleteNode

func (mr *MockClientMockRecorder) DeleteNode(name interface{}) *gomock.Call

DeleteNode indicates an expected call of DeleteNode

func (*MockClientMockRecorder) DeletePod

func (mr *MockClientMockRecorder) DeletePod(pod interface{}) *gomock.Call

DeletePod indicates an expected call of DeletePod

func (*MockClientMockRecorder) DeleteServiceAccount

func (mr *MockClientMockRecorder) DeleteServiceAccount(sa interface{}) *gomock.Call

DeleteServiceAccount indicates an expected call of DeleteServiceAccount

func (*MockClientMockRecorder) EvictPod

func (mr *MockClientMockRecorder) EvictPod(pod, policyGroupVersion interface{}) *gomock.Call

EvictPod indicates an expected call of EvictPod

func (*MockClientMockRecorder) GetDaemonSet

func (mr *MockClientMockRecorder) GetDaemonSet(namespace, name interface{}) *gomock.Call

GetDaemonSet indicates an expected call of GetDaemonSet

func (*MockClientMockRecorder) GetDeployment

func (mr *MockClientMockRecorder) GetDeployment(namespace, name interface{}) *gomock.Call

GetDeployment indicates an expected call of GetDeployment

func (*MockClientMockRecorder) GetNode

func (mr *MockClientMockRecorder) GetNode(name interface{}) *gomock.Call

GetNode indicates an expected call of GetNode

func (*MockClientMockRecorder) ListAllPods

func (mr *MockClientMockRecorder) ListAllPods() *gomock.Call

ListAllPods indicates an expected call of ListAllPods

func (*MockClientMockRecorder) ListNodes

func (mr *MockClientMockRecorder) ListNodes() *gomock.Call

ListNodes indicates an expected call of ListNodes

func (*MockClientMockRecorder) ListNodesByOptions

func (mr *MockClientMockRecorder) ListNodesByOptions(opts interface{}) *gomock.Call

ListNodesByOptions indicates an expected call of ListNodesByOptions

func (*MockClientMockRecorder) ListPods

func (mr *MockClientMockRecorder) ListPods(node interface{}) *gomock.Call

ListPods indicates an expected call of ListPods

func (*MockClientMockRecorder) ListServiceAccounts

func (mr *MockClientMockRecorder) ListServiceAccounts(namespace interface{}) *gomock.Call

ListServiceAccounts indicates an expected call of ListServiceAccounts

func (*MockClientMockRecorder) SupportEviction

func (mr *MockClientMockRecorder) SupportEviction() *gomock.Call

SupportEviction indicates an expected call of SupportEviction

func (*MockClientMockRecorder) UpdateDeployment

func (mr *MockClientMockRecorder) UpdateDeployment(namespace, deployment interface{}) *gomock.Call

UpdateDeployment indicates an expected call of UpdateDeployment

func (*MockClientMockRecorder) UpdateNode

func (mr *MockClientMockRecorder) UpdateNode(node interface{}) *gomock.Call

UpdateNode indicates an expected call of UpdateNode

func (*MockClientMockRecorder) WaitForDelete

func (mr *MockClientMockRecorder) WaitForDelete(logger, pods, usingEviction interface{}) *gomock.Call

WaitForDelete indicates an expected call of WaitForDelete

type MockNodeLister

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

MockNodeLister is a mock of NodeLister interface

func NewMockNodeLister

func NewMockNodeLister(ctrl *gomock.Controller) *MockNodeLister

NewMockNodeLister creates a new mock instance

func (*MockNodeLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockNodeLister) ListNodes

func (m *MockNodeLister) ListNodes() (*v10.NodeList, error)

ListNodes mocks base method

type MockNodeListerMockRecorder

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

MockNodeListerMockRecorder is the mock recorder for MockNodeLister

func (*MockNodeListerMockRecorder) ListNodes

func (mr *MockNodeListerMockRecorder) ListNodes() *gomock.Call

ListNodes indicates an expected call of ListNodes

Jump to

Keyboard shortcuts

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