Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for xstr (0.09 sec)

  1. cmd/bucket-policy.go

    		} else {
    			args[key] = values
    		}
    	}
    
    	// JWT specific values
    	//
    	// Add all string claims
    	for k, v := range claims {
    		vStr, ok := v.(string)
    		if ok {
    			// Trim any LDAP specific prefix
    			args[strings.ToLower(strings.TrimPrefix(k, "ldap"))] = []string{vStr}
    		}
    	}
    
    	// Add groups claim which could be a list. This will ensure that the claim
    	// `jwt:groups` works.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    }
    
    func (ss SortableSliceOfMaps) Len() int {
    	return len(ss.s)
    }
    
    func (ss SortableSliceOfMaps) Less(i, j int) bool {
    	iStr := fmt.Sprintf("%v", ss.s[i][ss.k])
    	jStr := fmt.Sprintf("%v", ss.s[j][ss.k])
    	return sort.StringsAreSorted([]string{iStr, jStr})
    }
    
    func (ss SortableSliceOfMaps) Swap(i, j int) {
    	tmp := ss.s[i]
    	ss.s[i] = ss.s[j]
    	ss.s[j] = tmp
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  3. pkg/wasm/cache.go

    		if d, err := name.NewDigest(key.downloadURL[len(ociURLPrefix):]); err == nil {
    			// If there is no checksum and the digest is suffixed in URL, use the digest.
    			dstr := d.DigestStr()
    			if strings.HasPrefix(dstr, sha256SchemePrefix) {
    				key.checksum = dstr[len(sha256SchemePrefix):]
    			}
    			// For other digest scheme, give up to use cache.
    		}
    	}
    
    	if len(key.checksum) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. operator/pkg/translate/translate_value.go

    		if err != nil {
    			return err
    		}
    		if !found {
    			scope.Debugf("path %s not found in helm Value.yaml tree, skip mapping.", inPath)
    			continue
    		}
    
    		if mstr, ok := m.(string); ok && mstr == "" {
    			scope.Debugf("path %s is empty string, skip mapping.", inPath)
    			continue
    		}
    		// Zero int values are due to proto3 compiling to scalars rather than ptrs. Skip these because values of 0 are
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 03:52:24 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. src/go/doc/testdata/testing.go

    	after()
    }
    
    func (t *T) report() {
    	tstr := fmt.Sprintf("(%.2f seconds)", t.duration.Seconds())
    	format := "--- %s: %s %s\n%s"
    	if t.failed {
    		fmt.Printf(format, "FAIL", t.name, tstr, t.output)
    	} else if *chatty {
    		fmt.Printf(format, "PASS", t.name, tstr, t.output)
    	}
    }
    
    func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) {
    	ok = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    The query parameter `q` is of type `Union[str, None]` (or `str | None` in Python 3.10), that means that it's of type `str` but could also be `None`, and indeed, the default value is `None`, so FastAPI will know it's not required.
    
    !!! note
        FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/version.go

    			} else if len(split) < 2 {
    				pre = split[0] + ".0" // Append .0 to a partial label
    			}
    			pre = "-" + pre
    		}
    	}
    	vStr := fmt.Sprintf("v%d.%d.%d%s", v.Major(), v.Minor(), patch, pre)
    	return vStr, nil
    }
    
    // Validate if the remote version is one Minor release newer than the client version.
    // This is done to conform with "stable-X" and only allow remote versions from
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 10:50:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-message.h

      Message& operator <<(const ::std::wstring& wstr);
    #endif  // GTEST_HAS_STD_WSTRING
    
    #if GTEST_HAS_GLOBAL_WSTRING
      // Converts the given wide string to a narrow string using the UTF-8
      // encoding, and streams the result to this Message object.
      Message& operator <<(const ::wstring& wstr);
    #endif  // GTEST_HAS_GLOBAL_WSTRING
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. pkg/controller/job/indexed_job_utils.go

    		return parseInt32(logger, value)
    	}
    	return 0
    }
    
    func parseInt32(logger klog.Logger, vStr string) int32 {
    	if vInt, err := strconv.Atoi(vStr); err != nil {
    		logger.Error(err, "Failed to parse the value", "value", vStr)
    		return 0
    	} else if vInt < 0 || vInt > math.MaxInt32 {
    		logger.Info("The value is invalid", "value", vInt)
    		return 0
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/query-params-str-validations.md

    ```
    
    由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。
    
    所以:
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ...使得参数可选,等同于:
    
    ```Python
    q: str = None
    ```
    
    但是 `Query` 显式地将其声明为查询参数。
    
    然后,我们可以将更多的参数传递给 `Query`。在本例中,适用于字符串的 `max_length` 参数:
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    将会校验数据,在数据无效时展示清晰的错误信息,并在 OpenAPI 模式的*路径操作*中记录该参​​数。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top