mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-28 19:03:24 +01:00
11 lines
260 B
Go
11 lines
260 B
Go
package k8s
|
|
|
|
import (
|
|
"k8s.io/api/core/v1"
|
|
)
|
|
|
|
// GetKubernetesServices return a list of Services from the given namespace
|
|
func GetKubernetesServices(client KubernetesClientAPI, namespace string) ([]v1.Service, error) {
|
|
return client.GetServices(namespace)
|
|
}
|