Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getenv (0.36 sec)

  1. tests/tests_test.go

    			log.Printf("failed to ping sqlDB, got error %v", err)
    			os.Exit(1)
    		}
    
    		RunMigrations()
    	}
    }
    
    func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
    	dbDSN := os.Getenv("GORM_DSN")
    	switch os.Getenv("GORM_DIALECT") {
    	case "mysql":
    		log.Println("testing mysql...")
    		if dbDSN == "" {
    			dbDSN = mysqlDSN
    		}
    		db, err = gorm.Open(mysql.Open(dbDSN), cfg)
    	case "postgres":
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  2. misc/ios/go_ios_exec.go

    	devID = getenv("GOIOS_DEV_ID")
    
    	// e.g. Z8B3JBXXXX.org.golang.sample, Z8B3JBXXXX prefix is available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	appID = getenv("GOIOS_APP_ID")
    
    	// e.g. Z8B3JBXXXX, available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	teamID = getenv("GOIOS_TEAM_ID")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  3. tests/helper_test.go

    	if isTiDB() {
    		t.Skipf("This test case skipped, because of TiDB '%s'", reason)
    	}
    }
    
    func isTiDB() bool {
    	return os.Getenv("GORM_DIALECT") == "tidb"
    }
    
    func isMysql() bool {
    	return os.Getenv("GORM_DIALECT") == "mysql"
    }
    
    func isSqlite() bool {
    	return os.Getenv("GORM_DIALECT") == "sqlite"
    }
    
    func db(unscoped bool) *gorm.DB {
    	if unscoped {
    		return DB.Unscoped()
    	} else {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 8K bytes
    - Viewed (0)
  4. operator/cmd/mesh/shared.go

    	opt2 := *opt
    	opt2.OutputPaths = op
    	opt2.ErrorOutputPaths = op
    
    	return log.Configure(&opt2)
    }
    
    func refreshGoldenFiles() bool {
    	ev := os.Getenv("REFRESH_GOLDEN")
    	return ev == "true" || ev == "1"
    }
    
    func kubeBuilderInstalled() bool {
    	ev := os.Getenv("KUBEBUILDER")
    	return ev == "true" || ev == "1"
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue18146.go

    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    				for {
    					_ = md5.Sum([]byte("Hello, !"))
    				}
    			}()
    		}
    		runtime.GOMAXPROCS(threads)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. 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"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. buildscripts/gen-ldflags.go

    	ldflagsStr += " -X github.com/minio/minio/cmd.GOPATH=" + os.Getenv("GOPATH")
    	ldflagsStr += " -X github.com/minio/minio/cmd.GOROOT=" + os.Getenv("GOROOT")
    	return ldflagsStr
    }
    
    // genReleaseTag prints release tag to the console for easy git tagging.
    func releaseTag(version string) (string, time.Time) {
    	relPrefix := "DEVELOPMENT"
    	if prefix := os.Getenv("MINIO_RELEASE"); prefix != "" {
    		relPrefix = prefix
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  8. 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 28 19:28:10 GMT 2024
    - Last Modified: Fri Nov 24 17:59:35 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  9. docs/site-replication/gen-oidc-sts-cred.go

    	"context"
    	"fmt"
    	"log"
    	"net/http"
    	"os"
    
    	cr "github.com/minio/minio-go/v7/pkg/credentials"
    	cmd "github.com/minio/minio/cmd"
    )
    
    func main() {
    	ctx := context.Background()
    
    	endpoint := os.Getenv("MINIO_ENDPOINT")
    	if endpoint == "" {
    		log.Fatalf("Please specify a MinIO server endpoint environment variable like:\n\n\texport MINIO_ENDPOINT=http://localhost:9000")
    	}
    
    	appParams := cmd.OpenIDClientAppParams{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  10. 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_ENDPOINTS
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 33K bytes
    - Viewed (1)
Back to top