command

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdCloudStart = cli.Command{
	Name:        "cloud",
	Usage:       "start agent with cloud.lodastack.com service",
	Description: "start agent client",
	Action:      runCloudStart,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "id",
			Value: "",
			Usage: "instance ID from https://cloud.lodastack.com",
		},
		cli.StringFlag{
			Name:  "token",
			Value: "",
			Usage: "token from https://cloud.lodastack.com",
		},
		cli.StringFlag{
			Name:  "cpuprofile",
			Value: "",
			Usage: "CPU pprof file",
		},
		cli.StringFlag{
			Name:  "memprofile",
			Value: "",
			Usage: "Memory pprof file",
		},
	},
}
View Source
var CmdStart = cli.Command{
	Name:        "start",
	Usage:       "start agent",
	Description: "start agent client",
	Action:      runStart,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "f",
			Value: "/etc/agent.conf",
			Usage: "default config file:/etc/agent.conf",
		},
		cli.StringFlag{
			Name:  "cpuprofile",
			Value: "",
			Usage: "CPU pprof file",
		},
		cli.StringFlag{
			Name:  "memprofile",
			Value: "",
			Usage: "Memory pprof file",
		},
	},
}
View Source
var CmdStop = cli.Command{
	Name:        "stop",
	Usage:       "stop agent",
	Description: "stop agent client",
	Action:      runStop,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "m",
			Value: "normal",
			Usage: "stop agent mode",
		},
	},
}
View Source
var CmdVersion = cli.Command{
	Name:        "version",
	Usage:       "show version",
	Description: "show version",
	Action:      runVersion,
}

Functions

func WindowsStart added in v0.2.0

func WindowsStart()

Types

This section is empty.

Jump to

Keyboard shortcuts

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