Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Mitake (0.23 sec)

  1. cmd/erasure-encode.go

    			}...) {
    				return 0, err
    			}
    		}
    
    		eof := err == io.EOF || err == io.ErrUnexpectedEOF
    		if n == 0 && total != 0 {
    			// Reached EOF, nothing more to be done.
    			break
    		}
    
    		// We take care of the situation where if n == 0 and total == 0 by creating empty data and parity files.
    		blocks, err = e.EncodeData(ctx, buf[:n])
    		if err != nil {
    			return 0, err
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/operator-remove.go

    			if orArgs.revision == "" && !orArgs.purge {
    				return fmt.Errorf("at least one of the --revision or --purge flags must be set")
    			}
    			if len(args) > 0 {
    				return fmt.Errorf("istioctl operator remove does not take arguments")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			client, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/netns.go

    	fd    uintptr
    	inode uint64
    }
    
    func (n *NetnsWithFd) Close() error {
    	if n.netns == nil {
    		return nil
    	}
    
    	ret := n.netns.Close()
    	// set fd to invalid value, so if something uses it by mistake it will err
    	uintZero := uintptr(0)
    	n.fd = ^uintZero
    	return ret
    }
    
    func (n *NetnsWithFd) Fd() uintptr {
    	return n.fd
    }
    
    func (n *NetnsWithFd) Inode() uint64 {
    	return n.inode
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/pod_cache_test.go

    		Workload: podToWorkload(pod),
    		Netns:    ns,
    	}
    	netns1 := p.UpsertPodCacheWithNetns(string(pod.UID), wl)
    	netnsTaken := p.Take(string(pod.UID))
    	if netns1 != netnsTaken {
    		t.Fatalf("Expected the original Netns for the same uid, got %p and %p", netns1, ns)
    	}
    	if nil != p.Take(string(pod.UID)) {
    		// expect nil because we already took it
    		t.Fatalf("Expected nil Netns for the same uid twice")
    	}
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. cmd/healthcheck-handler.go

    	}
    	if !result.Healthy {
    		// As a maintenance call we are purposefully asked to be taken
    		// down, this is for orchestrators to know if we can safely
    		// take this server down, return appropriate error.
    		if opts.Maintenance {
    			writeResponse(w, http.StatusPreconditionFailed, nil, mimeNone)
    		} else {
    			writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 03 21:13:20 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    	}
    
    	// If seconds is negative, then perform correction.
    	sign := ""
    	if secs < 0 {
    		sign = "-"             // Remember sign
    		secs = -(secs + 1)     // Add a second to secs
    		nsecs = -(nsecs - 1e9) // Take that second away from nsecs
    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. internal/event/targetlist.go

    	if workerCount == 0 {
    		workerCount = runtime.GOMAXPROCS(0)
    	}
    	wk, err := workers.New(workerCount)
    	if err != nil {
    		panic(err)
    	}
    	for i := 0; i < workerCount; i++ {
    		wk.Take()
    		go func() {
    			defer wk.Give()
    
    			for {
    				select {
    				case av := <-list.queue:
    					list.sendSync(av.ev, av.targetSet)
    				case <-list.ctx.Done():
    					return
    				}
    			}
    		}()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. cmd/callhome.go

    		// Leader node (that successfully acquires the lock inside runCallhome)
    		// will keep performing the callhome. If the leader goes down for some reason,
    		// the lock will be released and another node will acquire it and take over
    		// because of this loop.
    		for {
    			if !globalCallhomeConfig.Enabled() {
    				return
    			}
    
    			if !runCallhome(ctx, objAPI) {
    				// callhome was disabled or context was canceled
    				return
    			}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.1K bytes
    - Viewed (1)
  9. internal/pubsub/pubsub_test.go

    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch2, doneCh2, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	close(doneCh1)
    	// Allow for the above statement to take effect.
    	time.Sleep(100 * time.Millisecond)
    	ps.Lock()
    	if len(ps.subs) != 1 {
    		t.Fatal("expected 1 subscriber")
    	}
    	ps.Unlock()
    	close(doneCh2)
    }
    
    type maskString string
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. cmd/license-update.go

    		// will keep performing the license update. If the leader goes down for some
    		// reason, the lock will be released and another node will acquire it and
    		// take over because of this loop.
    		for {
    			licenceUpdaterLoop(ctx, objAPI)
    
    			// license update stopped for some reason.
    			// sleep for some time and try again.
    			duration := time.Duration(r.Float64() * float64(time.Hour))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top