Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for critical (0.16 sec)

  1. cmd/bucket-versioning.go

    	vc, err := sys.Get(bucket)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    	return vc.PrefixEnabled(prefix)
    }
    
    // Suspended suspended versioning?
    func (sys *BucketVersioningSys) Suspended(bucket string) bool {
    	vc, err := sys.Get(bucket)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    	return vc.Suspended()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 2.6K bytes
    - Viewed (0)
  2. internal/crypto/sse-s3.go

    	// Otherwise, the caller has passed an invalid argument combination.
    	if keyID == "" && len(kmsKey) != 0 {
    		logger.CriticalIf(context.Background(), errors.New("The key ID must not be empty if a KMS data key is present"))
    	}
    	if keyID != "" && len(kmsKey) == 0 {
    		logger.CriticalIf(context.Background(), errors.New("The KMS data key must not be empty if a key ID is present"))
    	}
    
    	if metadata == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. cmd/jwt.go

    			}
    			cacheLRU.Add(k, s)
    		}
    		return s, nil
    	}
    	return func(audience string) string {
    		cred := globalActiveCred
    		token, err := fn(cred.AccessKey, cred.SecretKey, audience)
    		logger.CriticalIf(GlobalContext, err)
    		return token
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. cmd/metrics-v3-types.go

    	}
    
    	// There is no way to handle errors here, so we panic the current goroutine
    	// and the Metrics API handler returns a 500 HTTP status code. This should
    	// normally not happen, and usually indicates a bug.
    	logger.CriticalIf(GlobalContext, errors.Wrap(err, "failed to get metrics"))
    
    	promMetrics := metricValues.ToPromMetrics(mg.CollectorPath.metricPrefix(),
    		mg.ExtraLabels)
    	for _, metric := range promMetrics {
    		ch <- metric
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  5. cmd/utils.go

    	return strings.TrimSpace(s) != s
    }
    
    func request2BucketObjectName(r *http.Request) (bucketName, objectName string) {
    	path, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    
    	return path2BucketObject(path)
    }
    
    // path2BucketObjectWithBasePath returns bucket and prefix, if any,
    // of a 'path'. basePath is trimmed from the front of the 'path'.
    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)
  6. internal/logger/logger.go

    	sendLog(ctx, entry)
    }
    
    // ErrCritical is the value panic'd whenever CriticalIf is called.
    var ErrCritical struct{}
    
    // CriticalIf logs the provided error on the console. It fails the
    // current go-routine by causing a `panic(ErrCritical)`.
    func CriticalIf(ctx context.Context, err error, errKind ...interface{}) {
    	if err != nil {
    		LogIf(ctx, "", err, errKind...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  7. internal/crypto/sse-c.go

    // metadata map if metadata is nil.
    func (ssec) CreateMetadata(metadata map[string]string, sealedKey SealedKey) map[string]string {
    	if sealedKey.Algorithm != SealAlgorithm {
    		logger.CriticalIf(context.Background(), Errorf("The seal algorithm '%s' is invalid for SSE-C", sealedKey.Algorithm))
    	}
    
    	if metadata == nil {
    		metadata = make(map[string]string, 3)
    	}
    	metadata[MetaAlgorithm] = SealAlgorithm
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top