Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for IsSet (0.02 sec)

  1. cmd/update.go

    		}
    	}
    	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
    }
    
    // IsDCOS returns true if minio is running in DCOS.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    		if peer.DeploymentID == v.DeploymentID {
    			found = true
    			if (!peer.SyncState.Empty() || peer.DefaultBandwidth.IsSet) && peer.Endpoint == "" { // peer.Endpoint may be "" if only sync state/bandwidth is being updated
    				break
    			}
    			if peer.Endpoint == v.Endpoint && peer.SyncState.Empty() && !peer.DefaultBandwidth.IsSet {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 184.8K bytes
    - Viewed (1)
  3. cmd/utils.go

    		}
    		r.Body = hash.NewChecker(r.Body, md5.New(), want, r.ContentLength)
    		return true
    	}
    	cs, err := hash.GetContentChecksum(r.Header)
    	if err != nil {
    		return false
    	}
    	if cs == nil || !cs.Type.IsSet() {
    		return false
    	}
    	if cs.Valid() && !cs.Type.Trailing() {
    		r.Body = hash.NewChecker(r.Body, cs.Type.Hasher(), cs.Raw, r.ContentLength)
    	}
    	return true
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 33K bytes
    - Viewed (0)
  4. cmd/server-main.go

    	if lgDir == "" {
    		return os.Stderr, nil
    	}
    	lgDirAbs, err := filepath.Abs(lgDir)
    	if err != nil {
    		return nil, err
    	}
    	lgSize := ctx.Int("log-size")
    
    	var fileNameFunc func() string
    	if ctx.IsSet("log-prefix") {
    		fileNameFunc = func() string {
    			return fmt.Sprintf("%s-%s.log", ctx.String("log-prefix"), fmt.Sprintf("%X", time.Now().UTC().UnixNano()))
    		}
    	}
    
    	output, err := logger.NewDir(logger.Options{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:18:36 UTC 2025
    - 35.9K bytes
    - Viewed (4)
  5. cmd/object-multipart-handlers.go

    		}
    	}
    
    	checksumType := hash.NewChecksumHeader(r.Header)
    	if checksumType.Is(hash.ChecksumInvalid) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidChecksum), r.URL)
    		return
    	} else if checksumType.IsSet() && !checksumType.Is(hash.ChecksumTrailing) {
    		opts.WantChecksum = &hash.Checksum{Type: checksumType}
    	}
    
    	if opts.WantChecksum != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    			}
    		default:
    			actualSize = n
    		}
    	}
    	// If ServerSideChecksum is wanted for this object, it takes precedence
    	// over opts.WantChecksum.
    	if opts.WantServerSideChecksumType.IsSet() {
    		serverSideChecksum := r.RawServerSideChecksumResult()
    		if serverSideChecksum != nil {
    			fi.Checksum = serverSideChecksum.AppendTo(nil, nil)
    			if opts.EncryptFn != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 80.4K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    		// destination object using the x-amz-checksum-algorithm header.
    		headerChecksumType := hash.NewChecksumHeader(r.Header)
    		if headerChecksumType.IsSet() {
    			dstOpts.WantServerSideChecksumType = headerChecksumType.Base()
    			srcInfo.Reader.AddServerSideChecksumHasher(headerChecksumType)
    			dstOpts.WantChecksum = nil
    		} else {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 120.6K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    	// Test Server needs to start before formatting of disks.
    	// Get credential.
    	credentials := globalActiveCred
    	if !globalReplicationPool.IsSet() {
    		globalReplicationPool.Set(nil)
    	}
    	testServer.Obj = objLayer
    	testServer.rawDiskPaths = disks
    	testServer.Disks = mustGetPoolEndpoints(0, disks...)
    	testServer.AccessKey = credentials.AccessKey
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  9. cmd/bucket-replication.go

    	meta := make(map[string]string)
    	cs, isMP = oi.decryptChecksums(partNum, h)
    	for k, v := range cs {
    		if k == xhttp.AmzChecksumType {
    			continue
    		}
    		cktype := hash.ChecksumStringToType(k)
    		if cktype.IsSet() {
    			meta[cktype.Key()] = v
    			meta[xhttp.AmzChecksumAlgo] = cktype.String()
    		}
    	}
    	return meta, isMP
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 118.2K bytes
    - Viewed (0)
Back to top