Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for marshalYaml (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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