Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for TrimSuffix (0.31 sec)

  1. cmd/metacache-walk.go

    					if !IsErrIgnored(err, io.EOF, io.ErrUnexpectedEOF) {
    						internalLogOnceIf(ctx, err, "metacache-walk-read-metadata")
    					}
    					continue
    				}
    				meta.name = strings.TrimSuffix(entry, xlStorageFormatFile)
    				meta.name = strings.TrimSuffix(meta.name, SlashSeparator)
    				meta.name = pathJoinBuf(sb, current, meta.name)
    				meta.name = decodeDirObject(meta.name)
    
    				return send(meta)
    			}
    			// Check legacy.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/api-utils.go

    	name := runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()
    
    	packageName := fmt.Sprintf("github.com/minio/minio/cmd.%s.", cmdType)
    	name = strings.TrimPrefix(name, packageName)
    	name = strings.TrimSuffix(name, "Handler-fm")
    	name = strings.TrimSuffix(name, "-fm")
    	return name
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. docs/debugging/inspect/main.go

    		os.Exit(1)
    	}
    
    	// Calculate the output file name
    	switch {
    	case strings.HasSuffix(inputFileName, ".enc"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".enc") + ".zip"
    	case strings.HasSuffix(inputFileName, ".zip"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".zip") + ".decrypted.zip"
    	}
    
    	// Backup any already existing output file
    	_, err := os.Stat(outputFileName)
    	if err == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  4. cmd/iam-object-store.go

    	defer cancel()
    	for item := range listIAMConfigItems(ctx, iamOS.objAPI, basePath) {
    		if item.Err != nil {
    			return item.Err
    		}
    
    		policyFile := item.Item
    		userOrGroupName := strings.TrimSuffix(policyFile, ".json")
    		if err := iamOS.loadMappedPolicy(ctx, userOrGroupName, userType, isGroup, m); err != nil && !errors.Is(err, errNoSuchPolicy) {
    			return err
    		}
    	}
    	return nil
    }
    
    var (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns.go

    	// First trim off any .scope suffix. This allows for a cleaner regex since
    	// we don't have to muck with greediness. TrimSuffix is no-copy so this
    	// is cheap.
    	cgroupPath = strings.TrimSuffix(cgroupPath, ".scope")
    
    	var matchResults map[string]string
    	for _, regex := range cgroupREs {
    		matches := reSubMatchMap(regex, cgroupPath)
    		if isValidCGroupPathMatches(matches) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. schema/relationship.go

    			}
    
    			lookUpNames := []string{lookUpName}
    			if len(primaryFields) == 1 {
    				lookUpNames = append(lookUpNames, strings.TrimSuffix(lookUpName, primaryField.Name)+"ID",
    					strings.TrimSuffix(lookUpName, primaryField.Name)+"Id", schema.namer.ColumnName(foreignSchema.Table,
    						strings.TrimSuffix(lookUpName, primaryField.Name)+"ID"))
    			}
    
    			for _, name := range lookUpNames {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  7. internal/rest/client.go

    // removeEmptyPort strips the empty port in ":port" to ""
    // as mandated by RFC 3986 Section 6.2.3.
    func removeEmptyPort(host string) string {
    	if hasPort(host) {
    		return strings.TrimSuffix(host, ":")
    	}
    	return host
    }
    
    // Copied from http.NewRequest but implemented to ensure we reuse `url.URL` instance.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  8. cni/pkg/log/uds_test.go

    	// the other one from UDS server
    	wantLevels := []string{"debug", "info", "warn", "error", "debug", "info", "warn", "error"}
    	gotLogs := strings.Split(
    		strings.TrimSuffix(string(out), "\n"), "\n")
    	if want, got := len(wantLevels), len(gotLogs); want != got {
    		t.Fatalf("Number of logs want %v, got %v logs: %v", want, got, gotLogs)
    	}
    
    	for i, l := range gotLogs {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Mar 16 00:20:01 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. cmd/warm-backend-minio.go

    	core := &minio.Core{Client: client}
    	return &warmBackendMinIO{
    		warmBackendS3{
    			client: client,
    			core:   core,
    			Bucket: conf.Bucket,
    			Prefix: strings.TrimSuffix(conf.Prefix, slashSeparator),
    		},
    	}, nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. helm/minio/templates/deployment.yaml

            checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
            {{- end }}
            {{- if .Values.podAnnotations }}
              {{- toYaml .Values.podAnnotations | trimSuffix "\n" | nindent 8 }}
            {{- end }}
        spec:
          {{- if .Values.priorityClassName }}
          priorityClassName: "{{ .Values.priorityClassName }}"
          {{- end }}
          {{- if .Values.runtimeClassName }}
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 03 17:50:39 GMT 2024
    - 8.7K bytes
    - Viewed (0)
Back to top