Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 214 for dindle (0.14 sec)

  1. internal/grid/handlers.go

    	// There is flow control in both directions.
    	StreamHandler struct {
    		// Handle an incoming request. Initial payload is sent.
    		// Additional input packets (if any) are streamed to request.
    		// Upstream will block when request channel is full.
    		// Response packets can be sent at any time.
    		// Any non-nil error sent as response means no more responses are sent.
    		Handle StreamHandlerFn
    
    		// Subroute for handler.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  2. internal/kms/single-key.go

    }
    
    // New returns a single-key KMS that derives new DEKs from the
    // given key.
    func New(keyID string, key []byte) (KMS, error) {
    	if len(key) != 32 {
    		return nil, errors.New("kms: invalid key length " + strconv.Itoa(len(key)))
    	}
    	return secretKey{
    		keyID: keyID,
    		key:   key,
    	}, nil
    }
    
    // secretKey is a KMS implementation that derives new DEKs
    // from a single key.
    type secretKey struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. internal/grid/connection.go

    	}
    	if err != nil {
    		return err
    	}
    	// Signal that we are reconnected, update state and handle messages.
    	// Prevent other connections from connecting while we process.
    	c.reconnectMu.Lock()
    	if c.remoteID != nil {
    		c.reconnected()
    	}
    	rid := uuid.UUID(req.ID)
    	c.remoteID = &rid
    
    	// Handle incoming messages until disconnect.
    	c.handleMessages(ctx, conn)
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    // made generalized, and can be integrated in benchmarks/unit tests/go check suite tests.
    type TestErrHandler interface {
    	testing.TB
    }
    
    const (
    	// ErasureSDStr is the string which is used as notation for Single node ObjectLayer in the unit tests.
    	ErasureSDStr string = "ErasureSD"
    
    	// ErasureTestStr is the string which is used as notation for Erasure ObjectLayer in the unit tests.
    	ErasureTestStr string = "Erasure"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. utils/tests/models.go

    // User has one `Account` (has one), many `Pets` (has many) and `Toys` (has many - polymorphic)
    // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
    // He speaks many languages (many to many) and has many friends (many to many - single-table)
    // His pet also has one Toy (has one - polymorphic)
    // NamedPet is a reference to a named `Pet` (has one)
    type User struct {
    	gorm.Model
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  6. cmd/bucket-replication-utils_test.go

    		expectedOpType:                    replication.UnsetReplicationType,
    		expectedAction:                    replicateNone,
    	},
    	{ // 2. replication completed to single target
    		name: "replication completed to single target",
    		tgtInfos: []replicatedTargetInfo{
    			{
    				Arn:                   "arn1",
    				Size:                  249,
    				PrevReplicationStatus: replication.Pending,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 08 20:27:40 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  7. cmd/os-reliable.go

    			return errFileAccessDenied
    		case isSysErrPathNotFound(err):
    			// This is a special case should be handled only for
    			// windows, because windows API does not return "not a
    			// directory" error message. Handle this specifically
    			// here.
    			return errFileAccessDenied
    		}
    	}
    	return err
    }
    
    // Reliably retries os.RemoveAll if for some reason os.RemoveAll returns
    // syscall.ENOTEMPTY (children has files).
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. cmd/typed-errors.go

    // error returned when policy to be deleted is in use.
    var errPolicyInUse = errors.New("Specified policy is in use and cannot be deleted.")
    
    // error returned when more than a single policy is specified when only one is
    // expected.
    var errTooManyPolicies = errors.New("Only a single policy may be specified here.")
    
    // error returned in IAM subsystem when an external users systems is configured.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. cmd/xl-storage-errors.go

    			return errno == 0x03
    		}
    	}
    	return false
    }
    
    // Check if the given error corresponds to the specific ERROR_INVALID_HANDLE for windows
    func isSysErrHandleInvalid(err error) bool {
    	if runtime.GOOS != globalWindowsOSName {
    		return false
    	}
    	// Check if err contains ERROR_INVALID_HANDLE errno
    	var pathErr *os.PathError
    	if errors.As(err, &pathErr) {
    		var errno syscall.Errno
    		if errors.As(pathErr.Err, &errno) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:29 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  10. internal/http/listener.go

    		case <-listener.ctx.Done():
    			return false
    		}
    	}
    
    	// Closure to handle TCPListener until done channel is closed.
    	handleListener := func(idx int, listener net.Listener) {
    		for {
    			conn, err := listener.Accept()
    			send(acceptResult{conn, err, idx})
    		}
    	}
    
    	// Start separate goroutine for each TCP listener to handle connection.
    	for idx, tcpListener := range listener.listeners {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top