Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for marshalYaml (0.13 sec)

  1. internal/event/arn.go

    	if arn.TargetID.ID == "" && arn.TargetID.Name == "" && arn.region == "" {
    		return ""
    	}
    
    	return "arn:minio:sqs:" + arn.region + ":" + arn.TargetID.String()
    }
    
    // MarshalXML - encodes to XML data.
    func (arn ARN) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	return e.EncodeElement(arn.String(), start)
    }
    
    // UnmarshalXML - decodes XML data.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. internal/bucket/replication/destination.go

    // used for multi-destination targets
    func (d Destination) TargetArn() bool {
    	return strings.HasPrefix(d.ARN, DestinationARNMinIOPrefix)
    }
    
    // MarshalXML - encodes to XML data.
    func (d Destination) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. internal/bucket/replication/filter.go

    // IsEmpty returns true if filter is not set
    func (f Filter) IsEmpty() bool {
    	return f.And.isEmpty() && f.Tag.IsEmpty() && f.Prefix == ""
    }
    
    // MarshalXML - produces the xml representation of the Filter struct
    // only one of Prefix, And and Tag should be present in the output.
    func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    
    	switch {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/doc.go

    // well-known interface methods from the standard library has the correct
    // signature for that interface.
    //
    // Checked method names include:
    //
    //	Format GobEncode GobDecode MarshalJSON MarshalXML
    //	Peek ReadByte ReadFrom ReadRune Scan Seek
    //	UnmarshalJSON UnreadByte UnreadRune WriteByte
    //	WriteTo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. internal/bucket/encryption/bucket-sse-config.go

    	case string(AES256):
    		*alg = AES256
    	case string(AWSKms):
    		*alg = AWSKms
    	default:
    		return errors.New("Unknown SSE algorithm")
    	}
    
    	return nil
    }
    
    // MarshalXML - Marshals given SSE algorithm to valid XML
    func (alg *Algorithm) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	return e.EncodeElement(string(*alg), start)
    }
    
    // EncryptionAction - for ApplyServerSideEncryptionByDefault XML tag
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  6. src/encoding/xml/example_marshaling_test.go

    		return err
    	}
    	switch strings.ToLower(s) {
    	default:
    		*a = Unknown
    	case "gopher":
    		*a = Gopher
    	case "zebra":
    		*a = Zebra
    	}
    
    	return nil
    }
    
    func (a Animal) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	var s string
    	switch a {
    	default:
    		s = "unknown"
    	case Gopher:
    		s = "gopher"
    	case Zebra:
    		s = "zebra"
    	}
    	return e.EncodeElement(s, start)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 12 14:18:06 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/filter.go

    	And    And
    	andSet bool
    
    	Tag    Tag
    	tagSet bool
    
    	// Caching tags, only once
    	cachedTags map[string]string
    }
    
    // MarshalXML - produces the xml representation of the Filter struct
    // only one of Prefix, And and Tag should be present in the output.
    func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    
    	switch {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/encoding/xml/marshal.go

    	// Push a marker onto the tag stack so that MarshalXML
    	// cannot close the XML tags that it did not open.
    	p.tags = append(p.tags, Name{})
    	n := len(p.tags)
    
    	err := val.MarshalXML(p.encoder, start)
    	if err != nil {
    		return err
    	}
    
    	// Make sure MarshalXML closed all its tags. p.tags[n-1] is the mark.
    	if len(p.tags) > n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. internal/event/name.go

    	case ObjectLargeVersions:
    		return "s3:Scanner:LargeVersions"
    
    	case PrefixManyFolders:
    		return "s3:Scanner:BigPrefix"
    	}
    
    	return ""
    }
    
    // MarshalXML - encodes to XML data.
    func (name Name) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	return e.EncodeElement(name.String(), start)
    }
    
    // UnmarshalXML - decodes XML data.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go

    	"Is":            {[]string{"error"}, []string{"bool"}},                             // errors.Is
    	"MarshalJSON":   {[]string{}, []string{"[]byte", "error"}},                         // json.Marshaler
    	"MarshalXML":    {[]string{"*xml.Encoder", "xml.StartElement"}, []string{"error"}}, // xml.Marshaler
    	"ReadByte":      {[]string{}, []string{"byte", "error"}},                           // io.ByteReader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top