requestresults

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeployColumns = []string{"NAME", "PODS", "PODS ACTIVE", "CPU", "RAM", "AGE"}
View Source
var NamespaceColumns = []string{"NAME", "HARD CPU", "HARD MEMORY", "USED CPU", "USED MEMORY", "AGE"}
View Source
var PodColumns = []string{"NAME", "READY", "STATUS", "RESTARTS", "AGE", "IP"}
View Source
var ServiceColumns = []string{"NAME", "CLUSTER-IP", "EXTERNAL", "HOST", "PORTS", "AGE"}
View Source
var VolumeColumns = []string{"LABEL", "SIZE (GiB)", "STATUS"}

Functions

This section is empty.

Types

type ResultPrinter

type ResultPrinter interface {
	Print() error
}

func ProcessResponse

func ProcessResponse(resp []chlib.GenericJson, sortField string, np *jww.Notepad) (res ResultPrinter, err error)

type SingleVolumeResult

type SingleVolumeResult struct {
	Replica int    `json:"replica"`
	Status  string `json:"status"`
	Label   string `json:"label"`
	Df      struct {
		Available  string `json:"available"`
		Total      string `json:"total"`
		UsePercent string `json:"use_percent"`
		Used       string `json:"used"`
	} `json:"df"`
}

func (SingleVolumeResult) Print

func (s SingleVolumeResult) Print() error

type VolumeListResult

type VolumeListResult []struct {
	Label  string `json:"label"`
	Size   int    `json:"size"`
	Status string `json:"status"`
}

func (VolumeListResult) Print

func (l VolumeListResult) Print() error

Jump to

Keyboard shortcuts

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