server

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:   "server",
	Usage:  "starts the ymir server daemon",
	Action: server,
	Flags: []cli.Flag{
		cli.BoolFlag{
			EnvVar: "DEBUG",
			Name:   "debug",
			Usage:  "start the server in debug mode",
		},
		cli.StringFlag{
			EnvVar: "SERVER_ADDR",
			Name:   "server-addr",
			Usage:  "server address",
			Value:  ":5600",
		},
		cli.StringFlag{
			EnvVar: "KUBERNETE_ADDR",
			Name:   "kubernete-addr",
			Usage:  "kubernete addr",
			Value:  "https://kubernetes.default",
		}, cli.StringFlag{
			EnvVar: "JOB_NAMESPACE",
			Name:   "job-namespace",
			Usage:  "job namespace",
			Value:  "ymir",
		}, cli.DurationFlag{
			EnvVar: "TIMEOUT_FOR_START",
			Name:   "timeout-for-start",
			Usage:  "timeout for start",
			Value:  time.Minute * 1,
		},
		cli.StringFlag{
			EnvVar: "AGENT_IMAGE",
			Name:   "agent-image",
			Usage:  "agent image",
			Value:  "hub.c.163.com/u2takey/ymir:v-agent-test",
		},
	},
}

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