Documentation ¶
Index ¶
- Constants
- func CheckErr(err error, handleErr func(string, int))
- func NewCmdVersion(out io.Writer) *cobra.Command
- func NewKubeEdgeReset(out io.Writer, reset *common.ResetOptions) *cobra.Command
- func NewKubeedgeCommand(in io.Reader, out, err io.Writer) *cobra.Command
- func RemoveContainers(isEdgeNode bool, execer utilsexec.Interface) error
- func RunVersion(out io.Writer, cmd *cobra.Command) error
- func TearDownKubeEdge(isEdgeNode bool, kubeConfig string) error
Constants ¶
View Source
const (
// DefaultErrorExitCode defines exit the code for failed action generally
DefaultErrorExitCode = 1
)
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶
CheckErr formats a given error as a string and calls the passed handleErr func with that string and an exit code.
func NewKubeEdgeReset ¶
NewKubeEdgeReset represents the reset command
func NewKubeedgeCommand ¶
NewKubeedgeCommand returns cobra.Command to run keadm commands
func RemoveContainers ¶
RemoveContainers removes all Kubernetes-managed containers
func RunVersion ¶
RunVersion provides the version information of keadm in format depending on arguments specified in cobra.Command.
func TearDownKubeEdge ¶
TearDownKubeEdge will bring down either cloud or edge components, depending upon in which type of node it is executed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.