response_type

package
v0.0.0-...-8018a7e Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACLXmlNs  string = "http://www.w3.org/2001/XMLSchema-instance"
	ACLXmlXsi string = "CanonicalUser"
)
View Source
const (
	XmlHeader string = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
	XmlNs     string = "http://www.w3.org/2001/XMLSchema-instance"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSACLResponse

type AWSACLResponse struct {
	XMLName           xml.Name           `xml:"AccessControlPolicy"`
	OwnerId           string             `xml:"Owner>ID"`
	OwnerDisplayName  string             `xml:"Owner>DisplayName"`
	AccessControlList *AccessControlList `xml:"AccessControlList"`
}

type AWSACLResponseError

type AWSACLResponseError struct {
	XMLName xml.Name `xml:"Error"`
	Key     *string  `xml:"Key"`
	Code    *string  `xml:"Code"`
	Message *string  `xml:"Message"`
}

type AWSListBucketResponse

type AWSListBucketResponse struct {
	XMLName               xml.Name              `xml:"ListBucketResult"`
	XmlNS                 string                `xml:"xmlns,attr"`
	Name                  *string               `xml:"Name"`
	Prefix                *string               `xml:"Prefix"`
	Delimiter             *string               `xml:"Delimiter,omitempty"`
	Marker                *string               `xml:"Marker"`
	KeyCount              int64                 `xml:"KeyCount"`
	MaxKeys               *int64                `xml:"MaxKeys"`
	IsTruncated           *bool                 `xml:"IsTruncated"`
	Contents              []*BucketContent      `xml:"Contents"`
	CommonPrefixes        []*BucketCommonPrefix `xml:"CommonPrefixes,omitempty"`
	ContinuationToken     *string               `xml:"ContinuationToken"`
	NextContinuationToken *string               `xml:"NextContinuationToken"`
}

type AccessControlList

type AccessControlList struct {
	Grants []*Grant `xml:"Grant"`
}

type BucketCommonPrefix

type BucketCommonPrefix struct {
	Prefix string `xml:"Prefix"`
}

type BucketContent

type BucketContent struct {
	Key          string `xml:"Key"`
	LastModified string `xml:"LastModified"`
	ETag         string `xml:"ETag"`
	Size         int64  `xml:"Size"`
	StorageClass string `xml:"StorageClass"`
}

type CompleteMultipartUploadInput

type CompleteMultipartUploadInput struct {
	XMLName xml.Name         `xml:"CompleteMultipartUpload"`
	XmlNS   string           `xml:"xmlns,attr"`
	Parts   []*MultipartPart `xml:"Part"`
}

type CompleteMultipartUploadResult

type CompleteMultipartUploadResult struct {
	XMLName  xml.Name `xml:"CompleteMultipartUploadResult"`
	XmlNS    string   `xml:"xmlns,attr"`
	Bucket   *string  `xml:"Bucket"`
	Key      *string  `xml:"Key"`
	ETag     *string  `xml:"ETag"`
	Location *string  `xml:"Location"`
}

type CopyResult

type CopyResult struct {
	XMLName      xml.Name `xml:"CopyObjectResult"`
	LastModified string   `xml:"LastModified"`
	ETag         string   `xml:"ETag"`
}

type CreateQueueResponse

type CreateQueueResponse struct {
	XMLName           xml.Name  `xml:"CreateQueueResponse"`
	XmlNS             string    `xml:"xmlns,attr"`
	CreateQueueResult QueueUrls `xml:"CreateQueueResult"`
}

type DeleteMessageBatchResponse

type DeleteMessageBatchResponse struct {
	XMLName                  xml.Name                 `xml:"DeleteMessageBatchResponse"`
	DeleteMessageBatchResult DeleteMessageBatchResult `xml:"DeleteMessageBatchResult"`
}

type DeleteMessageBatchResult

type DeleteMessageBatchResult struct {
	DeleteMessageBatchResultEntry []DeleteMessageBatchResultEntry `xml:"DeleteMessageBatchResultEntry"`
}

type DeleteMessageBatchResultEntry

type DeleteMessageBatchResultEntry struct {
	Id *string `xml:"Id"`
}

type DeleteMessageResponse

type DeleteMessageResponse struct {
	XMLName xml.Name `xml:"DeleteMessageResponse"`
}

type DeleteObject

type DeleteObject struct {
	Key *string `xml:"Key"`
}

type DeleteQueueResponse

type DeleteQueueResponse struct {
	XMLName xml.Name `xml:"DeleteQueueResponse"`
}

type ErrorResult

type ErrorResult struct {
	Key     *string `xml:"Key"`
	Code    *string `xml:"Code"`
	Message *string `xml:"Message"`
}

type Grant

type Grant struct {
	Grantee    *Grantee `xml:"Grantee"`
	Permission string   `xml:"Permission"`
}

type Grantee

type Grantee struct {
	XMLName     xml.Name `xml:"Grantee"`
	Id          string   `xml:"ID"`
	DisplayName string   `xml:"DisplayName"`
	XmlNS       string   `xml:"xmlns:xsi,attr"`
	Xsi         string   `xml:"xsi:type,attr"`
}

type InitiateMultipartUploadResult

type InitiateMultipartUploadResult struct {
	XMLName  xml.Name `xml:"InitiateMultipartUploadResult"`
	XmlNS    string   `xml:"xmlns,attr"`
	Bucket   *string  `xml:"Bucket"`
	Key      *string  `xml:"Key"`
	UploadId *string  `xml:"UploadId"`
}

type KinesisRecordsRequest

type KinesisRecordsRequest struct {
	PartitionKey string
	Data         string
}

type KinesisRecordsResponse

type KinesisRecordsResponse struct {
	FailedRequestCount int64
	Records            []KinesisResponse
}

type KinesisRequest

type KinesisRequest struct {
	StreamName   string
	PartitionKey string
	Data         string
	Records      []KinesisRecordsRequest
}

type KinesisResponse

type KinesisResponse struct {
	SequenceNumber *string
	ShardId        *string
	ErrorCode      *string
	ErrorMessage   *string
}

type ListQueuesResponse

type ListQueuesResponse struct {
	XMLName          xml.Name  `xml:"ListQueuesResponse"`
	XmlNS            string    `xml:"xmlns,attr"`
	ListQueuesResult QueueUrls `xml:"ListQueuesResult"`
}

type Map

type Map map[string]interface{}

func (Map) Load

func (m Map) Load(c []datastore.Property) error

func (Map) Save

func (m Map) Save() ([]datastore.Property, error)

type MultiDeleteRequest

type MultiDeleteRequest struct {
	XMLName xml.Name        `xml:"Delete"`
	Quiet   *bool           `xml:"Bucket"`
	Objects []*DeleteObject `xml:"Object"`
}

type MultiDeleteResult

type MultiDeleteResult struct {
	XMLName xml.Name        `xml:"DeleteResult"`
	XmlNS   string          `xml:"xmlns,attr"`
	Objects []*DeleteObject `xml:"Deleted"`
	Errors  []*ErrorResult  `xml:"Error"`
}

type MultipartPart

type MultipartPart struct {
	ETag       *string `xml:"ETag"`
	PartNumber *int64  `xml:"PartNumber"`
}

type PurgeQueueResponse

type PurgeQueueResponse struct {
	XMLName xml.Name `xml:"PurgeQueueResponse"`
}

type QueueUrls

type QueueUrls struct {
	QueueUrl []string `xml:"QueueUrl"`
}

type ReceiveMessageResponse

type ReceiveMessageResponse struct {
	XMLName              xml.Name             `xml:"ReceiveMessageResponse"`
	XmlNS                string               `xml:"xmlns,attr"`
	ReceiveMessageResult ReceiveMessageResult `xml:"ReceiveMessageResult"`
}

type ReceiveMessageResult

type ReceiveMessageResult struct {
	Message []SqsMessage `xml:"Message"`
}

type SendMessageBatchResponse

type SendMessageBatchResponse struct {
	XMLName                xml.Name               `xml:"SendMessageBatchResponse"`
	SendMessageBatchResult SendMessageBatchResult `xml:"SendMessageBatchResult"`
}

type SendMessageBatchResult

type SendMessageBatchResult struct {
	Entries []SendMessageBatchResultEntry `xml:"SendMessageBatchResultEntry"`
}

type SendMessageBatchResultEntry

type SendMessageBatchResultEntry struct {
	Id                     *string `xml:"Id"`
	MessageId              *string `xml:"MessageId"`
	MD5OfMessageBody       *string `xml:"MD5OfMessageBody"`
	MD5OfMessageAttributes *string `xml:"MD5OfMessageAttributes"`
}

type SendMessageResponse

type SendMessageResponse struct {
	XMLName           xml.Name          `xml:"SendMessageResponse"`
	XmlNS             string            `xml:"xmlns,attr"`
	SendMessageResult SendMessageResult `xml:"SendMessageResult"`
}

type SendMessageResult

type SendMessageResult struct {
	MD5OfMessageBody       *string `xml:"MD5OfMessageBody"`
	MD5OfMessageAttributes *string `xml:"MD5OfMessageAttributes"`
	MessageId              *string `xml:"MessageId"`
}

type SqsAttribute

type SqsAttribute struct {
	Name  string `xml:"Name"`
	Value string `xml:"Value"`
}

type SqsError

type SqsError struct {
	Type    string `xml:"Type"`
	Code    string `xml:"Code"`
	Message string `xml:"Message"`
}

type SqsErrorResponse

type SqsErrorResponse struct {
	// <?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>AccessDenied</Code><Message>Access to the resource https://queue.amazonaws.com/ is denied.</Message><Detail/></Error><RequestId>be0bc434-dd62-5a29-bb07-91a3a84796c2</RequestId></ErrorResponse>
	XMLName   xml.Name  `xml:"ErrorResponse"`
	XmlNS     string    `xml:"xmlns,attr"`
	Error     *SqsError `xml:"Error"`
	RequestId *string   `xml:"RequestId"`
}

type SqsMessage

type SqsMessage struct {
	MessageId     *string        `xml:"MessageId"`
	ReceiptHandle *string        `xml:"ReceiptHandle"`
	MD5OfBody     *string        `xml:"MD5OfBody"`
	Body          *string        `xml:"Body"`
	Attributes    []SqsAttribute `xml:"Attribute"`
}

Jump to

Keyboard shortcuts

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