Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Wildcard (0.24 sec)

  1. cmd/mrf.go

    			// is '.minio.sys'
    			if u.bucket == minioMetaBucket {
    				// No MRF needed for temporary objects
    				if wildcard.Match("buckets/*/.metacache/*", u.object) {
    					continue
    				}
    				if wildcard.Match("tmp/*", u.object) {
    					continue
    				}
    				if wildcard.Match("multipart/*", u.object) {
    					continue
    				}
    				if wildcard.Match("tmp-old/*", u.object) {
    					continue
    				}
    			}
    
    			now := time.Now()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/jsonpath.go

    	errWildcardObjectLookup       = errors.New("Object wildcard used on non-object value")
    	errWildcardArrayLookup        = errors.New("Array wildcard used on non-array value")
    	errWildcardObjectUsageInvalid = errors.New("Invalid usage of object wildcard")
    )
    
    // jsonpathEval evaluates a JSON path and returns the value at the path.
    // If the value should be considered flat (from wildcards) any array returned should be considered individual values.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. internal/event/rules.go

    	for pattern := range rules {
    		if wildcard.MatchSimple(pattern, objectName) {
    			return true
    		}
    	}
    	return false
    }
    
    // Match - returns TargetIDSet matching object name in rules.
    func (rules Rules) Match(objectName string) TargetIDSet {
    	targetIDs := NewTargetIDSet()
    
    	for pattern, targetIDSet := range rules {
    		if wildcard.MatchSimple(pattern, objectName) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. docs/debugging/xattr/main.go

    	return xattr.LSet(path, name, data)
    }
    
    func main() {
    	flag.StringVar(&path, "path", "", "path name where the attribute shall be applied")
    	flag.StringVar(&name, "name", "", "attribute name or it can be a wildcard if '.' is specified")
    	flag.Uint64Var(&value, "value", 0, "attribute value expects the value to be uint64")
    	flag.BoolVar(&set, "set", false, "this is a set attribute operation")
    
    	flag.Parse()
    
    	if set && value == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. internal/s3select/sql/parser_test.go

    	)
    
    	j := JSONPathElement{}
    	cases := []string{
    		// Key
    		"['name']", ".name", `."name"`,
    
    		// Index
    		"[2]", "[0]", "[100]",
    
    		// Object wildcard
    		".*",
    
    		// array wildcard
    		"[*]",
    	}
    	for i, tc := range cases {
    		err := p.ParseString(tc, &j)
    		if err != nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    		// repr.Println(j, repr.Indent("  "), repr.OmitEmpty(true))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool.go

    		// is '.minio.sys'
    		if bucket == minioMetaBucket {
    			if wildcard.Match("buckets/*/.metacache/*", entry.name) {
    				return nil
    			}
    			if wildcard.Match("tmp/*", entry.name) {
    				return nil
    			}
    			if wildcard.Match("multipart/*", entry.name) {
    				return nil
    			}
    			if wildcard.Match("tmp-old/*", entry.name) {
    				return nil
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  7. cmd/batch-expire.go

    	"github.com/minio/minio/internal/bucket/versioning"
    	xhttp "github.com/minio/minio/internal/http"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/pkg/v2/env"
    	"github.com/minio/pkg/v2/wildcard"
    	"github.com/minio/pkg/v2/workers"
    	"gopkg.in/yaml.v3"
    )
    
    // expire: # Expire objects that match a condition
    //   apiVersion: v1
    //   bucket: mybucket # Bucket where this batch job will expire matching objects from
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  8. cmd/object-api-utils.go

    // the list contains the wildcard "*".
    func hasStringSuffixInSlice(str string, list []string) bool {
    	str = strings.ToLower(str)
    	for _, v := range list {
    		if v == "*" {
    			return true
    		}
    
    		if strings.HasSuffix(str, strings.ToLower(v)) {
    			return true
    		}
    	}
    	return false
    }
    
    // Returns true if any of the given wildcard patterns match the matchStr.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  9. cmd/api-router.go

    package cmd
    
    import (
    	"net"
    	"net/http"
    
    	consoleapi "github.com/minio/console/api"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/wildcard"
    	"github.com/rs/cors"
    )
    
    func newHTTPServerFn() *xhttp.Server {
    	globalObjLayerMutex.RLock()
    	defer globalObjLayerMutex.RUnlock()
    	return globalHTTPServer
    }
    
    func setHTTPServer(h *xhttp.Server) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  10. cmd/net.go

    func CheckLocalServerAddr(serverAddr string) error {
    	host, err := xnet.ParseHost(serverAddr)
    	if err != nil {
    		return config.ErrInvalidAddressFlag(err)
    	}
    
    	// 0.0.0.0 is a wildcard address and refers to local network
    	// addresses. I.e, 0.0.0.0:9000 like ":9000" refers to port
    	// 9000 on localhost.
    	if host.Name != "" && host.Name != net.IPv4zero.String() && host.Name != net.IPv6zero.String() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top