Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 75 for encodeToString (0.25 sec)

  1. cmd/api-response.go

    	data.Delimiter = s3EncodeName(delimiter, encodingType)
    	data.Prefix = s3EncodeName(prefix, encodingType)
    	data.MaxKeys = maxKeys
    	data.ContinuationToken = base64.StdEncoding.EncodeToString([]byte(token))
    	data.NextContinuationToken = base64.StdEncoding.EncodeToString([]byte(nextToken))
    	data.IsTruncated = isTruncated
    
    	commonPrefixes := make([]CommonPrefix, 0, len(prefixes))
    	for _, prefix := range prefixes {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  2. cmd/post-policy_test.go

    	expirationTime := UTCNow().Add(time.Minute * 5)
    	// Create a new post policy.
    	policy := newPostPolicyBytesV2(bucketName, objectName, expirationTime)
    	// Only need the encoding.
    	encodedPolicy := base64.StdEncoding.EncodeToString(policy)
    
    	// Presign with V4 signature based on the policy.
    	signature := calculateSignatureV2(encodedPolicy, secretKey)
    
    	formData := map[string]string{
    		"AWSAccessKeyId":              accessKey,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  3. internal/event/target/elasticsearch.go

    				hh, _ := highwayhash.New(magicHighwayHash256Key) // New will never return error since key is 256 bit
    				hh.Write([]byte(key))
    				hashBytes := hh.Sum(nil)
    				keyHash = base64.URLEncoding.EncodeToString(hashBytes)
    			} else {
    				keyHash = key
    			}
    		}
    
    		if eventData.EventName == event.ObjectRemovedDelete {
    			err = target.client.removeEntry(ctx, target.args.Index, keyHash)
    		} else {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    		md5Bytes := md5.Sum([]byte(object.content))
    		_, err = obj.PutObject(context.Background(), object.parentBucket, object.name, mustGetPutObjReader(t, bytes.NewBufferString(object.content),
    			int64(len(object.content)), hex.EncodeToString(md5Bytes[:]), ""), ObjectOptions{
    			Versioned:   globalBucketVersioningSys.PrefixEnabled(object.parentBucket, object.name),
    			UserDefined: object.meta,
    		})
    		if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/update_test.go

    				t.Errorf("error case %d: expected no error, got: %v", i+1, err)
    			}
    		} else if err == nil {
    			t.Errorf("error case %d: expected error got: %v", i+1, err)
    		}
    		if err == nil {
    			if hex.EncodeToString(sha256Sum) != testCase.expectedSha256hex {
    				t.Errorf("case %d: result: expected: %v, got: %x", i+1, testCase.expectedSha256hex, sha256Sum)
    			}
    			if !testCase.expectedResult.Equal(result) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  6. cmd/tier.go

    			cfg.Azure.SPAuth.ClientSecret = creds.AzSP.ClientSecret
    		}
    	case madmin.GCS:
    		if creds.CredsJSON == nil {
    			return errTierMissingCredentials
    		}
    		cfg.GCS.Creds = base64.URLEncoding.EncodeToString(creds.CredsJSON)
    	case madmin.MinIO:
    		if creds.AccessKey == "" || creds.SecretKey == "" {
    			return errTierMissingCredentials
    		}
    		cfg.MinIO.AccessKey = creds.AccessKey
    		cfg.MinIO.SecretKey = creds.SecretKey
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    		// requests ETag might be longer and the code decrypting the
    		// ETag ignores ETag in multipart ETag form i.e <hex>-N
    		return hex.EncodeToString(md5sumCurr)[:32] + "-1"
    	}
    	return hex.EncodeToString(md5sumCurr)
    }
    
    // WithEncryption sets up encrypted reader and the sealing for content md5sum
    // using objEncKey. Unsealed md5sum is computed from the rawReader setup when
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. cmd/server-main.go

    	}
    
    	globalLocalNodeName = GetLocalPeer(globalEndpoints, globalMinioHost, globalMinioPort)
    	nodeNameSum := sha256.Sum256([]byte(globalLocalNodeName))
    	globalLocalNodeNameHex = hex.EncodeToString(nodeNameSum[:])
    
    	// Initialize, see which NIC the service is running on, and save it as global value
    	setGlobalInternodeInterface(ctxt.Interface)
    
    	globalTCPOptions = xhttp.TCPOptions{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 33K bytes
    - Viewed (1)
  9. internal/logger/logger.go

    	return trace
    }
    
    // HashString - return the highway hash of the passed string
    func HashString(input string) string {
    	hh, _ := highwayhash.New(magicHighwayHash256Key)
    	hh.Write([]byte(input))
    	return hex.EncodeToString(hh.Sum(nil))
    }
    
    // LogAlwaysIf prints a detailed error message during
    // the execution of the server.
    func LogAlwaysIf(ctx context.Context, subsystem string, err error, errKind ...interface{}) {
    	if err == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  10. cmd/encryption-v1.go

    	}
    
    	etag, err := hex.DecodeString(object.ETag)
    	if err != nil {
    		return "", err
    	}
    	etag, err = key.UnsealETag(etag)
    	if err != nil {
    		return "", err
    	}
    	return hex.EncodeToString(etag), nil
    }
    
    // For encrypted objects, the ETag sent by client if available
    // is stored in encrypted form in the backend. Decrypt the ETag
    // if ETag was previously encrypted.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
Back to top