sns

package
v0.0.0-...-19bd712 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListSubscriptionsByTopic(ctx context.Context, params *sns.ListSubscriptionsByTopicInput, optFns ...func(*sns.Options)) (*sns.ListSubscriptionsByTopicOutput, error)
}

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) ListSubscriptionsByTopic

ListSubscriptionsByTopic provides a mock function with given fields: ctx, params, optFns

type MockClient_Expecter

type MockClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockClient_Expecter) ListSubscriptionsByTopic

func (_e *MockClient_Expecter) ListSubscriptionsByTopic(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListSubscriptionsByTopic_Call

ListSubscriptionsByTopic is a helper method to define mock.On call

  • ctx context.Context
  • params *servicesns.ListSubscriptionsByTopicInput
  • optFns ...func(*servicesns.Options)

type MockClient_ListSubscriptionsByTopic_Call

type MockClient_ListSubscriptionsByTopic_Call struct {
	*mock.Call
}

MockClient_ListSubscriptionsByTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptionsByTopic'

func (*MockClient_ListSubscriptionsByTopic_Call) Run

type MockSNS

type MockSNS struct {
	mock.Mock
}

MockSNS is an autogenerated mock type for the SNS type

func NewMockSNS

func NewMockSNS(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSNS

NewMockSNS creates a new instance of MockSNS. 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 (*MockSNS) EXPECT

func (_m *MockSNS) EXPECT() *MockSNS_Expecter

func (*MockSNS) ListSubscriptionsByTopic

func (_m *MockSNS) ListSubscriptionsByTopic(ctx context.Context, region *string, topic string) ([]types.Subscription, error)

ListSubscriptionsByTopic provides a mock function with given fields: ctx, region, topic

type MockSNS_Expecter

type MockSNS_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockSNS_Expecter) ListSubscriptionsByTopic

func (_e *MockSNS_Expecter) ListSubscriptionsByTopic(ctx interface{}, region interface{}, topic interface{}) *MockSNS_ListSubscriptionsByTopic_Call

ListSubscriptionsByTopic is a helper method to define mock.On call

  • ctx context.Context
  • region *string
  • topic string

type MockSNS_ListSubscriptionsByTopic_Call

type MockSNS_ListSubscriptionsByTopic_Call struct {
	*mock.Call
}

MockSNS_ListSubscriptionsByTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptionsByTopic'

func (*MockSNS_ListSubscriptionsByTopic_Call) Return

func (*MockSNS_ListSubscriptionsByTopic_Call) Run

func (*MockSNS_ListSubscriptionsByTopic_Call) RunAndReturn

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewSNSProvider

func NewSNSProvider(log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client]) *Provider

func (*Provider) ListSubscriptionsByTopic

func (p *Provider) ListSubscriptionsByTopic(ctx context.Context, region *string, topic string) ([]types.Subscription, error)

type SNS

type SNS interface {
	ListSubscriptionsByTopic(ctx context.Context, region *string, topic string) ([]types.Subscription, error)
}

Jump to

Keyboard shortcuts

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