Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for marshalers (0.43 sec)

  1. cmd/api-response.go

    		Key   string
    		Value string
    	}{
    		Key:   k,
    		Value: v,
    	})
    }
    
    type xmlKeyEntry struct {
    	XMLName xxml.Name
    	Value   string `xml:",chardata"`
    }
    
    // MarshalXML - StringMap marshals into XML.
    func (s *Metadata) MarshalXML(e *xxml.Encoder, start xxml.StartElement) error {
    	if s == nil {
    		return nil
    	}
    
    	if len(s.Items) == 0 {
    		return nil
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. pilot/pkg/model/context.go

    				Annotations: annotations,
    			}, meshConfig); generatedProxyConfig != nil {
    			return generatedProxyConfig
    		}
    	}
    	return mesh.DefaultProxyConfig()
    }
    
    // Resources is an alias for array of marshaled resources.
    type Resources = []*discovery.Resource
    
    // DeletedResources is an alias for array of strings that represent removed resources in delta.
    type DeletedResources = []string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (1)
  3. pilot/pkg/model/sidecar.go

    	// which means which config changes will affect the proxies within this scope.
    	configDependencies sets.Set[ConfigHash]
    }
    
    // MarshalJSON implements json.Marshaller
    func (sc *SidecarScope) MarshalJSON() ([]byte, error) {
    	// Json cannot expose unexported fields, so copy the ones we want here
    	return json.MarshalIndent(map[string]any{
    		"version":               sc.Version,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  4. pilot/pkg/model/telemetry.go

    	// These filters are extremely costly, as we insert them into every listener on every proxy, and to
    	// generate them we need to merge many telemetry specs and perform 2 Any marshals.
    	// To improve performance, we store a cache based on the Telemetries that impacted the filter, as well as
    	// its class and protocol. This is protected by mu.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. src/encoding/json/decode.go

    // a JSON value. UnmarshalJSON must copy the JSON data
    // if it wishes to retain the data after returning.
    //
    // By convention, to approximate the behavior of [Unmarshal] itself,
    // Unmarshalers implement UnmarshalJSON([]byte("null")) as a no-op.
    type Unmarshaler interface {
    	UnmarshalJSON([]byte) error
    }
    
    // An UnmarshalTypeError describes a JSON value that was
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  6. cmd/erasure-multipart.go

    // object and uploadID.  Takes additional input of part-number-marker
    // to indicate where the listing should begin from.
    //
    // Implements S3 compatible ListObjectParts API. The resulting
    // ListPartsInfo structure is marshaled directly into XML and
    // replied back to the client.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2.go

    				bts, err = tmp.unmarshalV(1, bts)
    				if err != nil {
    					return msgp.WrapError(err, "Versions", za0001)
    				}
    				end := len(allMeta) - len(bts)
    				// We reference the marshaled data, so we don't have to re-marshal.
    				x.versions[za0001] = xlMetaV2ShallowVersion{
    					header: tmp.header(),
    					meta:   allMeta[start:end],
    				}
    			}
    		default:
    			bts, err = msgp.Skip(bts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  8. pilot/pkg/model/push_context.go

    		}
    		ps.ServiceIndex.instancesByPort[svcKey][port] = append(ps.ServiceIndex.instancesByPort[svcKey][port], inst...)
    	}
    }
    
    // StatusJSON implements json.Marshaller, with a lock.
    func (ps *PushContext) StatusJSON() ([]byte, error) {
    	if ps == nil {
    		return []byte{'{', '}'}, nil
    	}
    	ps.proxyStatusMutex.RLock()
    	defer ps.proxyStatusMutex.RUnlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  9. cmd/server_test.go

    	// The reason to duplicate this structure here is to verify if the
    	// unmarshalling works from a client perspective, specifically
    	// while unmarshalling time.Time type for 'Initiated' field.
    	// time.Time does not honor xml marshaller, it means that we need
    	// to encode/format it before giving it to xml marshaling.
    
    	// This below check adds client side verification to see if its
    	// truly parsable.
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/pkg.go

    	}
    	return "package " + strings.Join(p.ImportStack, "\n\timports ") + optpos + ": " + p.Err.Error()
    }
    
    func (p *PackageError) Unwrap() error { return p.Err }
    
    // PackageError implements MarshalJSON so that Err is marshaled as a string
    // and non-essential fields are omitted.
    func (p *PackageError) MarshalJSON() ([]byte, error) {
    	perr := struct {
    		ImportStack []string
    		Pos         string
    		Err         string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top