Files
gatus/k8s/k8s.go
T

10 lines
260 B
Go
Raw Normal View History

2020-10-30 21:00:03 +05:30
package k8s
import (
2020-11-11 18:05:18 -05:00
"k8s.io/api/core/v1"
2020-10-30 21:00:03 +05:30
)
2020-11-11 18:05:18 -05:00
// GetKubernetesServices return a list of Services from the given namespace
2021-02-19 20:34:35 -05:00
func GetKubernetesServices(client KubernetesClientAPI, namespace string) ([]v1.Service, error) {
2020-11-11 18:05:18 -05:00
return client.GetServices(namespace)
2020-10-30 21:00:03 +05:30
}