Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 434 for hyphens (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    		errs = append(errs, "must contain only alpha-numeric characters (a-z, 0-9), and hyphens (-)")
    	}
    	if !portNameOneLetterRegexp.MatchString(port) {
    		errs = append(errs, "must contain at least one letter (a-z)")
    	}
    	if strings.Contains(port, "--") {
    		errs = append(errs, "must not contain consecutive hyphens")
    	}
    	if len(port) > 0 && (port[0] == '-' || port[len(port)-1] == '-') {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go

    			t.Errorf("expected true for %q: %v", val, msgs)
    		}
    	}
    
    	badValues := []string{"longerthan15characters", "", strings.Repeat("a", 16), "12345", "1-2-3-4", "-begin", "end-", "two--hyphens", "whois++"}
    	for _, val := range badValues {
    		if msgs := IsValidPortName(val); len(msgs) == 0 {
    			t.Errorf("expected false for %q", val)
    		}
    	}
    }
    
    func TestIsQualifiedName(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 04:51:54 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/idna/idna9.0.0.go

    }
    
    // ValidateLabels sets whether to check the mandatory label validation criteria
    // as defined in Section 5.4 of RFC 5891. This includes testing for correct use
    // of hyphens ('-'), normalization, validity of runes, and the context rules.
    // In particular, ValidateLabels also sets the CheckHyphens and CheckJoiners flags
    // in UTS #46.
    func ValidateLabels(enable bool) Option {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    }
    
    // ValidateLabels sets whether to check the mandatory label validation criteria
    // as defined in Section 5.4 of RFC 5891. This includes testing for correct use
    // of hyphens ('-'), normalization, validity of runes, and the context rules.
    // In particular, ValidateLabels also sets the CheckHyphens and CheckJoiners flags
    // in UTS #46.
    func ValidateLabels(enable bool) Option {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/rsc.io/markdown/html.go

    		}
    	}
    	return nil, 0, false
    }
    
    func parseTagName(s string, i int) (string, int, bool) {
    	// “A tag name consists of an ASCII letter followed by zero or more ASCII letters, digits, or hyphens (-).”
    	if i < len(s) && isLetter(s[i]) {
    		j := i + 1
    		for j < len(s) && isLDH(s[j]) {
    			j++
    		}
    		return s[i:j], j, true
    	}
    	return "", 0, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. pkg/ctrlz/assets/static/css/all.css

        text-align: left;
        white-space: pre;
        word-spacing: normal;
        word-break: normal;
        word-wrap: normal;
        line-height: 1.5;
        tab-size: 4;
        hyphens: none;
        background: #2d2d2d
    }
    
    pre code {
        display: block;
        color: #ddd;
        padding: .5em
    }
    
    pre code.command-output {
        padding: 0
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  7. pkg/apis/discovery/validation/validation_test.go

    					Name:     utilpointer.String("http"),
    					Protocol: protocolPtr(api.ProtocolTCP),
    				}},
    				Endpoints: []discovery.Endpoint{{
    					Addresses: []string{"foo.example.com", "example.com", "example.com.", "hyphens-are-good.example.com"},
    					Hostname:  utilpointer.String("valid-123"),
    				}},
    			},
    		},
    		"all-protocols": {
    			expectedErrors: 0,
    			endpointSlice: &discovery.EndpointSlice{
    				ObjectMeta:  standardMeta,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/link.go

    // where n is the length of a prefix guaranteed not to be acceptable
    // to any future call to parseValidDomain.
    //
    // “A valid domain consists of segments of alphanumeric characters,
    // underscores (_) and hyphens (-) separated by periods (.).
    // There must be at least one period, and no underscores may be
    // present in the last two segments of the domain.”
    //
    // The spec does not spell out whether segments can be empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. src/runtime/metrics/description.go

    	// starts with a /, and a machine-parseable unit. The name may contain any valid Unicode
    	// codepoint in between / characters, but by convention will try to stick to lowercase
    	// characters and hyphens. An example of such a path might be "/memory/heap/free".
    	//
    	// The unit is by convention a series of lowercase English unit names (singular or plural)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    // characters long, and it must be a sequence of one or more labels
    // separated by periods. Each label can contain lowercase ascii
    // letters, decimal digits and hyphens, but must not begin or end with
    // a hyphen. See:
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
    func IsValidBucketName(bucket string) bool {
    	// Special case when bucket is equal to one of the meta buckets.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top