Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 375 for Slice3 (0.16 sec)

  1. pkg/collateral/metrics/otel.go

    import (
    	"strings"
    
    	"istio.io/istio/pkg/monitoring"
    	"istio.io/istio/pkg/slices"
    )
    
    var charReplacer = strings.NewReplacer("/", "_", ".", "_", " ", "_", "-", "")
    
    func promName(metricName string) string {
    	s := strings.TrimPrefix(metricName, "/")
    	return charReplacer.Replace(s)
    }
    
    func ExportedMetrics() []monitoring.MetricDefinition {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/net/http/routing_tree_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package http
    
    import (
    	"fmt"
    	"io"
    	"strings"
    	"testing"
    
    	"slices"
    )
    
    func TestRoutingFirstSegment(t *testing.T) {
    	for _, test := range []struct {
    		in   string
    		want []string
    	}{
    		{"/a/b/c", []string{"a", "b", "c"}},
    		{"/a/b/", []string{"a", "b", "/"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. src/crypto/tls/defaults.go

    	PKCS1WithSHA1,
    	ECDSAWithSHA1,
    }
    
    var tlsrsakex = godebug.New("tlsrsakex")
    var tls3des = godebug.New("tls3des")
    
    func defaultCipherSuites() []uint16 {
    	suites := slices.Clone(cipherSuitesPreferenceOrder)
    	return slices.DeleteFunc(suites, func(c uint16) bool {
    		return disabledCipherSuites[c] ||
    			tlsrsakex.Value() != "1" && rsaKexCiphers[c] ||
    			tls3des.Value() != "1" && tdesCiphers[c]
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. pkg/kube/krt/join_test.go

    	c1.Set(&Named{"c1", "b"})
    	assert.EventuallyEqual(t, last.Load, "c1/b")
    	// ordered by c1, c2, c3
    	sortf := func(a Named) string {
    		return a.ResourceName()
    	}
    	assert.Equal(
    		t,
    		slices.SortBy(j.List(), sortf),
    		slices.SortBy([]Named{
    			{"c1", "b"},
    			{"c2", "a"},
    			{"c3", "a"},
    		}, sortf),
    	)
    }
    
    func TestCollectionJoin(t *testing.T) {
    	c := kube.NewFakeClient()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. pkg/proxy/endpointslicecache_test.go

    					&BaseEndpointInfo{ip: "10.0.2.3", port: 80, endpoint: "10.0.2.3:80", isLocal: false, ready: true, serving: true, terminating: false},
    				},
    			},
    		},
    		// 2 slices, with some overlapping endpoints, result should be a union
    		// of the 2.
    		"2 overlapping slices, same port": {
    			namespacedName: types.NamespacedName{Name: "svc1", Namespace: "ns1"},
    			endpointSlices: []*discovery.EndpointSlice{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top