Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ValidateProtocol (0.13 sec)

  1. pkg/config/validation/validation.go

    func ValidatePortName(name string) error {
    	if !labels.IsDNS1123Label(name) {
    		return fmt.Errorf("invalid port name: %s", name)
    	}
    	return nil
    }
    
    // ValidateProtocol validates a portocol name is known
    func ValidateProtocol(protocolStr string) error {
    	// Empty string is used for protocol sniffing.
    	if protocolStr != "" && protocol.Parse(protocolStr) == protocol.Unsupported {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top