Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pt (0.16 sec)

  1. internal/config/config.go

    }
    
    // Error creates an error message and wraps
    // it with the error type specified in the type parameter
    func Error[T ErrorConfig, PT interface {
    	*T
    	setMsg(string)
    }](format string, vals ...interface{},
    ) T {
    	pt := PT(new(T))
    	pt.setMsg(fmt.Sprintf(format, vals...))
    	return *pt
    }
    
    // Errorf formats an error and returns it as a generic config error
    func Errorf(format string, vals ...interface{}) ErrConfigGeneric {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/ztunnelserver.go

    	m, _, err := readProto[zdsapi.WorkloadResponse](z.u, timeout, nil)
    	return m, err
    }
    
    func readProto[T any, PT interface {
    	proto.Message
    	*T
    }](c *net.UnixConn, timeout time.Duration, oob []byte) (PT, int, error) {
    	var buf [1024]byte
    	err := c.SetReadDeadline(time.Now().Add(timeout))
    	if err != nil {
    		return nil, 0, err
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. cmd/iam.go

    	if !sa.Credentials.IsServiceAccount() {
    		return UserIdentity{}, nil, errNoSuchServiceAccount
    	}
    
    	var embeddedPolicy *policy.Policy
    
    	pt, ptok := jwtClaims.Lookup(iamPolicyClaimNameSA())
    	sp, spok := jwtClaims.Lookup(policy.SessionPolicyName)
    	if ptok && spok && pt == embeddedPolicyType {
    		policyBytes, err := base64.StdEncoding.DecodeString(sp)
    		if err != nil {
    			return UserIdentity{}, nil, err
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top