Documentation
¶
Index ¶
- type ACLManager
- type MockACLManager
- func (_m *MockACLManager) EXPECT() *MockACLManager_Expecter
- func (_m *MockACLManager) Get(ctx context.Context, project string, service string) (*aiven.OpenSearchACLResponse, error)
- func (_m *MockACLManager) Update(ctx context.Context, project string, service string, ...) (*aiven.OpenSearchACLResponse, error)
- type MockACLManager_Expecter
- type MockACLManager_Get_Call
- func (_c *MockACLManager_Get_Call) Return(_a0 *aiven.OpenSearchACLResponse, _a1 error) *MockACLManager_Get_Call
- func (_c *MockACLManager_Get_Call) Run(run func(ctx context.Context, project string, service string)) *MockACLManager_Get_Call
- func (_c *MockACLManager_Get_Call) RunAndReturn(...) *MockACLManager_Get_Call
- type MockACLManager_Update_Call
- func (_c *MockACLManager_Update_Call) Return(_a0 *aiven.OpenSearchACLResponse, _a1 error) *MockACLManager_Update_Call
- func (_c *MockACLManager_Update_Call) Run(run func(ctx context.Context, project string, service string, ...)) *MockACLManager_Update_Call
- func (_c *MockACLManager_Update_Call) RunAndReturn(...) *MockACLManager_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLManager ¶
type MockACLManager ¶
MockACLManager is an autogenerated mock type for the ACLManager type
func NewMockACLManager ¶
func NewMockACLManager(t interface { mock.TestingT Cleanup(func()) }) *MockACLManager
NewMockACLManager creates a new instance of MockACLManager. 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 (*MockACLManager) EXPECT ¶
func (_m *MockACLManager) EXPECT() *MockACLManager_Expecter
func (*MockACLManager) Get ¶
func (_m *MockACLManager) Get(ctx context.Context, project string, service string) (*aiven.OpenSearchACLResponse, error)
Get provides a mock function with given fields: ctx, project, service
func (*MockACLManager) Update ¶
func (_m *MockACLManager) Update(ctx context.Context, project string, service string, req aiven.OpenSearchACLRequest) (*aiven.OpenSearchACLResponse, error)
Update provides a mock function with given fields: ctx, project, service, req
type MockACLManager_Expecter ¶
type MockACLManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockACLManager_Expecter) Get ¶
func (_e *MockACLManager_Expecter) Get(ctx interface{}, project interface{}, service interface{}) *MockACLManager_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- project string
- service string
func (*MockACLManager_Expecter) Update ¶
func (_e *MockACLManager_Expecter) Update(ctx interface{}, project interface{}, service interface{}, req interface{}) *MockACLManager_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- project string
- service string
- req aiven.OpenSearchACLRequest
type MockACLManager_Get_Call ¶
MockACLManager_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockACLManager_Get_Call) Return ¶
func (_c *MockACLManager_Get_Call) Return(_a0 *aiven.OpenSearchACLResponse, _a1 error) *MockACLManager_Get_Call
func (*MockACLManager_Get_Call) Run ¶
func (_c *MockACLManager_Get_Call) Run(run func(ctx context.Context, project string, service string)) *MockACLManager_Get_Call
func (*MockACLManager_Get_Call) RunAndReturn ¶
func (_c *MockACLManager_Get_Call) RunAndReturn(run func(context.Context, string, string) (*aiven.OpenSearchACLResponse, error)) *MockACLManager_Get_Call
type MockACLManager_Update_Call ¶
MockACLManager_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockACLManager_Update_Call) Return ¶
func (_c *MockACLManager_Update_Call) Return(_a0 *aiven.OpenSearchACLResponse, _a1 error) *MockACLManager_Update_Call
func (*MockACLManager_Update_Call) Run ¶
func (_c *MockACLManager_Update_Call) Run(run func(ctx context.Context, project string, service string, req aiven.OpenSearchACLRequest)) *MockACLManager_Update_Call
func (*MockACLManager_Update_Call) RunAndReturn ¶
func (_c *MockACLManager_Update_Call) RunAndReturn(run func(context.Context, string, string, aiven.OpenSearchACLRequest) (*aiven.OpenSearchACLResponse, error)) *MockACLManager_Update_Call