- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for DecodeElement (0.08 sec)
-
internal/bucket/lifecycle/filter.go
case "Prefix": var p Prefix if err = d.DecodeElement(&p, &se); err != nil { return err } f.Prefix = p case "And": var and And if err = d.DecodeElement(&and, &se); err != nil { return err } f.And = and f.andSet = true case "Tag": var tag Tag if err = d.DecodeElement(&tag, &se); err != nil { return err } f.Tag = tag
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 04 17:01:26 UTC 2024 - 6.2K bytes - Viewed (0) -
internal/bucket/lifecycle/prefix.go
set bool Unused struct{} // Needed for GOB compatibility } // UnmarshalXML - decodes XML data. func (p *Prefix) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { var s string if err = d.DecodeElement(&s, &start); err != nil { return err } *p = Prefix{string: s, set: true} return nil } // MarshalXML - decodes XML data. func (p Prefix) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 15 14:45:25 UTC 2023 - 1.5K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration.go
// UnmarshalXML parses number of days from Expiration and validates if // greater than zero func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error { var numDays int err := d.DecodeElement(&numDays, &startElement) if err != nil { return err } if numDays <= 0 { return errLifecycleInvalidDays } *eDays = ExpirationDays(numDays) return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 6.6K bytes - Viewed (0) -
internal/s3select/csv/args.go
tagName := se.Name.Local switch tagName { case "AllowQuotedRecordDelimiter": var b bool if err = d.DecodeElement(&b, &se); err != nil { return err } args.AllowQuotedRecordDelimiter = b default: var s string if err = d.DecodeElement(&s, &se); err != nil { return err } switch tagName { case "FileHeaderInfo": s = strings.ToLower(s)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 20 18:31:45 UTC 2024 - 5.7K bytes - Viewed (0) -
internal/bucket/replication/destination.go
func (d *Destination) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) (err error) { // Make subtype to avoid recursive UnmarshalXML(). type destination Destination dest := destination{} if err := dec.DecodeElement(&dest, &start); err != nil { return err } parsedDest, err := parseDestination(dest.Bucket) if err != nil { return err } if dest.StorageClass != "" { switch dest.StorageClass {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4K bytes - Viewed (0) -
internal/bucket/lifecycle/delmarker-expiration.go
func (de *DelMarkerExpiration) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { type delMarkerExpiration DelMarkerExpiration var dexp delMarkerExpiration err := dec.DecodeElement(&dexp, &start) if err != nil { return err } if dexp.Days <= 0 { return errInvalidDaysDelMarkerExpiration } *de = DelMarkerExpiration(dexp) return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 2.3K bytes - Viewed (0) -
internal/bucket/lifecycle/tag.go
t, err := d.Token() if err != nil { if err == io.EOF { break } return err } if se, ok := t.(xml.StartElement); ok { var s string if err = d.DecodeElement(&s, &se); err != nil { return err } switch se.Name.Local { case "Key": if keyAlreadyParsed { return errDuplicatedXMLTag } tag.Key = s keyAlreadyParsed = true
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 2.4K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle.go
} if se, ok := t.(xml.StartElement); ok { switch se.Name.Local { case "Rule": var r Rule if err = d.DecodeElement(&r, &se); err != nil { return err } lc.Rules = append(lc.Rules, r) case "ExpiryUpdatedAt": var t time.Time if err = d.DecodeElement(&t, &start); err != nil { return err } lc.ExpiryUpdatedAt = &t default:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
internal/bucket/object/lock/lock.go
// Make subtype to avoid recursive UnmarshalXML(). type defaultRetention DefaultRetention retention := defaultRetention{} if err := d.DecodeElement(&retention, &start); err != nil { return err } switch retention.Mode { case RetGovernance, RetCompliance: default: return fmt.Errorf("unknown retention mode %v", retention.Mode) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0) -
internal/s3select/select.go
return bufio.NewWriter(xioutil.Discard) }, } // UnmarshalXML - decodes XML data. func (c *CompressionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { var s string if err := d.DecodeElement(&s, &start); err != nil { return errMalformedXML(err) } parsedType := CompressionType(strings.ToUpper(s)) if s == "" || parsedType == "NONE" { parsedType = noneType } switch parsedType {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 21.2K bytes - Viewed (0)