goamz: github.com/Spokepoint/goamz/exp/sns Index | Files

package sns

import "github.com/Spokepoint/goamz/exp/sns"

This package is in an experimental state, and does not currently follow conventions and style of the rest of goamz or common Go conventions. It must be polished before it's considered a first-class package in goamz.

Index

Package Files

sign.go sns.go

type AddPermissionResponse Uses

type AddPermissionResponse struct {
    ResponseMetadata
}

type AttributeEntry Uses

type AttributeEntry struct {
    Key   string `xml:"key"`
    Value string `xml:"value"`
}

type ConfirmSubscriptionOpt Uses

type ConfirmSubscriptionOpt struct {
    AuthenticateOnUnsubscribe string
    Token                     string
    TopicArn                  string
}

type ConfirmSubscriptionResponse Uses

type ConfirmSubscriptionResponse struct {
    SubscriptionArn string `xml:"ConfirmSubscriptionResult>SubscriptionArn"`
    ResponseMetadata
}

type CreateTopicResp Uses

type CreateTopicResp struct {
    Topic Topic `xml:"CreateTopicResult"`
    ResponseMetadata
}

type DeleteTopicResp Uses

type DeleteTopicResp struct {
    ResponseMetadata
}

type Error Uses

type Error struct {
    StatusCode int
    Code       string
    Message    string
    RequestId  string
}

func (*Error) Error Uses

func (err *Error) Error() string

type GetTopicAttributesResp Uses

type GetTopicAttributesResp struct {
    Attributes []AttributeEntry `xml:"GetTopicAttributesResult>Attributes>entry"`
    ResponseMetadata
}

type ListSubscriptionByTopicOpt Uses

type ListSubscriptionByTopicOpt struct {
    NextToken string
    TopicArn  string
}

type ListSubscriptionByTopicResponse Uses

type ListSubscriptionByTopicResponse struct {
    Subscriptions []Subscription `xml:"ListSubscriptionsByTopicResult>Subscriptions>member"`
    ResponseMetadata
}

type ListSubscriptionsResp Uses

type ListSubscriptionsResp struct {
    Subscriptions []Subscription `xml:"ListSubscriptionsResult>Subscriptions>member"`
    NextToken     string
    ResponseMetadata
}

type ListTopicsResp Uses

type ListTopicsResp struct {
    Topics    []Topic `xml:"ListTopicsResult>Topics>member"`
    NextToken string
    ResponseMetadata
}

type Message Uses

type Message struct {
    SNS     *SNS
    Topic   *Topic
    Message [8192]byte
    Subject string
}

type Permission Uses

type Permission struct {
    ActionName string
    AccountId  string
}

type PublishOpt Uses

type PublishOpt struct {
    Message          string
    MessageStructure string
    Subject          string
    TopicArn         string
}

type PublishResp Uses

type PublishResp struct {
    MessageId string `xml:"PublishResult>MessageId"`
    ResponseMetadata
}

type RemovePermissionResponse Uses

type RemovePermissionResponse struct {
    ResponseMetadata
}

type ResponseMetadata Uses

type ResponseMetadata struct {
    RequestId string  `xml:"ResponseMetadata>RequestId"`
    BoxUsage  float64 `xml:"ResponseMetadata>BoxUsage"`
}

type SNS Uses

type SNS struct {
    aws.Auth
    aws.Region
    // contains filtered or unexported fields
}

The SNS type encapsulates operation with an SNS region.

func New Uses

func New(auth aws.Auth, region aws.Region) *SNS

func (*SNS) AddPermission Uses

func (sns *SNS) AddPermission(permissions []Permission, Label, TopicArn string) (resp *AddPermissionResponse, err error)

AddPermission

See http://goo.gl/mbY4a for more details.

func (*SNS) ConfirmSubscription Uses

func (sns *SNS) ConfirmSubscription(options *ConfirmSubscriptionOpt) (resp *ConfirmSubscriptionResponse, err error)

