opensearch

package
v0.0.0-...-a3e9065 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLManager

type ACLManager interface {
	Update(ctx context.Context, project, service string, req aiven.OpenSearchACLRequest) (*aiven.OpenSearchACLResponse, error)
	Get(ctx context.Context, project, service string) (*aiven.OpenSearchACLResponse, error)
}

type MockACLManager

type MockACLManager struct {
	mock.Mock
}

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 (*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

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

type MockACLManager_Get_Call struct {
	*mock.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 (*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

type MockACLManager_Update_Call

type MockACLManager_Update_Call struct {
	*mock.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 (*MockACLManager_Update_Call) Run

Jump to

Keyboard shortcuts

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