cmd

package
v0.0.0-...-9fee3e3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const UsageTemplate = `` /* 961-byte string literal not displayed */

Variables

View Source
var GitSha string
View Source
var O = &Options{}
View Source
var RootCmd = &cobra.Command{
	Use:   "kamp",
	Short: "Rapidly develop, run, and build containers directly in Kubernetes",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
		os.Exit(0)
	},
}

RootCmd represents the base command when called without any subcommands

View Source
var Version string

Functions

func Check

func Check(err error)

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func KampBannerMessage

func KampBannerMessage(msg string) string

func RunRun

func RunRun(options *RunOptions) error

func RunServer

func RunServer(options *ServerOptions) error

func RunStatus

func RunStatus(options *StatusOptions) error

Types

type Options

type Options struct {
	Verbosity  int
	Dockerfile string
}

type RunOptions

type RunOptions struct {
	Options
	ImageQuery          string
	Name                string
	Command             []string
	KubernetesNamespace string
	Volume              string
}

type ServerOptions

type ServerOptions struct {
	PublicKeyPath string
	PublicKeyData []byte
	User          string
}

type StatusOptions

type StatusOptions struct {
	Options
}

Jump to

Keyboard shortcuts

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