Documentation ¶
Index ¶
- Constants
- Variables
- func NewCleanCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewDeployCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewMonitorCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewReloadCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewRestartCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewStartCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewStatusCommand(curveadm *cli.CurveAdm) *cobra.Command
- func NewStopCommand(curveadm *cli.CurveAdm) *cobra.Command
Constants ¶
View Source
const (
CLEAN_EXAMPLE = `` /* 283-byte string literal not displayed */
)
View Source
const (
DEPLOY_EXAMPLE = `Examples:
$ curveadm monitor deploy -c monitor.yaml # deploy monitor for current cluster`
)
Variables ¶
View Source
var ( CLEAN_PLAYBOOK_STEPS = []int{ playbook.CLEAN_MONITOR, } CLEAN_ITEMS = []string{ comm.CLEAN_ITEM_DATA, comm.CLEAN_ITEM_CONTAINER, } )
View Source
var ( GET_MONITOR_STATUS_PLAYBOOK_STEPS = []int{ playbook.INIT_MONITOR_STATUS, playbook.GET_MONITOR_STATUS, } )
View Source
var ( MONITOR_DEPLOY_STEPS = []int{ playbook.PULL_MONITOR_IMAGE, playbook.CREATE_MONITOR_CONTAINER, playbook.SYNC_MONITOR_CONFIG, playbook.CLEAN_CONFIG_CONTAINER, playbook.START_MONITOR_SERVICE, } )
View Source
var ( MONITOR_RELOAD_STEPS = []int{ playbook.CREATE_MONITOR_CONTAINER, playbook.SYNC_MONITOR_CONFIG, playbook.CLEAN_CONFIG_CONTAINER, playbook.RESTART_MONITOR_SERVICE, } )
View Source
var ( MONITOR_RESTART_STEPS = []int{ playbook.RESTART_MONITOR_SERVICE, } )
View Source
var ( MONITOR_START_STEPS = []int{ playbook.START_MONITOR_SERVICE, } )
View Source
var ( MONITOR_STOP_STEPS = []int{ playbook.STOP_MONITOR_SERVICE, } )
Functions ¶
func NewDeployCommand ¶
* Deploy Steps: * 1) pull images(curvebs, node_exporter, prometheus, grafana) * 2) create container * 3) sync config * 4) start container * 4.1) start node_exporter container * 4.2) start prometheus container * 4.3) start grafana container
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.