func (h Hostname) Validate() error {
	switch {
	case h.FQDN != "":
		// TODO(ericsnow) finish
	case !h.StaticIP.Equal(zeroIP):
		// TODO(ericsnow) finish
	case h.Hostname != "":
		// TODO(ericsnow) finish
	case !h.DynamicIP.Equal(zeroIP):
		// TODO(ericsnow) finish
	default:
		return nil
	}

	return validatePrintUSASCII(h.String(), 255)
}
// Validate ensures that the hostname is correct.
Validate ensures that the hostname is correct.
// Validate ensures that the hostname is correct .
func (h Hostname) Validate() error {
	switch {
	case h.FQDN != "":
	case !h.StaticIP.Equal(zeroIP):
	case h.Hostname != "":
	case !h.DynamicIP.Equal(zeroIP):
	default:
		return nil
	}
	return validatePrintUSASCII(h.String(), 255)
}
func ( h Hostname ) Validate ( ) error { switch { case h . FQDN != " " : case ! h . StaticIP . Equal ( zeroIP ) : case h . Hostname != " " : case ! h . DynamicIP . Equal ( zeroIP ) : default : return nil } return validatePrintUSASCII ( h . String ( ) , 255 ) }
Validate ensures that the hostname is correct.
Validate ensures that the hostname is correct .
// TODO(ericsnow) finish // TODO(ericsnow) finish // TODO(ericsnow) finish // TODO(ericsnow) finish