Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for LookupEnv (0.15 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)
  5. api/go1.5.txt

    pkg net/smtp, method (*Client) TLSConnectionState() (tls.ConnectionState, bool)
    pkg net/url, method (*URL) EscapedPath() string
    pkg net/url, type URL struct, RawPath string
    pkg os, func LookupEnv(string) (string, bool)
    pkg os/signal, func Ignore(...os.Signal)
    pkg os/signal, func Reset(...os.Signal)
    pkg reflect, func ArrayOf(int, Type) Type
    pkg reflect, func FuncOf([]Type, []Type, bool) Type
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
Back to top