- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for MustCompile (0.06 sec)
-
istioctl/pkg/describe/describe.go
if err != nil { return "", "", err } // Starting with recent 1.5.0 builds, the path will include .istio.io. Handle both. // nolint: gosimple re := regexp.MustCompile("/apis/networking(\\.istio\\.io)?/v1(?:alpha3)?/namespaces/(?P<namespace>[^/]+)/virtual-service/(?P<name>[^/]+)") ss := re.FindStringSubmatch(path) if ss == nil { return "", "", fmt.Errorf("not a VS path: %s", path) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
cmd/http-tracer.go
"time" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/handlers" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/mcontext" ) var ldapPwdRegex = regexp.MustCompile("(^.*?)LDAPPassword=([^&]*?)(&(.*?))?$") // redact LDAP password if part of string func redactLDAPPwd(s string) string { parts := ldapPwdRegex.FindStringSubmatch(s) if len(parts) > 3 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 6K bytes - Viewed (0) -
cmd/object-handlers-common.go
"github.com/minio/minio/internal/bucket/lifecycle" "github.com/minio/minio/internal/event" "github.com/minio/minio/internal/hash" xhttp "github.com/minio/minio/internal/http" ) var etagRegex = regexp.MustCompile("\"*?([^\"]*?)\"*?$") // Validates the preconditions for CopyObjectPart, returns true if CopyObjectPart // operation should not proceed. Preconditions supported are: // // x-amz-copy-source-if-modified-since
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 06:33:53 UTC 2024 - 15.3K bytes - Viewed (0) -
src/cmd/api/main_test.go
func contextName(c *build.Context) string { s := c.GOOS + "-" + c.GOARCH if c.CgoEnabled { s += "-cgo" } if c.Dir != "" { s += fmt.Sprintf(" [%s]", c.Dir) } return s } var internalPkg = regexp.MustCompile(`(^|/)internal($|/)`) var exitCode = 0 func Check(t *testing.T) { checkFiles, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/go1*.txt")) if err != nil { t.Fatal(err) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 31.4K bytes - Viewed (0) -
internal/config/config.go
siteLK.RLock() defer siteLK.RUnlock() return s.region } var validRegionRegex = regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9-_-]+$") // validSiteNameRegex - allows lowercase letters, digits and '-', starts with // letter. At least 2 characters long. var validSiteNameRegex = regexp.MustCompile("^[a-z][a-z0-9-]+$") // LookupSite - get site related configuration. Loads configuration from legacy
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 18:23:41 UTC 2024 - 37.7K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
means full recursive. 'testdir/**/xl.meta' will search for all xl.meta recursively. FLAGS: {{range .VisibleFlags}}{{.}} {{end}} ` isPart := regexp.MustCompile("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/part\\.[0-9]+$") app.HideHelpCommand = true app.Flags = []cli.Flag{ cli.BoolFlag{ Usage: "print each file as a separate line without formatting",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
} } 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 level, ok := stringToLevel[loggerLevel[1]] if !ok {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 19:17:45 UTC 2024 - 22.2K bytes - Viewed (0) -
cmd/admin-handlers.go
// 2 - flags e.g. `--address :9000 --certs-dir /etc/minio/certs` // 3 - pool args e.g. `https://node{01...16}.domain/data/disk{001...204} https://node{17...32}.domain/data/disk{001...204}` re := regexp.MustCompile(`^(.*minio\s+server\s+)(--[^\s]+\s+[^\s]+\s+)*(.*)`) // stays unchanged in the anonymized version cmdLineWithoutPools := re.ReplaceAllString(cmdLine, `$1$2`) // to be anonymized
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 99.7K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
} } else { logParts := strings.Split(ol, "::") // account for any specified namespace loggerAndLevelOnly := logParts[len(logParts)-1] loggerLevel := regexp.MustCompile(`[:=]`).Split(loggerAndLevelOnly, 2) if !strings.Contains(loggerName, loggerLevel[0]) && loggerLevel[0] != defaultLoggerName { return fmt.Errorf("unrecognized logger name: %v", loggerLevel[0]) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0)