cmd

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultErrorExitCode defines exit the code for failed action generally
	DefaultErrorExitCode = 1
)

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error, handleErr func(string, int))

CheckErr formats a given error as a string and calls the passed handleErr func with that string and an exit code.

func NewCmdVersion

func NewCmdVersion(out io.Writer) *cobra.Command

func NewKubeEdgeReset

func NewKubeEdgeReset(out io.Writer, reset *common.ResetOptions) *cobra.Command

NewKubeEdgeReset represents the reset command

func NewKubeedgeCommand

func NewKubeedgeCommand(in io.Reader, out, err io.Writer) *cobra.Command

NewKubeedgeCommand returns cobra.Command to run keadm commands

func RemoveContainers

func RemoveContainers(isEdgeNode bool, execer utilsexec.Interface) error

RemoveContainers removes all Kubernetes-managed containers

func RunVersion

func RunVersion(out io.Writer, cmd *cobra.Command) error

RunVersion provides the version information of keadm in format depending on arguments specified in cobra.Command.

func TearDownKubeEdge

func TearDownKubeEdge(isEdgeNode bool, kubeConfig string) error

TearDownKubeEdge will bring down either cloud or edge components, depending upon in which type of node it is executed

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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