Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 259 for Cool (0.18 sec)

  1. internal/s3select/sql/value_test.go

    			}
    		})
    	}
    }
    
    func TestValue_bytesToBool(t *testing.T) {
    	type fields struct {
    		value interface{}
    	}
    	tests := []struct {
    		name    string
    		fields  fields
    		wantVal bool
    		wantOk  bool
    	}{
    		{
    			name: "true",
    			fields: fields{
    				value: []byte("true"),
    			},
    			wantVal: true,
    			wantOk:  true,
    		},
    		{
    			name: "false",
    			fields: fields{
    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)
  2. cmd/api-response.go

    	CreationDate string // time string of format "2006-01-02T15:04:05.000Z"
    }
    
    // ObjectVersion container for object version metadata
    type ObjectVersion struct {
    	Object
    	IsLatest  bool
    	VersionID string `xml:"VersionId"`
    
    	isDeleteMarker bool
    }
    
    // MarshalXML - marshal ObjectVersion
    func (o ObjectVersion) MarshalXML(e *xxml.Encoder, start xxml.StartElement) error {
    	if o.isDeleteMarker {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  3. internal/logger/target/kafka/kafka.go

    )
    
    // Config - kafka target arguments.
    type Config struct {
    	Enabled bool        `json:"enable"`
    	Brokers []xnet.Host `json:"brokers"`
    	Topic   string      `json:"topic"`
    	Version string      `json:"version"`
    	TLS     struct {
    		Enable        bool               `json:"enable"`
    		RootCAs       *x509.CertPool     `json:"-"`
    		SkipVerify    bool               `json:"skipVerify"`
    		ClientAuth    tls.ClientAuthType `json:"clientAuth"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.1K bytes
    - Viewed (1)
  4. cmd/post-policy_test.go

    		expectedRespStatus int
    		accessKey          string
    		secretKey          string
    		dates              []interface{}
    		policy             string
    		noFilename         bool
    		corruptedBase64    bool
    		corruptedMultipart bool
    	}{
    		// Success case.
    		{
    			objectName:         "test",
    			data:               []byte("Hello, World"),
    			expectedRespStatus: http.StatusNoContent,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  5. internal/event/target/postgresql.go

    	return target.store
    }
    
    // IsActive - Return true if target is up and active
    func (target *PostgreSQLTarget) IsActive() (bool, error) {
    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    func (target *PostgreSQLTarget) isActive() (bool, error) {
    	if err := target.db.Ping(); err != nil {
    		if IsConnErr(err) {
    			return false, store.ErrNotConnected
    		}
    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)
  6. tests/joins_test.go

    	} else if len(users2) != len(users) {
    		t.Fatalf("Failed to load join users, got: %v, expect: %v", len(users2), len(users))
    	}
    
    	sort.Slice(users2, func(i, j int) bool {
    		return users2[i].ID > users2[j].ID
    	})
    
    	sort.Slice(users, func(i, j int) bool {
    		return users[i].ID > users[j].ID
    	})
    
    	for idx, user := range users {
    		CheckUser(t, user, users2[idx])
    	}
    }
    
    func TestJoinConds(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  7. cmd/bucket-lifecycle.go

    // IsEmpty returns true if output location not specified.
    func (o *OutputLocation) IsEmpty() bool {
    	return o.S3.BucketName == ""
    }
    
    // SelectParameters specifies sql select parameters
    type SelectParameters struct {
    	s3select.S3Select
    }
    
    // IsEmpty returns true if no select parameters set
    func (sp *SelectParameters) IsEmpty() bool {
    	return sp == nil
    }
    
    var selectParamsXMLName = "SelectParameters"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  8. cmd/tier.go

    func (config *TierConfigMgr) isTierNameInUse(tierName string) (madmin.TierType, bool) {
    	if t, ok := config.Tiers[tierName]; ok {
    		return t.Type, true
    	}
    	return madmin.Unsupported, false
    }
    
    // Add adds tier to config if it passes all validations.
    func (config *TierConfigMgr) Add(ctx context.Context, tier madmin.TierConfig, ignoreInUse bool) error {
    	config.Lock()
    	defer config.Unlock()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  9. cmd/handler-utils.go

    }
    
    // isDirectiveValid - check if tagging-directive is valid.
    func isDirectiveValid(v string) bool {
    	// Check if set metadata-directive is valid.
    	return isDirectiveCopy(v) || isDirectiveReplace(v)
    }
    
    // Check if the directive COPY is requested.
    func isDirectiveCopy(value string) bool {
    	// By default if directive is not set we
    	// treat it as 'COPY' this function returns true.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  10. cni/pkg/plugin/plugin_test.go

    	mrdir.lastRedirect = append(mrdir.lastRedirect, redirect)
    	return nil
    }
    
    // returns the test server URL and a dispose func for the test server
    func setupCNIEventClientWithMockServer(serverErr bool) (string, func() bool) {
    	cniAddServerCalled := false
    	// replace the global CNI client with mock
    	newCNIClient = func(address, path string) CNIEventClient {
    		c := http.DefaultClient
    
    		eventC := CNIEventClient{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top