Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientset ¶
func NewClientset(isInCluster bool) (kubernetes.Interface, error)
NewClientset create kubernetes clientset
Types ¶
type K8S ¶
type K8S interface { GetPod(name string, namespace string) (*v1.Pod, error) GetCurrentNamespace() string CreatePod(job *job.SchedulerJob, namespace string) (string, error) CreateNamespace(name string) error DeletePod(name string, namespace string) error WatchPod(name string, namespace string) error }
K8S service interface, that should abstract all k8s sdk details away
Click to show internal directories.
Click to hide internal directories.