app

package
v4.2.532+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstallCmd = &cobra.Command{
		Use:   "install",
		Short: "install prometheus rules",
		Long:  "",
		Run: func(cmd *cobra.Command, args []string) {
			initK8SClient()
			initConfig()
			for {
				if err := install(); err != nil {
					scope.Errorf("install rules failed: %s", err.Error())
					time.Sleep(time.Duration(1) * time.Second)
				} else {
					break
				}
			}
		},
	}
)
View Source
var RootCmd = &cobra.Command{
	Use:   "job",
	Short: "alameda job",
	Long:  "",
}
View Source
var (
	UninstallCmd = &cobra.Command{
		Use:   "uninstall",
		Short: "uninstall prometheus rules",
		Long:  "",
		Run: func(cmd *cobra.Command, args []string) {
			scope.Info("uninstall")
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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