Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ks (0.15 sec)

  1. internal/config/dns/etcd_dns.go

    	}
    	return srvRecords, nil
    }
    
    // msgUnPath converts a etcd path to domainname.
    func msgUnPath(s string) string {
    	ks := strings.Split(strings.Trim(s, etcdPathSeparator), etcdPathSeparator)
    	for i, j := 0, len(ks)-1; i < j; i, j = i+1, j-1 {
    		ks[i], ks[j] = ks[j], ks[i]
    	}
    	return strings.Join(ks, ".")
    }
    
    // Retrieves list of entries under the key passed.
    // Note that this method fetches entries upto only two levels deep.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  2. cmd/server-main.go

    		fmt.Println("== DEBUG Mode enabled ==")
    		fmt.Println("Currently set environment settings:")
    		ks := []string{
    			config.EnvAccessKey,
    			config.EnvSecretKey,
    			config.EnvRootUser,
    			config.EnvRootPassword,
    		}
    		for _, v := range os.Environ() {
    			// Do not print sensitive creds in debug.
    			if slices.Contains(ks, strings.Split(v, "=")[0]) {
    				continue
    			}
    			fmt.Println(v)
    		}
    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