Documentation ¶
Index ¶
- type Interface
- type Manager
- type MockInterface
- func (_m *MockInterface) Create(project string, service string, req aiven.CreateKafkaTopicRequest) error
- func (_m *MockInterface) Delete(project string, service string, topic string) error
- func (_m *MockInterface) Get(project string, service string, topic string) (*aiven.KafkaTopic, error)
- func (_m *MockInterface) List(project string, service string) ([]*aiven.KafkaListTopic, error)
- func (_m *MockInterface) Update(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(project, service, topic string) (*aiven.KafkaTopic, error) List(project, service string) ([]*aiven.KafkaListTopic, error) Create(project, service string, req aiven.CreateKafkaTopicRequest) error Update(project, service, topic string, req aiven.UpdateKafkaTopicRequest) error Delete(project, service, topic string) error }
type Manager ¶
type Manager struct { AivenTopics Interface Project string Service string Topic kafka_nais_io_v1.Topic Logger *log.Entry }
func (*Manager) Synchronize ¶
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(project string, service string, req aiven.CreateKafkaTopicRequest) error
Create provides a mock function with given fields: project, service, req
func (*MockInterface) Delete ¶
func (_m *MockInterface) Delete(project string, service string, topic string) error
Delete provides a mock function with given fields: project, service, topic
func (*MockInterface) Get ¶
func (_m *MockInterface) Get(project string, service string, topic string) (*aiven.KafkaTopic, error)
Get provides a mock function with given fields: project, service, topic
func (*MockInterface) List ¶
func (_m *MockInterface) List(project string, service string) ([]*aiven.KafkaListTopic, error)
List provides a mock function with given fields: project, service
func (*MockInterface) Update ¶
func (_m *MockInterface) Update(project string, service string, topic string, req aiven.UpdateKafkaTopicRequest) error
Update provides a mock function with given fields: project, service, topic, req