serde

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSTimestampFormat = "2006-01-02T15:04:05.000Z"
)
View Source
const (
	VersioningResponse = `<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>`
)

Variables

This section is empty.

Functions

func Timestamp

func Timestamp(ts time.Time) string

Types

type Bucket

type Bucket struct {
	CreationDate string `xml:"CreationDate"`
	Name         string `xml:"Name"`
}

type Buckets

type Buckets struct {
	Bucket []Bucket `xml:"Bucket"`
}

type CommonPrefixes

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

type CompleteMultipartUpload

type CompleteMultipartUpload struct {
	Part []CompleteMultipartUploadPart `xml:"Part"`
}

type CompleteMultipartUploadPart

type CompleteMultipartUploadPart struct {
	PartNumber int    `xml:"PartNumber"`
	ETag       string `xml:"ETag"`
}

type CompleteMultipartUploadResult

type CompleteMultipartUploadResult struct {
	Location string `xml:"Location"`
	Bucket   string `xml:"Bucket"`
	Key      string `xml:"Key"`
	ETag     string `xml:"ETag"`
}

type Contents

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

type CopyObjectResult

type CopyObjectResult struct {
	LastModified string `xml:"LastModified"`
	ETag         string `xml:"ETag"`
}

type CopyPartResult

type CopyPartResult struct {
	LastModified string `xml:"LastModified"`
	ETag         string `xml:"ETag"`
}

type CreateBucketConfiguration

type CreateBucketConfiguration struct {
	LocationConstraint string `xml:"LocationConstraint"`
}

type Delete

type Delete struct {
	Object []Object `xml:"Object"`
	Quiet  bool     `xml:"Quiet"`
}

type DeleteError

type DeleteError struct {
	Code      string `xml:"Code"`
	Key       string `xml:"Key"`
	Message   string `xml:"Message"`
	VersionID string `xml:"VersionId,omitempty"`
}

type DeleteResult

type DeleteResult struct {
	XMLName xml.Name      `xml:"http://s3.amazonaws.com/doc/2006-03-01/ DeleteResult"`
	Deleted []Deleted     `xml:"Deleted"`
	Error   []DeleteError `xml:"Error"`
}

type Deleted

type Deleted struct {
	DeleteMarker          bool   `xml:"DeleteMarker,omitempty"`
	DeleteMarkerVersionID string `xml:"DeleteMarkerVersionId,omitempty"`
	Key                   string `xml:"Key"`
	VersionID             string `xml:"versionId,omitempty"`
}

type Error

type Error struct {
	Code      string `xml:"Code"`
	Message   string `xml:"Message"`
	Region    string `xml:"Region"`
	RequestID string `xml:"RequestId"`
	HostID    string `xml:"HostId"`
}

type InitiateMultipartUploadResult

type InitiateMultipartUploadResult struct {
	Bucket   string `xml:"Bucket"`
	Key      string `xml:"Key"`
	UploadID string `xml:"UploadId"`
}

type ListAllMyBucketsResult

type ListAllMyBucketsResult struct {
	Buckets Buckets `xml:"Buckets"`
	Owner   Owner   `xml:"Owner"`
}

type ListBucketResult

type ListBucketResult struct {
	Name           string           `xml:"Name"`
	IsTruncated    bool             `xml:"IsTruncated"`
	Prefix         string           `xml:"Prefix"`
	Delimiter      string           `xml:"Delimiter,omitempty"`
	KeyCount       int              `xml:"KeyCount"`
	MaxKeys        int              `xml:"MaxKeys"`
	CommonPrefixes []CommonPrefixes `xml:"CommonPrefixes"`
	Marker         string           `xml:"Marker"`
	NextMarker     string           `xml:"NextMarker,omitempty"`
	Contents       []Contents       `xml:"Contents"`
}

type ListObjectsOutput

type ListObjectsOutput struct {
	Name           string           `xml:"Name"`
	IsTruncated    bool             `xml:"IsTruncated"`
	Prefix         string           `xml:"Prefix"`
	Delimiter      string           `xml:"Delimiter,omitempty"`
	KeyCount       int              `xml:"KeyCount"`
	MaxKeys        int              `xml:"MaxKeys"`
	CommonPrefixes []CommonPrefixes `xml:"CommonPrefixes"`
	Marker         string           `xml:"Marker"`
	NextMarker     string           `xml:"NextMarker,omitempty"`
	Contents       []Contents       `xml:"Contents"`
}

type ListObjectsV2Output

type ListObjectsV2Output struct {
	XMLName               xml.Name         `xml:"ListBucketResult"`
	Name                  string           `xml:"Name"`
	IsTruncated           bool             `xml:"IsTruncated"`
	Prefix                string           `xml:"Prefix"`
	Delimiter             string           `xml:"Delimiter,omitempty"`
	KeyCount              int              `xml:"KeyCount"`
	MaxKeys               int              `xml:"MaxKeys"`
	CommonPrefixes        []CommonPrefixes `xml:"CommonPrefixes"`
	NextContinuationToken string           `xml:"NextContinuationToken,omitempty"`
	ContinuationToken     string           `xml:"ContinuationToken,omitempty"`
	Contents              []Contents       `xml:"Contents"`
}

type LocationResponse added in v1.3.1

type LocationResponse struct {
	XMLName  xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LocationConstraint"`
	Location string   `xml:",chardata"`
}

type Object

type Object struct {
	Key       string `xml:"Key"`
	VersionID string `xml:"VersionId,omitempty"`
}

type Owner

type Owner struct {
	DisplayName string `xml:"DisplayName"`
	ID          string `xml:"ID"`
}

type Tag

type Tag struct {
	Key   string `xml:"Key"`
	Value string `xml:"Value"`
}

type TagSet

type TagSet struct {
	Tag []Tag `xml:"Tag"`
}

type Tagging

type Tagging struct {
	XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ Tagging"`
	TagSet  TagSet   `xml:"TagSet"`
}

type VersioningConfiguration

type VersioningConfiguration struct {
	Enabled bool `xml:"Enabled,omitempty"`
}

Jump to

Keyboard shortcuts

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