Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for formik (0.21 sec)

  1. cmd/format-erasure_test.go

    func TestFormatErasureEmpty(t *testing.T) {
    	format := newFormatErasureV3(1, 16)
    	format.Erasure.DistributionAlgo = formatErasureVersionV2DistributionAlgoV1
    	formats := make([]*formatErasureV3, 16)
    
    	for j := 0; j < 16; j++ {
    		newFormat := format.Clone()
    		newFormat.Erasure.This = format.Erasure.Sets[0][j]
    		formats[j] = newFormat
    	}
    
    	// empty format to indicate disk not found, but this
    	// empty should return false.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  2. cmd/format-erasure.go

    	format := &formatErasureV3{}
    	format.Version = formatMetaVersionV1
    	format.Format = formatBackendErasure
    	if setLen == 1 {
    		format.Format = formatBackendErasureSingle
    	}
    	format.ID = mustGetUUID()
    	format.Erasure.Version = formatErasureVersionV3
    	format.Erasure.DistributionAlgo = formatErasureVersionV3DistributionAlgoV3
    	format.Erasure.Sets = make([][]string, numSets)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. cmd/signature-v4_test.go

    	testCases := []struct {
    		form     http.Header
    		expected APIErrorCode
    	}{
    		// (0) It should fail if 'X-Amz-Credential' is missing.
    		{
    			form:     http.Header{},
    			expected: ErrCredMalformed,
    		},
    		// (1) It should fail if the access key is incorrect.
    		{
    			form: http.Header{
    				"X-Amz-Credential": []string{fmt.Sprintf(credentialTemplate, "EXAMPLEINVALIDEXAMPL", now.Format(yyyymmdd), globalMinioDefaultRegion)},
    			},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  4. operator/cmd/mesh/manifest-diff.go

    	selectResources string
    	// ignoreResources ignores all listed items during comparison. It uses the same list format as selectResources.
    	ignoreResources string
    	// renameResources identifies renamed resources before comparison.
    	// The format of each renaming pair is A->B, all renaming pairs are comma separated.
    	// e.g. Service:*:istio-pilot->Service:*:istio-control - rename istio-pilot service into istio-control
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. internal/event/target/elasticsearch.go

    func (a ElasticsearchArgs) Validate() error {
    	if !a.Enable {
    		return nil
    	}
    	if a.URL.IsEmpty() {
    		return errors.New("empty URL")
    	}
    	if a.Format != "" {
    		f := strings.ToLower(a.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return errors.New("format value unrecognized")
    		}
    	}
    	if a.Index == "" {
    		return errors.New("empty index value")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. operator/cmd/mesh/profile-dump.go

    }
    
    // validateOutputFormatFlag validates if the output format is valid.
    func validateProfileOutputFormatFlag(outputFormat string) error {
    	switch outputFormat {
    	case jsonOutput, yamlOutput, flagsOutput:
    	default:
    		return fmt.Errorf("unknown output format: %s", outputFormat)
    	}
    	return nil
    }
    
    // yamlToFormat converts the generated yaml config to the expected format
    func yamlToFormat(yaml, outputFormat string) (string, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. logger/sql.go

    		case time.Time:
    			if v.IsZero() {
    				vars[idx] = escaper + tmFmtZero + escaper
    			} else {
    				vars[idx] = escaper + v.Format(tmFmtWithMS) + escaper
    			}
    		case *time.Time:
    			if v != nil {
    				if v.IsZero() {
    					vars[idx] = escaper + tmFmtZero + escaper
    				} else {
    					vars[idx] = escaper + v.Format(tmFmtWithMS) + escaper
    				}
    			} else {
    				vars[idx] = nullStr
    			}
    		case driver.Valuer:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. internal/config/identity/ldap/config.go

    	EnvServerInsecure     = "MINIO_IDENTITY_LDAP_SERVER_INSECURE"
    	EnvServerStartTLS     = "MINIO_IDENTITY_LDAP_SERVER_STARTTLS"
    	EnvUsernameFormat     = "MINIO_IDENTITY_LDAP_USERNAME_FORMAT"
    	EnvUserDNSearchBaseDN = "MINIO_IDENTITY_LDAP_USER_DN_SEARCH_BASE_DN"
    	EnvUserDNSearchFilter = "MINIO_IDENTITY_LDAP_USER_DN_SEARCH_FILTER"
    	EnvGroupSearchFilter  = "MINIO_IDENTITY_LDAP_GROUP_SEARCH_FILTER"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  9. cmd/test-utils_test.go

    	scope := strings.Join([]string{
    		currTime.Format(yyyymmdd),
    		globalMinioDefaultRegion,
    		string(serviceS3),
    		"aws4_request",
    	}, SlashSeparator)
    
    	stringToSign := "AWS4-HMAC-SHA256" + "\n" + currTime.Format(iso8601Format) + "\n"
    	stringToSign += scope + "\n"
    	stringToSign += getSHA256Hash([]byte(canonicalRequest))
    
    	date := sumHMAC([]byte("AWS4"+secretKey), []byte(currTime.Format(yyyymmdd)))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  10. 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)
Back to top