Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 857 for Nil$ (0.04 sec)

  1. cmd/local-locker_gen_test.go

    	v := localLockMap{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. cmd/last-minute_gen.go

    	// write "Total"
    	err = en.Append(0x83, 0xa5, 0x54, 0x6f, 0x74, 0x61, 0x6c)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Total)
    	if err != nil {
    		err = msgp.WrapError(err, "Total")
    		return
    	}
    	// write "Size"
    	err = en.Append(0xa4, 0x53, 0x69, 0x7a, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Size)
    	if err != nil {
    		err = msgp.WrapError(err, "Size")
    		return
    	}
    	// write "N"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 17.2K bytes
    - Viewed (0)
  3. internal/config/notify/legacy.go

    			Value: strconv.Itoa(cfg.Producer.CompressionLevel),
    		},
    	}
    	return nil
    }
    
    // SetNotifyAMQP - helper for config migration from older config.
    func SetNotifyAMQP(s config.Config, amqpName string, cfg target.AMQPArgs) error {
    	if !cfg.Enable {
    		return nil
    	}
    
    	if err := cfg.Validate(); err != nil {
    		return err
    	}
    
    	s[config.NotifyAMQPSubSys][amqpName] = config.KVS{
    		config.KV{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 19 04:37:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. internal/config/policy/opa/config.go

    	// subtype to avoid recursive call to UnmarshalJSON()
    	type subArgs Args
    	var so subArgs
    
    	if err := json.Unmarshal(data, &so); err != nil {
    		return err
    	}
    
    	oa := Args(so)
    	if oa.URL == nil || oa.URL.String() == "" {
    		*a = oa
    		return nil
    	}
    
    	*a = oa
    	return nil
    }
    
    // Opa - implements opa policy agent calls.
    type Opa struct {
    	args   Args
    	client *http.Client
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. tests/soft_delete_test.go

    		t.Errorf("Count soft deleted record, expects: %v, got: %v", 1, count)
    	}
    
    	if DB.Model(&User{}).Select("age").Where("name = ?", user.Name).Scan(&age).Error != nil || age != user.Age {
    		t.Errorf("Age soft deleted record, expects: %v, got: %v", 0, age)
    	}
    
    	if err := DB.Delete(&user).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. cmd/bucket-lifecycle-handlers.go

    	if _, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	config, updatedAt, err := globalBucketMetadataSys.GetLifecycleConfig(bucket)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	// explicitly set ExpiryUpdatedAt nil as its meant for internal consumption only
    	config.ExpiryUpdatedAt = nil
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. internal/config/lambda/target/webhook.go

    	defer func() {
    		if err != nil {
    			atomic.AddInt64(&target.failedRequests, 1)
    		}
    	}()
    
    	if err = target.init(); err != nil {
    		return nil, err
    	}
    
    	data, err := json.Marshal(eventData)
    	if err != nil {
    		return nil, err
    	}
    
    	req, err := http.NewRequest(http.MethodPost, target.args.Endpoint.String(), bytes.NewReader(data))
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:39:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. internal/event/name.go

    		return ObjectAccessedAll, nil
    	case "s3:ObjectAccessed:Get":
    		return ObjectAccessedGet, nil
    	case "s3:ObjectAccessed:GetRetention":
    		return ObjectAccessedGetRetention, nil
    	case "s3:ObjectAccessed:GetLegalHold":
    		return ObjectAccessedGetLegalHold, nil
    	case "s3:ObjectAccessed:Head":
    		return ObjectAccessedHead, nil
    	case "s3:ObjectAccessed:Attributes":
    		return ObjectAccessedAttributes, nil
    	case "s3:ObjectCreated:*":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. internal/event/target/kafka.go

    	objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    	if err != nil {
    		return nil, err
    	}
    
    	key := eventData.S3.Bucket.Name + "/" + objectName
    	data, err := json.Marshal(event.Log{EventName: eventData.EventName, Key: key, Records: []event.Event{eventData}})
    	if err != nil {
    		return nil, err
    	}
    
    	return &sarama.ProducerMessage{
    		Topic: target.args.Topic,
    		Key:   sarama.StringEncoder(key),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. internal/s3select/sql/stringfuncs_test.go

    		{"", "%", runeZero, true, nil},
    		{"abcd", "%%%%%", runeZero, true, nil},
    		{"abcd", "_____", runeZero, false, nil},
    		{"abcd", "%%%%%", runeZero, true, nil},
    
    		{"a%%d", `a\%\%d`, '\\', true, nil},
    		{"a%%d", `a\%d`, '\\', false, nil},
    		{`a%%\d`, `a\%\%\\d`, '\\', true, nil},
    		{`a%%\`, `a\%\%\\`, '\\', true, nil},
    		{`a%__%\`, `a\%\_\_\%\\`, '\\', true, nil},
    
    		{`a%__%\`, `a\%\_\_\%_`, '\\', true, nil},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.1K bytes
    - Viewed (0)
Back to top