Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for samples (0.16 sec)

  1. internal/config/policy/opa/config.go

    	// form http://localhost:8181/v1/data/httpapi/authz
    	type opaResultAllow struct {
    		Result struct {
    			Allow bool `json:"allow"`
    		} `json:"result"`
    	}
    
    	// Handle simpler OPA responses when OPA URL is of
    	// form http://localhost:8181/v1/data/httpapi/authz/allow
    	type opaResult struct {
    		Result bool `json:"result"`
    	}
    
    	respBody := bytes.NewReader(opaRespBytes)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 14 21:50:16 GMT 2023
    - 5.2K bytes
    - Viewed (1)
  2. docs/sts/custom-token-identity.md

    ## Example request and response
    
    Sample request with `curl`:
    
    ```sh
    curl -XPOST 'http://localhost:9001/?Action=AssumeRoleWithCustomToken&Version=2011-06-15&Token=aaa&RoleArn=arn:minio:iam:::role/idmp-vGxBdLkOc8mQPU1-UQbBh-yWWVQ'
    ```
    
    Prettified Response:
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle-handlers_test.go

    }
    
    // Simple tests of bucket lifecycle: PUT, GET, DELETE.
    // Tests are related and the order is important.
    func testBucketLifecycleHandlers(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler,
    	creds auth.Credentials, t *testing.T,
    ) {
    	// test cases with sample input and expected output.
    	testCases := []struct {
    		method     string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

    			wantResult: `{"_1":3}`,
    		},
    		{
    			name:       "date_diff_month_neg",
    			query:      `SELECT date_diff(MONTH, '2020-01-20T', '2019-10-20T') FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":-3}`,
    		},
    		// Examples from https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-date.html#s3-glacier-select-sql-reference-date-diff
    		{
    			name:       "date_diff_year",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  5. internal/grid/grid_test.go

    					}
    				}
    				return nil
    			},
    			OutCapacity: 1,
    			InCapacity:  0,
    		}))
    		errFatal(manager.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) {
    			// Simple roundtrip
    			return append([]byte{}, payload...), nil
    		}))
    	}
    	register(local)
    	register(remote)
    
    	remoteConn := local.Connection(remoteHost)
    	const testPayload = "Hello Grid World!"
    
    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)
  6. internal/event/target/postgresql.go

    			return 'a'
    		case unicode.IsDigit(r):
    			return '0'
    		case r == '_', r == '$':
    			return r
    		default:
    			valid = false
    			return -1
    		}
    	}, name)
    
    	if valid {
    		// check for simple name or quoted name
    		// - letter/underscore followed by one or more letter/digit/underscore
    		// - any text between quotes (text cannot contain a quote itself)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. internal/grid/muxclient.go

    		return nil, err
    	}
    	if debugPrint {
    		fmt.Println("Connecting Mux", m.MuxID, ",to", m.parent.Remote)
    	}
    
    	// Space for one message and an error.
    	responseCh := make(chan Response, 1)
    
    	// Spawn simple disconnect
    	if requests == nil {
    		go m.handleOneWayStream(responseCh, responses)
    		return &Stream{responses: responseCh, Requests: nil, ctx: m.ctx, cancel: m.cancelFn, muxID: m.MuxID}, nil
    	}
    
    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)
  8. internal/ioutil/discard.go

    package ioutil
    
    import (
    	"io"
    )
    
    // Discard is just like io.Discard without the io.ReaderFrom compatible
    // implementation which is buggy on NUMA systems, we have to use a simpler
    // io.Writer implementation alone avoids also unnecessary buffer copies,
    // and as such incurred latencies.
    var Discard io.Writer = discard{}
    
    // discard is /dev/null for Golang.
    type discard struct{}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  9. docs/bucket/versioning/DESIGN.md

    - ObjectType (default)
    - LegacyObjectType (preserves existing deployments and older xl.json format)
    - DeleteMarker (a versionId to capture the DELETE sequences implemented primarily for AWS spec compatibility)
    
    A sample msgpack-JSON `xl.meta`, you can debug the content inside `xl.meta` using [xl-meta.go](https://github.com/minio/minio/tree/master/docs/debugging#decoding-metadata) program.
    
    ```json
    {
      "Versions": [
        {
          "Type": 1,
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 5.8K bytes
    - Viewed (1)
  10. docs/batch-jobs/README.md

    mc batch status myminio/ E24HH4nNMcgY5taynaPfxu
    ●∙∙
    Objects:        28766
    Versions:       28766
    Throughput:     3.0 MiB/s
    Transferred:    406 MiB
    Elapsed:        2m14.227222868s
    CurrObjName:    share/doc/xml-core/examples/foo.xmlcatalogs
    ```
    
    ### 'describe' the batch job yaml.
    ```
    mc batch describe myminio/ E24HH4nNMcgY5taynaPfxu
    replicate:
      apiVersion: v1
    ...
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Oct 06 06:00:43 GMT 2022
    - 4.8K bytes
    - Viewed (0)
Back to top