Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 177 for unmarshaler (0.33 sec)

  1. src/syscall/exec_plan9.go

    func gstringb(b []byte) []byte {
    	if len(b) < 2 {
    		return nil
    	}
    	n, b := gbit16(b)
    	if int(n) > len(b) {
    		return nil
    	}
    	return b[:n]
    }
    
    // Offset of the name field in a 9P directory entry - see UnmarshalDir() in dir_plan9.go
    const nameOffset = 39
    
    // gdirname returns the first filename from a buffer of directory entries,
    // and a slice containing the remaining directory entries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. pkg/kubelet/userns/userns_manager.go

    		m.removed = 0
    	}
    	_ = m.used.Release(int(v/userNsLength) - m.off)
    }
    
    func (m *UsernsManager) parseUserNsFileAndRecord(pod types.UID, content []byte) (userNs userNamespace, err error) {
    	if err = json.Unmarshal([]byte(content), &userNs); err != nil {
    		err = fmt.Errorf("invalid user namespace mappings file: %w", err)
    		return
    	}
    
    	if len(userNs.UIDMappings) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock.go

    func NewObjectLockConfig() *Config {
    	return &Config{
    		ObjectLockEnabled: Enabled,
    	}
    }
    
    // RetentionDate is a embedded type containing time.Time to unmarshal
    // Date in Retention
    type RetentionDate struct {
    	time.Time
    }
    
    // UnmarshalXML parses date from Retention and validates date format
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_tls_test.go

    				if test.expectTransportSocket {
    					if err := opts.mutable.cluster.TransportSocket.GetTypedConfig().UnmarshalTo(ctx); err != nil {
    						t.Fatal(err)
    					}
    				} else if test.expectTransportSocketMatch {
    					if err := opts.mutable.cluster.TransportSocketMatches[0].TransportSocket.GetTypedConfig().UnmarshalTo(ctx); err != nil {
    						t.Fatal(err)
    					}
    				}
    				test.validateTLSContext(t, ctx)
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  5. tests/integration/operator/switch_cr_test.go

    		}
    		status := &api.InstallStatus{}
    		if err := protomarshal.UnmarshalAllowUnknown(iopStatusString, status); err != nil {
    			return fmt.Errorf("failed to unmarshal istioOperator status: %v", err)
    		}
    		errs := util.Errors{}
    		unhealthyCN = []string{}
    		if status.Status != api.InstallStatus_HEALTHY {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. cmd/admin-handlers-site-replication.go

    		data, err = madmin.DecryptData(encryptionKey, bytes.NewReader(data))
    		if err != nil {
    			return SRError{
    				Cause: err,
    				Code:  ErrSiteReplicationInvalidRequest,
    			}
    		}
    	}
    	return json.Unmarshal(data, v)
    }
    
    // SiteReplicationStatus - GET /minio/admin/v3/site-replication/status
    func (a adminAPIHandlers) SiteReplicationStatus(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    		t.Errorf("got res.StatusCode %d; expected %d", res.StatusCode, http.StatusGatewayTimeout)
    	}
    	body, _ = ioutil.ReadAll(res.Body)
    	status := &metav1.Status{}
    	if err := json.Unmarshal(body, status); err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(status, &timeoutErr.ErrStatus) {
    		t.Errorf("unexpected object: %s", cmp.Diff(&timeoutErr.ErrStatus, status))
    	}
    	if record.Count() != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. pkg/kube/client.go

    		if err != nil {
    			errs = multierror.Append(errs,
    				fmt.Errorf("error port-forwarding into %s.%s: %v", pod.Namespace, pod.Name, err),
    				err,
    			)
    			continue
    		}
    		var v version.Version
    		err = json.Unmarshal(result, &v)
    		if err == nil && v.ClientVersion.Version != "" {
    			server.Info = *v.ClientVersion
    			res = append(res, server)
    			continue
    		}
    		// :15014/version returns something like
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster_test.go

    					anyOptions := cluster.TypedExtensionProtocolOptions[v3.HttpProtocolOptionsType]
    					g.Expect(anyOptions).NotTo(BeNil())
    					httpProtocolOptions := &http.HttpProtocolOptions{}
    					anyOptions.UnmarshalTo(httpProtocolOptions)
    					g.Expect(httpProtocolOptions.CommonHttpProtocolOptions.MaxRequestsPerConnection.GetValue()).
    						To(Equal(uint32(expected.Http.MaxRequestsPerConnection)))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  10. src/encoding/asn1/marshal.go

    	return t, nil
    }
    
    // Marshal returns the ASN.1 encoding of val.
    //
    // In addition to the struct tags recognized by Unmarshal, the following can be
    // used:
    //
    //	ia5:         causes strings to be marshaled as ASN.1, IA5String values
    //	omitempty:   causes empty slices to be skipped
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top