Separate nsinit main from implementation. This is done inorder to package nsinit as part of docker binary.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
This commit is contained in:
Vishnu Kannan 2014-07-01 19:51:02 +00:00
parent 77c5125e87
commit 28dadc538c
9 changed files with 16 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"
@ -19,7 +19,7 @@ func preload(context *cli.Context) error {
return nil
}
func main() {
func NsInit() {
app := cli.NewApp()
app.Name = "nsinit"
app.Version = "0.1"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"fmt"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"

7
nsinit/main/nsinit.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "github.com/docker/libcontainer/nsinit"
func main() {
nsinit.NsInit()
}

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"encoding/json"