| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541 |
- // Code generated by xsdgen. DO NOT EDIT.
- package s3api
- import (
- "bytes"
- "encoding/base64"
- "encoding/xml"
- "time"
- )
- type AccessControlList struct {
- Grant []Grant `xml:"Grant,omitempty"`
- }
- type AccessControlPolicy struct {
- Owner CanonicalUser `xml:"Owner"`
- AccessControlList AccessControlList `xml:"AccessControlList"`
- }
- type AmazonCustomerByEmail struct {
- EmailAddress string `xml:"EmailAddress"`
- }
- type Anon1 struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon1) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon1
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon1) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon1
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon10 struct {
- }
- type Anon11 struct {
- Bucket string `xml:"Bucket"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon11) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon11
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon11) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon11
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon12 struct {
- }
- type Anon13 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- GetMetadata bool `xml:"GetMetadata"`
- GetData bool `xml:"GetData"`
- InlineData bool `xml:"InlineData"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon13) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon13
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon13) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon13
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon14 struct {
- GetObjectResponse GetObjectResult `xml:"GetObjectResponse"`
- }
- type Anon15 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- GetMetadata bool `xml:"GetMetadata"`
- GetData bool `xml:"GetData"`
- InlineData bool `xml:"InlineData"`
- ByteRangeStart int64 `xml:"ByteRangeStart,omitempty"`
- ByteRangeEnd int64 `xml:"ByteRangeEnd,omitempty"`
- IfModifiedSince time.Time `xml:"IfModifiedSince,omitempty"`
- IfUnmodifiedSince time.Time `xml:"IfUnmodifiedSince,omitempty"`
- IfMatch []string `xml:"IfMatch,omitempty"`
- IfNoneMatch []string `xml:"IfNoneMatch,omitempty"`
- ReturnCompleteObjectOnConditionFailure bool `xml:"ReturnCompleteObjectOnConditionFailure,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon15) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon15
- var layout struct {
- *T
- IfModifiedSince *xsdDateTime `xml:"IfModifiedSince,omitempty"`
- IfUnmodifiedSince *xsdDateTime `xml:"IfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.IfModifiedSince = (*xsdDateTime)(&layout.T.IfModifiedSince)
- layout.IfUnmodifiedSince = (*xsdDateTime)(&layout.T.IfUnmodifiedSince)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon15) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon15
- var overlay struct {
- *T
- IfModifiedSince *xsdDateTime `xml:"IfModifiedSince,omitempty"`
- IfUnmodifiedSince *xsdDateTime `xml:"IfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.IfModifiedSince = (*xsdDateTime)(&overlay.T.IfModifiedSince)
- overlay.IfUnmodifiedSince = (*xsdDateTime)(&overlay.T.IfUnmodifiedSince)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon16 struct {
- GetObjectResponse GetObjectResult `xml:"GetObjectResponse"`
- }
- type Anon17 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- ContentLength int64 `xml:"ContentLength"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon17) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon17
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon17) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon17
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon18 struct {
- PutObjectResponse PutObjectResult `xml:"PutObjectResponse"`
- }
- type Anon19 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- Data []byte `xml:"Data"`
- ContentLength int64 `xml:"ContentLength"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon19) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon19
- var layout struct {
- *T
- Data *xsdBase64Binary `xml:"Data"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Data = (*xsdBase64Binary)(&layout.T.Data)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon19) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon19
- var overlay struct {
- *T
- Data *xsdBase64Binary `xml:"Data"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Data = (*xsdBase64Binary)(&overlay.T.Data)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon2 struct {
- GetBucketLoggingStatusResponse BucketLoggingStatus `xml:"GetBucketLoggingStatusResponse"`
- }
- type Anon20 struct {
- PutObjectInlineResponse PutObjectResult `xml:"PutObjectInlineResponse"`
- }
- type Anon21 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon21) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon21
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon21) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon21
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon22 struct {
- DeleteObjectResponse Status `xml:"DeleteObjectResponse"`
- }
- type Anon23 struct {
- Bucket string `xml:"Bucket"`
- Prefix string `xml:"Prefix,omitempty"`
- Marker string `xml:"Marker,omitempty"`
- MaxKeys int `xml:"MaxKeys,omitempty"`
- Delimiter string `xml:"Delimiter,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon23) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon23
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon23) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon23
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon24 struct {
- ListBucketResponse ListBucketResult `xml:"ListBucketResponse"`
- }
- type Anon25 struct {
- ListVersionsResponse ListVersionsResult `xml:"ListVersionsResponse"`
- }
- type Anon26 struct {
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- }
- func (t *Anon26) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon26
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon26) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon26
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon27 struct {
- ListAllMyBucketsResponse ListAllMyBucketsResult `xml:"ListAllMyBucketsResponse"`
- }
- type Anon28 struct {
- Location string `xml:"Location"`
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- ETag string `xml:"ETag"`
- }
- type Anon29 struct {
- SourceBucket string `xml:"SourceBucket"`
- SourceKey string `xml:"SourceKey"`
- DestinationBucket string `xml:"DestinationBucket"`
- DestinationKey string `xml:"DestinationKey"`
- MetadataDirective MetadataDirective `xml:"MetadataDirective,omitempty"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- CopySourceIfModifiedSince time.Time `xml:"CopySourceIfModifiedSince,omitempty"`
- CopySourceIfUnmodifiedSince time.Time `xml:"CopySourceIfUnmodifiedSince,omitempty"`
- CopySourceIfMatch []string `xml:"CopySourceIfMatch,omitempty"`
- CopySourceIfNoneMatch []string `xml:"CopySourceIfNoneMatch,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon29) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon29
- var layout struct {
- *T
- CopySourceIfModifiedSince *xsdDateTime `xml:"CopySourceIfModifiedSince,omitempty"`
- CopySourceIfUnmodifiedSince *xsdDateTime `xml:"CopySourceIfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.CopySourceIfModifiedSince = (*xsdDateTime)(&layout.T.CopySourceIfModifiedSince)
- layout.CopySourceIfUnmodifiedSince = (*xsdDateTime)(&layout.T.CopySourceIfUnmodifiedSince)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon29) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon29
- var overlay struct {
- *T
- CopySourceIfModifiedSince *xsdDateTime `xml:"CopySourceIfModifiedSince,omitempty"`
- CopySourceIfUnmodifiedSince *xsdDateTime `xml:"CopySourceIfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.CopySourceIfModifiedSince = (*xsdDateTime)(&overlay.T.CopySourceIfModifiedSince)
- overlay.CopySourceIfUnmodifiedSince = (*xsdDateTime)(&overlay.T.CopySourceIfUnmodifiedSince)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon3 struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- BucketLoggingStatus BucketLoggingStatus `xml:"BucketLoggingStatus"`
- }
- func (t *Anon3) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon3
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon3) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon3
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon30 struct {
- CopyObjectResult CopyObjectResult `xml:"CopyObjectResult"`
- }
- type Anon4 struct {
- }
- type Anon5 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon5) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon5
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon5) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon5
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon6 struct {
- GetObjectAccessControlPolicyResponse AccessControlPolicy `xml:"GetObjectAccessControlPolicyResponse"`
- }
- type Anon7 struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon7) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon7
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon7) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon7
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type Anon8 struct {
- GetBucketAccessControlPolicyResponse AccessControlPolicy `xml:"GetBucketAccessControlPolicyResponse"`
- }
- type Anon9 struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- AccessControlList AccessControlList `xml:"AccessControlList"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *Anon9) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T Anon9
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *Anon9) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T Anon9
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type BucketLoggingStatus struct {
- LoggingEnabled LoggingSettings `xml:"LoggingEnabled,omitempty"`
- }
- type CanonicalUser struct {
- ID string `xml:"ID"`
- DisplayName string `xml:"DisplayName,omitempty"`
- }
- type CopyObject struct {
- SourceBucket string `xml:"SourceBucket"`
- SourceKey string `xml:"SourceKey"`
- DestinationBucket string `xml:"DestinationBucket"`
- DestinationKey string `xml:"DestinationKey"`
- MetadataDirective MetadataDirective `xml:"MetadataDirective,omitempty"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- CopySourceIfModifiedSince time.Time `xml:"CopySourceIfModifiedSince,omitempty"`
- CopySourceIfUnmodifiedSince time.Time `xml:"CopySourceIfUnmodifiedSince,omitempty"`
- CopySourceIfMatch []string `xml:"CopySourceIfMatch,omitempty"`
- CopySourceIfNoneMatch []string `xml:"CopySourceIfNoneMatch,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *CopyObject) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T CopyObject
- var layout struct {
- *T
- CopySourceIfModifiedSince *xsdDateTime `xml:"CopySourceIfModifiedSince,omitempty"`
- CopySourceIfUnmodifiedSince *xsdDateTime `xml:"CopySourceIfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.CopySourceIfModifiedSince = (*xsdDateTime)(&layout.T.CopySourceIfModifiedSince)
- layout.CopySourceIfUnmodifiedSince = (*xsdDateTime)(&layout.T.CopySourceIfUnmodifiedSince)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *CopyObject) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T CopyObject
- var overlay struct {
- *T
- CopySourceIfModifiedSince *xsdDateTime `xml:"CopySourceIfModifiedSince,omitempty"`
- CopySourceIfUnmodifiedSince *xsdDateTime `xml:"CopySourceIfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.CopySourceIfModifiedSince = (*xsdDateTime)(&overlay.T.CopySourceIfModifiedSince)
- overlay.CopySourceIfUnmodifiedSince = (*xsdDateTime)(&overlay.T.CopySourceIfUnmodifiedSince)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type CopyObjectResponse struct {
- CopyObjectResult CopyObjectResult `xml:"CopyObjectResult"`
- }
- type CopyObjectResult struct {
- LastModified time.Time `xml:"LastModified"`
- ETag string `xml:"ETag"`
- }
- func (t *CopyObjectResult) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T CopyObjectResult
- var layout struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- layout.T = (*T)(t)
- layout.LastModified = (*xsdDateTime)(&layout.T.LastModified)
- return e.EncodeElement(layout, start)
- }
- func (t *CopyObjectResult) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T CopyObjectResult
- var overlay struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- overlay.T = (*T)(t)
- overlay.LastModified = (*xsdDateTime)(&overlay.T.LastModified)
- return d.DecodeElement(&overlay, &start)
- }
- type CreateBucket struct {
- Bucket string `xml:"Bucket"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- }
- func (t *CreateBucket) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T CreateBucket
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *CreateBucket) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T CreateBucket
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type CreateBucketConfiguration struct {
- LocationConstraint string `xml:"LocationConstraint"`
- }
- type CreateBucketResponse struct {
- CreateBucketReturn CreateBucketResult `xml:"CreateBucketReturn"`
- }
- type CreateBucketResult struct {
- BucketName string `xml:"BucketName"`
- }
- type DeleteBucket struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *DeleteBucket) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T DeleteBucket
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *DeleteBucket) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T DeleteBucket
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type DeleteBucketResponse struct {
- DeleteBucketResponse Status `xml:"DeleteBucketResponse"`
- }
- type DeleteMarkerEntry struct {
- Key string `xml:"Key"`
- VersionId string `xml:"VersionId"`
- IsLatest bool `xml:"IsLatest"`
- LastModified time.Time `xml:"LastModified"`
- Owner CanonicalUser `xml:"Owner,omitempty"`
- }
- func (t *DeleteMarkerEntry) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T DeleteMarkerEntry
- var layout struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- layout.T = (*T)(t)
- layout.LastModified = (*xsdDateTime)(&layout.T.LastModified)
- return e.EncodeElement(layout, start)
- }
- func (t *DeleteMarkerEntry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T DeleteMarkerEntry
- var overlay struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- overlay.T = (*T)(t)
- overlay.LastModified = (*xsdDateTime)(&overlay.T.LastModified)
- return d.DecodeElement(&overlay, &start)
- }
- type DeleteObject struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *DeleteObject) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T DeleteObject
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *DeleteObject) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T DeleteObject
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type DeleteObjectResponse struct {
- DeleteObjectResponse Status `xml:"DeleteObjectResponse"`
- }
- type GetBucketAccessControlPolicy struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *GetBucketAccessControlPolicy) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T GetBucketAccessControlPolicy
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *GetBucketAccessControlPolicy) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T GetBucketAccessControlPolicy
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type GetBucketAccessControlPolicyResponse struct {
- GetBucketAccessControlPolicyResponse AccessControlPolicy `xml:"GetBucketAccessControlPolicyResponse"`
- }
- type GetBucketLoggingStatus struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *GetBucketLoggingStatus) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T GetBucketLoggingStatus
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *GetBucketLoggingStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T GetBucketLoggingStatus
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type GetBucketLoggingStatusResponse struct {
- GetBucketLoggingStatusResponse BucketLoggingStatus `xml:"GetBucketLoggingStatusResponse"`
- }
- type GetObject struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- GetMetadata bool `xml:"GetMetadata"`
- GetData bool `xml:"GetData"`
- InlineData bool `xml:"InlineData"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *GetObject) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T GetObject
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *GetObject) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T GetObject
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type GetObjectAccessControlPolicy struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *GetObjectAccessControlPolicy) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T GetObjectAccessControlPolicy
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *GetObjectAccessControlPolicy) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T GetObjectAccessControlPolicy
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type GetObjectAccessControlPolicyResponse struct {
- GetObjectAccessControlPolicyResponse AccessControlPolicy `xml:"GetObjectAccessControlPolicyResponse"`
- }
- type GetObjectExtended struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- GetMetadata bool `xml:"GetMetadata"`
- GetData bool `xml:"GetData"`
- InlineData bool `xml:"InlineData"`
- ByteRangeStart int64 `xml:"ByteRangeStart,omitempty"`
- ByteRangeEnd int64 `xml:"ByteRangeEnd,omitempty"`
- IfModifiedSince time.Time `xml:"IfModifiedSince,omitempty"`
- IfUnmodifiedSince time.Time `xml:"IfUnmodifiedSince,omitempty"`
- IfMatch []string `xml:"IfMatch,omitempty"`
- IfNoneMatch []string `xml:"IfNoneMatch,omitempty"`
- ReturnCompleteObjectOnConditionFailure bool `xml:"ReturnCompleteObjectOnConditionFailure,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *GetObjectExtended) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T GetObjectExtended
- var layout struct {
- *T
- IfModifiedSince *xsdDateTime `xml:"IfModifiedSince,omitempty"`
- IfUnmodifiedSince *xsdDateTime `xml:"IfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.IfModifiedSince = (*xsdDateTime)(&layout.T.IfModifiedSince)
- layout.IfUnmodifiedSince = (*xsdDateTime)(&layout.T.IfUnmodifiedSince)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *GetObjectExtended) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T GetObjectExtended
- var overlay struct {
- *T
- IfModifiedSince *xsdDateTime `xml:"IfModifiedSince,omitempty"`
- IfUnmodifiedSince *xsdDateTime `xml:"IfUnmodifiedSince,omitempty"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.IfModifiedSince = (*xsdDateTime)(&overlay.T.IfModifiedSince)
- overlay.IfUnmodifiedSince = (*xsdDateTime)(&overlay.T.IfUnmodifiedSince)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type GetObjectExtendedResponse struct {
- GetObjectResponse GetObjectResult `xml:"GetObjectResponse"`
- }
- type GetObjectResponse struct {
- GetObjectResponse GetObjectResult `xml:"GetObjectResponse"`
- }
- type GetObjectResult struct {
- Status Status `xml:"Status"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- Data []byte `xml:"Data,omitempty"`
- LastModified time.Time `xml:"LastModified"`
- ETag string `xml:"ETag"`
- }
- func (t *GetObjectResult) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T GetObjectResult
- var layout struct {
- *T
- Data *xsdBase64Binary `xml:"Data,omitempty"`
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- layout.T = (*T)(t)
- layout.Data = (*xsdBase64Binary)(&layout.T.Data)
- layout.LastModified = (*xsdDateTime)(&layout.T.LastModified)
- return e.EncodeElement(layout, start)
- }
- func (t *GetObjectResult) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T GetObjectResult
- var overlay struct {
- *T
- Data *xsdBase64Binary `xml:"Data,omitempty"`
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- overlay.T = (*T)(t)
- overlay.Data = (*xsdBase64Binary)(&overlay.T.Data)
- overlay.LastModified = (*xsdDateTime)(&overlay.T.LastModified)
- return d.DecodeElement(&overlay, &start)
- }
- type Grant struct {
- Grantee Grantee `xml:"Grantee"`
- Permission Permission `xml:"Permission"`
- }
- type Group struct {
- URI string `xml:"URI"`
- }
- type ListAllMyBuckets struct {
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- }
- func (t *ListAllMyBuckets) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T ListAllMyBuckets
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *ListAllMyBuckets) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T ListAllMyBuckets
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type ListAllMyBucketsEntry struct {
- Name string `xml:"Name"`
- CreationDate time.Time `xml:"CreationDate"`
- }
- func (t *ListAllMyBucketsEntry) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T ListAllMyBucketsEntry
- var layout struct {
- *T
- CreationDate *xsdDateTime `xml:"CreationDate"`
- }
- layout.T = (*T)(t)
- layout.CreationDate = (*xsdDateTime)(&layout.T.CreationDate)
- return e.EncodeElement(layout, start)
- }
- func (t *ListAllMyBucketsEntry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T ListAllMyBucketsEntry
- var overlay struct {
- *T
- CreationDate *xsdDateTime `xml:"CreationDate"`
- }
- overlay.T = (*T)(t)
- overlay.CreationDate = (*xsdDateTime)(&overlay.T.CreationDate)
- return d.DecodeElement(&overlay, &start)
- }
- type ListAllMyBucketsList struct {
- Bucket []ListAllMyBucketsEntry `xml:"Bucket,omitempty"`
- }
- type ListAllMyBucketsResponse struct {
- ListAllMyBucketsResponse ListAllMyBucketsResult `xml:"ListAllMyBucketsResponse"`
- }
- type ListAllMyBucketsResult struct {
- XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListAllMyBucketsResult"`
- Owner CanonicalUser `xml:"Owner"`
- Buckets ListAllMyBucketsList `xml:"Buckets"`
- }
- type ListBucket struct {
- Bucket string `xml:"Bucket"`
- Prefix string `xml:"Prefix,omitempty"`
- Marker string `xml:"Marker,omitempty"`
- MaxKeys int `xml:"MaxKeys,omitempty"`
- Delimiter string `xml:"Delimiter,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *ListBucket) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T ListBucket
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *ListBucket) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T ListBucket
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type ListBucketResponse struct {
- ListBucketResponse ListBucketResult `xml:"ListBucketResponse"`
- }
- type ListBucketResult struct {
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- Name string `xml:"Name"`
- Prefix string `xml:"Prefix"`
- Marker string `xml:"Marker"`
- NextMarker string `xml:"NextMarker,omitempty"`
- MaxKeys int `xml:"MaxKeys"`
- Delimiter string `xml:"Delimiter,omitempty"`
- IsTruncated bool `xml:"IsTruncated"`
- Contents []ListEntry `xml:"Contents,omitempty"`
- CommonPrefixes []PrefixEntry `xml:"CommonPrefixes,omitempty"`
- EncodingType string `xml:"EncodingType"`
- }
- type ListEntry struct {
- Key string `xml:"Key"`
- LastModified time.Time `xml:"LastModified"`
- ETag string `xml:"ETag"`
- Size int64 `xml:"Size"`
- Owner *CanonicalUser `xml:"Owner,omitempty"`
- StorageClass StorageClass `xml:"StorageClass"`
- }
- func (t *ListEntry) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T ListEntry
- var layout struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- layout.T = (*T)(t)
- layout.LastModified = (*xsdDateTime)(&layout.T.LastModified)
- return e.EncodeElement(layout, start)
- }
- func (t *ListEntry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T ListEntry
- var overlay struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- overlay.T = (*T)(t)
- overlay.LastModified = (*xsdDateTime)(&overlay.T.LastModified)
- return d.DecodeElement(&overlay, &start)
- }
- type ListVersionsResponse struct {
- ListVersionsResponse ListVersionsResult `xml:"ListVersionsResponse"`
- }
- type ListVersionsResult struct {
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- Name string `xml:"Name"`
- Prefix string `xml:"Prefix"`
- KeyMarker string `xml:"KeyMarker"`
- VersionIdMarker string `xml:"VersionIdMarker"`
- NextKeyMarker string `xml:"NextKeyMarker,omitempty"`
- NextVersionIdMarker string `xml:"NextVersionIdMarker,omitempty"`
- MaxKeys int `xml:"MaxKeys"`
- Delimiter string `xml:"Delimiter,omitempty"`
- IsTruncated bool `xml:"IsTruncated"`
- Version VersionEntry `xml:"Version,omitempty"`
- DeleteMarker DeleteMarkerEntry `xml:"DeleteMarker,omitempty"`
- CommonPrefixes []PrefixEntry `xml:"CommonPrefixes,omitempty"`
- }
- type LoggingSettings struct {
- TargetBucket string `xml:"TargetBucket"`
- TargetPrefix string `xml:"TargetPrefix"`
- TargetGrants AccessControlList `xml:"TargetGrants,omitempty"`
- }
- // May be one of COPY, REPLACE
- type MetadataDirective string
- type MetadataEntry struct {
- Name string `xml:"Name"`
- Value string `xml:"Value"`
- }
- // May be one of Enabled, Disabled
- type MfaDeleteStatus string
- type NotificationConfiguration struct {
- TopicConfiguration []TopicConfiguration `xml:"TopicConfiguration,omitempty"`
- }
- // May be one of BucketOwner, Requester
- type Payer string
- // May be one of READ, WRITE, READ_ACP, WRITE_ACP, FULL_CONTROL
- type Permission string
- type PostResponse struct {
- Location string `xml:"Location"`
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- ETag string `xml:"ETag"`
- }
- type PrefixEntry struct {
- Prefix string `xml:"Prefix"`
- }
- type PutObject struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- ContentLength int64 `xml:"ContentLength"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *PutObject) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T PutObject
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *PutObject) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T PutObject
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type PutObjectInline struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- Metadata []MetadataEntry `xml:"Metadata,omitempty"`
- Data []byte `xml:"Data"`
- ContentLength int64 `xml:"ContentLength"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- StorageClass StorageClass `xml:"StorageClass,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *PutObjectInline) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T PutObjectInline
- var layout struct {
- *T
- Data *xsdBase64Binary `xml:"Data"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Data = (*xsdBase64Binary)(&layout.T.Data)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *PutObjectInline) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T PutObjectInline
- var overlay struct {
- *T
- Data *xsdBase64Binary `xml:"Data"`
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Data = (*xsdBase64Binary)(&overlay.T.Data)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type PutObjectInlineResponse struct {
- PutObjectInlineResponse PutObjectResult `xml:"PutObjectInlineResponse"`
- }
- type PutObjectResponse struct {
- PutObjectResponse PutObjectResult `xml:"PutObjectResponse"`
- }
- type PutObjectResult struct {
- ETag string `xml:"ETag"`
- LastModified time.Time `xml:"LastModified"`
- }
- func (t *PutObjectResult) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T PutObjectResult
- var layout struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- layout.T = (*T)(t)
- layout.LastModified = (*xsdDateTime)(&layout.T.LastModified)
- return e.EncodeElement(layout, start)
- }
- func (t *PutObjectResult) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T PutObjectResult
- var overlay struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- overlay.T = (*T)(t)
- overlay.LastModified = (*xsdDateTime)(&overlay.T.LastModified)
- return d.DecodeElement(&overlay, &start)
- }
- type RequestPaymentConfiguration struct {
- Payer Payer `xml:"Payer"`
- }
- type Result struct {
- Status Status `xml:"Status"`
- }
- type SetBucketAccessControlPolicy struct {
- Bucket string `xml:"Bucket"`
- AccessControlList AccessControlList `xml:"AccessControlList,omitempty"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *SetBucketAccessControlPolicy) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T SetBucketAccessControlPolicy
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *SetBucketAccessControlPolicy) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T SetBucketAccessControlPolicy
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type SetBucketAccessControlPolicyResponse struct {
- }
- type SetBucketLoggingStatus struct {
- Bucket string `xml:"Bucket"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- BucketLoggingStatus BucketLoggingStatus `xml:"BucketLoggingStatus"`
- }
- func (t *SetBucketLoggingStatus) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T SetBucketLoggingStatus
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *SetBucketLoggingStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T SetBucketLoggingStatus
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type SetBucketLoggingStatusResponse struct {
- }
- type SetObjectAccessControlPolicy struct {
- Bucket string `xml:"Bucket"`
- Key string `xml:"Key"`
- AccessControlList AccessControlList `xml:"AccessControlList"`
- AWSAccessKeyId string `xml:"AWSAccessKeyId,omitempty"`
- Timestamp time.Time `xml:"Timestamp,omitempty"`
- Signature string `xml:"Signature,omitempty"`
- Credential string `xml:"Credential,omitempty"`
- }
- func (t *SetObjectAccessControlPolicy) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T SetObjectAccessControlPolicy
- var layout struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- layout.T = (*T)(t)
- layout.Timestamp = (*xsdDateTime)(&layout.T.Timestamp)
- return e.EncodeElement(layout, start)
- }
- func (t *SetObjectAccessControlPolicy) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T SetObjectAccessControlPolicy
- var overlay struct {
- *T
- Timestamp *xsdDateTime `xml:"Timestamp,omitempty"`
- }
- overlay.T = (*T)(t)
- overlay.Timestamp = (*xsdDateTime)(&overlay.T.Timestamp)
- return d.DecodeElement(&overlay, &start)
- }
- type SetObjectAccessControlPolicyResponse struct {
- }
- type Status struct {
- Code int `xml:"Code"`
- Description string `xml:"Description"`
- }
- // May be one of STANDARD, REDUCED_REDUNDANCY, GLACIER, UNKNOWN
- type StorageClass string
- type TopicConfiguration struct {
- Topic string `xml:"Topic"`
- Event []string `xml:"Event"`
- }
- type User struct {
- }
- type VersionEntry struct {
- Key string `xml:"Key"`
- VersionId string `xml:"VersionId"`
- IsLatest bool `xml:"IsLatest"`
- LastModified time.Time `xml:"LastModified"`
- ETag string `xml:"ETag"`
- Size int64 `xml:"Size"`
- Owner CanonicalUser `xml:"Owner,omitempty"`
- StorageClass StorageClass `xml:"StorageClass"`
- }
- func (t *VersionEntry) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- type T VersionEntry
- var layout struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- layout.T = (*T)(t)
- layout.LastModified = (*xsdDateTime)(&layout.T.LastModified)
- return e.EncodeElement(layout, start)
- }
- func (t *VersionEntry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
- type T VersionEntry
- var overlay struct {
- *T
- LastModified *xsdDateTime `xml:"LastModified"`
- }
- overlay.T = (*T)(t)
- overlay.LastModified = (*xsdDateTime)(&overlay.T.LastModified)
- return d.DecodeElement(&overlay, &start)
- }
- type VersioningConfiguration struct {
- Status VersioningStatus `xml:"Status,omitempty"`
- MfaDelete MfaDeleteStatus `xml:"MfaDelete,omitempty"`
- }
- // May be one of Enabled, Suspended
- type VersioningStatus string
- type xsdBase64Binary []byte
- func (b *xsdBase64Binary) UnmarshalText(text []byte) (err error) {
- *b, err = base64.StdEncoding.DecodeString(string(text))
- return
- }
- func (b xsdBase64Binary) MarshalText() ([]byte, error) {
- var buf bytes.Buffer
- enc := base64.NewEncoder(base64.StdEncoding, &buf)
- enc.Write([]byte(b))
- enc.Close()
- return buf.Bytes(), nil
- }
- type xsdDateTime time.Time
- func (t *xsdDateTime) UnmarshalText(text []byte) error {
- return _unmarshalTime(text, (*time.Time)(t), "2006-01-02T15:04:05.999999999")
- }
- func (t xsdDateTime) MarshalText() ([]byte, error) {
- return _marshalTime((time.Time)(t), "2006-01-02T15:04:05.999999999")
- }
- func (t xsdDateTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
- if (time.Time)(t).IsZero() {
- return nil
- }
- m, err := t.MarshalText()
- if err != nil {
- return err
- }
- return e.EncodeElement(m, start)
- }
- func (t xsdDateTime) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
- if (time.Time)(t).IsZero() {
- return xml.Attr{}, nil
- }
- m, err := t.MarshalText()
- return xml.Attr{Name: name, Value: string(m)}, err
- }
- func _unmarshalTime(text []byte, t *time.Time, format string) (err error) {
- s := string(bytes.TrimSpace(text))
- *t, err = time.Parse(format, s)
- if _, ok := err.(*time.ParseError); ok {
- *t, err = time.Parse(format+"Z07:00", s)
- }
- return err
- }
- func _marshalTime(t time.Time, format string) ([]byte, error) {
- return []byte(t.Format(format + "Z07:00")), nil
- }
|