Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for doTest (0.26 sec)

  1. cmd/os_other.go

    	// baseDir is not honored in plan9 and solaris platforms.
    	return os.MkdirAll(dirPath, perm)
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, filter func(name string, typ os.FileMode) error) error {
    	d, err := Open(dirPath)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. docs/bucket/replication/setup_replication.sh

    cat ./repladmin-policy-source.json
    
    #assign this replication policy to repladmin
    mc admin policy attach source repladmin-policy --user=repladmin
    
    ### on dest alias
    # Create a replication user : repluser on dest alias
    mc admin user add dest repluser repluser123
    
    # create a replication policy for repluser
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 26 05:07:25 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    	// Return false for methods other than GET and HEAD.
    	if r.Method != http.MethodPut {
    		return false
    	}
    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    	// and don't process the If-Modified-Since header.
    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. helm/minio/templates/_helper_create_user.txt

      if [[ ! -f $MINIO_ACCESSKEY_SECRETKEY_TMP ]];then
        echo "credentials file does not exist"
        return 1
      fi
      if [[ $(cat $MINIO_ACCESSKEY_SECRETKEY_TMP|wc -l) -ne 2 ]];then
        echo "credentials file is invalid"
        rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP
        return 1
      fi
      USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
      # Create the user if it does not exist
      if ! checkUserExists ; then
        echo "Creating user '$USER'"
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 12 23:43:32 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. cmd/metacache.go

    		return false
    	case cache.finished() && time.Since(cache.lastHandout) > 5*metacacheMaxClientWait:
    		// Keep for 15 minutes after we last saw the client.
    		// Since the cache is finished keeping it a bit longer doesn't hurt us.
    		return false
    	case cache.status == scanStateError || cache.status == scanStateNone:
    		// Remove failed listings after 5 minutes.
    		return time.Since(cache.lastUpdate) > 5*time.Minute
    	}
    	return true
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. cmd/bucket-policy-handlers_test.go

    		}
    	}
    
    	// Test for Anonymous/unsigned http request.
    	// Bucket policy related functions doesn't support anonymous requests, setting policies shouldn't make a difference.
    	bucketPolicyStr := fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName)
    	// create unsigned HTTP request for PutBucketPolicyHandler.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    	}
    
    	// save MinIO start script to inspect command
    	var scrb bytes.Buffer
    	fmt.Fprintf(&scrb, `#!/usr/bin/env bash
    
    function main() {
    	for file in $(ls -1); do
    		dest_file=$(echo "$file" | cut -d ":" -f1)
    		mv "$file" "$dest_file"
    	done
    
    	# Read content of inspect-input.txt
    	MINIO_OPTS=$(grep "Server command line args" <./inspect-input.txt | sed "s/Server command line args: //g" | sed -r "s#%s:\/\/#\.\/#g")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  8. cmd/metacache-walk.go

    		for i, entry := range entries {
    			if opts.Limit > 0 && objsReturned >= opts.Limit {
    				return nil
    			}
    			if len(prefix) > 0 && !strings.HasPrefix(entry, prefix) {
    				// Do not retain the file, since it doesn't
    				// match the prefix.
    				entries[i] = ""
    				continue
    			}
    			if len(forward) > 0 && entry < forward {
    				// Do not retain the file, since its
    				// lexially smaller than 'forward'
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/lifecycle.go

    		return false
    	}
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    		}
    
    		if len(prefix) > 0 && len(rule.GetPrefix()) > 0 {
    			// we can skip this rule if it doesn't match the tested
    			// prefix.
    			if !strings.HasPrefix(prefix, rule.GetPrefix()) && !strings.HasPrefix(rule.GetPrefix(), prefix) {
    				continue
    			}
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    			// requests. xl.meta is the authoritative source of truth on which parts constitute
    			// the object. The presence of parts that don't belong in the object doesn't affect correctness.
    			_ = storageDisks[index].Delete(context.TODO(), minioMetaMultipartBucket, curpartPath, DeleteOptions{
    				Recursive: false,
    				Immediate: false,
    			})
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
Back to top