Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 713 for errf (0.02 sec)

  1. cmd/kms-handlers.go

    		return
    	}
    
    	stat, err := GlobalKMS.Status(ctx)
    	if err != nil {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    		return
    	}
    	resp, err := json.Marshal(stat)
    	if err != nil {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    		return
    	}
    	writeSuccessResponseJSON(w, resp)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. internal/event/target/webhook.go

    		return err
    	}
    	err := target.send(eventData)
    	if err != nil {
    		if xnet.IsNetworkOrHostDown(err, false) {
    			return store.ErrNotConnected
    		}
    	}
    	return err
    }
    
    // send - sends an event to the webhook.
    func (target *WebhookTarget) send(eventData event.Event) error {
    	objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    	if err != nil {
    		return err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. cmd/data-usage.go

    		dataUsageJSON, err := json.Marshal(dataUsageInfo)
    		if err != nil {
    			scannerLogIf(ctx, err)
    			continue
    		}
    		if attempts > 10 {
    			saveConfig(ctx, objAPI, dataUsageObjNamePath+".bkp", dataUsageJSON) // Save a backup every 10th update.
    			attempts = 1
    		}
    		if err = saveConfig(ctx, objAPI, dataUsageObjNamePath, dataUsageJSON); err != nil {
    			scannerLogOnceIf(ctx, err, dataUsageObjNamePath)
    		}
    		attempts++
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. internal/config/policy/opa/config.go

    		authToken = env.Get(EnvPolicyOpaAuthToken, kv.Get(AuthToken))
    	}
    
    	u, err := xnet.ParseHTTPURL(opaURL)
    	if err != nil {
    		return args, err
    	}
    	args = Args{
    		URL:         u,
    		AuthToken:   authToken,
    		Transport:   transport,
    		CloseRespFn: closeRespFn,
    	}
    	if err = args.Validate(); err != nil {
    		return args, err
    	}
    	return args, nil
    }
    
    // New - initializes opa policy engine connector.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	z.ModTime, bts, err = msgp.ReadInt64Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "ModTime")
    		return
    	}
    	bts, err = msgp.ReadExactBytes(bts, (z.Signature)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "Signature")
    		return
    	}
    	{
    		var zb0002 uint8
    		zb0002, bts, err = msgp.ReadUint8Bytes(bts)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. cmd/warm-backend-minio.go

    }
    
    func (m *warmBackendMinIO) PutWithMeta(ctx context.Context, object string, r io.Reader, length int64, meta map[string]string) (remoteVersionID, error) {
    	partSize, err := optimalPartSize(length)
    	if err != nil {
    		return remoteVersionID(""), err
    	}
    	res, err := m.client.PutObject(ctx, m.Bucket, m.getDest(object), r, length, minio.PutObjectOptions{
    		StorageClass:         m.StorageClass,
    		PartSize:             uint64(partSize),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. internal/dsync/lock-args_gen_test.go

    func TestMarshalUnmarshalLockArgs(t *testing.T) {
    	v := LockArgs{}
    	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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. tests/tests_test.go

    )
    
    func init() {
    	var err error
    	if DB, err = OpenTestConnection(&gorm.Config{}); err != nil {
    		log.Printf("failed to connect database, got error %v", err)
    		os.Exit(1)
    	} else {
    		sqlDB, err := DB.DB()
    		if err != nil {
    			log.Printf("failed to connect database, got error %v", err)
    			os.Exit(1)
    		}
    
    		err = sqlDB.Ping()
    		if err != nil {
    			log.Printf("failed to ping sqlDB, got error %v", err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Sep 30 03:21:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. cmd/bitrot_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = writer.Write([]byte("aaaaa"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	if bw, ok := writer.(io.Closer); ok {
    		bw.Close()
    	}
    
    	reader := newBitrotReader(disk, nil, volume, filePath, 35, bitrotAlgo, bitrotWriterSum(writer), 10)
    	b := make([]byte, 10)
    	if _, err = reader.ReadAt(b, 0); err != nil {
    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b, 10); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. cmd/api-errors_test.go

    	{err: ObjectNameInvalid{}, errCode: ErrInvalidObjectName},
    	{err: InvalidUploadID{}, errCode: ErrNoSuchUpload},
    	{err: InvalidPart{}, errCode: ErrInvalidPart},
    	{err: InsufficientReadQuorum{}, errCode: ErrSlowDownRead},
    	{err: InsufficientWriteQuorum{}, errCode: ErrSlowDownWrite},
    	{err: InvalidUploadIDKeyCombination{}, errCode: ErrNotImplemented},
    	{err: MalformedUploadID{}, errCode: ErrNoSuchUpload},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 15:13:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top