- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for supportedArgs (0.14 sec)
-
cmd/kubeadm/app/cmd/util/cmdutil_test.go
supportedArgs: []string{"node-name", "second-toplevel-arg"}, expectedErr: false, }, { name: "too few supplied args", args: []string{}, supportedArgs: []string{"node-name"}, expectedErr: true, }, { name: "too few non-empty args", args: []string{""}, supportedArgs: []string{"node-name"}, expectedErr: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 4K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/util/cmdutil.go
func ValidateExactArgNumber(args []string, supportedArgs []string) error { lenSupported := len(supportedArgs) validArgs := 0 // Disregard possible "" arguments; they are invalid for _, arg := range args { if len(arg) > 0 { validArgs++ } // break early for too many arguments if validArgs > lenSupported { return errors.Errorf("too many arguments. Required arguments: %v", supportedArgs) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.3K bytes - Viewed (0) -
src/crypto/tls/auth.go
// versions that support signature algorithms, so TLS 1.2 and 1.3. func selectSignatureScheme(vers uint16, c *Certificate, peerAlgs []SignatureScheme) (SignatureScheme, error) { supportedAlgs := signatureSchemesForCertificate(vers, c) if len(supportedAlgs) == 0 { return 0, unsupportedCertificateError(c) } if len(peerAlgs) == 0 && vers == VersionTLS12 { // For TLS 1.2, if the client didn't send signature_algorithms then we
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:45:37 UTC 2024 - 10K bytes - Viewed (0)