Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 182 for unmarshalV (0.08 sec)

  1. cmd/xl-storage.go

    			// This code-path is to preserve the legacy data.
    			xlMetaLegacy := &xlMetaV1Object{}
    			json := jsoniter.ConfigCompatibleWithStandardLibrary
    			if err := json.Unmarshal(dstBuf, xlMetaLegacy); err != nil {
    				storageLogOnceIf(ctx, err, "read-data-unmarshal-"+dstFilePath)
    				// Data appears corrupt. Drop data.
    			} else {
    				xlMetaLegacy.DataDir = legacyDataDir
    				if err = xlMeta.AddLegacy(xlMetaLegacy); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  2. cmd/kms-handlers_test.go

    		t.Errorf("want status code %d, got %d", test.wantStatusCode, rec.Code)
    	}
    
    	// Check returned key list is correct
    	if test.wantKeyNames != nil {
    		keys := []madmin.KMSKeyInfo{}
    		err := json.Unmarshal(rec.Body.Bytes(), &keys)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(keys) != len(test.wantKeyNames) {
    			t.Fatalf("want %d keys, got %d", len(test.wantKeyNames), len(keys))
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle_test.go

    			},
    		},
    	}
    	b, err := xml.MarshalIndent(&lc, "", "\t")
    	if err != nil {
    		t.Fatal(err)
    	}
    	var lc1 Lifecycle
    	err = xml.Unmarshal(b, &lc1)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	ruleSet := make(map[string]struct{})
    	for _, rule := range lc.Rules {
    		ruleBytes, err := xml.Marshal(rule)
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    		if err != nil {
    			t.Fatal(failTestStr(anonTestStr, fmt.Sprintf("Failed parsing response body: <ERROR> %v", err)))
    		}
    
    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    			t.Fatal(failTestStr(anonTestStr, "error response failed to parse error XML"))
    		}
    
    		if actualError.BucketName != bucketName {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    	var ver struct {
    		Version int `json:"version"`
    	}
    	err = json.Unmarshal(buf, &ver)
    	if err != nil {
    		return err
    	}
    	if ver.Version != srStateFormatVersion1 {
    		return fmt.Errorf("Unexpected ClusterRepl state version: %d", ver.Version)
    	}
    
    	var sdata srStateData
    	err = json.Unmarshal(buf, &sdata)
    	if err != nil {
    		return err
    	}
    
    	c.Lock()
    	defer c.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  6. cmd/admin-bucket-handlers.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	var target madmin.BucketTarget
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(reqBytes, &target); err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    				}
    				return nil
    			}, idx, *client.host)
    		}
    
    		for _, nerr := range ng.Wait() {
    			if nerr.Err != nil {
    				waitingDrives := map[string]madmin.DiskMetrics{}
    				jerr := json.Unmarshal([]byte(nerr.Err.Error()), &waitingDrives)
    				if jerr == nil {
    					prs, ok := peerResults[nerr.Host.String()]
    					if ok {
    						prs.WaitingDrives = waitingDrives
    						peerResults[nerr.Host.String()] = prs
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  8. cmd/iam-object-store.go

    	data, _, err := iamOS.loadIAMConfigBytesWithMetadata(ctx, objPath)
    	if err != nil {
    		return err
    	}
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	return json.Unmarshal(data, item)
    }
    
    func (iamOS *IAMObjectStore) deleteIAMConfig(ctx context.Context, path string) error {
    	return deleteConfig(ctx, iamOS.objAPI, path)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. api/go1.21.txt

    pkg context, func WithTimeoutCause(Context, time.Duration, error) (Context, CancelFunc) #56661
    pkg crypto/elliptic, func GenerateKey //deprecated #52221
    pkg crypto/elliptic, func Marshal //deprecated #52221
    pkg crypto/elliptic, func Unmarshal //deprecated #52221
    pkg crypto/elliptic, method (*CurveParams) Add //deprecated #34648
    pkg crypto/elliptic, method (*CurveParams) Double //deprecated #34648
    pkg crypto/elliptic, method (*CurveParams) IsOnCurve //deprecated #34648
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  10. istioctl/pkg/proxyconfig/proxyconfig.go

    			Global struct {
    				Proxy struct {
    					LogLevel string `json:"logLevel"`
    				} `json:"proxy"`
    			} `json:"global"`
    		} `json:"sidecarInjectorWebhook"`
    	}
    	if err := yaml.Unmarshal([]byte(valuesConfig), &values); err != nil {
    		return "", fmt.Errorf("failed to parse values config: %v [%v]", err, valuesConfig)
    	}
    	return values.SidecarInjectorWebhook.Global.Proxy.LogLevel, nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
Back to top