Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for fallback (0.52 sec)

  1. cmd/is-dir-empty_linux.go

    	"syscall"
    )
    
    // Returns true if no error and there is no object or prefix inside this directory
    func isDirEmpty(dirname string, legacy bool) bool {
    	if legacy {
    		// On filesystems such as btrfs, nfs this is not true, so fallback
    		// to performing readdir() instead.
    		entries, err := readDirN(dirname, 1)
    		if err != nil {
    			return false
    		}
    		return len(entries) == 0
    	}
    	var stat syscall.Stat_t
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 15:17:08 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. cmd/auth-handler.go

    			return ErrNone
    		}
    
    		if action == policy.ListBucketVersionsAction {
    			// In AWS S3 s3:ListBucket permission is same as s3:ListBucketVersions permission
    			// verify as a fallback.
    			if globalPolicySys.IsAllowed(policy.BucketPolicyArgs{
    				AccountName:     cred.AccessKey,
    				Groups:          cred.Groups,
    				Action:          policy.ListBucketAction,
    				BucketName:      bucket,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  3. internal/s3select/sql/value.go

    		return nil
    	}
    
    	if t, err := parseSQLTimestamp(asString); err == nil {
    		v.setTimestamp(t)
    		return nil
    	}
    	if !utf8.Valid(b) {
    		return errors.New("value is not valid utf-8")
    	}
    	// Fallback to string
    	v.setString(asString)
    	return
    }
    
    // When numeric types are compared, type promotions could happen. If
    // values do not have types (e.g. when reading from CSV), for
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  4. cmd/os_unix.go

    		if err != nil {
    			return err
    		}
    		boff += consumed
    		if len(name) == 0 || bytes.Equal(name, []byte{'.'}) || bytes.Equal(name, []byte{'.', '.'}) {
    			continue
    		}
    
    		// Fallback for filesystems (like old XFS) that don't
    		// support Dirent.Type and have DT_UNKNOWN (0) there
    		// instead.
    		if typ == unexpectedFileMode || typ&os.ModeSymlink == os.ModeSymlink {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/update.go

    	} {
    		_, err = os.Stat(envfile)
    		if err == nil {
    			return true
    		}
    	}
    	if osIsNotExist(err) {
    		// if none of the files are present we may be running inside
    		// CRI-O, Containerd etc..
    		// Fallback to our container specific ENVs if they are set.
    		return env.IsSet("MINIO_ACCESS_KEY_FILE")
    	}
    
    	// Log error, as we will not propagate it to caller
    	internalLogIf(GlobalContext, err)
    
    	return err == nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. cmd/data-usage.go

    	if !ok {
    		// Prefix usage is empty
    		return map[string]uint64{}, nil
    	}
    
    	cache := dataUsageCache{}
    
    	prefixUsageCache.InitOnce(30*time.Second,
    		// No need to fail upon Update() error, fallback to old value.
    		cachevalue.Opts{ReturnLastGood: true, NoWait: true},
    		func() (map[string]uint64, error) {
    			m := make(map[string]uint64)
    			for _, pool := range z.serverPools {
    				for _, er := range pool.sets {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. docs/debugging/xl-meta/main.go

    			} else {
    				s += ", \"bitrot_valid\": false"
    			}
    			s += "}"
    		}
    		res = append(res, []byte(s)...)
    	}
    	res = append(res, '}')
    	return res, nil
    }
    
    // files returns files as callback.
    func (x xlMetaInlineData) files(fn func(name string, data []byte)) error {
    	if len(x) == 0 {
    		return nil
    	}
    	if !x.versionOK() {
    		return errors.New("xlMetaInlineData: unknown version")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  8. cmd/sts-handlers_test.go

    var testAppParams = OpenIDClientAppParams{
    	ClientID:     "minio-client-app",
    	ClientSecret: "minio-client-app-secret",
    	ProviderURL:  "http://127.0.0.1:5556/dex",
    	RedirectURL:  "http://127.0.0.1:10000/oauth_callback",
    }
    
    const (
    	EnvTestOpenIDServer  = "_MINIO_OPENID_TEST_SERVER"
    	EnvTestOpenIDServer2 = "_MINIO_OPENID_TEST_SERVER_2"
    )
    
    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)
  9. internal/s3select/select.go

    	if s3Select.progressReader != nil {
    		return s3Select.progressReader.Stats()
    	}
    
    	return -1, -1
    }
    
    // Open - opens S3 object by using callback for SQL selection query.
    // Currently CSV, JSON and Apache Parquet formats are supported.
    func (s3Select *S3Select) Open(rsc io.ReadSeekCloser) error {
    	offset, length, err := s3Select.ScanRange.StartLen()
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool.go

    						res = append(res, disk)
    					}
    				}
    			}
    		}
    	}
    	return res
    }
    
    // GetRawData will return all files with a given raw path to the callback.
    // Errors are ignored, only errors from the callback are returned.
    // For now only direct file paths are supported.
    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)
Back to top