Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for TrimPrefix (0.07 sec)

  1. cmd/metacache-entries.go

    func (e metaCacheEntry) isInDir(dir, separator string) bool {
    	if len(dir) == 0 {
    		// Root
    		idx := strings.Index(e.name, separator)
    		return idx == -1 || idx == len(e.name)-len(separator)
    	}
    	ext := strings.TrimPrefix(e.name, dir)
    	if len(ext) != len(e.name) {
    		idx := strings.Index(ext, separator)
    		// If separator is not found or is last entry, ok.
    		return idx == -1 || idx == len(ext)-len(separator)
    	}
    	return false
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. callbacks/preload.go

    		}
    		if value != "" {
    			preloadMap[name][value] = args
    		}
    	}
    
    	for name, args := range preloads {
    		preloadFields := strings.Split(name, ".")
    		value := strings.TrimPrefix(strings.TrimPrefix(name, preloadFields[0]), ".")
    		if preloadFields[0] == clause.Associations {
    			for _, relation := range s.Relationships.Relations {
    				if relation.Schema == s {
    					setPreloadMap(relation.Name, value, args)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. 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-") {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. cmd/ftp-server-driver.go

    // NewFTPDriver implements ftp.Driver interface
    func NewFTPDriver() ftp.Driver {
    	return &ftpDriver{endpoint: fmt.Sprintf("127.0.0.1:%s", globalMinioPort)}
    }
    
    func buildMinioPath(p string) string {
    	return strings.TrimPrefix(p, SlashSeparator)
    }
    
    func buildMinioDir(p string) string {
    	v := buildMinioPath(p)
    	if !strings.HasSuffix(v, SlashSeparator) {
    		return v + SlashSeparator
    	}
    	return v
    }
    
    type minioFileInfo struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. 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)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 20 16:02:50 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

         */
        @Test
        public void testTrimPrefix() throws Exception {
            final CopyOptions option = new CopyOptions();
            assertThat(option.trimPrefix("aaa"), is("aaa"));
            option.prefix(BeanNames.search_());
            assertThat(option.trimPrefix("search_aaa"), is("aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testConvertValue_zeroConverter() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

            return trimPrefix(srcPropertyName.replace(beanDelimiter, mapDelimiter));
        }
    
        /**
         * コピー元のプロパティ名をコピー先となるBean用のプロパティ名に変換して返します。
         *
         * @param srcPropertyName
         *            コピー元のプロパティ名
         * @return コピー先のプロパティ名
         */
        protected String toBeanDestPropertyName(final String srcPropertyName) {
            return trimPrefix(srcPropertyName.replace(mapDelimiter, beanDelimiter));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. cmd/batch-rotate.go

    			encMetadata[k] = v
    		}
    	}
    
    	if (sseKMS || sseS3) && r.Encryption.Type == ssekms {
    		if err = r.Encryption.Validate(); err != nil {
    			return err
    		}
    		newKeyID = strings.TrimPrefix(r.Encryption.Key, crypto.ARNPrefix)
    		newKeyContext = r.Encryption.kmsContext
    	}
    	if err = rotateKey(ctx, []byte{}, newKeyID, []byte{}, r.Bucket, oi.Name, encMetadata, newKeyContext); err != nil {
    		return err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. cmd/utils.go

    // of a 'path'. basePath is trimmed from the front of the 'path'.
    func path2BucketObjectWithBasePath(basePath, path string) (bucket, prefix string) {
    	path = strings.TrimPrefix(path, basePath)
    	path = strings.TrimPrefix(path, SlashSeparator)
    	m := strings.Index(path, SlashSeparator)
    	if m < 0 {
    		return path, ""
    	}
    	return path[:m], path[m+len(SlashSeparator):]
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  10. cmd/bucket-replication-utils.go

    		if p == "" {
    			continue
    		}
    		slc := strings.Split(p, "=")
    		if len(slc) != 2 {
    			return r, errInvalidReplicateDecisionFormat
    		}
    		tgtStr := strings.TrimSuffix(strings.TrimPrefix(slc[1], `"`), `"`)
    		tgt := strings.Split(tgtStr, ";")
    		if len(tgt) != 4 {
    			return r, errInvalidReplicateDecisionFormat
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top