Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for WrapErr (0.17 sec)

  1. src/net/net_fake.go

    	}
    
    	if fd.isConnected {
    		return wrapErr(syscall.EISCONN)
    	}
    	if ctx.Err() != nil {
    		return wrapErr(syscall.ETIMEDOUT)
    	}
    
    	fd.raddr = matchIPFamily(fd.family, raddr)
    	if err := validateResolvedAddr(fd.net, fd.family, fd.raddr.(sockaddr)); err != nil {
    		return wrapErr(err)
    	}
    
    	if err := fd.fakeNetFD.assignFakeAddr(laddr); err != nil {
    		return wrapErr(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. src/os/file_posix.go

    }
    
    // See docs in file.go:(*File).Chmod.
    func (f *File) chmod(mode FileMode) error {
    	if err := f.checkValid("chmod"); err != nil {
    		return err
    	}
    	if e := f.pfd.Fchmod(syscallMode(mode)); e != nil {
    		return f.wrapErr("chmod", e)
    	}
    	return nil
    }
    
    // Chown changes the numeric uid and gid of the named file.
    // If the file is a symbolic link, it changes the uid and gid of the link's target.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/os/stat_unix.go

    func (f *File) Stat() (FileInfo, error) {
    	if f == nil {
    		return nil, ErrInvalid
    	}
    	var fs fileStat
    	err := f.pfd.Fstat(&fs.sys)
    	if err != nil {
    		return nil, f.wrapErr("stat", err)
    	}
    	fillFileStatFromSys(&fs, f.name)
    	return &fs, nil
    }
    
    // statNolog stats a file with no test logging.
    func statNolog(name string) (FileInfo, error) {
    	var fs fileStat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:38:03 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. src/os/file.go

    		if e != nil {
    			err = f.wrapErr("write", e)
    			break
    		}
    		n += m
    		b = b[m:]
    		off += int64(m)
    	}
    	return
    }
    
    // WriteTo implements io.WriterTo.
    func (f *File) WriteTo(w io.Writer) (n int64, err error) {
    	if err := f.checkValid("read"); err != nil {
    		return 0, err
    	}
    	n, handled, e := f.writeTo(w)
    	if handled {
    		return n, f.wrapErr("read", e)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. operator/pkg/object/objects.go

    			if err == io.EOF {
    				break
    			}
    			err = wrapErr(err)
    			if failOnError {
    				return nil, err
    			}
    			log.Error(err.Error())
    			continue
    		}
    		if obj.Object == nil {
    			continue
    		}
    
    		if !isValidKubernetesObject(obj) {
    			if failOnError {
    				err := wrapErr(fmt.Errorf("failed to parse YAML to a k8s object: object is an invalid k8s object: %v", obj))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go

    func stringToQuantity(arg ref.Val) ref.Val {
    	str, ok := arg.Value().(string)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    
    	q, err := resource.ParseQuantity(str)
    	if err != nil {
    		return types.WrapErr(err)
    	}
    
    	return apiservercel.Quantity{Quantity: &q}
    }
    
    func quantityGetApproximateFloat(arg ref.Val) ref.Val {
    	q, ok := arg.Value().(*resource.Quantity)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go

    // Value returns its value as a map[string]any.
    func (v *ObjectVal) Value() any {
    	var result any
    	var object map[string]any
    	result, err := v.ConvertToNative(reflect.TypeOf(object))
    	if err != nil {
    		return types.WrapErr(err)
    	}
    	return result
    }
    
    // IsZeroValue indicates whether the object is the zero value for the type.
    // For the ObjectVal, it is zero value if and only if the fields map is empty.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. src/net/http/transport.go

    		if err != nil {
    			return nil, wrapErr(err)
    		}
    		pconn.conn = conn
    		if cm.scheme() == "https" {
    			var firstTLSHost string
    			if firstTLSHost, _, err = net.SplitHostPort(cm.addr()); err != nil {
    				return nil, wrapErr(err)
    			}
    			if err = pconn.addTLS(ctx, firstTLSHost, trace); err != nil {
    				return nil, wrapErr(err)
    			}
    		}
    	}
    
    	// Proxy setup.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top