F K-convex functions on metric spaces