agent

package
v0.0.0-...-dd14e6e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:   "agent",
	Usage:  "starts the ymir agent daemon",
	Action: server,
	Flags: []cli.Flag{
		cli.BoolFlag{
			EnvVar: "DEBUG",
			Name:   "debug",
			Usage:  "start the agent in debug mode",
		},
		cli.StringFlag{
			EnvVar: "MASTER_ADDR",
			Name:   "master-addr",
			Usage:  "master addr",
			Value:  "http://ymir-server:5600",
		},
		cli.DurationFlag{
			EnvVar: "DEFAULT_TIMEOUT",
			Name:   "default-timeout",
			Usage:  "default timeout of task",
			Value:  5 * time.Minute,
		},
		cli.StringFlag{
			EnvVar: "JOB_NAME",
			Name:   "job-name",
			Usage:  "job name",
		},
		cli.StringFlag{
			EnvVar: "WORK_ID",
			Name:   "work-id",
			Usage:  "work id",
		},
		cli.StringFlag{
			EnvVar: "INSTANCE_ID",
			Name:   "instance-id",
			Usage:  "instance id",
		},
		cli.StringFlag{
			EnvVar: "NODE_NAME",
			Name:   "node-name",
			Usage:  "node name",
		},
	},
}

Command exports the server command.

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