sns

package
v0.0.0-...-de93505 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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: _a0, _a1, _a2

func (*MockClient) ListTopics

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

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 MockClient_ListTopics_Call

type MockClient_ListTopics_Call struct {
	*mock.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 (*MockClient_ListTopics_Call) Run

func (*MockClient_ListTopics_Call) RunAndReturn

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

func (*MockSNS) ListTopics

func (_m *MockSNS) ListTopics(ctx context.Context) ([]types.Topic, error)

ListTopics provides a mock function with given fields: ctx

func (*MockSNS) ListTopicsWithSubscriptions

func (_m *MockSNS) ListTopicsWithSubscriptions(ctx context.Context) ([]awslib.AwsResource, error)

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

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 MockSNS_ListTopicsWithSubscriptions_Call

type MockSNS_ListTopicsWithSubscriptions_Call struct {
	*mock.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 (*MockSNS_ListTopicsWithSubscriptions_Call) Run

func (*MockSNS_ListTopicsWithSubscriptions_Call) RunAndReturn

type MockSNS_ListTopics_Call

type MockSNS_ListTopics_Call struct {
	*mock.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 (*MockSNS_ListTopics_Call) Run

func (*MockSNS_ListTopics_Call) RunAndReturn

type Provider

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

func NewSNSProvider

func NewSNSProvider(ctx context.Context, 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)

func (*Provider) ListTopics

func (p *Provider) ListTopics(ctx context.Context) ([]types.Topic, error)

func (*Provider) ListTopicsWithSubscriptions

func (p *Provider) ListTopicsWithSubscriptions(ctx context.Context) ([]awslib.AwsResource, error)

type SNS

type SNS interface {
	ListTopics(ctx context.Context) ([]types.Topic, error)
	ListSubscriptionsByTopic(ctx context.Context, region string, topic string) ([]types.Subscription, error)
	ListTopicsWithSubscriptions(ctx context.Context) ([]awslib.AwsResource, error)
}

type TopicInfo

type TopicInfo struct {
	Topic         types.Topic          `json:"topic"`
	Subscriptions []types.Subscription `json:"subscriptions"`
	// contains filtered or unexported fields
}

func (TopicInfo) GetRegion

func (v TopicInfo) GetRegion() string

func (TopicInfo) GetResourceArn

func (v TopicInfo) GetResourceArn() string

func (TopicInfo) GetResourceName

func (v TopicInfo) GetResourceName() string

func (TopicInfo) GetResourceType

func (v TopicInfo) GetResourceType() string

Jump to

Keyboard shortcuts

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