// Check validates the cluster object's fields.
Check validates the cluster object's fields.
// Check validates the cluster object ' s fields .
func (s *Site) Check() error {
	if s.AccountID == "" {
		return trace.BadParameter("missing parameter AccountID")
	}
	if s.Domain == "" {
		return trace.BadParameter("missing parameter DomainName")
	}
	if s.Created.IsZero() {
		return trace.BadParameter("missing parameter Created")
	}
	if err := s.Reason.Check(); err != nil {
		return trace.Wrap(err)
	}
	return nil
}
func ( s * Site ) Check ( ) error { if s . AccountID == " " { return trace . BadParameter ( " " ) } if s . Domain == " " { return trace . BadParameter ( " " ) } if s . Created . IsZero ( ) { return trace . BadParameter ( " " ) } if err := s . Reason . Check ( ) ; err != nil { return trace . Wrap ( err ) } return nil }
Check validates the cluster object's fields.
Check validates the cluster object ' s fields .