Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for suffix (0.23 sec)

  1. internal/event/rules.go

    )
    
    // NewPattern - create new pattern for prefix/suffix.
    func NewPattern(prefix, suffix string) (pattern string) {
    	if prefix != "" {
    		if !strings.HasSuffix(prefix, "*") {
    			prefix += "*"
    		}
    
    		pattern = prefix
    	}
    
    	if suffix != "" {
    		if !strings.HasPrefix(suffix, "*") {
    			suffix = "*" + suffix
    		}
    
    		pattern += suffix
    	}
    
    	pattern = strings.ReplaceAll(pattern, "**", "*")
    
    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)
  2. cmd/listen-notification-handlers.go

    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		suffix = values[peerRESTListenSuffix][0]
    	}
    
    	pattern := event.NewPattern(prefix, suffix)
    
    	var eventNames []event.Name
    	var mask pubsub.Mask
    	for _, s := range values[peerRESTListenEvents] {
    		eventName, err := event.ParseName(s)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. internal/event/rules_test.go

    package event
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestNewPattern(t *testing.T) {
    	testCases := []struct {
    		prefix         string
    		suffix         string
    		expectedResult string
    	}{
    		{"", "", ""},
    		{"*", "", "*"},
    		{"", "*", "*"},
    		{"images/", "", "images/*"},
    		{"images/*", "", "images/*"},
    		{"", "jpg", "*jpg"},
    		{"", "*jpg", "*jpg"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.8K bytes
    - Viewed (0)
  4. internal/s3select/select.go

    		if start < 0 {
    			return 0, 0, errors.New("ScanRange: Start after EOF")
    		}
    		return start, -1, nil
    	}
    	if s.Start == nil {
    		// Suffix length
    		end := int64(*s.End)
    		if end < 0 {
    			return 0, 0, errors.New("ScanRange: End bigger than file")
    		}
    		// Suffix length
    		return -end, -1, nil
    	}
    	start = int64(*s.Start)
    	end := int64(*s.End)
    	return start, end - start + 1, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  5. internal/event/config.go

    }
    
    // Pattern - returns pattern using prefix and suffix values.
    func (ruleList FilterRuleList) Pattern() string {
    	var prefix string
    	var suffix string
    
    	for _, rule := range ruleList.Rules {
    		switch rule.Name {
    		case "prefix":
    			prefix = rule.Value
    		case "suffix":
    			suffix = rule.Value
    		}
    	}
    
    	return NewPattern(prefix, suffix)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  6. cmd/iam-etcd-store_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"testing"
    )
    
    func TestExtractPrefixAndSuffix(t *testing.T) {
    	specs := []struct {
    		path, prefix, suffix string
    		expected             string
    	}{
    		{"config/iam/groups/foo.json", "config/iam/groups/", ".json", "foo"},
    		{"config/iam/groups/./foo.json", "config/iam/groups/", ".json", "foo"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  7. cmd/iam-etcd-store.go

    // Extract path string by stripping off the `prefix` value and the suffix,
    // value, usually in the following form.
    //
    //	s := "config/iam/users/foo/config.json"
    //	prefix := "config/iam/users/"
    //	suffix := "config.json"
    //	result is foo
    func extractPathPrefixAndSuffix(s string, prefix string, suffix string) string {
    	return pathClean(strings.TrimSuffix(strings.TrimPrefix(s, prefix), suffix))
    }
    
    // IAMEtcdStore implements IAMStorageAPI
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  8. README.fips.md

    MinIO FIPS executables are available at <http://dl.min.io> - they are only published for `linux-amd64` architecture as binary files with the suffix `.fips`. We also publish corresponding container images to our official image repositories.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 869 bytes
    - Viewed (0)
  9. cmd/object-api-utils.go

    	return strings.HasPrefix(s, prefix)
    }
    
    // HasSuffix - Suffix matcher string matches suffix in a platform specific way.
    // For example on windows since its case insensitive we are supposed
    // to do case insensitive checks.
    func HasSuffix(s string, suffix string) bool {
    	if runtime.GOOS == globalWindowsOSName {
    		return strings.HasSuffix(strings.ToLower(s), strings.ToLower(suffix))
    	}
    	return strings.HasSuffix(s, suffix)
    }
    
    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)
  10. docs/sts/web-identity.md

    set the redirect URL based on the "Host" header of the (initial login) request.
    
    The **deprecated** parameter `MINIO_IDENTITY_OPENID_REDIRECT_URI` works similar to the `MINIO_BROWSER_REDIRECT_URL` but needs to include the `/oauth_callback` suffix. Please do not use it, as it is sufficient to the set the `MINIO_BROWSER_REDIRECT_URL` parameter (which is required anyway for most load-balancer based setups to work correctly). This deprecated parameter **will be removed** in a future release. ...
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 19.2K bytes
    - Viewed (1)
Back to top