Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for versionErrorf (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/grpc_service.go

    )
    
    const (
    	// unixProtocol is the only supported protocol for remote KMS provider.
    	unixProtocol = "unix"
    	// Current version for the protocol interface definition.
    	kmsapiVersion = "v1beta1"
    
    	versionErrorf = "KMS provider api version %s is not supported, only %s is supported now"
    )
    
    // The gRPC implementation for envelope.Service.
    type gRPCService struct {
    	kmsClient      kmsapi.KeyManagementServiceClient
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 00:47:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/version.go

    // which are used to report a version error if allowVersion returns false.
    func (check *Checker) verifyVersionf(at poser, v goVersion, format string, args ...interface{}) bool {
    	if !check.allowVersion(at, v) {
    		check.versionErrorf(at, v, format, args...)
    		return false
    	}
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/go/types/version.go

    // current package.
    func (check *Checker) verifyVersionf(at positioner, v goVersion, format string, args ...interface{}) bool {
    	if !check.allowVersion(at, v) {
    		check.versionErrorf(at, v, format, args...)
    		return false
    	}
    	return true
    }
    
    // TODO(gri) Consider a more direct (position-independent) mechanism
    //           to identify which file we're in so that version checks
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 23:12:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    		var reverse bool
    		if T != nil && sig.tparams != nil {
    			if !versionErr && !check.allowVersion(instErrPos, go1_21) {
    				if inst != nil {
    					check.versionErrorf(instErrPos, go1_21, "partially instantiated function in assignment")
    				} else {
    					check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment")
    				}
    			}
    			gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/errors.go

    func (check *Checker) softErrorf(at poser, code Code, format string, args ...any) {
    	err := check.newError(code)
    	err.addf(at, format, args...)
    	err.soft = true
    	err.report()
    }
    
    func (check *Checker) versionErrorf(at poser, v goVersion, format string, args ...any) {
    	msg := check.sprintf(format, args...)
    	err := check.newError(UnsupportedFeature)
    	err.addf(at, "%s requires %s or later", msg, v)
    	err.report()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/go/types/call.go

    		var reverse bool
    		if T != nil && sig.tparams != nil {
    			if !versionErr && !check.allowVersion(instErrPos, go1_21) {
    				if ix != nil {
    					check.versionErrorf(instErrPos, go1_21, "partially instantiated function in assignment")
    				} else {
    					check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment")
    				}
    			}
    			gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/grpc_service_unix_test.go

    	if encryptErr != nil {
    		t.Error(encryptErr)
    	}
    }
    
    func TestUnsupportedVersion(t *testing.T) {
    	t.Parallel()
    	ver := "invalid"
    	data := []byte("test data")
    	wantErr := fmt.Errorf(versionErrorf, ver, kmsapiVersion)
    	endpoint := newEndpoint()
    
    	f := mock.NewBase64Plugin(t, endpoint.path)
    	f.SetVersion(ver)
    
    	ctx := testContext(t)
    
    	s, err := NewGRPCService(ctx, endpoint.endpoint, 1*time.Second)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 05:36:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. src/go/types/errors.go

    func (check *Checker) softErrorf(at positioner, code Code, format string, args ...any) {
    	err := check.newError(code)
    	err.addf(at, format, args...)
    	err.soft = true
    	err.report()
    }
    
    func (check *Checker) versionErrorf(at positioner, v goVersion, format string, args ...any) {
    	msg := check.sprintf(format, args...)
    	err := check.newError(UnsupportedFeature)
    	err.addf(at, "%s requires %s or later", msg, v)
    	err.report()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/conversions.go

    			if Identical(s.Elem(), a.Elem()) {
    				if check == nil || check.allowVersion(x, go1_20) {
    					return true
    				}
    				// check != nil
    				if cause != nil {
    					// TODO(gri) consider restructuring versionErrorf so we can use it here and below
    					*cause = "conversion of slice to array requires go1.20 or later"
    				}
    				return false
    			}
    		case *Pointer:
    			if a, _ := under(a.Elem()).(*Array); a != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. src/go/types/conversions.go

    			if Identical(s.Elem(), a.Elem()) {
    				if check == nil || check.allowVersion(x, go1_20) {
    					return true
    				}
    				// check != nil
    				if cause != nil {
    					// TODO(gri) consider restructuring versionErrorf so we can use it here and below
    					*cause = "conversion of slice to array requires go1.20 or later"
    				}
    				return false
    			}
    		case *Pointer:
    			if a, _ := under(a.Elem()).(*Array); a != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top