Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for MustCompile (0.19 sec)

  1. istioctl/pkg/authz/listener.go

    )
    
    const (
    	anonymousName = "_anonymous_match_nothing_"
    )
    
    // Matches the policy name in RBAC filter config with format like ns[default]-policy[some-policy]-rule[1].
    var re = regexp.MustCompile(`ns\[(.+)\]-policy\[(.+)\]-rule\[(.+)\]`)
    
    type filterChain struct {
    	rbacHTTP []*rbachttp.RBAC
    	rbacTCP  []*rbactcp.RBAC
    }
    
    type parsedListener struct {
    	filterChains []*filterChain
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  2. 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)?/v1alpha3/namespaces/(?P<namespace>[^/]+)/virtual-service/(?P<name>[^/]+)")
    	ss := re.FindStringSubmatch(path)
    	if ss == nil {
    		return "", "", fmt.Errorf("not a VS path: %s", path)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  3. cmd/bucket-replication-utils.go

    		if t.PrevReplicationStatus != replication.Completed {
    			return t.ReplicationAction
    		}
    	}
    	return replicateNone
    }
    
    var replStatusRegex = regexp.MustCompile(`([^=].*?)=([^,].*?);`)
    
    // TargetReplicationStatus - returns replication status of a target
    func (ri ReplicateObjectInfo) TargetReplicationStatus(arn string) (status replication.StatusType) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 26.2K bytes
    - Viewed (0)
  4. migrator/migrator.go

    // with a possible trailing non-digit character (\D?).
    
    // For example, values that can pass this regular expression are:
    // - "123"
    // - "abc456"
    // -"%$#@789"
    var regFullDataType = regexp.MustCompile(`\D*(\d+)\D?`)
    
    // TODO:? Create const vars for raw sql queries ?
    
    var _ gorm.Migrator = (*Migrator)(nil)
    
    // Migrator m struct
    type Migrator struct {
    	Config
    }
    
    // Config schema config
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  5. 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
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  6. internal/config/identity/plugin/config.go

    			Description: config.DefaultComment,
    			Optional:    true,
    			Type:        "sentence",
    		},
    	}
    )
    
    // Allows only Base64 URL encoding characters.
    var validRoleIDRegex = regexp.MustCompile(`^[A-Za-z0-9_-]+$`)
    
    // Args for authentication plugin.
    type Args struct {
    	URL         *xnet.URL
    	AuthToken   string
    	Transport   http.RoundTripper
    	CloseRespFn func(r io.ReadCloser)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
  7. cmd/handler-utils.go

    			continue
    		}
    		bucket := strings.TrimSuffix(xhost.Name, "."+domain)
    		return SlashSeparator + pathJoin(bucket, path), nil
    	}
    	return path, nil
    }
    
    var regexVersion = regexp.MustCompile(`^/minio.*/(v\d+)/.*`)
    
    func extractAPIVersion(r *http.Request) string {
    	if matches := regexVersion.FindStringSubmatch(r.URL.Path); len(matches) > 1 {
    		return matches[1]
    	}
    	return "unknown"
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  8. src/archive/zip/reader_test.go

    0000190 00 00 00 00 00 00 00 00 00 00 00 72 2f 72 2e 7a
    00001a0 69 70 50 4b 05 06 00 00 00 00 01 00 01 00 35 00
    00001b0 00 00 6d 01 00 00 00 00`
    	s = regexp.MustCompile(`[0-9a-f]{7}`).ReplaceAllString(s, "")
    	s = regexp.MustCompile(`\s+`).ReplaceAllString(s, "")
    	b, err := hex.DecodeString(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    func returnRecursiveZip() (r io.ReaderAt, size int64) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  9. 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)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  10. tests/update_test.go

    	stmt := dryDB.Save(&user).Statement
    	if !regexp.MustCompile(`.users.\..deleted_at. IS NULL`).MatchString(stmt.SQL.String()) {
    		t.Fatalf("invalid updating SQL, got %v", stmt.SQL.String())
    	}
    
    	dryDB = DB.Session(&gorm.Session{DryRun: true})
    	stmt = dryDB.Unscoped().Save(&user).Statement
    	if !regexp.MustCompile(`WHERE .id. = [^ ]+$`).MatchString(stmt.SQL.String()) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
Back to top