ps

package
v0.0.4-rc6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatImage added in v0.0.3

func FormatImage(data interface{}) (string, error)

func FormatScale

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

func FormatServiceName

func FormatServiceName(cluster *clientcfg.Cluster) func(data, data2 interface{}) (string, error)

Types

type ContainerData

type ContainerData struct {
	ID        string
	Pod       *projectclient.Pod
	PodData   *PodData
	Container *projectclient.Container
}

type PodData

type PodData struct {
	ID         string
	Name       string
	Managed    bool
	Service    *lookup.StackScoped
	Pod        *projectclient.Pod
	Containers []projectclient.Container
}

func ListFirstPod

func ListFirstPod(ctx *clicontext.CLIContext, all bool, podOrServices ...string) (*PodData, error)

func ListPods

func ListPods(ctx *clicontext.CLIContext, all bool, podOrServices ...string) ([]PodData, 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(ctx *clicontext.CLIContext) error

type ServiceData

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

Jump to

Keyboard shortcuts

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