Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for payload (0.16 sec)

  1. internal/grid/handlers.go

    	NewStream(ctx context.Context, h HandlerID, payload []byte) (st *Stream, err error)
    }
    
    // Call the remove with the request and
    func (h *StreamTypeHandler[Payload, Req, Resp]) Call(ctx context.Context, c Streamer, payload Payload) (st *TypedStream[Req, Resp], err error) {
    	if c == nil {
    		return nil, ErrDisconnected
    	}
    	var payloadB []byte
    	if h.WithPayload {
    		var err error
    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/grid/grid_test.go

    	errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("1: server payload: ", len(payload), "bytes.")
    		return append([]byte{}, payload...), nil
    	}))
    	// 2: Return as error
    	errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("2: server payload: ", len(payload), "bytes.")
    		err := RemoteErr(payload)
    		return nil, &err
    	}))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/cni-watcher_test.go

    		PodNamespace: "funkyns",
    	}
    
    	payload, _ := json.Marshal(valid)
    
    	addEvent, err := processAddEvent(payload)
    
    	assert.NoError(t, err)
    	assert.Equal(t, valid, addEvent)
    }
    
    func TestProcessAddEventBadPayload(t *testing.T) {
    	valid := CNIPluginAddEvent{
    		Netns:        "/var/netns/foo",
    		PodName:      "pod-bingo",
    		PodNamespace: "funkyns",
    	}
    
    	payload, _ := json.Marshal(valid)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. docs/debugging/xl-meta/main.go

    // The remaining payload and versions are returned.
    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, err error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    	if !bytes.Equal(buf[:4], xlHeader[:]) {
    		return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4])
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  5. .github/workflows/contributor-pr.yml

              distribution: temurin
              java-version: 11
          - id: determine-sys-prop-args
            uses: actions/github-script@v7
            with:
              script: |
                if (context.payload.pull_request && context.payload.pull_request.head.repo.fork) {
                    core.setOutput('sys-prop-args', '-DagreePublicBuildScanTermOfService=yes -DcacheNode=us')
                } else {
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. .github/workflows/slack-notifier.yml

        runs-on: ubuntu-latest
        steps:
          - name: Send Slack notification about issues with specific labels
            id: slack
            uses: slackapi/slack-github-action@v1.23.0
            with:
              payload: |
                {
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. .github/workflows/notify-on-rc-for-manual-test.yml

        runs-on: ubuntu-latest
        steps:
          - name: Send Slack notification about new RCs for manual testing
            id: slack
            uses: slackapi/slack-github-action@v1.23.0
            with:
              payload: |
                {
                  "text": "<https://github.com/gradle/gradle/${{ github.event.ref }}|[gradle/gradle#${{ github.event.ref }}]> has been pushed",
                  "blocks": [
                    {
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  8. cmd/bucket-versioning-handler.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/policy"
    )
    
    const (
    	bucketVersioningConfig = "versioning.xml"
    
    	// Maximum size of bucket versioning configuration payload sent to the PutBucketVersioningHandler.
    	maxBucketVersioningConfigSize = 1 * humanize.MiByte
    )
    
    // PutBucketVersioningHandler - PUT Bucket Versioning.
    // ----------
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    func signStreamingRequest(req *http.Request, accessKey, secretKey string, currTime time.Time) (string, error) {
    	// Get hashed payload.
    	hashedPayload := req.Header.Get("x-amz-content-sha256")
    	if hashedPayload == "" {
    		return "", fmt.Errorf("Invalid hashed payload")
    	}
    
    	// Set x-amz-date.
    	req.Header.Set("x-amz-date", currTime.Format(iso8601Format))
    
    	// Get header map.
    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)
  10. cmd/xl-storage-format-v2.go

    // The remaining payload and versions are returned.
    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, err error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    	if !bytes.Equal(buf[:4], xlHeader[:]) {
    		return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4])
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
Back to top