Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 335 for Cfg (0.03 sec)

  1. internal/config/etcd/etcd.go

    }
    
    // New - initialize new etcd client.
    func New(cfg Config) (*clientv3.Client, error) {
    	if !cfg.Enabled {
    		return nil, nil
    	}
    	cli, err := clientv3.New(cfg.Config)
    	if err != nil {
    		return nil, err
    	}
    	cli.KV = namespace.NewKV(cli.KV, cfg.PathPrefix)
    	cli.Watcher = namespace.NewWatcher(cli.Watcher, cfg.PathPrefix)
    	cli.Lease = namespace.NewLease(cli.Lease, cfg.PathPrefix)
    	return cli, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. pkg/test/echo/server/forwarder/udp.go

    	return &udpProtocol{e: e}
    }
    
    func (c *udpProtocol) ForwardEcho(ctx context.Context, cfg *Config) (*proto.ForwardEchoResponse, error) {
    	return doForward(ctx, cfg, c.e, c.makeRequest)
    }
    
    func (c *udpProtocol) makeRequest(ctx context.Context, cfg *Config, requestID int) (string, error) {
    	conn, err := newUDPConnection(cfg)
    	if err != nil {
    		return "", err
    	}
    	defer func() { _ = conn.Close() }()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 17:19:22 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    type declInfo struct {
    	decl     *ast.FuncDecl
    	cfg      *cfg.CFG // iff decl.Body != nil
    	started  bool     // to break cycles
    	noReturn bool
    }
    
    type litInfo struct {
    	cfg      *cfg.CFG
    	noReturn bool
    }
    
    // FuncDecl returns the control-flow graph for a named function.
    // It returns nil if decl.Body==nil.
    func (c *CFGs) FuncDecl(decl *ast.FuncDecl) *cfg.CFG {
    	if decl.Body == nil {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. pkg/test/echo/server/endpoint/instance.go

    }
    
    // New creates a new endpoint Instance.
    func New(cfg Config) (Instance, error) {
    	if cfg.Port != nil {
    		switch cfg.Port.Protocol {
    		case protocol.HBONE:
    			return newHBONE(cfg), nil
    		case protocol.HTTP, protocol.HTTPS:
    			return newHTTP(cfg), nil
    		case protocol.HTTP2, protocol.GRPC:
    			return newGRPC(cfg), nil
    		case protocol.TCP:
    			return newTCP(cfg), nil
    		case protocol.UDP:
    			return newUDP(cfg), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/images/images.go

    func GetKubernetesImage(image string, cfg *kubeadmapi.ClusterConfiguration) string {
    	repoPrefix := cfg.GetControlPlaneImageRepository()
    	kubernetesImageTag := kubeadmutil.KubernetesVersionToImageTag(cfg.KubernetesVersion)
    	return GetGenericImage(repoPrefix, image, kubernetesImageTag)
    }
    
    // GetDNSImage generates and returns the image for CoreDNS.
    func GetDNSImage(cfg *kubeadmapi.ClusterConfiguration) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 06:33:37 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. src/net/tcpconn_keepalive_solaris_test.go

    			cfg.Interval = oldCfg.Interval
    			cfg.Count = oldCfg.Count
    		case cfg.Interval == -1 && cfg.Count > 0:
    			cfg.Interval = defaultTcpKeepAliveAbortThreshold / time.Duration(cfg.Count)
    		case cfg.Count == -1 && cfg.Interval > 0:
    			cfg.Count = int(defaultTcpKeepAliveAbortThreshold / cfg.Interval)
    		case cfg.Interval > 0 && cfg.Count > 0:
    			// TCP_KEEPALIVE_ABORT_THRESHOLD will be recalculated only when both TCP_KEEPINTVL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/net/tcpconn_keepalive_illumos_test.go

    	switch {
    	case cfg.Interval == -1 && cfg.Count == -1:
    		cfg.Interval = oldCfg.Interval
    		cfg.Count = oldCfg.Count
    	case cfg.Interval == -1 && cfg.Count > 0:
    		cfg.Interval = defaultTcpKeepAliveAbortThreshold / time.Duration(cfg.Count)
    	case cfg.Count == -1 && cfg.Interval > 0:
    		cfg.Count = int(defaultTcpKeepAliveAbortThreshold / cfg.Interval)
    	case cfg.Interval > 0 && cfg.Count > 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. internal/config/batch/batch.go

    	if err != nil {
    		return cfg, err
    	}
    	if eduration < 0 {
    		return cfg, config.ErrInvalidBatchExpirationWorkersWait(nil)
    	}
    
    	if rduration > 0 {
    		cfg.ReplicationWorkersWait = rduration
    	}
    
    	if kduration > 0 {
    		cfg.KeyRotationWorkersWait = kduration
    	}
    
    	if eduration > 0 {
    		cfg.ExpirationWorkersWait = eduration
    	}
    
    	return cfg, nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/staticpod/utils_linux_test.go

    		filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPrivateKeyName):  {uid: 0, gid: supGroup, permissions: 0640},
    		filepath.Join(cfg.CertificatesDir, kubeadmconstants.APIServerKeyName):              {uid: runAsUser, gid: runAsGroup, permissions: 0600},
    		filepath.Join(cfg.CertificatesDir, kubeadmconstants.APIServerKubeletClientKeyName): {uid: runAsUser, gid: runAsGroup, permissions: 0600},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. internal/config/ilm/ilm.go

    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	cfg = Config{
    		TransitionWorkers: 100,
    		ExpirationWorkers: 100,
    	}
    
    	if err = config.CheckValidKeys(config.ILMSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	tw, err := strconv.Atoi(env.Get(EnvILMTransitionWorkers, kvs.GetWithDefault(transitionWorkers, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top