kubernetes

package
v0.0.0-...-5d714f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJob

func CreateJob(kubeConfig, jobID, namespace, imageName string, cpu, gpu int64) error

CreateJob creates a new kubernetes job

func DeleteJob

func DeleteJob(kubeConfig, jobID, namespace string) error

DeleteJob deletes the specified job

func JobStatus

func JobStatus(kubeConfig, jobID, namespace string) (*batchV1.JobStatus, error)

JobStatus returns status of the specified job

func PodStatus

func PodStatus(kubeConfig, jobID, namespace string) (*coreV1.Pod, error)

PodStatus returns status of the specified pod

Types

type Log

type Log struct {
	Time time.Time
	Log  string
}

Log the log structure

func Logs

func Logs(kubeConfig, jobID, namespace string) ([]*Log, error)

Logs retrieve the pod log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL