Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 98 for TrimPrefix (0.54 sec)

  1. cmd/postpolicyform.go

    	metaMap := make(map[string]string)
    	for _, policy := range postPolicyForm.Conditions.Policies {
    		if strings.HasPrefix(policy.Key, "$x-amz-meta-") {
    			formCanonicalName := http.CanonicalHeaderKey(strings.TrimPrefix(policy.Key, "$"))
    			metaMap[formCanonicalName] = policy.Value
    		}
    	}
    	// Check if any extra metadata field is passed as input
    	for key := range formValues {
    		if strings.HasPrefix(key, "X-Amz-Meta-") {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  2. callbacks/delete.go

    						if s == clause.Associations {
    							selects = append(selects, s)
    						} else if columnPrefix := column + "."; strings.HasPrefix(s, columnPrefix) {
    							selects = append(selects, strings.TrimPrefix(s, columnPrefix))
    						}
    					}
    
    					if len(selects) > 0 {
    						tx = tx.Select(selects)
    					}
    				}
    
    				for _, cond := range queryConds {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  3. internal/s3select/sql/stringfuncs.go

    // the prefix of `text`, otherwise it must be a substring.
    func matcher(text, pat string, leadingPercent bool) (res string, match bool) {
    	if !leadingPercent {
    		res = strings.TrimPrefix(text, pat)
    		if len(text) == len(res) {
    			return "", false
    		}
    	} else {
    		parts := strings.SplitN(text, pat, 2)
    		if len(parts) == 1 {
    			return "", false
    		}
    		res = parts[1]
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  4. cmd/iam.go

    	case usersPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigUsersPrefix))
    		err = sys.store.UserNotificationHandler(ctx, accessKey, regUser)
    	case stsPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigSTSPrefix))
    		err = sys.store.UserNotificationHandler(ctx, accessKey, stsUser)
    	case svcPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigServiceAccountsPrefix))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. internal/grid/msg.go

    	"strings"
    
    	"github.com/tinylib/msgp/msgp"
    	"github.com/zeebo/xxh3"
    )
    
    // Op is operation type.
    //
    //go:generate msgp -unexported -file=$GOFILE
    //go:generate stringer -type=Op -output=msg_string.go -trimprefix=Op $GOFILE
    
    // Op is operation type messages.
    type Op uint8
    
    // HandlerID is the ID for the handler of a specific type.
    type HandlerID uint8
    
    const (
    	// OpConnect is a connect request.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    	{"TrimRight", []byte{'a'}, "ab", []byte{}},
    	{"TrimRight", []byte{'a', 'b'}, "ab", []byte{}},
    	{"TrimRight", []byte("☺"), "☺", []byte{}},
    	{"TrimPrefix", nil, "", nil},
    	{"TrimPrefix", []byte{}, "", []byte{}},
    	{"TrimPrefix", []byte{'a'}, "a", []byte{}},
    	{"TrimPrefix", []byte("☺"), "☺", []byte{}},
    	{"TrimSuffix", nil, "", nil},
    	{"TrimSuffix", []byte{}, "", []byte{}},
    	{"TrimSuffix", []byte{'a'}, "a", []byte{}},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. internal/bucket/encryption/bucket-sse-config.go

    // If the SSE configuration does not specify SSE-KMS it returns an
    // empty key ID.
    func (b *BucketSSEConfig) KeyID() string {
    	for _, rule := range b.Rules {
    		return strings.TrimPrefix(rule.DefaultEncryptionAction.MasterKeyID, crypto.ARNPrefix)
    	}
    	return ""
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  8. internal/logger/config.go

    	cfg := NewConfig()
    	switch subSys {
    	case config.LoggerWebhookSubSys:
    		var loggerTargets []string
    		envs := env.List(legacyEnvLoggerHTTPEndpoint)
    		for _, k := range envs {
    			target := strings.TrimPrefix(k, legacyEnvLoggerHTTPEndpoint+config.Default)
    			if target == legacyEnvLoggerHTTPEndpoint {
    				target = config.Default
    			}
    			loggerTargets = append(loggerTargets, target)
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. internal/crypto/sse-kms.go

    		}
    	}
    
    	keyID := h.Get(xhttp.AmzServerSideEncryptionKmsID)
    	spaces := strings.HasPrefix(keyID, " ") || strings.HasSuffix(keyID, " ")
    	if spaces {
    		return "", nil, ErrInvalidEncryptionKeyID
    	}
    	return strings.TrimPrefix(keyID, ARNPrefix), ctx, nil
    }
    
    // IsEncrypted returns true if the object metadata indicates
    // that the object was uploaded using SSE-KMS.
    func (ssekms) IsEncrypted(metadata map[string]string) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. cmd/os-instrumented.go

    	"strings"
    	"sync/atomic"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/disk"
    	ioutilx "github.com/minio/minio/internal/ioutil"
    )
    
    //go:generate stringer -type=osMetric -trimprefix=osMetric $GOFILE
    
    type osMetric uint8
    
    const (
    	osMetricRemoveAll osMetric = iota
    	osMetricMkdirAll
    	osMetricMkdir
    	osMetricRename
    	osMetricOpenFileW
    	osMetricOpenFileR
    	osMetricOpenFileWFd
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top