func (c *CertAuthID) Check() error {
	if err := c.Type.Check(); err != nil {
		return trace.Wrap(err)
	}
	if strings.TrimSpace(c.DomainName) == "" {
		return trace.BadParameter("identity validation error: empty domain name")
	}
	return nil
}
// Check returns error if any of the id parameters are bad, nil otherwise
Check returns error if any of the id parameters are bad, nil otherwise
// Check returns error if any of the id parameters are bad nil otherwise
func (c *CertAuthID) Check() error {
	if err := c.Type.Check(); err != nil {
		return trace.Wrap(err)
	}
	if strings.TrimSpace(c.DomainName) == "" {
		return trace.BadParameter("identity validation error: empty domain name")
	}
	return nil
}
func ( c * CertAuthID ) Check ( ) error { if err := c . Type . Check ( ) ; err != nil { return trace . Wrap ( err ) } if strings . TrimSpace ( c . DomainName ) == " " { return trace . BadParameter ( " " ) } return nil }
Check returns error if any of the id parameters are bad, nil otherwise
Check returns error if any of the id parameters are bad nil otherwise