Documentation ¶
Index ¶
- type Interface
- type Manager
- type MockInterface
- func (_m *MockInterface) Create(ctx context.Context, project string, service string, ...) error
- func (_m *MockInterface) Delete(ctx context.Context, project string, service string, topic string) error
- func (_m *MockInterface) Get(ctx context.Context, project string, service string, topic string) (*aiven.KafkaTopic, error)
- func (_m *MockInterface) List(ctx context.Context, project string, service string) ([]*aiven.KafkaListTopic, error)
- func (_m *MockInterface) Update(ctx context.Context, project string, service string, topic string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Get(ctx context.Context, project, service, topic string) (*aiven.KafkaTopic, error) List(ctx context.Context, project, service string) ([]*aiven.KafkaListTopic, error) Create(ctx context.Context, project, service string, req aiven.CreateKafkaTopicRequest) error Update(ctx context.Context, project, service, topic string, req aiven.UpdateKafkaTopicRequest) error Delete(ctx context.Context, project, service, topic string) error }
type Manager ¶
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t interface { mock.TestingT Cleanup(func()) }) *MockInterface
NewMockInterface creates a new instance of MockInterface. 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 (*MockInterface) Create ¶
func (_m *MockInterface) Create(ctx context.Context, project string, service string, req aiven.CreateKafkaTopicRequest) error
Create provides a mock function with given fields: ctx, project, service, req
func (*MockInterface) Delete ¶
func (_m *MockInterface) Delete(ctx context.Context, project string, service string, topic string) error
Delete provides a mock function with given fields: ctx, project, service, topic
func (*MockInterface) Get ¶
func (_m *MockInterface) Get(ctx context.Context, project string, service string, topic string) (*aiven.KafkaTopic, error)
Get provides a mock function with given fields: ctx, project, service, topic
func (*MockInterface) List ¶
func (_m *MockInterface) List(ctx context.Context, project string, service string) ([]*aiven.KafkaListTopic, error)
List provides a mock function with given fields: ctx, project, service
Click to show internal directories.
Click to hide internal directories.