Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 539 for New (0.15 sec)

  1. cmd/namespace-lock_test.go

    package cmd
    
    import (
    	"context"
    	"runtime"
    	"testing"
    	"time"
    )
    
    // WARNING:
    //
    // Expected source line number is hard coded, 35, in the
    // following test. Adding new code before this test or changing its
    // position will cause the line number to change and the test to FAIL
    // Tests getSource().
    func TestGetSource(t *testing.T) {
    	currentSource := func() string { return getSource(2) }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwks.go

    	D   string `json:"d,omitempty"`
    	N   string `json:"n,omitempty"`
    	E   string `json:"e,omitempty"`
    	K   string `json:"k,omitempty"`
    }
    
    var (
    	errMalformedJWKRSAKey = errors.New("malformed JWK RSA key")
    	errMalformedJWKECKey  = errors.New("malformed JWK EC key")
    )
    
    // DecodePublicKey - decodes JSON Web Key (JWK) as public key
    func (key *JWKS) DecodePublicKey() (crypto.PublicKey, error) {
    	switch key.Kty {
    	case "RSA":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 23:02:35 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/certificates.go

    func (c *ConfigWriter) PrintSecretSummary() error {
    	if c.ztunnelDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	secretDump := c.ztunnelDump.Certificates
    	w := new(tabwriter.Writer).Init(c.Stdout, 0, 8, 5, ' ', 0)
    	fmt.Fprintln(w, "CERTIFICATE NAME\tTYPE\tSTATUS\tVALID CERT\tSERIAL NUMBER\tNOT AFTER\tNOT BEFORE")
    
    	for _, secret := range secretDump {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 16:38:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/comparator.go

    	mt, err := protoregistry.GlobalTypes.FindMessageByName(protoreflect.FullName(mname))
    	if err != nil {
    		// istioctl should keep going if it encounters new Envoy versions; ignore unknown types
    		return &exprpb.Type{TypeKind: &exprpb.Type_Dyn{Dyn: &emptypb.Empty{}}}, nil
    	}
    	return legacyproto.MessageV1(mt.New().Interface()), nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  5. internal/config/identity/openid/providercfg.go

    func (p *providerCfg) UserInfo(ctx context.Context, accessToken string, transport http.RoundTripper) (map[string]interface{}, error) {
    	if p.JWKS.URL == nil || p.JWKS.URL.String() == "" {
    		return nil, errors.New("openid not configured")
    	}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, p.DiscoveryDoc.UserInfoEndpoint, nil)
    	if err != nil {
    		return nil, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/pod_cache.go

    import (
    	"errors"
    	"fmt"
    	"path/filepath"
    	"runtime"
    	"sync"
    
    	corev1 "k8s.io/api/core/v1"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/zdsapi"
    )
    
    var ErrPodNotFound = errors.New("netns not provided, but is needed as pod is not in cache")
    
    type PodNetnsCache interface {
    	ReadCurrentPodSnapshot() map[string]WorkloadInfo
    }
    
    // Hold a cache of node local pods with their netns
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  7. cmd/namespace-lock.go

    func (l LockContext) Context() context.Context {
    	return l.ctx
    }
    
    // Cancel function calls cancel() function
    func (l LockContext) Cancel() {
    	if l.cancel != nil {
    		l.cancel()
    	}
    }
    
    // newNSLock - return a new name space lock map.
    func newNSLock(isDistErasure bool) *nsLockMap {
    	nsMutex := nsLockMap{
    		isDistErasure: isDistErasure,
    	}
    	if isDistErasure {
    		return &nsMutex
    	}
    	nsMutex.lockMap = make(map[string]*nsLock)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  8. cmd/peer-rest-client.go

    	// Use a separate client to avoid recursive calls.
    	healthClient := rest.NewClient(serverURL, globalInternodeTransport, newCachedAuthToken())
    	healthClient.NoMetrics = true
    
    	// Construct a new health function.
    	restClient.HealthCheckFn = func() bool {
    		ctx, cancel := context.WithTimeout(context.Background(), restClient.HealthCheckTimeout)
    		defer cancel()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  9. internal/s3select/csv/record.go

    	return sql.SelectFmtCSV, r
    }
    
    // Replace - is not supported for CSV
    func (r *Record) Replace(_ interface{}) error {
    	return errors.New("Replace is not supported for CSV")
    }
    
    // NewRecord - creates new CSV record.
    func NewRecord() *Record {
    	return &Record{}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Sep 13 00:00:59 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  10. cmd/endpoint-ellipses.go

    					continue
    				}
    				if stopping {
    					return layout, errors.New("number of disks per node does not match")
    				}
    				eps = append(eps, node.disks[i])
    			}
    			if stopping {
    				break
    			}
    		}
    
    		for _, node := range endpointsList {
    			if node.nodeName != "" && singleNode {
    				return layout, errors.New("all arguments must but either single node or distributed")
    			}
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
Back to top