- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 80 for getEnv (0.69 seconds)
-
docs/zh/docs/advanced/settings.md
例如,您可以有一个名为 `main.py` 的文件,其中包含以下内容: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的第二个参数是要返回的默认值。 如果没有提供默认值,默认为 `None`,此处我们提供了 `"World"` 作为要使用的默认值。 /// 然后,您可以调用该 Python 程序:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 12.7K bytes - Click Count (0) -
internal/kms/config.go
// // Until the container image changes, this behavior has to be preserved. if isPresent(EnvKMSSecretKey) && os.Getenv(EnvKMSSecretKey) == "" { os.Unsetenv(EnvKMSSecretKey) } if isPresent(EnvKMSSecretKeyFile) { if filename := os.Getenv(EnvKMSSecretKeyFile); filename == "" { os.Unsetenv(EnvKMSSecretKeyFile) } else if _, err := os.Stat(filename); errors.Is(err, os.ErrNotExist) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15K bytes - Click Count (0) -
misc/go_android_exec/main.go
fmt.Fprintf(os.Stderr, "adb %s\n%s", strings.Join(args, " "), out) return err } return nil } func adbCmd(args ...string) *exec.Cmd { if flags := os.Getenv("GOANDROID_ADB_FLAGS"); flags != "" { args = append(strings.Split(flags, " "), args...) } return exec.Command("adb", args...) } const ( deviceRoot = "/data/local/tmp/go_android_exec"
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Aug 21 17:46:57 GMT 2023 - 15.3K bytes - Click Count (0) -
cmd/veeam-sos-api.go
// This will override the storage class returned by the storage backend if it is non-standard // and we detect a Veeam client by checking the User Agent. var globalVeeamForceSC = os.Getenv("_MINIO_VEEAM_FORCE_SC") type systemInfo struct { XMLName xml.Name `xml:"SystemInfo" json:"-"` ProtocolVersion string `xml:"ProtocolVersion"` ModelName string `xml:"ModelName"`Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 00:34:56 GMT 2024 - 8.8K bytes - Click Count (0) -
cmd/server-main.go
if err != nil { logger.FatalIf(err, "Unable to validate passed arguments in %s:%s", config.EnvArgs, os.Getenv(config.EnvArgs)) } if v == "" { v, _, _, err = env.LookupEnv(config.EnvVolumes) if err != nil { logger.FatalIf(err, "Unable to validate passed arguments in %s:%s", config.EnvVolumes, os.Getenv(config.EnvVolumes)) } } if v == "" { // Fall back to older environment value MINIO_ENDPOINTSCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:18:36 GMT 2025 - 35.9K bytes - Click Count (4) -
cmd/sftp-server_test.go
suite := testCase suite.SetUpSuite(c) suite.SFTPServiceAccountLogin(c) suite.SFTPInvalidServiceAccountPassword(c) // LDAP tests ldapServer := os.Getenv(EnvTestLDAPServer) if ldapServer == "" { c.Skipf("Skipping LDAP test as no LDAP server is provided via %s", EnvTestLDAPServer) } suite.SetUpLDAP(c, ldapServer)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Feb 27 18:43:32 GMT 2025 - 9.7K bytes - Click Count (0) -
build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java
} executionMode = ExecutionMode.valueOf(args[0]); if (executionMode == ExecutionMode.KILL_PROCESSES_STARTED_BY_GRADLE && !Boolean.parseBoolean(System.getenv("GRADLE_RUNNER_FINISHED"))) { // https://github.com/gradle/gradle-private/issues/3991Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Sep 23 13:49:45 GMT 2025 - 12K bytes - Click Count (0) -
internal/event/target/kafka.go
} return nil } func (target *KafkaTarget) init() error { return target.initOnce.Do(target.initKafka) } func (target *KafkaTarget) initKafka() error { if os.Getenv("_MINIO_KAFKA_DEBUG") != "" { sarama.DebugLogger = log.Default() } args := target.args config := sarama.NewConfig() if args.Version != "" {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Sep 06 23:06:30 GMT 2024 - 13.6K bytes - Click Count (0) -
internal/logger/target/kafka/kafka.go
atomic.StoreInt32(&h.status, statusOffline) } else { atomic.StoreInt32(&h.status, statusOnline) } return err } // Init initialize kafka target func (h *Target) init() error { if os.Getenv("_MINIO_KAFKA_DEBUG") != "" { sarama.DebugLogger = log.Default() } sconfig := sarama.NewConfig() if h.kconfig.Version != "" { kafkaVersion, err := sarama.ParseKafkaVersion(h.kconfig.Version)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10.2K bytes - Click Count (0) -
cmd/common-main.go
os.Setenv("CONSOLE_STS_DURATION", valueSts) } else if valueSession := env.Get(config.EnvBrowserSessionDuration, ""); valueSession != "" { os.Setenv("CONSOLE_STS_DURATION", valueSession) } os.Setenv("CONSOLE_MINIO_SITE_NAME", globalSite.Name()) os.Setenv("CONSOLE_MINIO_SITE_REGION", globalSite.Region()) os.Setenv("CONSOLE_MINIO_REGION", globalSite.Region())Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3)