Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 571 for Case (0.14 sec)

  1. internal/event/target/elasticsearch.go

    		return err
    	}
    
    	switch serverSupportStatus {
    	case ESSUnknown:
    		return errors.New("unable to determine support status of ES (should not happen)")
    
    	case ESSDeprecated:
    		return errors.New("there is no currently deprecated version of ES in MinIO")
    
    	case ESSSupported:
    		target.client = clientV7
    
    	default:
    		// ESSUnsupported case
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. src/archive/tar/stat_unix.go

    		dev := uint64(sys.Rdev) // May be int32 or uint32
    		switch runtime.GOOS {
    		case "aix":
    			var major, minor uint32
    			major = uint32((dev & 0x3fffffff00000000) >> 32)
    			minor = uint32((dev & 0x00000000ffffffff) >> 0)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "linux":
    			// Copied from golang.org/x/sys/unix/dev_linux.go.
    			major := uint32((dev & 0x00000000000fff00) >> 8)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. cmd/speedtest.go

    			result.Servers = len(globalNotificationSys.peerClients) + 1
    			result.Version = Version
    			result.Concurrent = concurrency
    
    			select {
    			case ch <- result:
    			case <-ctx.Done():
    				return
    			}
    		}
    
    		for {
    			select {
    			case <-ctx.Done():
    				// If the client got disconnected stop the speedtest.
    				return
    			default:
    			}
    
    			sopts := speedTestOpts{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server_test.go

    	wg := &WaitGroup{
    		done: make(chan struct{}),
    	}
    
    	wg.Add(n)
    	return wg, func() {
    		select {
    		case <-wg.C():
    			return
    		case <-time.After(time.Second):
    			t.Fatal("Wait group timed out!\n")
    		}
    	}
    }
    
    func (wg *WaitGroup) Add(i int32) {
    	select {
    	case <-wg.done:
    		panic("use of an already closed WaitGroup")
    	default:
    	}
    	atomic.AddInt32(&wg.count, i)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. internal/hash/checksum.go

    	switch strings.ToUpper(alg) {
    	case "CRC32":
    		return ChecksumCRC32
    	case "CRC32C":
    		return ChecksumCRC32C
    	case "SHA1":
    		return ChecksumSHA1
    	case "SHA256":
    		return ChecksumSHA256
    	case "":
    		return ChecksumNone
    	}
    	return ChecksumInvalid
    }
    
    // String returns the type as a string.
    func (c ChecksumType) String() string {
    	switch {
    	case c.Is(ChecksumCRC32):
    		return "CRC32"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. internal/dsync/dsync_test.go

    		t.Fatal("GetLock() should be successful")
    	}
    
    	// Make it run twice.
    	timer := time.NewTimer(testDrwMutexRefreshInterval * 2)
    
    	select {
    	case <-ctx.Done():
    		t.Fatal("Lock context canceled which is not expected")
    	case <-timer.C:
    	}
    
    	// Should be safe operation in all cases
    	dm.Unlock(context.Background())
    }
    
    // Test canceling context while quorum servers report lock not found
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  7. internal/s3select/sql/value.go

    func (v Value) GetTypeString() string {
    	switch v.value.(type) {
    	case nil:
    		return "NULL"
    	case bool:
    		return "BOOL"
    	case string:
    		return "STRING"
    	case int64:
    		return "INT"
    	case float64:
    		return "FLOAT"
    	case time.Time:
    		return "TIMESTAMP"
    	case []byte:
    		return "BYTES"
    	case []Value:
    		return "ARRAY"
    	case Missing:
    		return "MISSING"
    	}
    	return "--"
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  8. internal/grid/muxclient.go

    	for {
    		select {
    		case <-m.ctx.Done():
    			if debugPrint {
    				fmt.Println("Client sending disconnect to mux", m.MuxID)
    			}
    			err := context.Cause(m.ctx)
    			if !errors.Is(err, errStreamEOF) {
    				m.addErrorNonBlockingClose(respHandler, err)
    			}
    			return
    		case resp, ok := <-respServer:
    			if !ok {
    				return
    			}
    			select {
    			case respHandler <- resp:
    				m.respMu.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle.go

    func (es *expiryState) Worker(input <-chan expiryOp) {
    	for {
    		select {
    		case <-es.ctx.Done():
    			return
    		case v, ok := <-input:
    			if !ok {
    				return
    			}
    			if v == nil {
    				// ResizeWorkers signaling worker to quit
    				return
    			}
    			switch v := v.(type) {
    			case expiryTask:
    				if v.objInfo.TransitionedObject.Status != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    	// Determine the character encoding.
    	utf8Valid1, utf8Require1 := detectUTF8(f.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(f.Comment)
    	switch {
    	case !utf8Valid1 || !utf8Valid2:
    		// Name and Comment definitely not UTF-8.
    		f.NonUTF8 = true
    	case !utf8Require1 && !utf8Require2:
    		// Name and Comment use only single-byte runes that overlap with UTF-8.
    		f.NonUTF8 = false
    	default:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top