Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: k8s.io/apiserver/pkg/authorization/authorizer (interfaces: Authorizer)
Generated by this command:
mockgen -destination=./mock/authorizer.go -package mock k8s.io/apiserver/pkg/authorization/authorizer Authorizer
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: k8s.io/apiserver/pkg/registry/rest (interfaces: StandardStorage,Storage,Responder)
Generated by this command:
mockgen -destination=./mock/storage.go -package mock k8s.io/apiserver/pkg/registry/rest StandardStorage,Storage,Responder
Package mock is a generated GoMock package.
Index ¶
- type MockAuthorizer
- type MockAuthorizerMockRecorder
- type MockResponder
- type MockResponderMockRecorder
- type MockStandardStorage
- func (m *MockStandardStorage) ConvertToTable(arg0 context.Context, arg1, arg2 runtime.Object) (*v1.Table, error)
- func (m *MockStandardStorage) Create(arg0 context.Context, arg1 runtime.Object, arg2 rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (m *MockStandardStorage) Delete(arg0 context.Context, arg1 string, arg2 rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (m *MockStandardStorage) DeleteCollection(arg0 context.Context, arg1 rest.ValidateObjectFunc, arg2 *v1.DeleteOptions, ...) (runtime.Object, error)
- func (m *MockStandardStorage) Destroy()
- func (m *MockStandardStorage) EXPECT() *MockStandardStorageMockRecorder
- func (m *MockStandardStorage) Get(arg0 context.Context, arg1 string, arg2 *v1.GetOptions) (runtime.Object, error)
- func (m *MockStandardStorage) List(arg0 context.Context, arg1 *internalversion.ListOptions) (runtime.Object, error)
- func (m *MockStandardStorage) New() runtime.Object
- func (m *MockStandardStorage) NewList() runtime.Object
- func (m *MockStandardStorage) Update(arg0 context.Context, arg1 string, arg2 rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (m *MockStandardStorage) Watch(arg0 context.Context, arg1 *internalversion.ListOptions) (watch.Interface, error)
- type MockStandardStorageMockRecorder
- func (mr *MockStandardStorageMockRecorder) ConvertToTable(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) Create(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) Delete(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) DeleteCollection(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) Destroy() *gomock.Call
- func (mr *MockStandardStorageMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) New() *gomock.Call
- func (mr *MockStandardStorageMockRecorder) NewList() *gomock.Call
- func (mr *MockStandardStorageMockRecorder) Update(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call
- func (mr *MockStandardStorageMockRecorder) Watch(arg0, arg1 any) *gomock.Call
- type MockStorage
- type MockStorageMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorizer ¶
type MockAuthorizer struct {
// contains filtered or unexported fields
}
MockAuthorizer is a mock of Authorizer interface.
func NewMockAuthorizer ¶
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer
NewMockAuthorizer creates a new mock instance.
func (*MockAuthorizer) Authorize ¶
func (m *MockAuthorizer) Authorize(arg0 context.Context, arg1 authorizer.Attributes) (authorizer.Decision, string, error)
Authorize mocks base method.
func (*MockAuthorizer) EXPECT ¶
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthorizerMockRecorder ¶
type MockAuthorizerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
type MockResponder ¶ added in v0.13.0
type MockResponder struct {
// contains filtered or unexported fields
}
MockResponder is a mock of Responder interface.
func NewMockResponder ¶ added in v0.13.0
func NewMockResponder(ctrl *gomock.Controller) *MockResponder
NewMockResponder creates a new mock instance.
func (*MockResponder) EXPECT ¶ added in v0.13.0
func (m *MockResponder) EXPECT() *MockResponderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResponder) Error ¶ added in v0.13.0
func (m *MockResponder) Error(arg0 error)
Error mocks base method.
type MockResponderMockRecorder ¶ added in v0.13.0
type MockResponderMockRecorder struct {
// contains filtered or unexported fields
}
MockResponderMockRecorder is the mock recorder for MockResponder.
type MockStandardStorage ¶
type MockStandardStorage struct {
// contains filtered or unexported fields
}
MockStandardStorage is a mock of StandardStorage interface.
func NewMockStandardStorage ¶
func NewMockStandardStorage(ctrl *gomock.Controller) *MockStandardStorage
NewMockStandardStorage creates a new mock instance.
func (*MockStandardStorage) ConvertToTable ¶
func (m *MockStandardStorage) ConvertToTable(arg0 context.Context, arg1, arg2 runtime.Object) (*v1.Table, error)
ConvertToTable mocks base method.
func (*MockStandardStorage) Create ¶
func (m *MockStandardStorage) Create(arg0 context.Context, arg1 runtime.Object, arg2 rest.ValidateObjectFunc, arg3 *v1.CreateOptions) (runtime.Object, error)
Create mocks base method.
func (*MockStandardStorage) Delete ¶
func (m *MockStandardStorage) Delete(arg0 context.Context, arg1 string, arg2 rest.ValidateObjectFunc, arg3 *v1.DeleteOptions) (runtime.Object, bool, error)
Delete mocks base method.
func (*MockStandardStorage) DeleteCollection ¶
func (m *MockStandardStorage) DeleteCollection(arg0 context.Context, arg1 rest.ValidateObjectFunc, arg2 *v1.DeleteOptions, arg3 *internalversion.ListOptions) (runtime.Object, error)
DeleteCollection mocks base method.
func (*MockStandardStorage) Destroy ¶
func (m *MockStandardStorage) Destroy()
Destroy mocks base method.
func (*MockStandardStorage) EXPECT ¶
func (m *MockStandardStorage) EXPECT() *MockStandardStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStandardStorage) Get ¶
func (m *MockStandardStorage) Get(arg0 context.Context, arg1 string, arg2 *v1.GetOptions) (runtime.Object, error)
Get mocks base method.
func (*MockStandardStorage) List ¶
func (m *MockStandardStorage) List(arg0 context.Context, arg1 *internalversion.ListOptions) (runtime.Object, error)
List mocks base method.
func (*MockStandardStorage) New ¶
func (m *MockStandardStorage) New() runtime.Object
New mocks base method.
func (*MockStandardStorage) NewList ¶
func (m *MockStandardStorage) NewList() runtime.Object
NewList mocks base method.
func (*MockStandardStorage) Update ¶
func (m *MockStandardStorage) Update(arg0 context.Context, arg1 string, arg2 rest.UpdatedObjectInfo, arg3 rest.ValidateObjectFunc, arg4 rest.ValidateObjectUpdateFunc, arg5 bool, arg6 *v1.UpdateOptions) (runtime.Object, bool, error)
Update mocks base method.
func (*MockStandardStorage) Watch ¶
func (m *MockStandardStorage) Watch(arg0 context.Context, arg1 *internalversion.ListOptions) (watch.Interface, error)
Watch mocks base method.
type MockStandardStorageMockRecorder ¶
type MockStandardStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStandardStorageMockRecorder is the mock recorder for MockStandardStorage.
func (*MockStandardStorageMockRecorder) ConvertToTable ¶
func (mr *MockStandardStorageMockRecorder) ConvertToTable(arg0, arg1, arg2 any) *gomock.Call
ConvertToTable indicates an expected call of ConvertToTable.
func (*MockStandardStorageMockRecorder) Create ¶
func (mr *MockStandardStorageMockRecorder) Create(arg0, arg1, arg2, arg3 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockStandardStorageMockRecorder) Delete ¶
func (mr *MockStandardStorageMockRecorder) Delete(arg0, arg1, arg2, arg3 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStandardStorageMockRecorder) DeleteCollection ¶
func (mr *MockStandardStorageMockRecorder) DeleteCollection(arg0, arg1, arg2, arg3 any) *gomock.Call
DeleteCollection indicates an expected call of DeleteCollection.
func (*MockStandardStorageMockRecorder) Destroy ¶
func (mr *MockStandardStorageMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockStandardStorageMockRecorder) Get ¶
func (mr *MockStandardStorageMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockStandardStorageMockRecorder) List ¶
func (mr *MockStandardStorageMockRecorder) List(arg0, arg1 any) *gomock.Call
List indicates an expected call of List.
func (*MockStandardStorageMockRecorder) New ¶
func (mr *MockStandardStorageMockRecorder) New() *gomock.Call
New indicates an expected call of New.
func (*MockStandardStorageMockRecorder) NewList ¶
func (mr *MockStandardStorageMockRecorder) NewList() *gomock.Call
NewList indicates an expected call of NewList.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Destroy ¶
func (mr *MockStorageMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockStorageMockRecorder) New ¶
func (mr *MockStorageMockRecorder) New() *gomock.Call
New indicates an expected call of New.