Documentation ¶
Index ¶
- type Client
- type MockClient
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) ListSubscriptionsByTopic(_a0 context.Context, _a1 *servicesns.ListSubscriptionsByTopicInput, ...) (*servicesns.ListSubscriptionsByTopicOutput, error)
- func (_m *MockClient) ListTopics(_a0 context.Context, _a1 *servicesns.ListTopicsInput, ...) (*servicesns.ListTopicsOutput, error)
- 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 MockClient_ListTopics_Call
- func (_c *MockClient_ListTopics_Call) Return(_a0 *servicesns.ListTopicsOutput, _a1 error) *MockClient_ListTopics_Call
- func (_c *MockClient_ListTopics_Call) Run(run func(_a0 context.Context, _a1 *servicesns.ListTopicsInput, ...)) *MockClient_ListTopics_Call
- func (_c *MockClient_ListTopics_Call) RunAndReturn(...) *MockClient_ListTopics_Call
- type MockSNS
- func (_m *MockSNS) EXPECT() *MockSNS_Expecter
- func (_m *MockSNS) ListSubscriptionsByTopic(ctx context.Context, region string, topic string) ([]types.Subscription, error)
- func (_m *MockSNS) ListTopics(ctx context.Context) ([]types.Topic, error)
- func (_m *MockSNS) ListTopicsWithSubscriptions(ctx context.Context) ([]awslib.AwsResource, error)
- type MockSNS_Expecter
- func (_e *MockSNS_Expecter) ListSubscriptionsByTopic(ctx interface{}, region interface{}, topic interface{}) *MockSNS_ListSubscriptionsByTopic_Call
- func (_e *MockSNS_Expecter) ListTopics(ctx interface{}) *MockSNS_ListTopics_Call
- func (_e *MockSNS_Expecter) ListTopicsWithSubscriptions(ctx interface{}) *MockSNS_ListTopicsWithSubscriptions_Call
- 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 MockSNS_ListTopicsWithSubscriptions_Call
- func (_c *MockSNS_ListTopicsWithSubscriptions_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockSNS_ListTopicsWithSubscriptions_Call
- func (_c *MockSNS_ListTopicsWithSubscriptions_Call) Run(run func(ctx context.Context)) *MockSNS_ListTopicsWithSubscriptions_Call
- func (_c *MockSNS_ListTopicsWithSubscriptions_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockSNS_ListTopicsWithSubscriptions_Call
- type MockSNS_ListTopics_Call
- func (_c *MockSNS_ListTopics_Call) Return(_a0 []types.Topic, _a1 error) *MockSNS_ListTopics_Call
- func (_c *MockSNS_ListTopics_Call) Run(run func(ctx context.Context)) *MockSNS_ListTopics_Call
- func (_c *MockSNS_ListTopics_Call) RunAndReturn(run func(context.Context) ([]types.Topic, error)) *MockSNS_ListTopics_Call
- type Provider
- type SNS
- type TopicInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { sns.ListTopicsAPIClient sns.ListSubscriptionsByTopicAPIClient }
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(_a0 context.Context, _a1 *servicesns.ListSubscriptionsByTopicInput, _a2 ...func(*servicesns.Options)) (*servicesns.ListSubscriptionsByTopicOutput, error)
ListSubscriptionsByTopic provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) ListTopics ¶
func (_m *MockClient) ListTopics(_a0 context.Context, _a1 *servicesns.ListTopicsInput, _a2 ...func(*servicesns.Options)) (*servicesns.ListTopicsOutput, error)
ListTopics provides a mock function with given fields: _a0, _a1, _a2
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) ListSubscriptionsByTopic ¶
func (_e *MockClient_Expecter) ListSubscriptionsByTopic(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListSubscriptionsByTopic_Call
ListSubscriptionsByTopic is a helper method to define mock.On call
- _a0 context.Context
- _a1 *servicesns.ListSubscriptionsByTopicInput
- _a2 ...func(*servicesns.Options)
func (*MockClient_Expecter) ListTopics ¶
func (_e *MockClient_Expecter) ListTopics(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListTopics_Call
ListTopics is a helper method to define mock.On call
- _a0 context.Context
- _a1 *servicesns.ListTopicsInput
- _a2 ...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(_a0 context.Context, _a1 *servicesns.ListSubscriptionsByTopicInput, _a2 ...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 MockClient_ListTopics_Call ¶
MockClient_ListTopics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTopics'
func (*MockClient_ListTopics_Call) Return ¶
func (_c *MockClient_ListTopics_Call) Return(_a0 *servicesns.ListTopicsOutput, _a1 error) *MockClient_ListTopics_Call
func (*MockClient_ListTopics_Call) Run ¶
func (_c *MockClient_ListTopics_Call) Run(run func(_a0 context.Context, _a1 *servicesns.ListTopicsInput, _a2 ...func(*servicesns.Options))) *MockClient_ListTopics_Call
func (*MockClient_ListTopics_Call) RunAndReturn ¶
func (_c *MockClient_ListTopics_Call) RunAndReturn(run func(context.Context, *servicesns.ListTopicsInput, ...func(*servicesns.Options)) (*servicesns.ListTopicsOutput, error)) *MockClient_ListTopics_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
func (*MockSNS) ListTopics ¶
ListTopics provides a mock function with given fields: ctx
func (*MockSNS) ListTopicsWithSubscriptions ¶
ListTopicsWithSubscriptions provides a mock function with given fields: ctx
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
func (*MockSNS_Expecter) ListTopics ¶
func (_e *MockSNS_Expecter) ListTopics(ctx interface{}) *MockSNS_ListTopics_Call
ListTopics is a helper method to define mock.On call
- ctx context.Context
func (*MockSNS_Expecter) ListTopicsWithSubscriptions ¶
func (_e *MockSNS_Expecter) ListTopicsWithSubscriptions(ctx interface{}) *MockSNS_ListTopicsWithSubscriptions_Call
ListTopicsWithSubscriptions is a helper method to define mock.On call
- ctx context.Context
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 MockSNS_ListTopicsWithSubscriptions_Call ¶
MockSNS_ListTopicsWithSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTopicsWithSubscriptions'
func (*MockSNS_ListTopicsWithSubscriptions_Call) Return ¶
func (_c *MockSNS_ListTopicsWithSubscriptions_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockSNS_ListTopicsWithSubscriptions_Call
func (*MockSNS_ListTopicsWithSubscriptions_Call) Run ¶
func (_c *MockSNS_ListTopicsWithSubscriptions_Call) Run(run func(ctx context.Context)) *MockSNS_ListTopicsWithSubscriptions_Call
func (*MockSNS_ListTopicsWithSubscriptions_Call) RunAndReturn ¶
func (_c *MockSNS_ListTopicsWithSubscriptions_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockSNS_ListTopicsWithSubscriptions_Call
type MockSNS_ListTopics_Call ¶
MockSNS_ListTopics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTopics'
func (*MockSNS_ListTopics_Call) Return ¶
func (_c *MockSNS_ListTopics_Call) Return(_a0 []types.Topic, _a1 error) *MockSNS_ListTopics_Call
func (*MockSNS_ListTopics_Call) Run ¶
func (_c *MockSNS_ListTopics_Call) Run(run func(ctx context.Context)) *MockSNS_ListTopics_Call
func (*MockSNS_ListTopics_Call) RunAndReturn ¶
func (_c *MockSNS_ListTopics_Call) RunAndReturn(run func(context.Context) ([]types.Topic, error)) *MockSNS_ListTopics_Call
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewSNSProvider ¶
func (*Provider) ListSubscriptionsByTopic ¶
func (*Provider) ListTopics ¶
func (*Provider) ListTopicsWithSubscriptions ¶
type TopicInfo ¶
type TopicInfo struct { Topic types.Topic `json:"topic"` Subscriptions []types.Subscription `json:"subscriptions"` // contains filtered or unexported fields }