Documentation
¶
Overview ¶
Package mock_common_plugins is a generated GoMock package.
Index ¶
- type MockK8sPlugin
- func (m *MockK8sPlugin) Allocate(ctx context.Context, pod *v1.Pod, hostname string, state common.State) error
- func (m *MockK8sPlugin) Bind(ctx context.Context, pod *v1.Pod, request *v1alpha2.BindRequest, ...) error
- func (m *MockK8sPlugin) EXPECT() *MockK8sPluginMockRecorder
- func (m *MockK8sPlugin) Filter(ctx context.Context, pod *v1.Pod, node *v1.Node, state common.State) error
- func (m *MockK8sPlugin) IsRelevant(pod *v1.Pod) bool
- func (m *MockK8sPlugin) Name() string
- func (m *MockK8sPlugin) PostBind(ctx context.Context, pod *v1.Pod, hostname string, state common.State)
- func (m *MockK8sPlugin) PreFilter(ctx context.Context, pod *v1.Pod, state common.State) (error, bool)
- func (m *MockK8sPlugin) UnAllocate(ctx context.Context, pod *v1.Pod, hostname string, state common.State)
- type MockK8sPluginMockRecorder
- func (mr *MockK8sPluginMockRecorder) Allocate(ctx, pod, hostname, state any) *gomock.Call
- func (mr *MockK8sPluginMockRecorder) Bind(ctx, pod, request, state any) *gomock.Call
- func (mr *MockK8sPluginMockRecorder) Filter(ctx, pod, node, state any) *gomock.Call
- func (mr *MockK8sPluginMockRecorder) IsRelevant(pod any) *gomock.Call
- func (mr *MockK8sPluginMockRecorder) Name() *gomock.Call
- func (mr *MockK8sPluginMockRecorder) PostBind(ctx, pod, hostname, state any) *gomock.Call
- func (mr *MockK8sPluginMockRecorder) PreFilter(ctx, pod, state any) *gomock.Call
- func (mr *MockK8sPluginMockRecorder) UnAllocate(ctx, pod, hostname, state any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockK8sPlugin ¶
type MockK8sPlugin struct {
// contains filtered or unexported fields
}
MockK8sPlugin is a mock of K8sPlugin interface.
func NewMockK8sPlugin ¶
func NewMockK8sPlugin(ctrl *gomock.Controller) *MockK8sPlugin
NewMockK8sPlugin creates a new mock instance.
func (*MockK8sPlugin) Allocate ¶
func (m *MockK8sPlugin) Allocate(ctx context.Context, pod *v1.Pod, hostname string, state common.State) error
Allocate mocks base method.
func (*MockK8sPlugin) Bind ¶
func (m *MockK8sPlugin) Bind(ctx context.Context, pod *v1.Pod, request *v1alpha2.BindRequest, state common.State) error
Bind mocks base method.
func (*MockK8sPlugin) EXPECT ¶
func (m *MockK8sPlugin) EXPECT() *MockK8sPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockK8sPlugin) Filter ¶
func (m *MockK8sPlugin) Filter(ctx context.Context, pod *v1.Pod, node *v1.Node, state common.State) error
Filter mocks base method.
func (*MockK8sPlugin) IsRelevant ¶
func (m *MockK8sPlugin) IsRelevant(pod *v1.Pod) bool
IsRelevant mocks base method.
func (*MockK8sPlugin) PostBind ¶
func (m *MockK8sPlugin) PostBind(ctx context.Context, pod *v1.Pod, hostname string, state common.State)
PostBind mocks base method.
func (*MockK8sPlugin) PreFilter ¶
func (m *MockK8sPlugin) PreFilter(ctx context.Context, pod *v1.Pod, state common.State) (error, bool)
PreFilter mocks base method.
func (*MockK8sPlugin) UnAllocate ¶
func (m *MockK8sPlugin) UnAllocate(ctx context.Context, pod *v1.Pod, hostname string, state common.State)
UnAllocate mocks base method.
type MockK8sPluginMockRecorder ¶
type MockK8sPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockK8sPluginMockRecorder is the mock recorder for MockK8sPlugin.
func (*MockK8sPluginMockRecorder) Allocate ¶
func (mr *MockK8sPluginMockRecorder) Allocate(ctx, pod, hostname, state any) *gomock.Call
Allocate indicates an expected call of Allocate.
func (*MockK8sPluginMockRecorder) Bind ¶
func (mr *MockK8sPluginMockRecorder) Bind(ctx, pod, request, state any) *gomock.Call
Bind indicates an expected call of Bind.
func (*MockK8sPluginMockRecorder) Filter ¶
func (mr *MockK8sPluginMockRecorder) Filter(ctx, pod, node, state any) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockK8sPluginMockRecorder) IsRelevant ¶
func (mr *MockK8sPluginMockRecorder) IsRelevant(pod any) *gomock.Call
IsRelevant indicates an expected call of IsRelevant.
func (*MockK8sPluginMockRecorder) Name ¶
func (mr *MockK8sPluginMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockK8sPluginMockRecorder) PostBind ¶
func (mr *MockK8sPluginMockRecorder) PostBind(ctx, pod, hostname, state any) *gomock.Call
PostBind indicates an expected call of PostBind.
func (*MockK8sPluginMockRecorder) PreFilter ¶
func (mr *MockK8sPluginMockRecorder) PreFilter(ctx, pod, state any) *gomock.Call
PreFilter indicates an expected call of PreFilter.
func (*MockK8sPluginMockRecorder) UnAllocate ¶
func (mr *MockK8sPluginMockRecorder) UnAllocate(ctx, pod, hostname, state any) *gomock.Call
UnAllocate indicates an expected call of UnAllocate.