Documentation ¶
Overview ¶
Package kubernetes handles all interactions with the Kubernetes client.
Index ¶
- type API
- func (k API) CreateJob(name, registryLink string) (*batchv1.Job, error)
- func (k API) DeleteJob(name string) error
- func (k API) GetJobLogs(job string, crashesOnly bool, tailLines int) ([]string, error)
- func (k API) GetJobStatus(job string) (map[types.PodStatus]int, error)
- func (k API) GetPodLogs(podName string, tailLines int) (string, error)
- func (k API) GetPods(job string) (*corev1.PodList, error)
- func (k API) ListJobs() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API holds an interface for talking to Kubernetes.
func (API) GetJobLogs ¶
GetJobLogs retrieves the logs from all pods belonging to a given job. If crashesOnly is true, only returns logs from pods that found a crash. If tailLines <= 0, returns the entire log.
func (API) GetJobStatus ¶
GetJobStatus retrieves the status of all pods belonging to a given job.
func (API) GetPodLogs ¶
GetPodLogs retrieves the last tailLines lines of logs from a pod. If tailLines <= 0, returns the entire log.
Click to show internal directories.
Click to hide internal directories.