- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 100 for SplitN (0.17 sec)
-
internal/arn/arn.go
// the ARN would not match any configured ARNs in the server. if ps[4] != "" { err = errors.New("invalid ARN - unsupported account-id field") return } res := strings.SplitN(ps[5], "/", 2) if len(res) != 2 { err = errors.New("invalid ARN - resource does not contain a \"/\"") return } if res[0] != string(arnResourceTypeRole) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 08:31:34 GMT 2024 - 3.5K bytes - Viewed (0) -
cmd/erasure-utils.go
uploadBytes, err := base64.RawURLEncoding.DecodeString(uploadID) if err != nil { return "", fmt.Errorf("error parsing uploadID %s (%w)", uploadID, err) } slc := strings.SplitN(string(uploadBytes), ".", 2) if len(slc) != 2 { return "", fmt.Errorf("uploadID %s has incorrect format", uploadID) } return slc[0], nil
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Jan 31 02:11:45 GMT 2024 - 3.1K bytes - Viewed (0) -
cmd/admin-server-info.go
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 4.8K bytes - Viewed (0) -
cmd/leak-detect_test.go
buf := debug.Stack() // runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" . for _, g := range strings.Split(string(buf), "\n\n") { // Again split on a new line, the first line of the second half contains the info about the go routine. sl := strings.SplitN(g, "\n", 2) if len(sl) != 2 { continue } stack := strings.TrimSpace(sl[1])
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.2K bytes - Viewed (0) -
cmd/ftp-server.go
var ( port int publicIP string portRange string tlsPrivateKey string tlsPublicCert string ) var err error for _, arg := range args { tokens := strings.SplitN(arg, "=", 2) if len(tokens) != 2 { logger.Fatal(fmt.Errorf("invalid arguments passed to --ftp=%s", arg), "unable to start FTP server") } switch tokens[0] { case "address":
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 4.8K bytes - Viewed (2) -
internal/kms/single-key.go
// // <key-id>:<base64-key> // // The returned KMS implementation uses the parsed // key ID and key to derive new DEKs and decrypt ciphertext. func Parse(s string) (KMS, error) { v := strings.SplitN(s, ":", 2) if len(v) != 2 { return nil, errors.New("kms: invalid master key format") } keyID, b64Key := v[0], v[1] key, err := base64.StdEncoding.DecodeString(b64Key) if err != nil { return nil, err
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 01 21:09:42 GMT 2024 - 7.9K bytes - Viewed (0) -
cmd/signature-v4-parser.go
creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2) if len(creds) != 2 { return ch, ErrMissingFields } if creds[0] != "Credential" { return ch, ErrMissingCredTag } credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator) if len(credElements) < 5 { return ch, ErrCredMalformed }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.4K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/DocsTest.kt
mkdir test-splits del /f /q test-splits\include-test-classes.properties del /f /q test-splits\exclude-test-classes.properties ( $linesWithEcho ) > test-splits\$action-test-classes.properties echo "Tests to be ${action}d in this build" type test-splits\$action-test-classes.properties """ return { script { name = "PREPARE_TEST_CLASSES" executionMode = BuildStep.ExecutionMode.ALWAYS
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Tue Dec 05 00:08:14 GMT 2023 - 4.7K bytes - Viewed (0) -
istioctl/pkg/wait/wait_test.go
args: strings.Split("--generation=2 --timeout=20ms virtual-service foo.default", " "), wantException: true, }, { execClientConfig: cannedResponseMap, args: strings.Split("--generation=1 virtual-service foo.default", " "), wantException: false, }, { execClientConfig: cannedResponseMap, args: strings.Split("--generation=1 VirtualService foo.default", " "),
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 08:28:50 GMT 2024 - 6.8K bytes - Viewed (1) -
istioctl/pkg/waypoint/waypoint_test.go
gateways []*gateway.Gateway expectedOutFile string }{ { name: "no gateways", args: strings.Split("list", " "), gateways: []*gateway.Gateway{}, expectedOutFile: "no-gateway", }, { name: "default namespace gateway", args: strings.Split("list", " "), gateways: []*gateway.Gateway{ makeGateway(constants.DefaultNamespaceWaypoint, "default", true, true),
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 04 15:53:09 GMT 2024 - 4.4K bytes - Viewed (0)