- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 193 for url (0.41 sec)
-
istioctl/pkg/multixds/google.go
// limitations under the License. package multixds import ( "fmt" "net/url" "strings" ) func isMCPAddr(u *url.URL) bool { return strings.HasSuffix(u.Host, ".googleapis.com") || strings.HasSuffix(u.Host, ".googleapis.com:443") } func parseMCPAddr(u *url.URL) (*xdsAddr, error) { ret := &xdsAddr{host: u.Host} if !strings.HasSuffix(ret.host, ":443") { ret.host += ":443" }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Jun 06 03:39:27 GMT 2022 - 1.5K bytes - Viewed (1) -
cmd/utils_test.go
// checkURL - checks if passed address correspond func checkURL(urlStr string) (*url.URL, error) { if urlStr == "" { return nil, errors.New("Address cannot be empty") } u, err := url.Parse(urlStr) if err != nil { return nil, fmt.Errorf("`%s` invalid: %s", urlStr, err.Error()) } return u, nil } // TestCheckURL tests valid url. func TestCheckURL(t *testing.T) { testCases := []struct {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Feb 23 21:28:14 GMT 2024 - 10.2K bytes - Viewed (0) -
internal/rest/client.go
} // Copied from http.NewRequest but implemented to ensure we reuse `url.URL` instance. func (c *Client) newRequest(ctx context.Context, u url.URL, body io.Reader) (*http.Request, error) { rc, ok := body.(io.ReadCloser) if !ok && body != nil { rc = io.NopCloser(body) } req := &http.Request{ Method: http.MethodPost, URL: &u, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1,
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 14K bytes - Viewed (0) -
internal/config/policy/plugin/help.go
return config.DefaultHelpPostfix(DefaultKVS, key) } Help = config.HelpKVS{ config.HelpKV{ Key: URL, Description: `plugin hook endpoint (HTTP(S)) e.g. "http://localhost:8181/v1/data/httpapi/authz/allow"` + defaultHelpPostfix(URL), Type: "url", Sensitive: true, }, config.HelpKV{ Key: AuthToken,
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Jun 23 14:45:27 GMT 2023 - 1.8K bytes - Viewed (0) -
cmd/auth-handler_test.go
{ req: &http.Request{ URL: &url.URL{ Host: "127.0.0.1:9000", Scheme: httpScheme, Path: SlashSeparator, }, Header: http.Header{ "Authorization": []string{"Bearer 12313123"}, }, }, authT: authTypeJWT, }, // Test case - 3 // Empty authorization header. { req: &http.Request{ URL: &url.URL{ Host: "127.0.0.1:9000",
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 15.4K bytes - Viewed (0) -
cmd/admin-handlers_test.go
mkParams := func(clientToken string, forceStart, forceStop bool) url.Values { v := url.Values{} if clientToken != "" { v.Add(mgmtClientToken, clientToken) } if forceStart { v.Add(mgmtForceStart, "") } if forceStop { v.Add(mgmtForceStop, "") } return v } qParamsArr := []url.Values{ // Invalid cases mkParams("", true, true),
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 13.8K bytes - Viewed (0) -
internal/config/policy/opa/legacy.go
) // Legacy OPA envs const ( EnvIamOpaURL = "MINIO_IAM_OPA_URL" EnvIamOpaAuthToken = "MINIO_IAM_OPA_AUTHTOKEN" ) // SetPolicyOPAConfig - One time migration code needed, for migrating from older config to new for PolicyOPAConfig. func SetPolicyOPAConfig(s config.Config, opaArgs Args) { if opaArgs.URL == nil || opaArgs.URL.String() == "" { // Do not enable if opaArgs was empty. return }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.4K bytes - Viewed (0) -
internal/config/lambda/event/event.go
type Identity struct { Type string `json:"type"` PrincipalID string `json:"principalId"` AccessKeyID string `json:"accessKeyId"` } // UserRequest user request headers type UserRequest struct { URL string `json:"url"` Headers http.Header `json:"headers"` } // GetObjectContext provides the necessary details to perform // download of the object, and return back the processed response // to the server.
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Mar 07 16:12:41 GMT 2023 - 2.6K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
} objLabels, err := GetTemplateLabels(un) if err != nil { return err } url := fmt.Sprintf("See %s\n", url.DeploymentRequirements) if !labels.HasCanonicalServiceName(objLabels) || !labels.HasCanonicalServiceRevision(objLabels) { fmt.Fprintf(writer, "deployment %q may not provide Istio metrics and telemetry labels: %q. "+url, fmt.Sprintf("%s/%s:", un.GetName(), un.GetNamespace()), objLabels) } return nil }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
return nil } // returns the test server URL and a dispose func for the test server func setupCNIEventClientWithMockServer(serverErr bool) (string, func() bool) { cniAddServerCalled := false // replace the global CNI client with mock newCNIClient = func(address, path string) CNIEventClient { c := http.DefaultClient eventC := CNIEventClient{ client: c, url: address + path, } return eventC }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 17.5K bytes - Viewed (0)