Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 163 for formik (0.18 sec)

  1. 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)
  2. cmd/object-api-datatypes.go

    	// RestoreExpires indicates date a restored object expires
    	RestoreExpires time.Time
    
    	// RestoreOngoing indicates if a restore is in progress
    	RestoreOngoing bool
    
    	// A standard MIME type describing the format of the object.
    	ContentType string
    
    	// Specifies what content encodings have been applied to the object and thus
    	// what decoding mechanisms must be applied to obtain the object referenced
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  3. internal/grid/handlers.go

    	if err == nil {
    		return nil
    	}
    	r := RemoteErr(err.Error())
    	return &r
    }
    
    // NewRemoteErrf creates a new remote error from a format string.
    func NewRemoteErrf(format string, a ...any) *RemoteErr {
    	r := RemoteErr(fmt.Sprintf(format, a...))
    	return &r
    }
    
    // NewNPErr is a helper to no payload and optional remote error.
    // The error type is not preserved.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  4. internal/config/heal/heal.go

    		switch enabled {
    		case true:
    			return 0, nil
    		case false:
    			return -1, nil
    		}
    	}
    
    	// Try to parse as a number of months
    	if !strings.HasSuffix(s, "m") {
    		return -1, errors.New("unknown format")
    	}
    
    	months, err := strconv.Atoi(strings.TrimSuffix(s, "m"))
    	if err != nil {
    		return -1, err
    	}
    
    	if months < minimumBitrotCycleInMonths {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  5. cmd/bucket-policy.go

    		}
    		if existingValues, found := args[key]; found {
    			args[key] = append(existingValues, values...)
    		} else {
    			args[key] = values
    		}
    	}
    
    	cloneURLValues := make(url.Values, len(r.Form))
    	for k, v := range r.Form {
    		cloneURLValues[k] = v
    	}
    
    	for _, objLock := range []string{
    		xhttp.AmzObjectLockMode,
    		xhttp.AmzObjectLockLegalHold,
    		xhttp.AmzObjectLockRetainUntilDate,
    	} {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  6. cmd/metrics-v3-handler.go

    			w.Header().Set("Content-Type", "application/json")
    			jsonEncoder := json.NewEncoder(w)
    			jsonEncoder.Encode(metrics)
    			return
    		}
    
    		// If not JSON, return plain text. We format it as a markdown table for
    		// readability.
    		w.Header().Set("Content-Type", "text/plain")
    		var b strings.Builder
    		b.WriteString("| Name | Type | Help | Labels |\n")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. cmd/peer-rest-client.go

    // permanently. The only way to restore the connection is at the xl-sets layer by xlsets.monitorAndConnectEndpoints()
    // after verifying format.json
    func (client *peerRESTClient) call(method string, values url.Values, body io.Reader, length int64) (respBody io.ReadCloser, err error) {
    	return client.callWithContext(GlobalContext, method, values, body, length)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    	defer func() {
    		if rinfo.ReplicationStatus == replication.Completed && tgt.ResetID != "" && dobj.OpType == replication.ExistingObjectReplicationType {
    			rinfo.ResyncTimestamp = fmt.Sprintf("%s;%s", UTCNow().Format(http.TimeFormat), tgt.ResetID)
    		}
    	}()
    
    	if dobj.VersionID == "" && rinfo.PrevReplicationStatus == replication.Completed && dobj.OpType != replication.ExistingObjectReplicationType {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  9. internal/config/storageclass/storage-class.go

    	if sc.Parity != 0 {
    		return fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)
    	}
    	return ""
    }
    
    // Parses given storageClassEnv and returns a storageClass structure.
    // Supported Storage Class format is "Scheme:Number of parity drives".
    // Currently only supported scheme is "EC".
    func parseStorageClass(storageClassEnv string) (sc StorageClass, err error) {
    	s := strings.Split(storageClassEnv, ":")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. istioctl/pkg/multixds/gather.go

    			return nil, fmt.Errorf("`ResourceNames` must have one element when `all` flag is turned on")
    		}
    		slice := strings.SplitN(dr.ResourceNames[0], ".", 2)
    		if len(slice) != 2 {
    			return nil, fmt.Errorf("invalid resource name format: %v", slice)
    		}
    		podName := slice[0]
    		ns := slice[1]
    		pod, err := kubeClient.Kube().CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top