ConfirmSubscription

See http://goo.gl/3hXzH for more details.

func (*SNS) CreateTopic Uses

func (sns *SNS) CreateTopic(Name string) (resp *CreateTopicResp, err error)

CreateTopic

See http://goo.gl/m9aAt for more details.

func (*SNS) DeleteTopic Uses

func (sns *SNS) DeleteTopic(topic Topic) (resp *DeleteTopicResp, err error)

DeleteTopic

See http://goo.gl/OXNcY for more details.

func (*SNS) GetTopicAttributes Uses

func (sns *SNS) GetTopicAttributes(TopicArn string) (resp *GetTopicAttributesResp, err error)

GetTopicAttributes

See http://goo.gl/WXRoX for more details.

func (*SNS) ListSubscriptionByTopic Uses

func (sns *SNS) ListSubscriptionByTopic(options *ListSubscriptionByTopicOpt) (resp *ListSubscriptionByTopicResponse, err error)

ListSubscriptionByTopic

See http://goo.gl/LaVcC for more details.

func (*SNS) ListSubscriptions Uses

func (sns *SNS) ListSubscriptions(NextToken *string) (resp *ListSubscriptionsResp, err error)

ListSubscriptions

See http://goo.gl/k3aGn for more details.

func (*SNS) ListTopics Uses

func (sns *SNS) ListTopics(NextToken *string) (resp *ListTopicsResp, err error)

ListTopics

See http://goo.gl/lfrMK for more details.

func (*SNS) Publish Uses

func (sns *SNS) Publish(options *PublishOpt) (resp *PublishResp, err error)

Publish

See http://goo.gl/AY2D8 for more details.

func (*SNS) RemovePermission Uses

func (sns *SNS) RemovePermission(Label, TopicArn string) (resp *RemovePermissionResponse, err error)

RemovePermission

See http://goo.gl/wGl5j for more details.

func (*SNS) SetTopicAttributes Uses

func (sns *SNS) SetTopicAttributes(AttributeName, AttributeValue, TopicArn string) (resp *SetTopicAttributesResponse, err error)

SetTopicAttributes

See http://goo.gl/oVYW7 for more details.

func (*SNS) Subscribe Uses

func (sns *SNS) Subscribe(Endpoint, Protocol, TopicArn string) (resp *SubscribeResponse, err error)

Subscribe

See http://goo.gl/c3iGS for more details.

func (*SNS) Unsubscribe Uses

func (sns *SNS) Unsubscribe(SubscriptionArn string) (resp *UnsubscribeResponse, err error)

Unsubscribe

See http://goo.gl/4l5Ge for more details.

type SetTopicAttributesResponse Uses

type SetTopicAttributesResponse struct {
    ResponseMetadata
}

type SubscribeResponse Uses

type SubscribeResponse struct {
    SubscriptionArn string `xml:"SubscribeResult>SubscriptionArn"`
    ResponseMetadata
}

type Subscription Uses

type Subscription struct {
    Endpoint        string
    Owner           string
    Protocol        string
    SubscriptionArn string
    TopicArn        string
}

type Topic Uses

type Topic struct {
    SNS      *SNS
    TopicArn string
}

func (*Topic) Delete Uses

func (topic *Topic) Delete() (resp *DeleteTopicResp, err error)

Delete

Helper function for deleting a topic

func (*Topic) Message Uses

func (topic *Topic) Message(message [8192]byte, subject string) *Message

type UnsubscribeResponse Uses

type UnsubscribeResponse struct {
    ResponseMetadata
}

Bugs

Package needs significant clean up.

Topic values in responses are not being initialized properly, since they're supposed to reference *SNS.

Package needs documentation.

Message.Message should be "Payload []byte"

Message.SNS must be dropped.

Package sns imports 12 packages (graph). Updated 2017-06-12. Refresh now. Tools for package owners.