Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 201 for strerror (0.17 sec)

  1. internal/s3select/json/errors.go

    package json
    
    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. cmd/bucket-listobjects-handlers.go

    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.ListBucketAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Extract all the listObjectsV1 query params to their native values.
    	prefix, marker, delimiter, maxKeys, encodingType, s3Error := getListObjectsV1Args(r.Form)
    	if s3Error != ErrNone {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. src/internal/testpty/pty_darwin.go

    	if err != nil {
    		return nil, "", ptyError("posix_openpt", err)
    	}
    	if err := unix.Grantpt(m); err != nil {
    		syscall.Close(m)
    		return nil, "", ptyError("grantpt", err)
    	}
    	if err := unix.Unlockpt(m); err != nil {
    		syscall.Close(m)
    		return nil, "", ptyError("unlockpt", err)
    	}
    	processTTY, err = unix.Ptsname(m)
    	if err != nil {
    		syscall.Close(m)
    		return nil, "", ptyError("ptsname", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 19:00:19 UTC 2022
    - 790 bytes
    - Viewed (0)
  4. internal/s3select/sql/errors.go

    package sql
    
    import "fmt"
    
    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  5. cmd/dummy-handlers.go

    		return
    	}
    
    	// Allow getBucketCors if policy action is set, since this is a dummy call
    	// we are simply re-purposing the bucketPolicyAction.
    	if s3Error := checkRequestAuthType(ctx, r, policy.GetBucketPolicyAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Validate if bucket exists, before proceeding further...
    	_, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. internal/s3select/csv/errors.go

    package csv
    
    import "errors"
    
    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  7. security/pkg/pki/error/error.go

    // ErrType is the type for CA errors.
    type ErrType int
    
    const (
    	// CANotReady means the CA is not ready to sign CSRs.
    	CANotReady ErrType = iota
    	// CSRError means the CA cannot sign CSR due to CSR error.
    	CSRError
    	// TTLError means the required TTL is invalid.
    	TTLError
    	// CertGenError means an error happened during the certificate generation.
    	CertGenError
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 13 17:41:21 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  8. cmd/auth-handler_test.go

    	for i, testCase := range testCases {
    		s3Error := isReqAuthenticated(ctx, testCase.req, globalSite.Region(), serviceS3)
    		if s3Error != testCase.s3Error {
    			if _, err := io.ReadAll(testCase.req.Body); toAPIErrorCode(ctx, err) != testCase.s3Error {
    				t.Fatalf("Test %d: Unexpected S3 error: want %d - got %d (got after reading request %s)", i, testCase.s3Error, s3Error, toAPIError(ctx, err).Code)
    			}
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. src/internal/testpty/pty_cgo.go

    	m, err := C.posix_openpt(C.O_RDWR)
    	if m < 0 {
    		return nil, "", ptyError("posix_openpt", err)
    	}
    	if res, err := C.grantpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("grantpt", err)
    	}
    	if res, err := C.unlockpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("unlockpt", err)
    	}
    	processTTY = C.GoString(C.ptsname(m))
    	return os.NewFile(uintptr(m), "pty"), processTTY, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 18:38:54 UTC 2023
    - 840 bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    		return
    	}
    
    	listBuckets := objectAPI.ListBuckets
    
    	cred, owner, s3Error := checkRequestAuthTypeCredential(ctx, r, policy.ListAllMyBucketsAction)
    	if s3Error != ErrNone && s3Error != ErrAccessDenied {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Anonymous users, should be rejected.
    	if cred.AccessKey == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top