Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for APIErrorCode (0.17 sec)

  1. cmd/auth-handler.go

    //     for authenticated requests validates IAM policies.
    //
    // returns APIErrorCode if any to be replied to the client.
    func checkRequestAuthType(ctx context.Context, r *http.Request, action policy.Action, bucketName, objectName string) (s3Err APIErrorCode) {
    	logger.GetReqInfo(ctx).BucketName = bucketName
    	logger.GetReqInfo(ctx).ObjectName = objectName
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    }
    
    // APIErrorCode type of error status.
    type APIErrorCode int
    
    //go:generate stringer -type=APIErrorCode -trimprefix=Err $GOFILE
    
    // Error codes, non exhaustive list - http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
    const (
    	ErrNone APIErrorCode = iota
    	ErrAccessDenied
    	ErrBadDigest
    	ErrEntityTooSmall
    	ErrEntityTooLarge
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (1)
  3. cmd/sts-handlers.go

    	stsRouter.Methods(http.MethodPost).HandlerFunc(httpTraceAll(sts.AssumeRoleWithCustomToken)).
    		Queries(stsAction, customTokenIdentity).
    		Queries(stsVersion, stsAPIVersion)
    }
    
    func apiToSTSError(authErr APIErrorCode) (stsErrCode STSErrorCode) {
    	switch authErr {
    	case ErrSignatureDoesNotMatch, ErrInvalidAccessKeyID, ErrAccessKeyDisabled:
    		return ErrSTSAccessDenied
    	case ErrServerNotInitialized:
    		return ErrSTSNotInitialized
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. cmd/api-response.go

    	owner := &Owner{
    		ID:          globalMinioDefaultOwnerID,
    		DisplayName: "minio",
    	}
    	data := ListVersionsResponse{}
    	var lastObjMetaName string
    	var tagErr, metaErr APIErrorCode = -1, -1
    
    	for _, object := range resp.Objects {
    		if object.Name == "" {
    			continue
    		}
    		// Cache checks for the same object
    		if metadata != nil && lastObjMetaName != object.Name {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Oct 25 02:13:19 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  5. cmd/admin-heal-ops.go

    // representation. The clientToken helps ensure there aren't
    // conflicting clients fetching status.
    func (ahs *allHealState) PopHealStatusJSON(hpath string,
    	clientToken string) ([]byte, APIErrorCode,
    ) {
    	// fetch heal state for given path
    	h, exists := ahs.getHealSequence(hpath)
    	if !exists {
    		// heal sequence doesn't exist, must have finished.
    		jbytes, err := json.Marshal(healSequenceStatus{
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  6. cmd/object-handlers.go

    	opts, valid := getAndValidateAttributesOpts(ctx, w, r, bucket, object)
    	if !valid {
    		return
    	}
    
    	var s3Error APIErrorCode
    	if opts.VersionID != "" {
    		s3Error = checkRequestAuthType(ctx, r, policy.GetObjectVersionAttributesAction, bucket, object)
    		if s3Error == ErrNone {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    		return
    	}
    
    	var (
    		md5hex              = clientETag.String()
    		sha256hex           = ""
    		reader    io.Reader = r.Body
    		s3Error   APIErrorCode
    	)
    	if s3Error = isPutActionAllowed(ctx, rAuthType, bucket, object, r, policy.PutObjectAction); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	forceStart, forceStop bool
    }
    
    // extractHealInitParams - Validates params for heal init API.
    func extractHealInitParams(vars map[string]string, qParams url.Values, r io.Reader) (hip healInitParams, err APIErrorCode) {
    	hip.bucket = vars[mgmtBucket]
    	hip.objPrefix = vars[mgmtPrefix]
    
    	if hip.bucket == "" {
    		if hip.objPrefix != "" {
    			// Bucket is required if object-prefix is given
    			err = ErrHealMissingBucket
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  9. cmd/object-handlers_test.go

    	testCases := []struct {
    		objectName string
    		content    string
    		partNumber string
    		fault      Fault
    		accessKey  string
    		secretKey  string
    
    		expectedAPIError APIErrorCode
    	}{
    		// Success case.
    		0: {
    			objectName: testObject,
    			content:    "hello",
    			partNumber: "1",
    			fault:      None,
    			accessKey:  credentials.AccessKey,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    }
    
    func getSRStateFilePath() string {
    	return srStatePrefix + SlashSeparator + srStateFile
    }
    
    // SRError - wrapped error for site replication.
    type SRError struct {
    	Cause error
    	Code  APIErrorCode
    }
    
    func (c SRError) Error() string {
    	if c.Cause != nil {
    		return c.Cause.Error()
    	}
    	return "<nil>"
    }
    
    func (c SRError) Unwrap() error {
    	return c.Cause
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top