Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for TrimPrefix (0.17 sec)

  1. cmd/data-usage.go

    							// set, go to the next set
    							continue
    						}
    
    						for id, usageInfo := range cache.flattenChildrens(*root) {
    							prefix := decodeDirObject(strings.TrimPrefix(id, bucket+slashSeparator))
    							// decodeDirObject to avoid any __XLDIR__ objects
    							m[prefix] += uint64(usageInfo.Size)
    						}
    					}
    				}
    			}
    			return m, nil
    		},
    	)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 5.6K 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 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Feb 25 02:48:23 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  3. 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 ""
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  4. internal/s3select/csv/record.go

    func (r *Record) Get(name string) (*sql.Value, error) {
    	index, found := r.nameIndexMap[name]
    	if !found {
    		// Check if index.
    		if strings.HasPrefix(name, "_") {
    			idx, err := strconv.Atoi(strings.TrimPrefix(name, "_"))
    			if err != nil {
    				return nil, fmt.Errorf("column %v not found", name)
    			}
    			// The position count starts at 1.
    			idx--
    			if idx >= len(r.csvRecord) || idx < 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. schema/naming.go

    }
    
    // SchemaName generate schema name from table name, don't guarantee it is the reverse value of TableName
    func (ns NamingStrategy) SchemaName(table string) string {
    	table = strings.TrimPrefix(table, ns.TablePrefix)
    
    	if ns.SingularTable {
    		return ns.toSchemaName(table)
    	}
    	return ns.toSchemaName(inflection.Singular(table))
    }
    
    // ColumnName convert string to column name
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. docs/debugging/reorder-disks/main.go

    		func(path string, info os.FileInfo, err error) error {
    			if err != nil {
    				return err
    			}
    			realPath, err := filepath.EvalSymlinks(path)
    			if err != nil {
    				return err
    			}
    			result[realPath] = strings.TrimPrefix(path, "/dev/disk/by-uuid/")
    			return nil
    		})
    	if err != nil {
    		return nil, err
    	}
    	return result, nil
    }
    
    type localDisk struct {
    	index int
    	path  string
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K 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. 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{}},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top