Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 309 for Oadd (0.14 sec)

  1. internal/ioutil/wait_pipe.go

    }
    
    // WaitPipe implements wait-group backend io.Pipe to provide
    // synchronization between read() end with write() end.
    func WaitPipe() (*PipeReader, *PipeWriter) {
    	r, w := io.Pipe()
    	var wg sync.WaitGroup
    	wg.Add(1)
    	return &PipeReader{
    			PipeReader: r,
    			wait:       wg.Wait,
    		}, &PipeWriter{
    			PipeWriter: w,
    			done:       wg.Done,
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 27 14:55:36 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. tests/postgres_test.go

    	}
    
    	DB.Migrator().DropTable("log_usage")
    
    	if err := DB.Exec(`
    CREATE TABLE public.log_usage (
        log_id bigint NOT NULL
    );
    
    ALTER TABLE public.log_usage ALTER COLUMN log_id ADD GENERATED BY DEFAULT AS IDENTITY (
        SEQUENCE NAME public.log_usage_log_id_seq
        START WITH 1
        INCREMENT BY 1
        NO MINVALUE
        NO MAXVALUE
        CACHE 1
    );
    	`).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
  3. cmd/bucket-policy.go

    		} else {
    			args[key] = values
    		}
    	}
    
    	// JWT specific values
    	//
    	// Add all string claims
    	for k, v := range claims {
    		vStr, ok := v.(string)
    		if ok {
    			// Trim any LDAP specific prefix
    			args[strings.ToLower(strings.TrimPrefix(k, "ldap"))] = []string{vStr}
    		}
    	}
    
    	// Add groups claim which could be a list. This will ensure that the claim
    	// `jwt:groups` works.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  4. internal/config/identity/openid/jwt_test.go

    	u1, err := xnet.ParseHTTPURL(server.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	pubKeys := publicKeys{
    		RWMutex: &sync.RWMutex{},
    		pkMap:   map[string]interface{}{},
    	}
    	pubKeys.add("76b95ae5-33ef-4283-97b7-d2a85dc2d8f4", []byte("WNGvKVyyNmXq0TraSvjaDN9CtpFgx35IXtGEffMCPR0"))
    
    	if len(pubKeys.pkMap) != 1 {
    		t.Fatalf("Expected 1 keys, got %d", len(pubKeys.pkMap))
    	}
    
    	provider := providerCfg{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  5. internal/grid/connection.go

    		return nil
    	}
    }
    
    // queueMsg queues a message, with an optional payload.
    // sender should not reference msg.Payload
    func (c *Connection) queueMsg(msg message, payload sender) error {
    	// Add baseflags.
    	msg.Flags.Set(c.baseFlags)
    	// This cannot encode subroute.
    	msg.Flags.Clear(FlagSubroute)
    	if payload != nil {
    		if sz := payload.Msgsize(); cap(msg.Payload) < sz {
    			PutByteBuffer(msg.Payload)
    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)
  6. internal/bucket/bandwidth/measurement.go

    func newBucketMeasurement(initTime time.Time) *bucketMeasurement {
    	return &bucketMeasurement{
    		startTime: initTime,
    	}
    }
    
    // incrementBytes add bytes reported for a bucket.
    func (m *bucketMeasurement) incrementBytes(bytes uint64) {
    	atomic.AddUint64(&m.bytesSinceLastWindow, bytes)
    }
    
    // updateExponentialMovingAverage processes the measurements captured so far.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  7. cmd/erasure-metadata.go

    			objInfo.Expires = t.UTC()
    		}
    	}
    
    	// Extract etag from metadata.
    	objInfo.ETag = extractETag(fi.Metadata)
    
    	// Add user tags to the object info
    	tags := fi.Metadata[xhttp.AmzObjectTagging]
    	if len(tags) != 0 {
    		objInfo.UserTags = tags
    	}
    
    	// Add replication status to the object info
    	objInfo.ReplicationStatusInternal = fi.ReplicationState.ReplicationStatusInternal
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  8. internal/config/subnet/subnet.go

    		return "", e
    	}
    
    	if _, e = part.Write(payload); e != nil {
    		return "", e
    	}
    	writer.Close()
    
    	r, e := http.NewRequest(http.MethodPost, reqURL, &body)
    	if e != nil {
    		return "", e
    	}
    	r.Header.Add("Content-Type", writer.FormDataContentType())
    
    	return c.submitPost(r)
    }
    
    func (c Config) submitPost(r *http.Request) (string, error) {
    	configLock.RLock()
    	r.Header.Set(xhttp.SubnetAPIKey, c.APIKey)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 27 16:35:36 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest_shared_test.go

    	cmdGenerate cmdType = "istioctl manifest generate"
    	// istioctl install
    	cmdApply cmdType = "istioctl install"
    	// in-cluster controller
    	cmdController cmdType = "operator controller"
    )
    
    // Golden output files add a lot of noise to pull requests. Use a unique suffix so
    // we can hide them by default. This should match one of the `linuguist-generated=true`
    // lines in istio.io/istio/.gitattributes.
    const (
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  10. cmd/test-utils_test.go

    	req.Header.Set("x-amz-date", currTime.Format(iso8601Format))
    
    	// Get header map.
    	headerMap := make(map[string][]string)
    	for k, vv := range req.Header {
    		// If request header key is not in ignored headers, then add it.
    		if _, ok := ignoredStreamingHeaders[http.CanonicalHeaderKey(k)]; !ok {
    			headerMap[strings.ToLower(k)] = vv
    		}
    	}
    
    	// Get header keys.
    	headers := []string{"host"}
    	for k := range headerMap {
    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)
Back to top