- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for Setenv (0.16 sec)
-
cmd/common-main.go
isprel := globalBrowserConfig.IsHSTSPreload() os.Setenv("CONSOLE_SECURE_STS_SECONDS", strconv.Itoa(hstsSeconds)) os.Setenv("CONSOLE_SECURE_STS_INCLUDE_SUB_DOMAINS", isubdom) os.Setenv("CONSOLE_SECURE_STS_PRELOAD", isprel) } if valueRefer := globalBrowserConfig.GetReferPolicy(); valueRefer != "" { os.Setenv("CONSOLE_SECURE_REFERRER_POLICY", valueRefer) } globalSubnetConfig.ApplyEnv() }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Wed Apr 17 00:34:45 GMT 2024 - 35.5K bytes - Viewed (2) -
internal/config/subnet/config.go
func (c *Config) ApplyEnv() { configLock.RLock() defer configLock.RUnlock() if c.License != "" { os.Setenv("CONSOLE_SUBNET_LICENSE", c.License) } if c.APIKey != "" { os.Setenv("CONSOLE_SUBNET_API_KEY", c.APIKey) } if c.Proxy != "" { os.Setenv("CONSOLE_SUBNET_PROXY", c.Proxy) } os.Setenv("CONSOLE_SUBNET_URL", c.BaseURL) } // Update - in-place update with new license and registration information.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Nov 24 17:59:35 GMT 2023 - 3.8K bytes - Viewed (0) -
cmd/update_test.go
t.Errorf("Expected %s, got %s", MinioReleaseURL+"minio", durl) } } } t.Setenv("KUBERNETES_SERVICE_HOST", "10.11.148.5") durl = getDownloadURL(minioVersion1) if durl != kubernetesDeploymentDoc { t.Errorf("Expected %s, got %s", kubernetesDeploymentDoc, durl) } t.Setenv("MESOS_CONTAINER_NAME", "mesos-1111") durl = getDownloadURL(minioVersion1) if durl != mesosDeploymentDoc {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 10.7K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_app02.py
from pytest import MonkeyPatch from ...utils import needs_pydanticv2 @needs_pydanticv2 def test_settings(monkeypatch: MonkeyPatch): from docs_src.settings.app02 import main monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") settings = main.get_settings() assert settings.app_name == "Awesome API" assert settings.items_per_user == 50 @needs_pydanticv2 def test_override_settings():
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 488 bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_tutorial001.py
from fastapi.testclient import TestClient from pytest import MonkeyPatch from ...utils import needs_pydanticv2 @needs_pydanticv2 def test_settings(monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") from docs_src.settings.tutorial001 import app client = TestClient(app) response = client.get("/info") assert response.status_code == 200, response.text assert response.json() == {
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 552 bytes - Viewed (0) -
ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch
+# define __attribute_copy__(arg) __attribute__ ((__copy__ (arg))) +#else +# define __attribute_copy__(arg) +#endif + #endif /* sys/cdefs.h */ diff --git a/stdlib/setenv.c b/stdlib/setenv.c index 45efe2e..06bfab0 100644 --- a/stdlib/setenv.c +++ b/stdlib/setenv.c @@ -319,6 +319,7 @@ unsetenv (const char *name) ep = __environ; if (ep != NULL) + { while (*ep != NULL)
Others - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Sep 18 14:52:45 GMT 2023 - 8.9K bytes - Viewed (0) -
cni/test/install_cni.go
"cni_bin_dir": "/opt/cni/bin", "exclude_namespaces": [ "istio-system" ] } } ` ) func getEnv(key, fallback string) string { if value, ok := os.LookupEnv(key); ok { return value } return fallback } func setEnv(key, value string, t *testing.T) { t.Helper() err := os.Setenv(key, value) if err != nil { t.Fatalf("Couldn't set environment variable, err: %v", err) } }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 12.5K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_tutorial001_pv1.py
from fastapi.testclient import TestClient from pytest import MonkeyPatch from ...utils import needs_pydanticv1 @needs_pydanticv1 def test_settings(monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") from docs_src.settings.tutorial001_pv1 import app client = TestClient(app) response = client.get("/info") assert response.status_code == 200, response.text assert response.json() == {
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 556 bytes - Viewed (0) -
internal/init/init_darwin_amd64.go
package init import ( "os" "github.com/klauspost/cpuid/v2" ) func init() { // All MinIO operations must be under UTC. os.Setenv("TZ", "UTC") // Temporary workaround for // https://github.com/golang/go/issues/49233 // Keep until upstream has been fixed. cpuid.CPU.Disable(cpuid.AVX512F, cpuid.AVX512BW, cpuid.AVX512CD, cpuid.AVX512DQ,
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Nov 04 23:44:38 GMT 2022 - 1.3K bytes - Viewed (0) -
internal/init/init.go
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Nov 04 23:44:38 GMT 2022 - 874 bytes - Viewed (0)