Documentation ¶
Index ¶
- func GetNewTabWriter(output io.Writer) *tabwriter.Writer
- type HumanReadablePrinter
- func (p *HumanReadablePrinter) PrintConfig(config *config.Config, writer io.Writer) error
- func (p *HumanReadablePrinter) PrintNode(info *node.Info, writer io.Writer) error
- func (p *HumanReadablePrinter) PrintNodes(nodes []*node.Info, writer io.Writer) error
- func (p *HumanReadablePrinter) PrintPod(pod *pods.Pod, writer io.Writer) error
- func (p *HumanReadablePrinter) PrintPods(pods []*pods.Pod, writer io.Writer) error
- type ResourcePrinter
- type YamlPrinter
- func (p *YamlPrinter) PrintConfig(config *config.Config, w io.Writer) error
- func (p *YamlPrinter) PrintNode(node *node.Info, w io.Writer) error
- func (p *YamlPrinter) PrintNodes(nodes []*node.Info, w io.Writer) error
- func (p *YamlPrinter) PrintPod(pod *pods.Pod, w io.Writer) error
- func (p *YamlPrinter) PrintPods(pods []*pods.Pod, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HumanReadablePrinter ¶
type HumanReadablePrinter struct { }
HumanReadablePrinter is an implementation of ResourcePrinter which prints resources in human readable format (tables etc.).
func NewHumanReadablePrinter ¶
func NewHumanReadablePrinter() *HumanReadablePrinter
NewHumanReadablePrinter creates new HumanReadablePrinter
func (*HumanReadablePrinter) PrintConfig ¶
PrintConfig writes list of pods in human readable detailed format to the writer
func (*HumanReadablePrinter) PrintNode ¶ added in v0.2.8
PrintNode writes a node in human readable detailed format to the writer
func (*HumanReadablePrinter) PrintNodes ¶ added in v0.2.8
PrintNodes writes list of Nodes in human readable table format to the writer
type ResourcePrinter ¶
type ResourcePrinter interface { PrintPods([]*pods.Pod, io.Writer) error PrintNodes([]*node.Info, io.Writer) error PrintNode(*node.Info, io.Writer) error PrintPod(*pods.Pod, io.Writer) error PrintConfig(*config.Config, io.Writer) error }
ResourcePrinter is an interface that knows how to print runtime objects.
type YamlPrinter ¶ added in v0.2.4
type YamlPrinter struct { }
YamlPrinter is ResourcePrinter implementation which writes output in YAML format
func NewYamlPrinter ¶ added in v0.2.4
func NewYamlPrinter() *YamlPrinter
NewYamlPrinter creates new YamlPrinter instance
func (*YamlPrinter) PrintConfig ¶ added in v0.2.4
PrintConfig takes Config and prints to Writer in YAML format
func (*YamlPrinter) PrintNode ¶ added in v0.2.8
PrintNode takes node info and prints to Writer in YAML format
func (*YamlPrinter) PrintNodes ¶ added in v0.2.8
PrintNodes takes list of nodes and prints to Writer in YAML format