agent

package
v0.0.0-...-0811b64 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agent = cli.Command{
	Name:  "agent",
	Usage: "Start agent",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:   "api-addr",
			Value:  "http://127.0.0.1:3003/api/",
			EnvVar: "BEARDED_API_ADDR",
			Usage:  "http address for connection to the api server",
		},
		cli.StringFlag{
			Name:   "name",
			EnvVar: "BEARDED_AGENT_NAME",
			Usage:  "Unique agent name, set to fqdn if empty",
		},
		cli.StringFlag{
			Name:   "token",
			Value:  "agent-token",
			EnvVar: "BEARDED_AGENT_TOKEN",
			Usage:  "Token, used for request",
		},
	},
	Action: takeApi(agentAction),
}

Functions

func ServeAgent

func ServeAgent(agentName string, api *client.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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