cmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.1.5"

Variables

View Source
var CreateCmd = &cobra.Command{
	Use: "create",
}
View Source
var DeleteCmd = &cobra.Command{
	Use: "delete",
}
View Source
var RootCmd = &cobra.Command{
	Use:   "azk",
	Short: "azure cluster management",
	Long:  `Simple kubernetes azure cluster manager`,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		cmd.Flags().Set("logtostderr", "true")
	},
	Run: func(cmd *cobra.Command, args []string) {

		cmd.Help()
	},
}
View Source
var ScaleCmd = &cobra.Command{
	Use: "scale",
}
View Source
var UpgradeCmd = &cobra.Command{
	Use: "upgrade",
}
View Source
var VersionCmd = &cobra.Command{
	Args:  cobra.NoArgs,
	Use:   "version",
	Short: "prints the version",
	Long:  "prints the version",
	RunE: func(cmd *cobra.Command, args []string) error {
		println(Version)
		return nil
	},
}
View Source
var WebCmd = &cobra.Command{
	Use:   "web",
	Short: "dashboard for target cluster",
	Long:  `dashboard for target cluster`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := RunWeb(); err != nil {
			log.Error(err, "failed to create web instance")
			os.Exit(1)
		}
	},
}

Functions

func Events added in v0.1.3

func Events(w http.ResponseWriter, r *http.Request)

Events gets all the events from bootstrap kubernetes cluster for now

func Execute

func Execute()

func FileServer added in v0.1.3

func FileServer(r chi.Router, path string, root http.FileSystem)

FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem.

func RunWeb added in v0.1.3

func RunWeb() error

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