Documentation
¶
Index ¶
- type MockEC2Service
- type MockKafkaAdmin
- func (m *MockKafkaAdmin) Close() error
- func (m *MockKafkaAdmin) DescribeConfig() ([]sarama.ConfigEntry, error)
- func (m *MockKafkaAdmin) GetAllMessagesWithKeyFilter(topicName string, keyPrefix string) (map[string]string, error)
- func (m *MockKafkaAdmin) GetClusterKafkaMetadata() (*client.ClusterKafkaMetadata, error)
- func (m *MockKafkaAdmin) GetConnectorStatusMessages(topicName string) (map[string]string, error)
- func (m *MockKafkaAdmin) ListAcls() ([]sarama.ResourceAcls, error)
- func (m *MockKafkaAdmin) ListTopicsWithConfigs() (map[string]sarama.TopicDetail, error)
- type MockMSKService
- func (m *MockMSKService) DescribeClusterV2(ctx context.Context, clusterArn string) (*kafka.DescribeClusterV2Output, error)
- func (m *MockMSKService) GetBootstrapBrokers(ctx context.Context, clusterArn string) (*kafka.GetBootstrapBrokersOutput, error)
- func (m *MockMSKService) GetClusterPolicy(ctx context.Context, clusterArn string) (*kafka.GetClusterPolicyOutput, error)
- func (m *MockMSKService) GetCompatibleKafkaVersions(ctx context.Context, clusterArn string) (*kafka.GetCompatibleKafkaVersionsOutput, error)
- func (m *MockMSKService) ListClientVpcConnections(ctx context.Context, clusterArn string) ([]kafkatypes.ClientVpcConnection, error)
- func (m *MockMSKService) ListClusterOperationsV2(ctx context.Context, clusterArn string) ([]kafkatypes.ClusterOperationV2Summary, error)
- func (m *MockMSKService) ListNodes(ctx context.Context, clusterArn string) ([]kafkatypes.NodeInfo, error)
- func (m *MockMSKService) ListScramSecrets(ctx context.Context, clusterArn string) ([]string, error)
- func (m *MockMSKService) ParseBrokerAddresses(brokers kafka.GetBootstrapBrokersOutput, authType types.AuthType) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEC2Service ¶ added in v0.2.2
type MockEC2Service struct {
DescribeSubnetsFunc func(ctx context.Context, subnetIds []string) (*ec2.DescribeSubnetsOutput, error)
}
MockEC2Service is a mock implementation of the EC2Service interface
func (*MockEC2Service) DescribeSubnets ¶ added in v0.2.2
func (m *MockEC2Service) DescribeSubnets(ctx context.Context, subnetIds []string) (*ec2.DescribeSubnetsOutput, error)
type MockKafkaAdmin ¶
type MockKafkaAdmin struct {
ListTopicsWithConfigsFunc func() (map[string]sarama.TopicDetail, error)
GetClusterKafkaMetadataFunc func() (*client.ClusterKafkaMetadata, error)
DescribeConfigFunc func() ([]sarama.ConfigEntry, error)
ListAclsFunc func() ([]sarama.ResourceAcls, error)
GetAllMessagesWithKeyFilterFunc func(topicName string, keyPrefix string) (map[string]string, error)
GetConnectorStatusMessagesFunc func(topicName string) (map[string]string, error)
CloseFunc func() error
}
MockKafkaAdmin is a mock implementation of the KafkaAdmin interface
func (*MockKafkaAdmin) Close ¶
func (m *MockKafkaAdmin) Close() error
func (*MockKafkaAdmin) DescribeConfig ¶
func (m *MockKafkaAdmin) DescribeConfig() ([]sarama.ConfigEntry, error)
func (*MockKafkaAdmin) GetAllMessagesWithKeyFilter ¶ added in v0.4.2
func (*MockKafkaAdmin) GetClusterKafkaMetadata ¶
func (m *MockKafkaAdmin) GetClusterKafkaMetadata() (*client.ClusterKafkaMetadata, error)
func (*MockKafkaAdmin) GetConnectorStatusMessages ¶ added in v0.4.2
func (m *MockKafkaAdmin) GetConnectorStatusMessages(topicName string) (map[string]string, error)
func (*MockKafkaAdmin) ListAcls ¶ added in v0.1.3
func (m *MockKafkaAdmin) ListAcls() ([]sarama.ResourceAcls, error)
func (*MockKafkaAdmin) ListTopicsWithConfigs ¶ added in v0.3.4
func (m *MockKafkaAdmin) ListTopicsWithConfigs() (map[string]sarama.TopicDetail, error)
type MockMSKService ¶ added in v0.2.1
type MockMSKService struct {
GetBootstrapBrokersFunc func(ctx context.Context, clusterArn string) (*kafka.GetBootstrapBrokersOutput, error)
ParseBrokerAddressesFunc func(brokers kafka.GetBootstrapBrokersOutput, authType types.AuthType) ([]string, error)
GetCompatibleKafkaVersionsFunc func(ctx context.Context, clusterArn string) (*kafka.GetCompatibleKafkaVersionsOutput, error)
GetClusterPolicyFunc func(ctx context.Context, clusterArn string) (*kafka.GetClusterPolicyOutput, error)
DescribeClusterV2Func func(ctx context.Context, clusterArn string) (*kafka.DescribeClusterV2Output, error)
ListClientVpcConnectionsFunc func(ctx context.Context, clusterArn string) ([]kafkatypes.ClientVpcConnection, error)
ListClusterOperationsV2Func func(ctx context.Context, clusterArn string) ([]kafkatypes.ClusterOperationV2Summary, error)
ListNodesFunc func(ctx context.Context, clusterArn string) ([]kafkatypes.NodeInfo, error)
ListScramSecretsFunc func(ctx context.Context, clusterArn string) ([]string, error)
}
MockMSKService is a mock implementation of the MSKService interface
func (*MockMSKService) DescribeClusterV2 ¶ added in v0.2.1
func (m *MockMSKService) DescribeClusterV2(ctx context.Context, clusterArn string) (*kafka.DescribeClusterV2Output, error)
func (*MockMSKService) GetBootstrapBrokers ¶ added in v0.2.1
func (m *MockMSKService) GetBootstrapBrokers(ctx context.Context, clusterArn string) (*kafka.GetBootstrapBrokersOutput, error)
func (*MockMSKService) GetClusterPolicy ¶ added in v0.2.1
func (m *MockMSKService) GetClusterPolicy(ctx context.Context, clusterArn string) (*kafka.GetClusterPolicyOutput, error)
func (*MockMSKService) GetCompatibleKafkaVersions ¶ added in v0.2.1
func (m *MockMSKService) GetCompatibleKafkaVersions(ctx context.Context, clusterArn string) (*kafka.GetCompatibleKafkaVersionsOutput, error)
func (*MockMSKService) ListClientVpcConnections ¶ added in v0.2.1
func (m *MockMSKService) ListClientVpcConnections(ctx context.Context, clusterArn string) ([]kafkatypes.ClientVpcConnection, error)
func (*MockMSKService) ListClusterOperationsV2 ¶ added in v0.2.1
func (m *MockMSKService) ListClusterOperationsV2(ctx context.Context, clusterArn string) ([]kafkatypes.ClusterOperationV2Summary, error)
func (*MockMSKService) ListNodes ¶ added in v0.2.1
func (m *MockMSKService) ListNodes(ctx context.Context, clusterArn string) ([]kafkatypes.NodeInfo, error)
func (*MockMSKService) ListScramSecrets ¶ added in v0.2.1
func (*MockMSKService) ParseBrokerAddresses ¶ added in v0.2.1
func (m *MockMSKService) ParseBrokerAddresses(brokers kafka.GetBootstrapBrokersOutput, authType types.AuthType) ([]string, error)
Click to show internal directories.
Click to hide internal directories.