- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getValFn (0.16 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go
func index(l []interface{}, valToLookUp interface{}, mergeKey string, kind reflect.Kind) int { var getValFn func(interface{}) interface{} // Get the correct `getValFn` based on item `kind`. // It should return the value of merge key for maps and // return the item for other kinds. switch kind { case reflect.Map: getValFn = func(item interface{}) interface{} { typedItem, ok := item.(map[string]interface{}) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 23:34:23 UTC 2023 - 75.5K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/config.go
} return nil, nil } func newTLSConfig(c *Config) (*tls.Config, error) { r := c.Request tlsConfig := &tls.Config{ GetClientCertificate: c.getClientCertificate, NextProtos: r.GetAlpn().GetValue(), ServerName: r.ServerName, MinVersion: tls.VersionTLS12, } if r.CaCertFile != "" { certData, err := os.ReadFile(r.CaCertFile) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 9.8K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
statusCode: http.StatusInternalServerError, alpns: []string{"foo"}, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { statusPort, getAlpn := setupServer(t, tc.alpns) client := http.Client{} req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("http://localhost:%d/%s", statusPort, tc.probePath), nil) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
pkg/test/echo/proto/echo.pb.go
} return "" } func (x *ForwardEchoRequest) GetInsecureSkipVerify() bool { if x != nil { return x.InsecureSkipVerify } return false } func (x *ForwardEchoRequest) GetAlpn() *Alpn { if x != nil { return x.Alpn } return nil } func (x *ForwardEchoRequest) GetServerName() string { if x != nil { return x.ServerName } return "" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 02:27:10 UTC 2024 - 33.3K bytes - Viewed (0)