Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for constructor (0.31 sec)

  1. internal/logger/target/kafka/kafka_scram_client_contrib.go

    // each authentication attempt.
    type XDGSCRAMClient struct {
    	*scram.Client
    	*scram.ClientConversation
    	scram.HashGeneratorFcn
    }
    
    // Begin constructs a SCRAM client component based on a given hash.Hash
    // factory receiver.  This constructor will normalize the username, password
    // and authzID via the SASLprep algorithm, as recommended by RFC-5802.  If
    // SASLprep fails, the method returns an error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  2. internal/grid/README.md

            // Do something with payload
            return NewMSSWith(map[string]string{"result": "ok"}), nil
        }
    	
        // Create a typed handler.
        // Due to current generics limitations, a constructor of the empty type must be provided.
        instance := grid.NewSingleHandler[*grid.MSS, *grid.MSS](h, grid.NewMSS, grid.NewMSS)
    	
        // Register the handler on the manager
        instance.Register(manager, handler)
    	
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. internal/hash/reader_test.go

    	r, err := NewReader(context.Background(), src, size, md5Hex, sha256Hex, actualSize)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return r
    }
    
    // Tests NewReader() constructor with invalid arguments.
    func TestHashReaderInvalidArguments(t *testing.T) {
    	testCases := []struct {
    		desc              string
    		src               io.Reader
    		size              int64
    		actualSize        int64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  4. internal/s3select/sql/value_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package sql
    
    import (
    	"fmt"
    	"math"
    	"strconv"
    	"testing"
    	"time"
    )
    
    // valueBuilders contains one constructor for each value type.
    // Values should match if type is the same.
    var valueBuilders = []func() *Value{
    	FromNull,
    	func() *Value {
    		return FromBool(true)
    	},
    	func() *Value {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	c.Assert(err, nil)
    
    	response, err := s.client.Do(request)
    	c.Assert(err, nil)
    	// assert the response status code.
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	// construct request to delete the bucket.
    	request, err = newTestSignedRequest(http.MethodDelete, getDeleteBucketURL(s.endPoint, bucketName),
    		0, nil, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    	case <-ctx.Done():
    		return fi, onlineMeta, onlineDisks, toObjectErr(ctx.Err(), bucket, object)
    	}
    
    	return fi, onlineMeta, onlineDisks, nil
    }
    
    // getObjectInfo - wrapper for reading object metadata and constructs ObjectInfo.
    func (er erasureObjects) getObjectInfo(ctx context.Context, bucket, object string, opts ObjectOptions) (objInfo ObjectInfo, err error) {
    	fi, _, _, err := er.getObjectFileInfo(ctx, bucket, object, opts, false)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  7. internal/grid/types.go

    	},
    }
    
    // Recycle the underlying map.
    func (m *MSS) Recycle() {
    	if m != nil && *m != nil {
    		mssPool.Put(map[string]string(*m))
    		*m = nil
    	}
    }
    
    // ToQuery constructs a URL query string from the MSS, including "?" if there are any keys.
    func (m MSS) ToQuery() string {
    	if len(m) == 0 {
    		return ""
    	}
    	var buf strings.Builder
    	buf.WriteByte('?')
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  8. cmd/update.go

    	// deployment guide for update procedures.
    	if IsKubernetes() {
    		return kubernetesDeploymentDoc
    	}
    
    	// Check if we are docker environment, return docker update command
    	if IsDocker() {
    		// Construct release tag name.
    		return fmt.Sprintf("podman pull quay.io/minio/minio:%s", releaseTag)
    	}
    
    	// For binary only installations, we return link to the latest binary.
    	if runtime.GOOS == "windows" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. internal/logger/message/audit/entry.go

    const Version = "1"
    
    // NewEntry - constructs an audit entry object with some fields filled
    func NewEntry(deploymentID string) audit.Entry {
    	return audit.Entry{
    		Version:      Version,
    		DeploymentID: deploymentID,
    		Time:         time.Now().UTC(),
    	}
    }
    
    // ToEntry - constructs an audit entry from a http request
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  10. internal/event/target/kafka_scram_client_contrib.go

    // each authentication attempt.
    type XDGSCRAMClient struct {
    	*scram.Client
    	*scram.ClientConversation
    	scram.HashGeneratorFcn
    }
    
    // Begin constructs a SCRAM client component based on a given hash.Hash
    // factory receiver.  This constructor will normalize the username, password
    // and authzID via the SASLprep algorithm, as recommended by RFC-5802.  If
    // SASLprep fails, the method returns an error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.2K bytes
    - Viewed (1)
Back to top