Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for items (0.14 sec)

  1. src/builtin/builtin.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Package builtin provides documentation for Go's predeclared identifiers.
    The items documented here are not actually in package builtin
    but their descriptions here allow godoc to present documentation
    for the language's special identifiers.
    */
    package builtin
    
    import "cmp"
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. istioctl/pkg/multicluster/remote_secret.go

    	if err != nil {
    		return nil, fmt.Errorf("failed listing secrets in %s: %v", opt.Namespace, err)
    	}
    	for _, item := range allSecrets.Items {
    		secret := item
    		if secretReferencesServiceAccount(serviceAccount, &secret) == nil {
    			return &secret, nil
    		}
    	}
    
    	// finally, create the sa token secret manually
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  3. internal/store/store.go

    // Target - store target interface
    type Target interface {
    	Name() string
    	SendFromStore(key Key) error
    }
    
    // Store - Used to persist items.
    type Store[I any] interface {
    	Put(item I) error
    	PutMultiple(item []I) error
    	Get(key string) (I, error)
    	GetRaw(key string) ([]byte, error)
    	Len() int
    	List() ([]string, error)
    	Del(key string) error
    	DelList(key []string) error
    	Open() error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. internal/store/queuestore_test.go

    				t.Fatal("Failed to Get the item from the queue store ", eErr)
    			}
    			if !reflect.DeepEqual(testItem, item) {
    				t.Fatalf("Failed to read the item: error: expected = %v, got = %v", testItem, item)
    			}
    		}
    	} else {
    		t.Fatalf("List() Expected: 10, got %d", len(itemKeys))
    	}
    }
    
    // TestQueueStoreDel - tests for store.Del
    func TestQueueStoreDel(t *testing.T) {
    	defer func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 04 17:52:24 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  5. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		TypeMeta:      metav1.TypeMeta{},
    		LabelSelector: strings.Join(kv, ","),
    		FieldSelector: "spec.nodeName=" + node,
    	})
    	if err != nil {
    		return types.NamespacedName{}, err
    	}
    	pods := slices.Reference(podsr.Items)
    	if len(pods) > 0 {
    		// We need to pass in a sorter, and the one used by `kubectl logs` is good enough.
    		sortBy := func(pods []*corev1.Pod) sort.Interface { return podutils.ByLogging(pods) }
    		sort.Sort(sortBy(pods))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  6. 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)
  7. tests/preload_suits_test.go

    	}
    
    	var got []Level1
    	if err := DB.Preload("Level2").Preload("Level2.Level3").Find(&got).Error; err != nil {
    		t.Error(err)
    	}
    
    	if len(got) != 2 {
    		t.Errorf("got %v items, expected 2", len(got))
    	}
    
    	if !reflect.DeepEqual(got[0], want) && !reflect.DeepEqual(got[1], want) {
    		t.Fatalf("got %s; want array containing %s", toJSONString(got), toJSONString(want))
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
  8. cmd/iam-store.go

    			}
    		}
    		return true
    	})
    
    	if iamOS, ok := store.IAMStorageAPI.(*IAMObjectStore); ok {
    		for item := range listIAMConfigItems(context.Background(), iamOS.objAPI, iamConfigPrefix+SlashSeparator+policyDBSTSUsersListKey) {
    			user := strings.TrimSuffix(item.Item, ".json")
    			if userPredicate != nil && !userPredicate(user) {
    				continue
    			}
    
    			var mappedPolicy MappedPolicy
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  9. internal/store/queuestore.go

    	buf.Reset()
    	if err != nil {
    		return err
    	}
    
    	// Increment the item count.
    	store.entries[key] = time.Now().UnixNano()
    
    	return nil
    }
    
    // write - writes an item to the directory.
    func (store *QueueStore[I]) write(key string, item I) error {
    	// Marshalls the item.
    	eventData, err := json.Marshal(item)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. istioctl/pkg/admin/istiodconfig.go

    				}
    
    				if len(pl.Items) < 1 {
    					return errors.New("no pods found")
    				}
    
    				if len(pl.Items) > 1 {
    					log.Warnf("more than 1 pods fits selector: %s; will use pod: %s", istiodLabelSelector, pl.Items[0].Name)
    				}
    
    				// only use the first pod in the list
    				podName = pl.Items[0].Name
    				ns = pl.Items[0].Namespace
    			} else if len(args) == 1 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
Back to top