forked from socketplane/socketplane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsocketplane.go
More file actions
34 lines (30 loc) · 725 Bytes
/
socketplane.go
File metadata and controls
34 lines (30 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"os"
"github.com/socketplane/socketplane/Godeps/_workspace/src/github.com/codegangsta/cli"
"github.com/socketplane/socketplane/daemon"
)
func main() {
d := daemon.NewDaemon()
app := cli.NewApp()
app.Name = "socketplane"
app.Usage = "linux container networking"
app.Version = "0.1.0"
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "iface",
Value: "auto",
Usage: "Name of the interface to bind to. The default is to auto select",
},
cli.BoolFlag{
Name: "bootstrap",
Usage: "Set --bootstrap for the first socketplane instance being started",
},
cli.BoolFlag{
Name: "debug",
Usage: "Provide debug level logging",
},
}
app.Action = d.Run
app.Run(os.Args)
}