cmd

package
v0.0.0-...-4ffe290 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KuberCmd = &cobra.Command{

	Use:   "kuber",
	Short: "Kuber, Multicloud Kubernetes",
	Long:  `Create and operate Kubernetes clusters.`,
}

KuberCmd represents the base command when called without any subcommands

View Source
var ServerCmd = &cobra.Command{
	Use:   "server",
	Short: "Runs the Kuber Server",
	Long:  `This subcommand runs the Kuber Server`,
	Run: func(cmd *cobra.Command, args []string) {
		serve()
	},
}

Functions

func ApplyCmd

func ApplyCmd() *cobra.Command

ApplyCmd represents the apply command

func CreateCmd

func CreateCmd() *cobra.Command

CreateCmd represents create command

func DeleteCmd

func DeleteCmd() *cobra.Command

DeleteCmd represents the delete command

func Execute

func Execute()

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

func RunApply

func RunApply(options *ApplyOptions) error

func RunCreate

func RunCreate(options *CreateOptions) error

RunCreate is the starting point when a user runs the create command.

func RunDelete

func RunDelete(options *DeleteOptions) error

Types

type ApplyOptions

type ApplyOptions struct {
	kc.Options
}

type CreateOptions

type CreateOptions struct {
	kc.Options
	Profile string
	Zone    string
}

type DeleteOptions

type DeleteOptions struct {
	kc.Options
	Purge bool
}

Jump to

Keyboard shortcuts

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