Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for errList (0.34 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    	if err != nil {
    		t.Fatalf("%v", err)
    	}
    	compiled, issues := env.Compile(expr)
    	if len(issues.Errors()) > 0 {
    		var errList []string
    		for _, issue := range issues.Errors() {
    			errList = append(errList, issue.ToDisplayString(common.NewTextSource(expr)))
    		}
    		t.Fatalf("%v", errList)
    	}
    	estCost, err := env.EstimateCost(compiled, est)
    	if err != nil {
    		t.Fatalf("%v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation_test.go

    	// The same ip will now have a different nodeName.
    	errList := ValidateEndpoints(updatedEndpoint)
    	errList = append(errList, ValidateEndpointsUpdate(updatedEndpoint, oldEndpoint)...)
    	if len(errList) != 0 {
    		t.Error("Endpoint should allow changing of Subset.Addresses.NodeName on update")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  3. operator/pkg/controller/istiocontrolplane/errdict.go

    John Howard <******@****.***> 1714485406 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/runtime/runtime_test.go

    		{
    			name: "invalid: new runtime service fails",
    			prepare: func(mock *fakeImpl) {
    				mock.NewRemoteRuntimeServiceReturns(nil, errTest)
    			},
    			shouldError: true,
    		},
    		{
    			name: "invalid: new image service fails",
    			prepare: func(mock *fakeImpl) {
    				mock.NewRemoteImageServiceReturns(nil, errTest)
    			},
    			shouldError: true,
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/os/error.go

    // that a file or directory already exists. It is satisfied by [ErrExist] as
    // well as some syscall errors.
    //
    // This function predates [errors.Is]. It only supports errors returned by
    // the os package. New code should use errors.Is(err, fs.ErrExist).
    func IsExist(err error) bool {
    	return underlyingErrorIs(err, ErrExist)
    }
    
    // IsNotExist returns a boolean indicating whether the error is known to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/os/tempfile.go

    		f, err := OpenFile(name, O_RDWR|O_CREATE|O_EXCL, 0600)
    		if IsExist(err) {
    			if try++; try < 10000 {
    				continue
    			}
    			return nil, &PathError{Op: "createtemp", Path: prefix + "*" + suffix, Err: ErrExist}
    		}
    		return f, err
    	}
    }
    
    var errPatternHasSeparator = errors.New("pattern contains path separator")
    
    // prefixAndSuffix splits pattern by the last wildcard "*", if applicable,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 18:04:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/io/fs/fs.go

    	ErrExist      = errExist()      // "file already exists"
    	ErrNotExist   = errNotExist()   // "file does not exist"
    	ErrClosed     = errClosed()     // "file already closed"
    )
    
    func errInvalid() error    { return oserror.ErrInvalid }
    func errPermission() error { return oserror.ErrPermission }
    func errExist() error      { return oserror.ErrExist }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/errors/wrap.go

    //
    // An error type might provide an Is method so it can be treated as equivalent
    // to an existing error. For example, if MyError defines
    //
    //	func (m MyError) Is(target error) bool { return target == fs.ErrExist }
    //
    // then Is(MyError{}, fs.ErrExist) returns true. See [syscall.Errno.Is] for
    // an example in the standard library. An Is method should only shallowly
    // compare err and the target and not call [Unwrap] on either.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:04 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/certlist.go

    	kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
    	kubeadmutil "k8s.io/kubernetes/cmd/kubeadm/app/util"
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil"
    )
    
    const (
    	errInvalid = "invalid argument"
    	errExist   = "file already exists"
    )
    
    type configMutatorsFunc func(*kubeadmapi.InitConfiguration, *pkiutil.CertConfig) error
    
    // KubeadmCert represents a certificate that Kubeadm will create to function properly.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    	if _, err := os.Stat(kubeConfigPath); err == nil {
    		return errors.Errorf("%s: kube config: %s", errExist, kubeConfigPath)
    	} else if !os.IsNotExist(err) {
    		return errors.Wrapf(err, "unexpected error while checking if file exists: %s", kubeConfigPath)
    	}
    	if pkiutil.CSROrKeyExist(kubeConfigDir, name) {
    		return errors.Errorf("%s: csr: %s", errExist, kubeConfigPath)
    	}
    
    	clientCertConfig := newClientCertConfigFromKubeConfigSpec(spec)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top