Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LookupEnv (0.05 sec)

  1. internal/kms/config.go

    		if err != nil {
    			return nil, err
    		}
    		return nil, errors.New("kms: no KMS configuration specified")
    	}
    
    	lookup := func(key string) bool {
    		_, ok := os.LookupEnv(key)
    		return ok
    	}
    	switch {
    	case lookup(EnvKMSEndpoint):
    		rawEndpoint := env.Get(EnvKMSEndpoint, "")
    		if rawEndpoint == "" {
    			return nil, errors.New("kms: no KMS server endpoint provided")
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. cmd/server-main.go

    `,
    }
    
    func serverCmdArgs(ctx *cli.Context) []string {
    	v, _, _, err := env.LookupEnv(config.EnvArgs)
    	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",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
  3. cni/test/install_cni.go

    )
    
    const (
    	cniConfSubDir    = "/testdata/pre/"
    	k8sSvcAcctSubDir = "/testdata/k8s_svcacct/"
    
    	defaultFileMode = 0o644
    )
    
    func getEnv(key, fallback string) string {
    	if value, ok := os.LookupEnv(key); ok {
    		return value
    	}
    	return fallback
    }
    
    func mktemp(dir, prefix string, t *testing.T) string {
    	t.Helper()
    	tempDir, err := os.MkdirTemp(dir, prefix)
    	if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. cmd/config-current.go

    			return err
    		}
    	}
    
    	return nil
    }
    
    func lookupConfigs(s config.Config, objAPI ObjectLayer) {
    	ctx := GlobalContext
    
    	dnsURL, dnsUser, dnsPass, err := env.LookupEnv(config.EnvDNSWebhook)
    	if err != nil {
    		configLogIf(ctx, fmt.Errorf("Unable to initialize remote webhook DNS config %w", err))
    	}
    	if err == nil && dnsURL != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
Back to top