Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 487 for Slice3 (0.08 sec)

  1. pkg/kube/krt/fetch.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package krt
    
    import (
    	"istio.io/istio/pkg/slices"
    )
    
    func FetchOne[T any](ctx HandlerContext, c Collection[T], opts ...FetchOption) *T {
    	res := Fetch[T](ctx, c, opts...)
    	switch len(res) {
    	case 0:
    		return nil
    	case 1:
    		return &res[0]
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/env.go

    				EnvVar: v1.EnvVar{Name: name, Value: value},
    			}
    			envs = append(envs, envVar)
    		}
    	}
    	return envs
    }
    
    // MergeKubeadmEnvVars merges values of environment variable slices.
    // The values defined in later slices overwrite values in previous ones.
    func MergeKubeadmEnvVars(envList ...[]kubeadmapi.EnvVar) []v1.EnvVar {
    	m := make(map[string]v1.EnvVar)
    	merged := []v1.EnvVar{}
    	for _, envs := range envList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 09:09:19 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. pkg/monitoring/base.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package monitoring
    
    import (
    	"go.opentelemetry.io/otel/attribute"
    
    	"istio.io/istio/pkg/slices"
    )
    
    type baseMetric struct {
    	name string
    	// attrs stores all attrs for the metrics
    	attrs []attribute.KeyValue
    	rest  Metric
    }
    
    func (f baseMetric) Name() string {
    	return f.name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/os/user/listgroups_unix_test.go

    	}
    }
    
    func checkSameIDs(t *testing.T, got, want []string) {
    	t.Helper()
    	if len(got) != len(want) {
    		t.Errorf("ID list mismatch: got %v; want %v", got, want)
    		return
    	}
    	slices.Sort(got)
    	slices.Sort(want)
    	mismatch := -1
    	for i, g := range want {
    		if got[i] != g {
    			mismatch = i
    			break
    		}
    	}
    	if mismatch != -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. pkg/lazy/lazy_test.go

    // limitations under the License.
    
    package lazy
    
    import (
    	"fmt"
    	"sync"
    	"testing"
    
    	"go.uber.org/atomic"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestLazySerial(t *testing.T) {
    	t.Run("retry", func(t *testing.T) {
    		computations := atomic.NewInt32(0)
    		l := NewWithRetry(func() (int32, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. docs_src/security/tutorial003_an_py310.py

            "full_name": "John Doe",
            "email": "******@****.***",
            "hashed_password": "fakehashedsecret",
            "disabled": False,
        },
        "alice": {
            "username": "alice",
            "full_name": "Alice Wonderson",
            "email": "alice@example.com",
            "hashed_password": "fakehashedsecret2",
            "disabled": True,
        },
    }
    
    app = FastAPI()
    
    
    def fake_hash_password(password: str):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/path/filepath/match_test.go

    	for _, m := range test.matches {
    		want = append(want, root+FromSlash(m))
    	}
    	slices.Sort(want)
    	return want
    }
    
    func (test *globTest) globAbs(root, rootPattern string) error {
    	p := FromSlash(rootPattern + `\` + test.pattern)
    	have, err := Glob(p)
    	if err != nil {
    		return err
    	}
    	slices.Sort(have)
    	want := test.buildWant(root + `\`)
    	if strings.Join(want, "_") == strings.Join(have, "_") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/schema/kind"
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/workloadapi"
    )
    
    func (a *index) ServicesCollection(
    	Services krt.Collection[*v1.Service],
    	ServiceEntries krt.Collection[*networkingclient.ServiceEntry],
    	Waypoints krt.Collection[Waypoint],
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. pkg/kube/krt/util.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package krt
    
    import (
    	"istio.io/istio/pkg/slices"
    )
    
    // BatchedEventFilter allows an event handler to have alternative event suppression mechanics to filter out unnecessary events.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. src/image/ycbcr_test.go

    	names := []string{"Y", "Cb", "Cr"}
    	slices := [][]byte{
    		m.Y[:cap(m.Y)],
    		m.Cb[:cap(m.Cb)],
    		m.Cr[:cap(m.Cr)],
    	}
    	for i, slice := range slices {
    		want := uint8(10 + i)
    		for j := range slice {
    			slice[j] = want
    		}
    	}
    	for i, slice := range slices {
    		want := uint8(10 + i)
    		for j, got := range slice {
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 26 00:14:16 UTC 2015
    - 3.3K bytes
    - Viewed (0)
Back to top