ps

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatScale

func FormatScale(data, data2 interface{}) (string, error)

Types

type ContainerData

type ContainerData struct {
	ID        string
	Pod       *spaceclient.Pod
	Container *spaceclient.Container
}

func ListFirstPod

func ListFirstPod(c *spaceclient.Client, all bool, specificContainerName string, criteria ...string) (*ContainerData, error)

func ListPods

func ListPods(c *spaceclient.Client, all bool, specificContainerName string, criteria ...string) ([]*ContainerData, error)

type Ps

type Ps struct {
	C_Containers bool `desc:"print containers, not services"`
	A_All        bool `desc:"include all container, not just ones related to services"`
}

func (*Ps) Customize

func (p *Ps) Customize(cmd *cli.Command)

func (*Ps) Run

func (p *Ps) Run(app *cli.Context) error

type ServiceData

type ServiceData struct {
	ID       string
	Service  *client.Service
	Stack    *client.Stack
	Endpoint string
}

Jump to

Keyboard shortcuts

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