I'd say "pure ECS ideology" means: Entity doesn't has any logic, and components either. Logic goes into your systems. Entities are IDs, components are data, systems have all the logic. End of story.
So you wouldn't do any of what you mentioned (neither adding functions to an entity nor adding functions to a component).