displayers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppReport

type AppReport struct {
	Apps []*pb.AppReport
}

func (*AppReport) ColMap

func (d *AppReport) ColMap() map[string]string

func (*AppReport) Cols

func (d *AppReport) Cols() []string

func (*AppReport) JSON

func (d *AppReport) JSON(out io.Writer) error

func (*AppReport) KV

func (d *AppReport) KV() []map[string]interface{}

type Chart

type Chart struct {
	Charts []*pb.Chart
}

func (*Chart) ColMap

func (c *Chart) ColMap() map[string]string

func (*Chart) Cols

func (c *Chart) Cols() []string

func (*Chart) JSON

func (c *Chart) JSON(out io.Writer) error

func (*Chart) KV

func (c *Chart) KV() []map[string]interface{}

type Cluster

type Cluster struct {
	Clusters []common.DataCenterStatus
}

func (*Cluster) ColMap

func (c *Cluster) ColMap() map[string]string

func (*Cluster) Cols

func (c *Cluster) Cols() []string

func (*Cluster) JSON

func (c *Cluster) JSON(out io.Writer) error

func (*Cluster) KV

func (c *Cluster) KV() []map[string]interface{}

type Displayable

type Displayable interface {
	Cols() []string
	ColMap() map[string]string
	KV() []map[string]interface{}
	JSON(io.Writer) error
}

Displayable is a displable entity. These are used for printing results.

type Displayer

type Displayer struct {
	NS     string
	Config ankrctl.Config
	Item   Displayable
	Out    io.Writer
}

func (*Displayer) Display

func (d *Displayer) Display() error

type Key

type Key struct {
	Keystores []*KeyStore
}

func (*Key) ColMap

func (c *Key) ColMap() map[string]string

func (*Key) Cols

func (c *Key) Cols() []string

func (*Key) JSON

func (c *Key) JSON(out io.Writer) error

func (*Key) KV

func (c *Key) KV() []map[string]interface{}

type KeyStore

type KeyStore struct {
	Name      string `json:"name,omitempty"`
	Address   string `json:"address"`
	PublicKey string `json:"publickey"`
}

type Metrics

type Metrics struct {
	TotalCPU      int64
	UsedCPU       int64
	TotalMemory   int64
	UsedMemory    int64
	TotalStorage  int64
	UsedStorage   int64
	ImageCount    int64
	EndPointCount int64
	NetworkIO     int64
}

type Namespace

type Namespace struct {
	Namespaces []common.NamespaceReport
}

func (*Namespace) ColMap

func (n *Namespace) ColMap() map[string]string

func (*Namespace) Cols

func (n *Namespace) Cols() []string

func (*Namespace) JSON

func (n *Namespace) JSON(out io.Writer) error

func (*Namespace) KV

func (n *Namespace) KV() []map[string]interface{}

Jump to

Keyboard shortcuts

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