Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,124 for nil (2.37 sec)

  1. cmd/warm-backend-gcs.go

    		return nil, errors.New("no bucket name was provided")
    	}
    
    	credsJSON, err := conf.GetCredentialJSON()
    	if err != nil {
    		return nil, err
    	}
    
    	client, err := storage.NewClient(context.Background(),
    		option.WithCredentialsJSON(credsJSON),
    		option.WithScopes(storage.ScopeReadWrite),
    		option.WithUserAgent(fmt.Sprintf("gcs-tier-%s", tier)+SlashSeparator+ReleaseTag),
    	)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. callbacks/update.go

    				if db.AddError(err) == nil {
    					db.RowsAffected, _ = result.RowsAffected()
    				}
    			}
    		}
    	}
    }
    
    // AfterUpdate after update hooks
    func AfterUpdate(db *gorm.DB) {
    	if db.Error == nil && db.Statement.Schema != nil && !db.Statement.SkipHooks && (db.Statement.Schema.AfterSave || db.Statement.Schema.AfterUpdate) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 05:44:55 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. tests/scanner_valuer_test.go

    	}
    
    	if err := DB.Create(&data).Error; err == nil {
    		t.Errorf("Should failed to create data with invalid data")
    	}
    
    	data.Password = EncryptedData("pass1")
    	if err := DB.Create(&data).Error; err != nil {
    		t.Errorf("Should got no error when creating data, but got %v", err)
    	}
    
    	if err := DB.Model(&data).Update("password", EncryptedData("xnewpass")).Error; err == nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. cni/pkg/install/install.go

    	if err := checkValidCNIConfig(in.cfg, in.cniConfigFilepath); err != nil {
    		return nil
    	}
    
    	// If a file we are watching has a change event, yield and let caller check validity
    	select {
    	case <-watcher.Events:
    		// Something changed, and we must yield
    		return nil
    	case err := <-watcher.Errors:
    		// We had a watch error - that's no good
    		return err
    	case <-ctx.Done():
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 09 21:33:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. cmd/batch-rotate.go

    			}
    		}
    		return err
    	}
    	if GlobalKMS == nil {
    		return errKMSNotConfigured
    	}
    	if err := r.Encryption.Validate(); err != nil {
    		return err
    	}
    
    	for _, tag := range r.Flags.Filter.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range r.Flags.Filter.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    		return
    	}
    	if b.buf == nil {
    		b.buf = make([]byte, defaultBufSize)
    	}
    	b.err = nil
    	b.n = 0
    	b.wr = w
    }
    
    // Flush writes any buffered data to the underlying [io.Writer].
    func (b *Writer) Flush() error {
    	if b.err != nil {
    		return b.err
    	}
    	if b.n == 0 {
    		return nil
    	}
    	n, err := b.wr.Write(b.buf[0:b.n])
    	if n < b.n && err == nil {
    		err = io.ErrShortWrite
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  7. internal/event/config_test.go

    		{[]byte(`<FilterRule><Value></Value></FilterRule>`), nil, true},
    		{[]byte(`<FilterRule><Name></Name><Value></Value></FilterRule>`), nil, true},
    		{[]byte(`<FilterRule><Name>Prefix</Name><Value>Hello/世界</Value></FilterRule>`), nil, true},
    		{[]byte(`<FilterRule><Name>ends</Name><Value>foo/bar</Value></FilterRule>`), nil, true},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 29K bytes
    - Viewed (0)
  8. cmd/bucket-replication-metrics_gen.go

    	// write "Curr"
    	err = en.Append(0x83, 0xa4, 0x43, 0x75, 0x72, 0x72)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Curr)
    	if err != nil {
    		err = msgp.WrapError(err, "Curr")
    		return
    	}
    	// write "Avg"
    	err = en.Append(0xa3, 0x41, 0x76, 0x67)
    	if err != nil {
    		return
    	}
    	err = en.WriteFloat32(z.Avg)
    	if err != nil {
    		err = msgp.WrapError(err, "Avg")
    		return
    	}
    	// write "Max"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. internal/etag/etag.go

    	v, ok := h["Content-Md5"]
    	if !ok {
    		return nil, nil
    	}
    	if v[0] == "" {
    		return nil, errors.New("etag: content-md5 is set but contains no value")
    	}
    	b, err := base64.StdEncoding.Strict().DecodeString(v[0])
    	if err != nil {
    		return nil, err
    	}
    	if len(b) != md5.Size {
    		return nil, errors.New("etag: invalid content-md5")
    	}
    	return ETag(b), nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/server_test.go

    		"foo-v4",
    		netip.MustParseAddr("3.3.3.3"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	fakeIPSetDeps.On("listEntriesByIP",
    		"foo-v4",
    	).Return([]netip.Addr{}, nil)
    
    	err := m.syncHostIPSets([]*corev1.Pod{pod})
    	assert.NoError(t, err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top