model

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Xmlns = "http://s3.amazonaws.com/doc/2006-03-01"

Functions

This section is empty.

Types

type AbortIncompleteMultipartUpload added in v0.5.3

type AbortIncompleteMultipartUpload struct {
	DaysAfterInitiation int32 `xml:"DaysAfterInitiation"`
}

type Bucket

type Bucket struct {
	Name               string `xml:"Name"`
	CreateTime         string `xml:"CreateTime"`
	LocationConstraint string `xml:"LocationConstraint"`
	VersionOpts        VersioningConfiguration
	SSEOpts            SSEConfiguration
}

type CompleteMultipartUpload

type CompleteMultipartUpload struct {
	Xmlns string `xml:"xmlns,attr"`
	Parts []Part `xml:"Part"`
}

type CompleteMultipartUploadResult

type CompleteMultipartUploadResult struct {
	Xmlns    string `xml:"xmlns,attr"`
	Location string `xml:"Location"`
	Bucket   string `xml:"Bucket"`
	Key      string `xml:"Key"`
	Size     int64  `xml:"Size"`
	ETag     string `xml:"ETag"`
}

type CompletedParts added in v0.6.3

type CompletedParts []Part

completedParts - is a collection satisfying sort.Interface.

func (CompletedParts) Len added in v0.6.3

func (a CompletedParts) Len() int

func (CompletedParts) Less added in v0.6.3

func (a CompletedParts) Less(i, j int) bool

func (CompletedParts) Swap added in v0.6.3

func (a CompletedParts) Swap(i, j int)

type CreateBucketConfiguration

type CreateBucketConfiguration struct {
	Xmlns              string `xml:"xmlns,attr"`
	LocationConstraint string `xml:"LocationConstraint"`
	SSEOpts            SSEConfiguration
}

type Expiration added in v0.5.3

type Expiration struct {
	Days int32 `xml:"Days"`
}

type Filter added in v0.5.3

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

type InitiateMultipartUploadResult

type InitiateMultipartUploadResult struct {
	Xmlns    string `xml:"xmlns,attr"`
	Bucket   string `xml:"Bucket"`
	Key      string `xml:"Key"`
	UploadId string `xml:"UploadId"`
}

type LifecycleConfiguration added in v0.5.3

type LifecycleConfiguration struct {
	Rule []Rule `xml:"Rule"`
}

type ListAllMyBucketsResult

type ListAllMyBucketsResult struct {
	Xmlns   string   `xml:"xmlns,attr"`
	Owner   Owner    `xml:"Owner"`
	Buckets []Bucket `xml:"Buckets"`
}

type ListPartsOutput

type ListPartsOutput struct {
	Xmlns       string `xml:"xmlns,attr"`
	Bucket      string `xml:"Bucket"`
	Key         string `xml:"Key"`
	UploadId    string `xml:"UploadId"`
	MaxParts    int    `xml:"MaxParts"`
	IsTruncated bool   `xml:"IsTruncated"`
	Owner       Owner  `xml:"Owner"`
	Parts       []Part `xml:"Part"`
}

type ListStorageClasses added in v0.5.2

type ListStorageClasses struct {
	Xmlns   string         `xml:"xmlns,attr"`
	Classes []StorageClass `xml:"Class"`
}

type Owner

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

type Part

type Part struct {
	PartNumber     int64  `xml:"PartNumber"`
	ETag           string `xml:"ETag"`
	Size           int64  `xml:"Size"`
	LastModifyTime int64  `xml:"LastModifyTime"`
}

type Restore added in v1.2.0

type Restore struct {
	Days         int64  `json:"days,omitempty"`
	Tier         string `json:"tier,omitempty"`
	StorageClass string `json:"storageClass,omitempty"`
}

type Rule added in v0.5.3

type Rule struct {
	ID                             string                          `xml:"ID"`
	Filter                         *Filter                         `xml:"Filter,omitempty"`
	Status                         string                          `xml:"Status"`
	Transition                     []Transition                    `xml:"Transition,omitempty"`
	Expiration                     []Expiration                    `xml:"Expiration,omitempty"`
	AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `xml:"AbortIncompleteMultipartUpload,omitempty"`
}

type SSEConfiguration added in v0.6.3

type SSEConfiguration struct {
	XMLName xml.Name `xml:"SSEConfiguration"`
	Text    string   `xml:",chardata"`
	SSE     struct {
		Text    string `xml:",chardata"`
		Enabled string `xml:"enabled"`
	} `xml:"SSE"`
	SSEKMS struct {
		Text                string `xml:",chardata"`
		Enabled             string `xml:"enabled"`
		DefaultKMSMasterKey string `xml:"DefaultKMSMasterKey"`
	} `xml:"SSE-KMS"`
}

type StorageClass added in v0.5.2

type StorageClass struct {
	Name string `xml:"Name"`
	Tier int32  `xml:"Tier"`
}

type Transition added in v0.5.3

type Transition struct {
	Days         int32  `xml:"Days"`
	StorageClass string `xml:"StorageClass"`
	Backend      string `xml:"Backend"`
	TargetBucket string `xml:"TargetBucket"`
}

type UploadPartResult

type UploadPartResult struct {
	Xmlns      string `xml:"xmlns,attr"`
	PartNumber int64  `xml:"PartNumber"`
	ETag       string `xml:"ETag"`
}

PartNumber should be between 1 and 10000. Please refer to https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/dev/qfacts.html

type VersioningConfiguration added in v0.6.3

type VersioningConfiguration struct {
	XMLName xml.Name `xml:"VersioningConfiguration"`
	Status  string   `xml:"Status"`
}

Jump to

Keyboard shortcuts

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