Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 105 for marshaling (0.17 sec)

  1. src/crypto/cipher/gcm.go

    type gcmAble interface {
    	NewGCM(nonceSize, tagSize int) (AEAD, error)
    }
    
    // gcmFieldElement represents a value in GF(2¹²⁸). In order to reflect the GCM
    // standard and make binary.BigEndian suitable for marshaling these values, the
    // bits are stored in big endian order. For example:
    //
    //	the coefficient of x⁰ can be obtained by v.low >> 63.
    //	the coefficient of x⁶³ can be obtained by v.low & 1.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. pilot/pkg/xds/debug.go

    		// repeat the same error for many s.adsClients.
    		cache[configVersion] = lookupResult
    		return lookupResult
    	}
    	return result
    }
    
    // kubernetesConfig wraps a config.Config with a custom marshaling method that matches a Kubernetes
    // object structure.
    type kubernetesConfig struct {
    	config.Config
    }
    
    func (k kubernetesConfig) MarshalJSON() ([]byte, error) {
    	cfg, err := crd.ConvertConfig(k.Config)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  3. pkg/model/proxy.go

    	if err != nil {
    		return err
    	}
    	*s = StringBool(b)
    	return nil
    }
    
    // ProxyConfig can only be marshaled using (gogo) jsonpb. However, the rest of node meta is not a proto
    // To allow marshaling, we need to define a custom type that calls out to the gogo marshaller
    type NodeMetaProxyConfig meshconfig.ProxyConfig
    
    func (s *NodeMetaProxyConfig) MarshalJSON() ([]byte, error) {
    	pc := (*meshconfig.ProxyConfig)(s)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 17:18:17 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. doc/godebug.md

    certificate policy OIDs with components larger than 31 bits. By default this
    field is only used during parsing, when it is populated with policy OIDs, but
    not used during marshaling. It can be used to marshal these larger OIDs, instead
    of the existing PolicyIdentifiers field, by using the
    [`x509usepolicies` setting.](/pkg/crypto/x509/#CreateCertificate).
    
    
    ### Go 1.21
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	"strconv"
    	"strings"
    
    	cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct"
    
    	inf "gopkg.in/inf.v0"
    )
    
    // Quantity is a fixed-point representation of a number.
    // It provides convenient marshaling/unmarshaling in JSON and YAML,
    // in addition to String() and AsInt64() accessors.
    //
    // The serialization format is:
    //
    // ```
    // <quantity>        ::= <signedNumber><suffix>
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/cluster_builder.go

    		if cachedCluster == nil {
    			allFound = false
    		}
    		res = append(res, cachedCluster)
    	}
    	return res, allFound
    }
    
    // build does any final build operations needed, like marshaling etc.
    func (mc *clusterWrapper) build() *cluster.Cluster {
    	if mc == nil {
    		return nil
    	}
    	// Marshall Http Protocol options if they exist.
    	if mc.httpProtocolOptions != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  7. pilot/cmd/pilot-agent/status/server.go

    		w.WriteHeader(http.StatusNotFound)
    		_, _ = w.Write([]byte(`{}`))
    		return
    	}
    	writeJSONProto(w, nametable)
    }
    
    // writeJSONProto writes a protobuf to a json payload, handling content type, marshaling, and errors
    func writeJSONProto(w http.ResponseWriter, obj proto.Message) {
    	w.Header().Set("Content-Type", "application/json")
    	b, err := protomarshal.Marshal(obj)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
  8. cmd/api-response.go

    	// Owner of the object.
    	Owner Owner
    
    	IsLatest  bool
    	VersionID string `xml:"VersionId"`
    }
    
    // Metadata metadata items implemented to ensure XML marshaling works.
    type Metadata struct {
    	Items []struct {
    		Key   string
    		Value string
    	}
    }
    
    // Set add items, duplicate items get replaced.
    func (s *Metadata) Set(k, v string) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  9. src/crypto/x509/x509.go

    	KeyUsage            KeyUsage
    
    	// Extensions contains raw X.509 extensions. When parsing certificates,
    	// this can be used to extract non-critical extensions that are not
    	// parsed by this package. When marshaling certificates, the Extensions
    	// field is ignored, see ExtraExtensions.
    	Extensions []pkix.Extension
    
    	// ExtraExtensions contains extensions to be copied, raw, into any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle_test.go

    				t.Fatalf("%d: Expected %v during validation but got %v", i+1, tc.expectedValidationErr, err)
    			}
    		})
    	}
    }
    
    // TestMarshalLifecycleConfig checks if lifecycleconfig xml
    // marshaling/unmarshaling can handle output from each other
    func TestMarshalLifecycleConfig(t *testing.T) {
    	// Time at midnight UTC
    	midnightTS := ExpirationDate{time.Date(2019, time.April, 20, 0, 0, 0, 0, time.UTC)}
    	lc := Lifecycle{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top