Version: v3.5.1+incompatible Latest Latest

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 11 Imported by: 3




This section is empty.


This section is empty.


This section is empty.


type Pod

type Pod struct {
	Name       string
	Hostname   string
	Containers []string
	Status     Status
	CreatedAt  time.Time
	// contains filtered or unexported fields

func PodFromKube

func PodFromKube(pod kubeModel.Pod) Pod

func (Pod) Copy

func (po Pod) Copy() Pod

func (Pod) MarshalJSON

func (pod Pod) MarshalJSON() ([]byte, error)

func (Pod) MarshalYAML

func (pod Pod) MarshalYAML() (interface{}, error)

func (Pod) RenderJSON

func (pod Pod) RenderJSON() (string, error)

func (Pod) RenderTable

func (pod Pod) RenderTable() string

func (Pod) RenderYAML

func (pod Pod) RenderYAML() (string, error)

func (Pod) TableHeaders

func (Pod) TableHeaders() []string

func (Pod) TableRows

func (pod Pod) TableRows() [][]string

type PodList

type PodList []Pod

func PodListFromKube

func PodListFromKube(kubeList model.PodsList) PodList

func (PodList) Copy

func (list PodList) Copy() PodList

func (PodList) Filter

func (list PodList) Filter(pred func(po Pod) bool) PodList

func (PodList) FilterByNames

func (list PodList) FilterByNames(names ...string) PodList

func (PodList) FilterByStatus

func (list PodList) FilterByStatus(status ...string) PodList

func (PodList) Len

func (list PodList) Len() int

func (PodList) New

func (list PodList) New() PodList

func (PodList) RenderJSON

func (list PodList) RenderJSON() (string, error)

func (PodList) RenderTable

func (list PodList) RenderTable() string

func (PodList) RenderYAML

func (list PodList) RenderYAML() (string, error)

func (PodList) TableHeaders

func (_ PodList) TableHeaders() []string

func (PodList) TableRows

func (list PodList) TableRows() [][]string

type Status

type Status struct {
	Phase        string
	RestartCount int
	StartedAt    time.Time

func StatusFromKube

func StatusFromKube(status kubeModels.PodStatus) Status

Jump to

Keyboard shortcuts

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