Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for raerror (0.11 sec)

  1. security/pkg/pki/ra/k8s_ra.go

    			possibleRootCert = rootCertFromCertChain
    		}
    		if possibleRootCert == nil {
    			return nil, raerror.NewError(raerror.CSRError, fmt.Errorf("failed to find root cert from either signed cert-chain or mesh config"))
    		}
    		if verifyErr := util.VerifyCertificate(nil, cert, possibleRootCert, nil); verifyErr != nil {
    			return nil, raerror.NewError(raerror.CSRError, fmt.Errorf("root cert from signed cert-chain is invalid (%v)", verifyErr))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. security/pkg/pki/ra/common.go

    	if forCA {
    		return requestedLifetime, raerror.NewError(raerror.CSRError,
    			fmt.Errorf("unable to generate CA certifificates"))
    	}
    	if !ValidateCSR(csrPEM, subjectIDs) {
    		return requestedLifetime, raerror.NewError(raerror.CSRError, fmt.Errorf(
    			"unable to validate SAN Identities in CSR"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 19:57:30 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/CUError.h

     *
     *  05-Sep-2004   Added internal test interface. (JDS)
     */
    
    /** @file
     *  Error handling functions (user interface).
     *  CUnit uses a simple (and conventional) error handling strategy.
     *  Functions that can generate errors set (and usually return) an
     *  error code to indicate the run status.  The error code can be
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/test/mock/caserver.go

    			return nil, status.Error(codes.Unauthenticated, "request authenticate failure")
    		}
    		id = caller.Identities
    	}
    	cert, err := s.sign([]byte(request.Csr), id, time.Duration(request.ValidityDuration)*time.Second, false)
    	if err != nil {
    		caServerLog.Errorf("failed to sign CSR: %+v", err)
    		return nil, status.Errorf(err.(*caerror.Error).HTTPErrorCode(), "CSR signing error: %+v", err.(*caerror.Error))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3_test.go

    func Test_atomicLastError(t *testing.T) {
    	aError := &atomicLastError{err: fmt.Errorf("initial error")}
    	// no timestamp is always updated
    	aError.Store(errors.New("updated error"), time.Time{})
    	err := aError.Load()
    	if err.Error() != "updated error" {
    		t.Fatalf("Expected: \"updated error\" got: %s", err.Error())
    	}
    	// update to current time
    	now := time.Now()
    	aError.Store(errors.New("now error"), now)
    	err = aError.Load()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 15:58:10 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/error.go

    	"errors"
    	"fmt"
    )
    
    var ErrPartialAdd = errors.New("partial add error")
    
    type PartialAddError struct {
    	inner error
    }
    
    func (e *PartialAddError) Error() string {
    	return fmt.Sprintf("%s: %v", ErrPartialAdd.Error(), e.inner)
    }
    
    func (e *PartialAddError) Unwrap() []error {
    	return []error{ErrPartialAdd, e.inner}
    }
    
    func NewErrPartialAdd(err error) *PartialAddError {
    	return &PartialAddError{
    		inner: err,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. security/pkg/pki/ca/mock/fakeca.go

    // limitations under the License.
    
    package mock
    
    import (
    	"istio.io/istio/security/pkg/pki/ca"
    	caerror "istio.io/istio/security/pkg/pki/error"
    	"istio.io/istio/security/pkg/pki/util"
    )
    
    // FakeCA is a mock of CertificateAuthority.
    type FakeCA struct {
    	SignedCert    []byte
    	SignErr       *caerror.Error
    	KeyCertBundle *util.KeyCertBundle
    	ReceivedIDs   []string
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. src/internal/reflectlite/set_test.go

    	{new(mapError), new(error), true},
    	{new(*mapError), new(error), true},
    }
    
    type notAnExpr struct{}
    
    func (notAnExpr) Pos() token.Pos { return token.NoPos }
    func (notAnExpr) End() token.Pos { return token.NoPos }
    func (notAnExpr) exprNode()      {}
    
    type notASTExpr interface {
    	Pos() token.Pos
    	End() token.Pos
    	exprNode()
    }
    
    type mapError map[string]string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  9. src/os/error.go

    func (e *SyscallError) Unwrap() error { return e.Err }
    
    // Timeout reports whether this error represents a timeout.
    func (e *SyscallError) Timeout() bool {
    	t, ok := e.Err.(timeout)
    	return ok && t.Timeout()
    }
    
    // NewSyscallError returns, as an error, a new [SyscallError]
    // with the given system call name and error details.
    // As a convenience, if err is nil, NewSyscallError returns nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. internal/crypto/error.go

    	e := fmt.Errorf(format, a...)
    	ee := Error{}
    	ee.msg = e.Error()
    	ee.cause = errors.Unwrap(e)
    	return ee
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.cause }
    
    // Error 'error' compatible method.
    func (e Error) Error() string {
    	if e.msg == "" {
    		return "crypto: cause <nil>"
    	}
    	return e.msg
    }
    
    var (
    	// ErrInvalidEncryptionMethod indicates that the specified SSE encryption method
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top