- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for item (0.13 sec)
-
internal/store/batch.go
type Batch[K key, T any] struct { keys []K items map[K]T limit uint32 sync.Mutex } // Add adds the item to the batch func (b *Batch[K, T]) Add(key K, item T) error { b.Lock() defer b.Unlock() if b.isFull() { return ErrBatchFull } if _, ok := b.items[key]; !ok { b.keys = append(b.keys, key) } b.items[key] = item return nil }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Oct 07 15:07:38 GMT 2023 - 2.5K bytes - Viewed (0) -
operator/cmd/mesh/manifest-diff.go
// The format of each list item is :: and the items are comma separated. The * character represents wildcard selection. // e.g. // Deployment:istio-system:* - compare all deployments in istio-system namespace // Service:*:istio-pilot - compare Services called "istio-pilot" in all namespaces. selectResources string // ignoreResources ignores all listed items during comparison. It uses the same list format as selectResources.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 5.8K bytes - Viewed (0) -
cmd/iam-etcd-store.go
} func getIAMConfig(item interface{}, data []byte, itemPath string) error { data, err := decryptData(data, itemPath) if err != nil { return err } json := jsoniter.ConfigCompatibleWithStandardLibrary return json.Unmarshal(data, item) } func (ies *IAMEtcdStore) loadIAMConfig(ctx context.Context, item interface{}, path string) error {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 13.6K bytes - Viewed (0) -
tests/associations_has_many_test.go
LanguageCode string `gorm:"not null;type:varchar(2)"` } type Item struct { gorm.Model Logo string `gorm:"not null;type:varchar(50)"` Contents []ItemContent `gorm:"foreignKey:ItemID"` } tx := DB.Session(&gorm.Session{}) tx.Migrator().DropTable(&ItemContent{}, &Item{}) tx.AutoMigrate(&ItemContent{}, &Item{}) item := Item{ Logo: "logo", Contents: []ItemContent{
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Dec 15 08:36:08 GMT 2023 - 15.6K bytes - Viewed (0) -
tests/hooks_test.go
var productWithItem Product4 if err := DB.Session(&gorm.Session{SkipHooks: true}).Preload("Item").First(&productWithItem, "name = ?", product.Name).Error; err != nil { t.Errorf("should find product, but got error %v", err) } if productWithItem.Item.AfterFindCallTimes != 0 { t.Fatalf("AfterFind should not be called times:%d", productWithItem.Item.AfterFindCallTimes) } } type Product5 struct { gorm.Model Name string
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Feb 18 01:20:29 GMT 2023 - 15.9K bytes - Viewed (0) -
internal/s3select/csv/reader.go
if r.err != nil { return nil, r.err } // Move to next block item, ok := <-r.queue if !ok { r.err = io.EOF return nil, r.err } //nolint:staticcheck // SA6002 Using pointer would allocate more since we would have to copy slice header before taking a pointer. r.csvDstPool.Put(r.current) r.current = <-item.dst r.err = item.err r.recordsRead = 0 } csvRecord := r.current[r.recordsRead]
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 8.9K bytes - Viewed (0) -
cmd/admin-handlers-config-kv.go
for _, item := range cfgSubsysItems { off := item.Config.Get(config.Enable) == config.EnableOff switch hkv.Key { case config.EtcdSubSys: off = !etcd.Enabled(item.Config) case config.StorageClassSubSys: off = !storageclass.Enabled(item.Config) case config.PolicyPluginSubSys: off = !polplugin.Enabled(item.Config) case config.IdentityOpenIDSubSys:
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 15.7K bytes - Viewed (0) -
internal/grid/errors.go
ErrHandlerAlreadyExists = errors.New("mux handler already exists") // ErrIncorrectSequence is returned when an out-of-sequence item is received. ErrIncorrectSequence = errors.New("out-of-sequence item received") ) // ErrResponse is a remote error response. type ErrResponse struct { msg string } func (e ErrResponse) Error() string {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Nov 21 01:09:35 GMT 2023 - 1.4K bytes - Viewed (0) -
cmd/admin-heal-ops.go
// the last result index sent to client lastSentResultIndex int64 // Number of total items scanned against item type scannedItemsMap map[madmin.HealItemType]int64 // Number of total items healed against item type healedItemsMap map[madmin.HealItemType]int64 // Number of total items where healing failed against endpoint and drive state healFailedItemsMap map[string]int64
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 25.1K bytes - Viewed (1) -
cmd/site-replication.go
return nil } if item.Policy != nil { meta.PolicyConfigJSON = item.Policy meta.PolicyConfigUpdatedAt = item.UpdatedAt } if item.Versioning != nil { configData, err := base64.StdEncoding.DecodeString(*item.Versioning) if err != nil { return wrapSRErr(err) } meta.VersioningConfigXML = configData meta.VersioningConfigUpdatedAt = item.UpdatedAt
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 01:09:56 GMT 2024 - 184.2K bytes - Viewed (1)