Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for HasPrefix (0.29 sec)

  1. cmd/postpolicyform.go

    	checkHeader := map[string][]string{}
    	ignoreKeys := map[string]bool{}
    	for key, value := range formValues {
    		switch {
    		case ignoreKeys[key], postPolicyIgnoreKeys[key], strings.HasPrefix(key, encrypt.SseGenericHeader):
    			continue
    		case strings.HasPrefix(key, "X-Amz-Ignore-"):
    			ignoreKey := strings.Replace(key, "X-Amz-Ignore-", "", 1)
    			ignoreKeys[ignoreKey] = true
    			// if it have already
    			delete(checkHeader, ignoreKey)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  2. internal/bucket/replication/destination.go

    // used prior to multi-destination
    func (d Destination) LegacyArn() bool {
    	return strings.HasPrefix(d.ARN, DestinationARNPrefix)
    }
    
    // TargetArn returns true if arn format has prefix  "arn:minio:replication:::"
    // used for multi-destination targets
    func (d Destination) TargetArn() bool {
    	return strings.HasPrefix(d.ARN, DestinationARNMinIOPrefix)
    }
    
    // MarshalXML - encodes to XML data.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4K bytes
    - Viewed (2)
  3. istioctl/pkg/completion/completion.go

    	if err != nil {
    		return nil, err
    	}
    
    	var podsName []string
    	for _, pod := range podList.Items {
    		if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) {
    			podsName = append(podsName, pod.Name)
    		}
    	}
    
    	return podsName, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  4. internal/bucket/replication/replication.go

    			// incoming prefix must be in rule prefix
    			if !recursive && !strings.HasPrefix(prefix, rule.Filter.Prefix) {
    				continue
    			}
    			// If recursive, we can skip this rule if it doesn't match the tested prefix or level below prefix
    			// does not match
    			if recursive && !strings.HasPrefix(rule.Prefix(), prefix) && !strings.HasPrefix(prefix, rule.Prefix()) {
    				continue
    			}
    		}
    		return true
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. cmd/admin-server-info.go

    		config.EnvRootUser:          {},
    		config.EnvRootPassword:      {},
    		config.EnvMinIOSubnetAPIKey: {},
    		kms.EnvKMSSecretKey:         {},
    	}
    	for _, v := range os.Environ() {
    		if !strings.HasPrefix(v, "MINIO") && !strings.HasPrefix(v, "_MINIO") {
    			continue
    		}
    		split := strings.SplitN(v, "=", 2)
    		key := split[0]
    		value := ""
    		if len(split) > 1 {
    			value = split[1]
    		}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. cmd/metacache-walk.go

    		// Skip forward, if requested...
    		sb := bytebufferpool.Get()
    		defer func() {
    			sb.Reset()
    			bytebufferpool.Put(sb)
    		}()
    
    		forward := ""
    		if len(opts.ForwardTo) > 0 && strings.HasPrefix(opts.ForwardTo, current) {
    			forward = strings.TrimPrefix(opts.ForwardTo, current)
    			// Trim further directories and trailing slash.
    			if idx := strings.IndexByte(forward, '/'); idx > 0 {
    				forward = forward[:idx]
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  7. misc/ios/go_ios_exec.go

    	var env []string
    	for _, e := range os.Environ() {
    		// Don't override TMPDIR, HOME, GOCACHE on the device.
    		if strings.HasPrefix(e, "TMPDIR=") || strings.HasPrefix(e, "HOME=") || strings.HasPrefix(e, "GOCACHE=") {
    			continue
    		}
    		env = append(env, e)
    	}
    	lldb := exec.Command(
    		"python",
    		"-", // Read script from stdin.
    		target,
    		appdir,
    		deviceapp,
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  8. misc/linkcheck/linkcheck.go

    	problems    []string
    )
    
    func localLinks(body string) (links []string) {
    	seen := map[string]bool{}
    	mv := aRx.FindAllStringSubmatch(body, -1)
    	for _, m := range mv {
    		ref := m[1]
    		if strings.HasPrefix(ref, "/src/") {
    			continue
    		}
    		if !seen[ref] {
    			seen[ref] = true
    			links = append(links, m[1])
    		}
    	}
    	return
    }
    
    var idRx = regexp.MustCompile(`\bid=['"]?([^\s'">]+)`)
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  9. cmd/generic-handlers_contrib.go

    import (
    	"net/http"
    	"strings"
    )
    
    // guessIsLoginSTSReq - returns true if incoming request is Login STS user
    func guessIsLoginSTSReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	return strings.HasPrefix(req.URL.Path, loginPathPrefix) ||
    		(req.Method == http.MethodPost && req.URL.Path == SlashSeparator &&
    			getRequestAuthType(req) == authTypeSTS)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 30 15:50:39 GMT 2021
    - 995 bytes
    - Viewed (0)
  10. src/cmd/api/api_test.go

    	*context = build.Default
    	context.Dir = filepath.Join(testenv.GOROOT(t), "src")
    
    	w := NewWalker(context, context.Dir)
    	for _, pkg := range w.stdPackages {
    		if strings.HasPrefix(pkg, "vendor/") || strings.HasPrefix(pkg, "golang.org/x/") {
    			t.Fatalf("stdPackages contains unexpected package %s", pkg)
    		}
    	}
    }
    
    func TestIssue64958(t *testing.T) {
    	defer func() {
    		if x := recover(); x != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top