cluster

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "cluster",
	Short: "Manage clusters",
	Long:  `start and stop clusters.`,
}
View Source
var DownCmd = &cobra.Command{
	Use:   "down",
	Short: "Stops the k3s server",
	Long:  `Stops the k3s server`,
	Run: func(cmd *cobra.Command, _ []string) {
		if err := StopK3sServer(cmd); err != nil {
			functions.PrintError(err)
			return
		}
	},
}
View Source
var UpCmd = &cobra.Command{
	Use:   "up",
	Short: "Starts the k3s server",
	Long:  `Starts the k3s server`,
	Run: func(_ *cobra.Command, _ []string) {
		if err := startK3sServer(); err != nil {
			functions.PrintError(err)
			return
		}
	},
}

Functions

func StopK3sServer

func StopK3sServer(cmd *cobra.Command) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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