sns

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
	SNS() *sns.Client
}

type SnsRepository

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

func NewSnsRepository

func NewSnsRepository(ctx context.Context, client AwsClient) *SnsRepository

func (*SnsRepository) GetRegion

func (r *SnsRepository) GetRegion() ptypes.AwsRegion

func (*SnsRepository) GetTopicTags

func (r *SnsRepository) GetTopicTags(topic types.Topic) ([]types.Tag, error)

func (*SnsRepository) ListTopicsAll

func (r *SnsRepository) ListTopicsAll() ([]Topic, error)

func (*SnsRepository) ListTopicsByInput

func (r *SnsRepository) ListTopicsByInput(query *sns.ListTopicsInput) ([]Topic, error)

type Topic

type Topic struct {
	service.AbstractResource
	types.Topic
	Attributes map[string]string
	Tags       []types.Tag
}

func NewTopic

func NewTopic(client AwsClient, topic types.Topic, attributes map[string]string, tags []types.Tag) Topic

func (Topic) GetAttributes

func (e Topic) GetAttributes() map[string]string

func (Topic) GetName

func (e Topic) GetName() string

func (Topic) GetOwner

func (e Topic) GetOwner() (string, bool)

func (Topic) GetPolicy

func (e Topic) GetPolicy() (string, bool)

func (Topic) GetTagValue

func (e Topic) GetTagValue(tag string) string

func (Topic) GetTags

func (e Topic) GetTags() map[string]string

Jump to

Keyboard shortcuts

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