Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 241 for format (0.22 sec)

  1. cmd/xl-storage.go

    		return s, err
    	}
    
    	if len(s.formatData) > 0 {
    		format := &formatErasureV3{}
    		json := jsoniter.ConfigCompatibleWithStandardLibrary
    		if err = json.Unmarshal(s.formatData, &format); err != nil {
    			return s, errCorruptedFormat
    		}
    		m, n, err := findDiskIndexByDiskID(format, format.Erasure.This)
    		if err != nil {
    			return s, err
    		}
    		diskID := format.Erasure.This
    		if m != ep.SetIdx || n != ep.DiskIdx {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    		}
    	}
    
    	// Round ModTime and ignore AccessTime and ChangeTime unless
    	// the format is explicitly chosen.
    	// This ensures nominal usage of WriteHeader (without specifying the format)
    	// does not always result in the PAX format being chosen, which
    	// causes a 1KiB increase to every header.
    	if tw.hdr.Format == FormatUnknown {
    		tw.hdr.ModTime = tw.hdr.ModTime.Round(time.Second)
    		tw.hdr.AccessTime = time.Time{}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  3. cmd/tier.go

    	}
    
    	if len(data) <= 4 {
    		return nil, fmt.Errorf("tierConfigInit: no data")
    	}
    
    	// Read header
    	switch format := binary.LittleEndian.Uint16(data[0:2]); format {
    	case tierConfigFormat:
    	default:
    		return nil, fmt.Errorf("tierConfigInit: unknown format: %d", format)
    	}
    
    	cfg := NewTierConfigMgr()
    	switch version := binary.LittleEndian.Uint16(data[2:4]); version {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-handlers_test.go

    				Code:     "InvalidArgument",
    				Message:  "Filter must have exactly one of Prefix, Tag, or And specified",
    			},
    
    			shouldPass: false,
    		},
    		// Date contains wrong format
    		{
    			method:             http.MethodPut,
    			bucketName:         bucketName,
    			accessKey:          creds.AccessKey,
    			secretKey:          creds.SecretKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. internal/crypto/error.go

    // modified accidentally or maliciously.
    type Error struct {
    	msg   string
    	cause error
    }
    
    // Errorf - formats according to a format specifier and returns
    // the string as a value that satisfies error of type crypto.Error
    func Errorf(format string, a ...interface{}) error {
    	e := fmt.Errorf(format, a...)
    	ee := Error{}
    	ee.msg = e.Error()
    	ee.cause = errors.Unwrap(e)
    	return ee
    }
    
    // Unwrap the internal error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. cmd/erasure-sets_test.go

    	if err != errInvalidArgument {
    		t.Fatalf("Expecting error, got %s", err)
    	}
    
    	// Initializes all erasure disks
    	storageDisks, format, err := waitForFormatErasure(true, endpoints, 1, 1, 16, "")
    	if err != nil {
    		t.Fatalf("Unable to format drives for erasure, %s", err)
    	}
    
    	ep := PoolEndpoints{Endpoints: endpoints}
    
    	parity, err := ecDrivesNoConfig(16)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 07:21:56 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. cmd/erasure-utils.go

    	if err != nil {
    		return "", fmt.Errorf("error parsing uploadID %s (%w)", uploadID, err)
    	}
    	slc := strings.SplitN(string(uploadBytes), ".", 2)
    	if len(slc) != 2 {
    		return "", fmt.Errorf("uploadID %s has incorrect format", uploadID)
    	}
    	return slc[0], nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. internal/config/cache/remote.go

    func (oi ObjectInfo) WriteHeaders(w http.ResponseWriter, preamble, statusCode func()) {
    	preamble()
    
    	if !oi.ModTime.IsZero() {
    		w.Header().Set(xhttp.LastModified, oi.ModTime.UTC().Format(http.TimeFormat))
    	}
    
    	if oi.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + oi.ETag + "\""}
    	}
    
    	if oi.Expires != "" {
    		w.Header().Set(xhttp.Expires, oi.Expires)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  9. operator/cmd/mesh/operator-common.go

    	manifestsPath string
    	// revision is the Istio control plane revision the command targets.
    	revision string
    	// outputFormat controls the format of operator dumps
    	outputFormat string
    }
    
    const (
    	operatorResourceName     = "istio-operator"
    	operatorDefaultNamespace = "istio-operator"
    )
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Dec 17 02:25:04 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  10. internal/logger/target/console/console.go

    	"strings"
    
    	"github.com/minio/minio/internal/color"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/logger/message/log"
    )
    
    // Target implements loggerTarget to send log
    // in plain or json format to the standard output.
    type Target struct {
    	output io.Writer
    }
    
    // Validate - validate if the tty can be written to
    func (c *Target) Validate() error {
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top