pod

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewPodManager

func NewPodManager(clientset kubernetes.Interface) *Manager

func (*Manager) GetPodByJob

func (pw *Manager) GetPodByJob(job *batch.Job) (*core.Pod, error)

GetPodByJob gets the Pod controller by the specified Job.

func (*Manager) GetPodByName

func (pw *Manager) GetPodByName(namespace, name string) (*core.Pod, error)

func (*Manager) GetPodLogs

func (pw *Manager) GetPodLogs(pod *core.Pod, container string) (io.ReadCloser, error)

func (*Manager) GetPodLogsByJob

func (pw *Manager) GetPodLogsByJob(job *batch.Job, container string) (io.ReadCloser, error)

func (*Manager) GetPodSpecByWorkload

func (pw *Manager) GetPodSpecByWorkload(workload kube.Workload) (spec core.PodSpec, err error)

GetPodSpecByWorkload returns a PodSpec of the specified Workload.

Jump to

Keyboard shortcuts

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