Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for leash (0.15 sec)

  1. internal/config/etcd/etcd.go

    	}
    	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
    }
    
    func parseEndpoints(endpoints string) ([]string, bool, error) {
    	etcdEndpoints := strings.Split(endpoints, config.ValueSeparator)
    
    	var etcdSecure bool
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. src/builtin/builtin.go

    // not nil. Values of string type are immutable.
    type string string
    
    // int is a signed integer type that is at least 32 bits in size. It is a
    // distinct type, however, and not an alias for, say, int32.
    type int int
    
    // uint is an unsigned integer type that is at least 32 bits in size. It is a
    // distinct type, however, and not an alias for, say, uint32.
    type uint uint
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. istioctl/pkg/install/k8sversion/version.go

    	// Segments provide slice of int eg: v1.19.1 => [1, 19, 1]
    	num := ver.Segments()[1]
    	return num, nil
    }
    
    // IsK8VersionSupported checks minimum supported Kubernetes version for Istio.
    // If the K8s version is not at least the `MinK8SVersion`, it logs a message warning the user that they
    // may experience problems if they proceed with the install.
    func IsK8VersionSupported(c kube.Client, l clog.Logger) error {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 02:07:51 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. cmd/license-update.go

    			// license update stopped for some reason.
    			// sleep for some time and try again.
    			duration := time.Duration(r.Float64() * float64(time.Hour))
    			if duration < time.Second {
    				// Make sure to sleep at least a second to avoid high CPU ticks.
    				duration = time.Second
    			}
    			time.Sleep(duration)
    		}
    	}()
    }
    
    func licenceUpdaterLoop(ctx context.Context, objAPI ObjectLayer) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher.go

    	}
    	go func() {
    		err := s.cniListenServer.Serve(unixListener)
    
    		select {
    		case <-s.ctx.Done():
    			// ctx done, we should silently go away
    			return
    		default:
    			// If the cniListener exits, at least we should record an error log
    			log.Errorf("CNI listener server exiting unexpectedly: %v", err)
    		}
    	}()
    
    	context.AfterFunc(s.ctx, func() {
    		if err := s.cniListenServer.Close(); err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. cmd/bootstrap-peer-server.go

    			retries++
    			// after 20 retries start logging that servers are not reachable yet
    			if retries >= 20 {
    				logger.Info(fmt.Sprintf("Waiting for at least %d remote servers with valid configuration to be online", len(clnts)/2))
    				if len(offlineEndpoints) > 0 {
    					logger.Info(fmt.Sprintf("Following servers are currently offline or unreachable %s", offlineEndpoints))
    				}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. cmd/object-api-errors.go

    type PartTooSmall struct {
    	PartSize   int64
    	PartNumber int
    	PartETag   string
    }
    
    func (e PartTooSmall) Error() string {
    	return fmt.Sprintf("Part size for %d should be at least 5MB", e.PartNumber)
    }
    
    // PartTooBig returned if size of part is bigger than the allowed limit.
    type PartTooBig struct{}
    
    func (e PartTooBig) Error() string {
    	return "Part size bigger than the allowed limit"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/podcgroupns.go

    	for scanner.Scan() {
    		token := scanner.Text()
    		substrings := strings.SplitN(token, ":", 3)
    		if len(substrings) < 3 {
    			return nil, fmt.Errorf("cgroup entry contains %v colons, but expected at least 2 colons: %q", len(substrings), token)
    		}
    		cgroups = append(cgroups, Cgroup{
    			HierarchyID:    substrings[0],
    			ControllerList: substrings[1],
    			GroupPath:      substrings[2],
    		})
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		var maxUsedPct int
    		for _, disk := range zinfo {
    			if disk == nil || disk.Total == 0 {
    				continue
    			}
    			available += disk.Total - disk.Used
    
    			// set maxUsedPct to the value from the disk with the least space percentage.
    			if pctUsed := int(disk.Used * 100 / disk.Total); pctUsed > maxUsedPct {
    				maxUsedPct = pctUsed
    			}
    		}
    
    		// Since we are comparing pools that may have a different number of sets
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 77.8K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    		HTTPStatusCode: http.StatusNotImplemented,
    	},
    	ErrPreconditionFailed: {
    		Code:           "PreconditionFailed",
    		Description:    "At least one of the pre-conditions you specified did not hold",
    		HTTPStatusCode: http.StatusPreconditionFailed,
    	},
    	ErrRequestTimeTooSkewed: {
    		Code:           "RequestTimeTooSkewed",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 06 05:26:02 GMT 2024
    - 90.2K bytes
    - Viewed (6)
Back to top