Documentation ¶
Overview ¶
Package mock_k8s is a generated GoMock package.
Index ¶
- type MockK8sWrapper
- func (m *MockK8sWrapper) AddLabelToManageNode(arg0 *v10.Node, arg1, arg2 string) (bool, error)
- func (m *MockK8sWrapper) AdvertiseCapacityIfNotSet(arg0, arg1 string, arg2 int) error
- func (m *MockK8sWrapper) BroadcastEvent(arg0 runtime.Object, arg1, arg2, arg3 string)
- func (m *MockK8sWrapper) CreateCNINode(arg0 *v10.Node) error
- func (m *MockK8sWrapper) EXPECT() *MockK8sWrapperMockRecorder
- func (m *MockK8sWrapper) GetCNINode(arg0 types.NamespacedName) (*v1alpha10.CNINode, error)
- func (m *MockK8sWrapper) GetConfigMap(arg0, arg1 string) (*v10.ConfigMap, error)
- func (m *MockK8sWrapper) GetDaemonSet(arg0, arg1 string) (*v1.DaemonSet, error)
- func (m *MockK8sWrapper) GetDeployment(arg0, arg1 string) (*v1.Deployment, error)
- func (m *MockK8sWrapper) GetENIConfig(arg0 string) (*v1alpha1.ENIConfig, error)
- func (m *MockK8sWrapper) GetNode(arg0 string) (*v10.Node, error)
- func (m *MockK8sWrapper) ListEvents(arg0 []client.ListOption) (*v11.EventList, error)
- func (m *MockK8sWrapper) ListNodes() (*v10.NodeList, error)
- type MockK8sWrapperMockRecorder
- func (mr *MockK8sWrapperMockRecorder) AddLabelToManageNode(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) AdvertiseCapacityIfNotSet(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) BroadcastEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) CreateCNINode(arg0 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) GetCNINode(arg0 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) GetConfigMap(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) GetDaemonSet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) GetDeployment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) GetENIConfig(arg0 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) GetNode(arg0 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) ListEvents(arg0 interface{}) *gomock.Call
- func (mr *MockK8sWrapperMockRecorder) ListNodes() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockK8sWrapper ¶
type MockK8sWrapper struct {
// contains filtered or unexported fields
}
MockK8sWrapper is a mock of K8sWrapper interface.
func NewMockK8sWrapper ¶
func NewMockK8sWrapper(ctrl *gomock.Controller) *MockK8sWrapper
NewMockK8sWrapper creates a new mock instance.
func (*MockK8sWrapper) AddLabelToManageNode ¶ added in v1.1.5
AddLabelToManageNode mocks base method.
func (*MockK8sWrapper) AdvertiseCapacityIfNotSet ¶
func (m *MockK8sWrapper) AdvertiseCapacityIfNotSet(arg0, arg1 string, arg2 int) error
AdvertiseCapacityIfNotSet mocks base method.
func (*MockK8sWrapper) BroadcastEvent ¶ added in v1.0.7
func (m *MockK8sWrapper) BroadcastEvent(arg0 runtime.Object, arg1, arg2, arg3 string)
BroadcastEvent mocks base method.
func (*MockK8sWrapper) CreateCNINode ¶ added in v1.1.8
func (m *MockK8sWrapper) CreateCNINode(arg0 *v10.Node) error
CreateCNINode mocks base method.
func (*MockK8sWrapper) EXPECT ¶
func (m *MockK8sWrapper) EXPECT() *MockK8sWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockK8sWrapper) GetCNINode ¶ added in v1.1.8
func (m *MockK8sWrapper) GetCNINode(arg0 types.NamespacedName) (*v1alpha10.CNINode, error)
GetCNINode mocks base method.
func (*MockK8sWrapper) GetConfigMap ¶ added in v1.1.0
func (m *MockK8sWrapper) GetConfigMap(arg0, arg1 string) (*v10.ConfigMap, error)
GetConfigMap mocks base method.
func (*MockK8sWrapper) GetDaemonSet ¶ added in v1.1.3
func (m *MockK8sWrapper) GetDaemonSet(arg0, arg1 string) (*v1.DaemonSet, error)
GetDaemonSet mocks base method.
func (*MockK8sWrapper) GetDeployment ¶ added in v1.1.0
func (m *MockK8sWrapper) GetDeployment(arg0, arg1 string) (*v1.Deployment, error)
GetDeployment mocks base method.
func (*MockK8sWrapper) GetENIConfig ¶
func (m *MockK8sWrapper) GetENIConfig(arg0 string) (*v1alpha1.ENIConfig, error)
GetENIConfig mocks base method.
func (*MockK8sWrapper) GetNode ¶ added in v1.0.7
func (m *MockK8sWrapper) GetNode(arg0 string) (*v10.Node, error)
GetNode mocks base method.
func (*MockK8sWrapper) ListEvents ¶ added in v1.1.5
func (m *MockK8sWrapper) ListEvents(arg0 []client.ListOption) (*v11.EventList, error)
ListEvents mocks base method.
type MockK8sWrapperMockRecorder ¶
type MockK8sWrapperMockRecorder struct {
// contains filtered or unexported fields
}
MockK8sWrapperMockRecorder is the mock recorder for MockK8sWrapper.
func (*MockK8sWrapperMockRecorder) AddLabelToManageNode ¶ added in v1.1.5
func (mr *MockK8sWrapperMockRecorder) AddLabelToManageNode(arg0, arg1, arg2 interface{}) *gomock.Call
AddLabelToManageNode indicates an expected call of AddLabelToManageNode.
func (*MockK8sWrapperMockRecorder) AdvertiseCapacityIfNotSet ¶
func (mr *MockK8sWrapperMockRecorder) AdvertiseCapacityIfNotSet(arg0, arg1, arg2 interface{}) *gomock.Call
AdvertiseCapacityIfNotSet indicates an expected call of AdvertiseCapacityIfNotSet.
func (*MockK8sWrapperMockRecorder) BroadcastEvent ¶ added in v1.0.7
func (mr *MockK8sWrapperMockRecorder) BroadcastEvent(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
BroadcastEvent indicates an expected call of BroadcastEvent.
func (*MockK8sWrapperMockRecorder) CreateCNINode ¶ added in v1.1.8
func (mr *MockK8sWrapperMockRecorder) CreateCNINode(arg0 interface{}) *gomock.Call
CreateCNINode indicates an expected call of CreateCNINode.
func (*MockK8sWrapperMockRecorder) GetCNINode ¶ added in v1.1.8
func (mr *MockK8sWrapperMockRecorder) GetCNINode(arg0 interface{}) *gomock.Call
GetCNINode indicates an expected call of GetCNINode.
func (*MockK8sWrapperMockRecorder) GetConfigMap ¶ added in v1.1.0
func (mr *MockK8sWrapperMockRecorder) GetConfigMap(arg0, arg1 interface{}) *gomock.Call
GetConfigMap indicates an expected call of GetConfigMap.
func (*MockK8sWrapperMockRecorder) GetDaemonSet ¶ added in v1.1.3
func (mr *MockK8sWrapperMockRecorder) GetDaemonSet(arg0, arg1 interface{}) *gomock.Call
GetDaemonSet indicates an expected call of GetDaemonSet.
func (*MockK8sWrapperMockRecorder) GetDeployment ¶ added in v1.1.0
func (mr *MockK8sWrapperMockRecorder) GetDeployment(arg0, arg1 interface{}) *gomock.Call
GetDeployment indicates an expected call of GetDeployment.
func (*MockK8sWrapperMockRecorder) GetENIConfig ¶
func (mr *MockK8sWrapperMockRecorder) GetENIConfig(arg0 interface{}) *gomock.Call
GetENIConfig indicates an expected call of GetENIConfig.
func (*MockK8sWrapperMockRecorder) GetNode ¶ added in v1.0.7
func (mr *MockK8sWrapperMockRecorder) GetNode(arg0 interface{}) *gomock.Call
GetNode indicates an expected call of GetNode.
func (*MockK8sWrapperMockRecorder) ListEvents ¶ added in v1.1.5
func (mr *MockK8sWrapperMockRecorder) ListEvents(arg0 interface{}) *gomock.Call
ListEvents indicates an expected call of ListEvents.
func (*MockK8sWrapperMockRecorder) ListNodes ¶ added in v1.1.0
func (mr *MockK8sWrapperMockRecorder) ListNodes() *gomock.Call
ListNodes indicates an expected call of ListNodes.