Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,263 for buildUser (0.15 sec)

  1. src/os/user/cgo_lookup_unix.go

    	})
    	if err == syscall.ENOENT || (err == nil && !found) {
    		return nil, UnknownUserIdError(uid)
    	}
    	if err != nil {
    		return nil, fmt.Errorf("user: lookup userid %d: %v", uid, err)
    	}
    	return buildUser(&pwd), nil
    }
    
    func buildUser(pwd *_C_struct_passwd) *User {
    	u := &User{
    		Uid:      strconv.FormatUint(uint64(_C_pw_uid(pwd)), 10),
    		Gid:      strconv.FormatUint(uint64(_C_pw_gid(pwd)), 10),
    		Username: _C_GoString(_C_pw_name(pwd)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/os/user/cgo_unix_test.go

    package user
    
    import (
    	"testing"
    )
    
    // Issue 22739
    func TestNegativeUid(t *testing.T) {
    	sp := structPasswdForNegativeTest()
    	u := buildUser(&sp)
    	if g, w := u.Uid, "4294967294"; g != w {
    		t.Errorf("Uid = %q; want %q", g, w)
    	}
    	if g, w := u.Gid, "4294967293"; g != w {
    		t.Errorf("Gid = %q; want %q", g, w)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 595 bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    func NewBuilder(buffer []byte) *Builder {
    	return &Builder{
    		result: buffer,
    	}
    }
    
    // NewFixedBuilder creates a Builder that appends its output into the given
    // buffer. This builder does not reallocate the output buffer. Writes that
    // would exceed the buffer's capacity are treated as an error.
    func NewFixedBuilder(buffer []byte) *Builder {
    	return &Builder{
    		result:    buffer,
    		fixedSize: true,
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-api/src/main/java/org/gradle/declarative/dsl/model/annotations/Builder.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    @Target(ElementType.METHOD)
    @Retention(RetentionPolicy.RUNTIME)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 927 bytes
    - Viewed (0)
  5. src/strings/builder.go

    package strings
    
    import (
    	"internal/abi"
    	"internal/bytealg"
    	"unicode/utf8"
    	"unsafe"
    )
    
    // A Builder is used to efficiently build a string using [Builder.Write] methods.
    // It minimizes memory copying. The zero value is ready to use.
    // Do not copy a non-zero Builder.
    type Builder struct {
    	addr *Builder // of receiver, to detect copies by value
    
    	// External users should never get direct access to this buffer, since
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    func (b *Builder) NamespaceParam(namespace string) *Builder {
    	b.namespace = namespace
    	return b
    }
    
    // DefaultNamespace instructs the builder to set the namespace value for any object found
    // to NamespaceParam() if empty.
    func (b *Builder) DefaultNamespace() *Builder {
    	b.defaultNamespace = true
    	return b
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/config/builder.go

    func (b *Builder) Output(out config.Plan) *Builder {
    	b.t.Helper()
    
    	checkNotNil("out", out)
    
    	ret := b.Copy()
    	ret.out = out
    	return ret
    }
    
    // Context returns a copy of this Builder with the given context set.
    func (b *Builder) Context(t framework.TestContext) *Builder {
    	checkNotNil("t", t)
    	out := b.Copy()
    	out.t = t
    	return out
    }
    
    // Source returns a copy of this Builder with the given Source objects added.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  8. pkg/test/framework/components/echo/deployment/builder.go

    type Builder interface {
    	// With adds a new Echo configuration to the Builder. Once built, the instance
    	// pointer will be updated to point at the new Instance.
    	With(i *echo.Instance, cfg echo.Config) Builder
    
    	// WithConfig mimics the behavior of With, but does not allow passing a reference
    	// and returns an echoboot builder rather than a generic echo builder.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. pkg/http/headers/builder.go

    package headers
    
    import (
    	"net/http"
    )
    
    // Builder for HTTP headers.
    type Builder struct {
    	headers http.Header
    }
    
    // New Builder for HTTP headers.
    func New() *Builder {
    	return &Builder{
    		headers: make(http.Header),
    	}
    }
    
    // Get returns the current value for the key.
    func (b *Builder) Get(key string) string {
    	return b.headers.Get(key)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 21 16:42:24 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    import (
    	"fmt"
    	"go/ast"
    	"go/token"
    )
    
    type builder struct {
    	cfg       *CFG
    	mayReturn func(*ast.CallExpr) bool
    	current   *Block
    	lblocks   map[string]*lblock // labeled blocks
    	targets   *targets           // linked stack of branch targets
    }
    
    func (b *builder) stmt(_s ast.Stmt) {
    	// The label of the current statement.  If non-nil, its _goto
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top