Documentation ¶
Index ¶
- type Client
- type MockClient
- type MockClient_Expecter
- type MockClient_ListSubscriptionsByTopic_Call
- func (_c *MockClient_ListSubscriptionsByTopic_Call) Return(_a0 *servicesns.ListSubscriptionsByTopicOutput, _a1 error) *MockClient_ListSubscriptionsByTopic_Call
- func (_c *MockClient_ListSubscriptionsByTopic_Call) Run(...) *MockClient_ListSubscriptionsByTopic_Call
- func (_c *MockClient_ListSubscriptionsByTopic_Call) RunAndReturn(...) *MockClient_ListSubscriptionsByTopic_Call
- type MockSNS
- type MockSNS_Expecter
- type MockSNS_ListSubscriptionsByTopic_Call
- func (_c *MockSNS_ListSubscriptionsByTopic_Call) Return(_a0 []types.Subscription, _a1 error) *MockSNS_ListSubscriptionsByTopic_Call
- func (_c *MockSNS_ListSubscriptionsByTopic_Call) Run(run func(ctx context.Context, region *string, topic string)) *MockSNS_ListSubscriptionsByTopic_Call
- func (_c *MockSNS_ListSubscriptionsByTopic_Call) RunAndReturn(run func(context.Context, *string, string) ([]types.Subscription, error)) *MockSNS_ListSubscriptionsByTopic_Call
- type Provider
- type SNS
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 ¶
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 ¶
func (_m *MockClient) ListSubscriptionsByTopic(ctx context.Context, params *servicesns.ListSubscriptionsByTopicInput, optFns ...func(*servicesns.Options)) (*servicesns.ListSubscriptionsByTopicOutput, error)
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 ¶
MockClient_ListSubscriptionsByTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptionsByTopic'
func (*MockClient_ListSubscriptionsByTopic_Call) Return ¶
func (_c *MockClient_ListSubscriptionsByTopic_Call) Return(_a0 *servicesns.ListSubscriptionsByTopicOutput, _a1 error) *MockClient_ListSubscriptionsByTopic_Call
func (*MockClient_ListSubscriptionsByTopic_Call) Run ¶
func (_c *MockClient_ListSubscriptionsByTopic_Call) Run(run func(ctx context.Context, params *servicesns.ListSubscriptionsByTopicInput, optFns ...func(*servicesns.Options))) *MockClient_ListSubscriptionsByTopic_Call
func (*MockClient_ListSubscriptionsByTopic_Call) RunAndReturn ¶
func (_c *MockClient_ListSubscriptionsByTopic_Call) RunAndReturn(run func(context.Context, *servicesns.ListSubscriptionsByTopicInput, ...func(*servicesns.Options)) (*servicesns.ListSubscriptionsByTopicOutput, error)) *MockClient_ListSubscriptionsByTopic_Call
type MockSNS ¶
MockSNS is an autogenerated mock type for the SNS type
func NewMockSNS ¶
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 ¶
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 (_c *MockSNS_ListSubscriptionsByTopic_Call) Return(_a0 []types.Subscription, _a1 error) *MockSNS_ListSubscriptionsByTopic_Call
func (*MockSNS_ListSubscriptionsByTopic_Call) Run ¶
func (_c *MockSNS_ListSubscriptionsByTopic_Call) Run(run func(ctx context.Context, region *string, topic string)) *MockSNS_ListSubscriptionsByTopic_Call
func (*MockSNS_ListSubscriptionsByTopic_Call) RunAndReturn ¶
func (_c *MockSNS_ListSubscriptionsByTopic_Call) RunAndReturn(run func(context.Context, *string, string) ([]types.Subscription, error)) *MockSNS_ListSubscriptionsByTopic_Call
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}