mocks

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumerGroupScanner added in v0.9.1

type MockConsumerGroupScanner struct {
	ListGroupsWithTypeFunc func() ([]types.ConsumerGroupListing, error)
	DescribeGroupsFunc     func(groupIDs []string) ([]*sarama.GroupDescription, error)
	CoordinatorsFunc       func(groupIDs []string) map[string]string
	CloseFunc              func() error
}

MockConsumerGroupScanner is a mock implementation of the client.ConsumerGroupScanner interface

func (*MockConsumerGroupScanner) Close added in v0.9.1

func (m *MockConsumerGroupScanner) Close() error

func (*MockConsumerGroupScanner) Coordinators added in v0.9.1

func (m *MockConsumerGroupScanner) Coordinators(groupIDs []string) map[string]string

func (*MockConsumerGroupScanner) DescribeGroups added in v0.9.1

func (m *MockConsumerGroupScanner) DescribeGroups(groupIDs []string) ([]*sarama.GroupDescription, error)

func (*MockConsumerGroupScanner) ListGroupsWithType added in v0.9.1

func (m *MockConsumerGroupScanner) ListGroupsWithType() ([]types.ConsumerGroupListing, error)

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)
	ListTopicsWithNonDefaultConfigsFunc func() (map[string]sarama.TopicDetail, error)
	ListTopicInternalFlagsFunc          func() (map[string]bool, error)
	GetClusterKafkaMetadataFunc         func() (*client.ClusterKafkaMetadata, error)
	ClusterIDFunc                       func() (string, error)
	DescribeConfigFunc                  func() ([]sarama.ConfigEntry, error)
	ListAclsFunc                        func() ([]sarama.ResourceAcls, error)
	CloseFunc                           func() error
}

MockKafkaAdmin is a mock implementation of the KafkaAdmin interface

func (*MockKafkaAdmin) Close

func (m *MockKafkaAdmin) Close() error

func (*MockKafkaAdmin) ClusterID added in v0.11.0

func (m *MockKafkaAdmin) ClusterID(context.Context) (string, error)

func (*MockKafkaAdmin) DescribeConfig

func (m *MockKafkaAdmin) DescribeConfig() ([]sarama.ConfigEntry, error)

func (*MockKafkaAdmin) GetClusterKafkaMetadata

func (m *MockKafkaAdmin) GetClusterKafkaMetadata() (*client.ClusterKafkaMetadata, error)

func (*MockKafkaAdmin) ListAcls added in v0.1.3

func (m *MockKafkaAdmin) ListAcls() ([]sarama.ResourceAcls, error)

func (*MockKafkaAdmin) ListTopicInternalFlags added in v0.11.0

func (m *MockKafkaAdmin) ListTopicInternalFlags(context.Context) (map[string]bool, error)

func (*MockKafkaAdmin) ListTopicsWithConfigs added in v0.3.4

func (m *MockKafkaAdmin) ListTopicsWithConfigs() (map[string]sarama.TopicDetail, error)

func (*MockKafkaAdmin) ListTopicsWithNonDefaultConfigs added in v0.8.12

func (m *MockKafkaAdmin) ListTopicsWithNonDefaultConfigs() (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 (m *MockMSKService) ListScramSecrets(ctx context.Context, clusterArn string) ([]string, error)

func (*MockMSKService) ParseBrokerAddresses added in v0.2.1

func (m *MockMSKService) ParseBrokerAddresses(brokers kafka.GetBootstrapBrokersOutput, authType types.AuthType) ([]string, error)

Jump to

Keyboard shortcuts

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