// Check returns nil if the value is correct, error otherwise
Check returns nil if the value is correct, error otherwise
// Check returns nil if the value is correct error otherwise
func (s *ProvisioningTokenType) Check() error {
	switch *s {
	case ProvisioningTokenTypeInstall, ProvisioningTokenTypeExpand, ProvisioningTokenTypeTeleport:
		return nil
	}
	return trace.BadParameter("unsupported token type: %v", *s)
}
func ( s * ProvisioningTokenType ) Check ( ) error { switch * s { case ProvisioningTokenTypeInstall , ProvisioningTokenTypeExpand , ProvisioningTokenTypeTeleport : return nil } return trace . BadParameter ( " " , * s ) }
Check returns nil if the value is correct, error otherwise
Check returns nil if the value is correct error otherwise