Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 858 for err (0.03 sec)

  1. src/cmd/buildid/buildid.go

    	}
    
    	if len(matches) == 0 {
    		return
    	}
    
    	f, err = os.OpenFile(file, os.O_RDWR, 0)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := buildid.Rewrite(f, matches, newID); err != nil {
    		log.Fatal(err)
    	}
    	if err := f.Close(); err != nil {
    		log.Fatal(err)
    	}
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Fri Jun 21 19:58:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. misc/go_android_exec/main.go

    			if err := adb("push", modDir, deviceModDir); err != nil {
    				return 0, err
    			}
    		} else {
    			if err := adb("exec-out", "mkdir", "-p", deviceCwd); err != nil {
    				return 0, err
    			}
    			if err := adbCopyTree(deviceCwd, importPath); err != nil {
    				return 0, err
    			}
    
    			// Copy .go files from the package.
    			goFiles, err := filepath.Glob("*.go")
    			if err != nil {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. internal/kms/secret-key.go

    		sealingKey := mac.Sum(nil)
    
    		block, err := aes.NewCipher(sealingKey)
    		if err != nil {
    			return nil, err
    		}
    		aead, err = cipher.NewGCM(block)
    		if err != nil {
    			return nil, err
    		}
    	case kms.ChaCha20:
    		sealingKey, err := chacha20.HChaCha20(s.key, iv)
    		if err != nil {
    			return nil, err
    		}
    		aead, err = chacha20poly1305.New(sealingKey)
    		if err != nil {
    			return nil, err
    		}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    		// mapped policy. No-mapped-policy case is ignored.
    		if err := store.deleteMappedPolicy(ctx, group, regUser, true); err != nil && !errors.Is(err, errNoSuchPolicy) {
    			return updatedAt, err
    		}
    		if err := store.deleteGroupInfo(ctx, group); err != nil && err != errNoSuchGroup {
    			return updatedAt, err
    		}
    
    		// Delete from server memory
    		delete(cache.iamGroupsMap, group)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  5. cmd/bucket-notification-handlers.go

    		return
    	}
    
    	_, err := objAPI.GetBucketInfo(ctx, bucketName, BucketOptions{})
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	config, err := globalBucketMetadataSys.GetNotificationConfig(bucketName)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	region := globalSite.Region()
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. internal/logger/logonce.go

    		}
    	}
    	if uerr == nil {
    		leafErr = err
    	}
    	return leafErr
    }
    
    // One log message per error.
    func (l *logOnceType) logOnceIf(ctx context.Context, subsystem string, err error, id string, errKind ...interface{}) {
    	if err == nil {
    		return
    	}
    
    	nerr := unwrapErrs(err)
    	l.Lock()
    	shouldLog := true
    	prev, ok := l.IDMap[id]
    	if !ok {
    		l.IDMap[id] = onceErr{
    			Err:   nerr,
    			Count: 1,
    		}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. internal/grid/connection.go

    		dst = dst[:0]
    		for {
    			hdr, err := wsReader.NextFrame()
    			if err != nil {
    				return nil, err
    			}
    			if hdr.OpCode.IsControl() {
    				if err := controlHandler(hdr, &wsReader); err != nil {
    					return nil, err
    				}
    				continue
    			}
    			if hdr.OpCode&want == 0 {
    				if err := wsReader.Discard(); err != nil {
    					return nil, err
    				}
    				continue
    			}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance_gen_test.go

    	v := rebalanceInfo{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Oct 25 19:36:57 UTC 2022
    - 11K bytes
    - Viewed (0)
  9. cmd/bucket-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	_, err := obj.PutObject(GlobalContext, bucketName, "test-object", mustGetPutObjReader(t, bytes.NewReader([]byte{}), int64(0), "", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"), ObjectOptions{})
    	// if object upload fails stop the test.
    	if err != nil {
    		t.Fatalf("Error uploading object: <ERROR> %v", err)
    	}
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  10. internal/kms/kms.go

    	aad, err := req.AssociatedData.MarshalText()
    	if err != nil {
    		return DEK{}, err
    	}
    
    	name := req.Name
    	if name == "" {
    		name = c.defaultKey
    	}
    
    	resp, err := c.client.GenerateKey(ctx, &kms.GenerateKeyRequest{
    		Enclave:        c.enclave,
    		Name:           name,
    		AssociatedData: aad,
    		Length:         32,
    	})
    	if err != nil {
    		if errors.Is(err, kms.ErrKeyNotFound) {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top