Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 279 for given (0.26 sec)

  1. cmd/bitrot.go

    		logger.CriticalIf(GlobalContext, errors.New("Unsupported bitrot algorithm"))
    		return nil
    	}
    }
    
    // Available reports whether the given algorithm is available.
    func (a BitrotAlgorithm) Available() bool {
    	_, ok := bitrotAlgorithms[a]
    	return ok
    }
    
    // String returns the string identifier for a given bitrot algorithm.
    // If the algorithm is not supported String panics.
    func (a BitrotAlgorithm) String() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  2. cmd/hasher.go

    )
    
    // getSHA256Hash returns SHA-256 hash in hex encoding of given data.
    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 13:00:19 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  3. internal/s3select/message.go

    func newRecordsMessage(payload []byte) []byte {
    	return genMessage(recordsHeader, payload)
    }
    
    // payloadLenForMsgLen computes the length of the payload in a record
    // message given the total length of the message.
    func payloadLenForMsgLen(messageLength int) int {
    	headerLength := len(recordsHeader)
    	payloadLength := messageLength - 4 - 4 - 4 - headerLength - 4
    	return payloadLength
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  4. internal/dsync/dsync-server_test.go

    		time.Sleep(time.Duration(d))
    	}
    
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	if _, reply = l.lockMap[args.Resources[0]]; !reply {
    		l.lockMap[args.Resources[0]] = WriteLock // No locks held on the given name, so claim write lock
    	}
    	reply = !reply // Negate *reply to return true when lock is granted or false otherwise
    	return reply, nil
    }
    
    func (l *lockServer) Unlock(args *LockArgs) (reply bool, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  5. cmd/sts-handlers_test.go

    	}
    	testApps := testClientApps
    
    	rolePolicies := []string{
    		"", // Treated as claim-based provider as no role policy is given.
    		"", // Treated as claim-based provider as no role policy is given.
    	}
    
    	for i, testCase := range iamTestSuites {
    		t.Run(
    			fmt.Sprintf("Test: %d, ServerType: %s", i+1, testCase.ServerTypeDescription),
    			func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  6. cmd/object-api-multipart_test.go

    		},
    		// listMultipartResults - 23.
    		// Testing for listing of 3 uploadID's for a given object
    		// setting `prefix` to be "orange".
    		// Will be used to list on bucketNames[1].
    		{
    			MaxUploads:  10,
    			IsTruncated: false,
    			Prefix:      "orange",
    		},
    		// listMultipartResults - 24.
    		// Testing for listing of 3 uploadID's for a given object.
    		// setting `prefix` to be "Asia".
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  7. docs/iam/identity-management-plugin.md

    `MINIO_IDENTITY_PLUGIN_ROLE_POLICY` is a required parameter and can be list of comma separated policy names.
    
    On setting up the plugin, the MinIO server prints the Role ARN to its log. The Role ARN is generated by default based on the given plugin URL. To avoid this and use a configurable value set a unique role ID via `MINIO_IDENTITY_PLUGIN_ROLE_ID`.
    
    ## REST API call to plugin
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  8. cmd/xl-storage-disk-id-check.go

    	}
    	defer done(&err)
    
    	return p.storage.StatInfoFile(ctx, volume, path, glob)
    }
    
    // ReadMultiple will read multiple files and send each files as response.
    // Files are read and returned in the given order.
    // The resp channel is closed before the call returns.
    // Only a canceled context will return an error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  9. internal/http/check_port_linux.go

    package http
    
    import (
    	"context"
    	"net"
    	"syscall"
    	"time"
    )
    
    // CheckPortAvailability - check if given host and port is already in use.
    // Note: The check method tries to listen on given port and closes it.
    // It is possible to have a disconnected client in this tiny window of time.
    func CheckPortAvailability(host, port string, opts TCPOptions) (err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 03 21:12:25 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  10. cmd/tier-sweeper.go

    	Versioned           bool
    	Suspended           bool
    	TransitionStatus    string
    	TransitionTier      string
    	TransitionVersionID string
    	RemoteObject        string
    }
    
    // newObjSweeper returns an objSweeper for a given bucket and object.
    // It initializes the versioning information using bucket name.
    func newObjSweeper(bucket, object string) *objSweeper {
    	return &objSweeper{
    		Object: object,
    		Bucket: bucket,
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 4.7K bytes
    - Viewed (0)
Back to top