Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Validation (0.17 sec)

  1. internal/logger/console.go

    			args = append(args, msg)
    			msg = "%s"
    		}
    		console.pretty(msg+"\n", args...)
    	}
    }
    
    // Fatal prints only fatal error message with no stack trace
    // it will be called for input validation failures
    func Fatal(err error, msg string, data ...interface{}) {
    	fatal(err, msg, data...)
    }
    
    func fatal(err error, msg string, data ...interface{}) {
    	var errMsg string
    	if msg != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. cmd/object-api-errors.go

    }
    
    // ReplicationPermissionCheck - Check if error type is ReplicationPermissionCheck.
    type ReplicationPermissionCheck struct{}
    
    func (e ReplicationPermissionCheck) Error() string {
    	return "Replication permission validation requests cannot be completed"
    }
    
    func isReplicationPermissionCheck(err error) bool {
    	_, ok := err.(ReplicationPermissionCheck)
    	return ok
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrReplicationValidationError: {
    		Code:           "InvalidRequest",
    		Description:    "Replication validation failed on target",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrReplicationPermissionCheckError: {
    		Code:           "ReplicationPermissionCheck",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  4. cmd/erasure-server-pool.go

    			if err != nil {
    				return nil, err
    			}
    		}
    
    		if err = storageclass.ValidateParity(commonParityDrives, ep.DrivesPerSet); err != nil {
    			return nil, fmt.Errorf("parity validation returned an error: %w <- (%d, %d), for pool(%s)", err, commonParityDrives, ep.DrivesPerSet, humanize.Ordinal(i+1))
    		}
    
    		bootstrapTrace("waitForFormatErasure: loading disks", func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  5. cmd/config-current.go

    	objAPI := newObjectLayerFn()
    
    	// We must have a global lock for this so nobody else modifies env while we do.
    	defer env.LockSetEnv()()
    
    	// Disable merging env values with config for validation.
    	env.SetEnvOff()
    
    	// Enable env values to validate KMS.
    	defer env.SetEnvOn()
    	if subSys != "" {
    		return validateSubSysConfig(ctx, s, subSys, objAPI)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    		}
    		if err != nil {
    			return c.annotatePeerErr(peer.Name, "Error adding bucket replication rule", err)
    		}
    
    		// Now convert the configuration back to server's type so we can
    		// do some validation.
    		newReplCfgBytes, err := xml.Marshal(replicationConfig)
    		if err != nil {
    			return err
    		}
    		newReplicationConfig, err := sreplication.ParseConfig(bytes.NewReader(newReplCfgBytes))
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  7. internal/bucket/lifecycle/rule_test.go

    package lifecycle
    
    import (
    	"encoding/xml"
    	"fmt"
    	"testing"
    )
    
    // TestInvalidRules checks if Rule xml with invalid elements returns
    // appropriate errors on validation
    func TestInvalidRules(t *testing.T) {
    	invalidTestCases := []struct {
    		inputXML    string
    		expectedErr error
    	}{
    		{ // Rule with ID longer than 255 characters
    			inputXML: ` <Rule>
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  8. internal/auth/credentials.go

    	alphaNumericTable = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    
    	// Total length of the alpha numeric table.
    	alphaNumericTableLen = byte(len(alphaNumericTable))
    )
    
    // Common errors generated for access and secret key validation.
    var (
    	ErrInvalidAccessKeyLength   = fmt.Errorf("access key length should be between %d and %d", accessKeyMinLen, accessKeyMaxLen)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. cmd/erasure-sets.go

    	})
    	if err != nil {
    		return nil, nil, err
    	}
    
    	return disk, format, nil
    }
    
    // findDiskIndex - returns the i,j'th position of the input `diskID` against the reference
    // format, after successful validation.
    //   - i'th position is the set index
    //   - j'th position is the disk index in the current set
    func findDiskIndexByDiskID(refFormat *formatErasureV3, diskID string) (int, int, error) {
    	if diskID == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  10. cmd/utils.go

    	return unescapeGeneric(p, url.PathUnescape)
    }
    
    // similar to unescapeGeneric but never returns any error if the unescaping
    // fails, returns the input as is in such occasion, not meant to be
    // used where strict validation is expected.
    func likelyUnescapeGeneric(p string, escapeFn func(string) (string, error)) string {
    	ep, err := unescapeGeneric(p, escapeFn)
    	if err != nil {
    		return p
    	}
    	return ep
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top