Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for SplitN (0.23 sec)

  1. cmd/sftp-server.go

    			allowPubKeys = filterAlgos(arg, strings.Split(tokens[1], ","), supportedPubKeyAuthAlgos)
    		case "kex-algos":
    			allowKexAlgos = filterAlgos(arg, strings.Split(tokens[1], ","), supportedKexAlgos)
    		case "cipher-algos":
    			allowCiphers = filterAlgos(arg, strings.Split(tokens[1], ","), supportedCiphers)
    		case "mac-algos":
    			allowMACs = filterAlgos(arg, strings.Split(tokens[1], ","), supportedMACs)
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/config-current.go

    func GetHelp(subSys, key string, envOnly bool) (Help, error) {
    	if len(subSys) == 0 {
    		return Help{KeysHelp: config.HelpSubSysMap[subSys]}, nil
    	}
    	subSystemValue := strings.SplitN(subSys, config.SubSystemSeparator, 2)
    	if len(subSystemValue) == 0 {
    		return Help{}, config.Errorf("invalid number of arguments %s", subSys)
    	}
    
    	subSys = subSystemValue[0]
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  3. cmd/common-main.go

    		return envKV{
    			Skip: true,
    		}, nil
    	}
    	if strings.HasPrefix(envEntry, "#") {
    		// Skip commented lines
    		return envKV{
    			Skip: true,
    		}, nil
    	}
    	envTokens := strings.SplitN(strings.TrimSpace(strings.TrimPrefix(envEntry, "export")), config.EnvSeparator, 2)
    	if len(envTokens) != 2 {
    		return envKV{}, fmt.Errorf("envEntry malformed; %s, expected to be of form 'KEY=value'", envEntry)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  4. cmd/test-utils_test.go

    	encodedResource := req.URL.RawPath
    	encodedQuery := req.URL.RawQuery
    	if encodedResource == "" {
    		splits := strings.SplitN(req.URL.Path, "?", 2)
    		encodedResource = splits[0]
    		if len(splits) == 2 {
    			encodedQuery = splits[1]
    		}
    	}
    
    	unescapedQueries, err := unescapeQueries(encodedQuery)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    		return
    	}
    
    	// if already replicated, return true if a new reset was requested.
    	splits := strings.SplitN(rs, ";", 2)
    	if len(splits) != 2 {
    		return
    	}
    	newReset := splits[1] != resetID
    	if !newReset && tgtStatus == replication.Completed {
    		// already replicated and no reset requested
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  6. cmd/server-main.go

    					ip = haddrs[0]
    				}
    			}
    		}
    		ifs, _ := net.Interfaces()
    		for _, interf := range ifs {
    			addrs, err := interf.Addrs()
    			if err == nil {
    				for _, addr := range addrs {
    					if strings.SplitN(addr.String(), "/", 2)[0] == ip {
    						globalInternodeInterface = interf.Name
    					}
    				}
    			}
    		}
    	})
    }
    
    // Return the list of address that MinIO server needs to listen on:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  7. cmd/admin-bucket-handlers.go

    		},
    	}
    
    	bucketMap := make(map[string]*BucketMetadata, len(zr.File))
    
    	updatedAt := UTCNow()
    
    	for _, file := range zr.File {
    		slc := strings.Split(file.Name, slashSeparator)
    		if len(slc) != 2 { // expecting bucket/configfile in the zipfile
    			rpt.SetStatus(file.Name, "", fmt.Errorf("malformed zip - expecting format bucket/<config.json>"))
    			continue
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  8. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    							}
    						} else {
    							return fmt.Errorf("unrecognized logging level: %v", ol)
    						}
    					} else {
    						logParts := strings.Split(ol, "::") // account for any specified namespace
    						loggerAndLevelOnly := logParts[len(logParts)-1]
    						loggerLevel := regexp.MustCompile(`[:=]`).Split(loggerAndLevelOnly, 2)
    						// TODO validate ztunnel logger name when available: https://github.com/istio/ztunnel/issues/426
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  9. internal/logger/console.go

    	// message itself contains some colored text, we needed
    	// to use some ANSI control escapes to cursor color state
    	// and freely move in the screen.
    	for _, line := range strings.Split(errMsg, "\n") {
    		if len(line) == 0 {
    			// No more text to print, just quit.
    			break
    		}
    
    		for {
    			// Save the attributes of the current cursor helps
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    			OA.Checksum.ChecksumCRC32 = strings.Split(chkSums["CRC32"], "-")[0]
    		case chkSums["CRC32C"] != "":
    			OA.Checksum = new(objectAttributesChecksum)
    			OA.Checksum.ChecksumCRC32C = strings.Split(chkSums["CRC32C"], "-")[0]
    		case chkSums["SHA256"] != "":
    			OA.Checksum = new(objectAttributesChecksum)
    			OA.Checksum.ChecksumSHA1 = strings.Split(chkSums["SHA1"], "-")[0]
    		case chkSums["SHA1"] != "":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top