command

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() map[string]cli.CommandFactory

Commands returns the cli commands

Types

type K8sArtifactsCommand

type K8sArtifactsCommand struct {
	Meta
	// contains filtered or unexported fields
}

K8sArtifactsCommand is the command for kubernetes

func (*K8sArtifactsCommand) Help

func (k *K8sArtifactsCommand) Help() string

Help implements the cli.Command interface

func (*K8sArtifactsCommand) Run

func (k *K8sArtifactsCommand) Run(args []string) int

Run implements the cli.Command interface

func (*K8sArtifactsCommand) Synopsis

func (k *K8sArtifactsCommand) Synopsis() string

Synopsis implements the cli.Command interface

type K8sCommand

type K8sCommand struct {
	UI cli.Ui
}

K8sCommand is the command for kubernetes

func (*K8sCommand) Help

func (k *K8sCommand) Help() string

Help implements the cli.Command interface

func (*K8sCommand) Run

func (k *K8sCommand) Run(args []string) int

Run implements the cli.Command interface

func (*K8sCommand) Synopsis

func (k *K8sCommand) Synopsis() string

Synopsis implements the cli.Command interface

type K8sInitCommand

type K8sInitCommand struct {
	Meta
}

K8sInitCommand is the command to init a kubernetes cluster

func (*K8sInitCommand) Help

func (k *K8sInitCommand) Help() string

Help implements the cli.Command interface

func (*K8sInitCommand) Run

func (k *K8sInitCommand) Run(args []string) int

Run implements the cli.Command interface

func (*K8sInitCommand) Synopsis

func (k *K8sInitCommand) Synopsis() string

Synopsis implements the cli.Command interface

type Meta

type Meta struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

Meta is a helper utility for the commands

func (*Meta) Conn

func (m *Meta) Conn() (*grpc.ClientConn, error)

Conn returns a grpc connection

func (*Meta) FlagSet

func (m *Meta) FlagSet(n string) *flag.FlagSet

FlagSet adds some default commands to handle grpc connections with the server

type VersionCommand

type VersionCommand struct {
	UI cli.Ui
}

VersionCommand is the command to show the version of the agent

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

Help implements the cli.Command interface

func (*VersionCommand) Run

func (c *VersionCommand) Run(args []string) int

Run implements the cli.Command interface

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Synopsis implements the cli.Command interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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