
godep restore pushd $GOPATH/src/github.com/appc/spec git co master popd go get go4.org/errorutil rm -rf Godeps godep save ./... git add vendor git add -f $(git ls-files --other vendor/) git co -- Godeps/LICENSES Godeps/.license_file_state Godeps/OWNERS
31 lines
597 B
Go
31 lines
597 B
Go
package libcontainer
|
|
|
|
// NewConsole returns an initalized console that can be used within a container
|
|
func NewConsole(uid, gid int) (Console, error) {
|
|
return &windowsConsole{}, nil
|
|
}
|
|
|
|
// windowsConsole is a Windows psuedo TTY for use within a container.
|
|
type windowsConsole struct {
|
|
}
|
|
|
|
func (c *windowsConsole) Fd() uintptr {
|
|
return 0
|
|
}
|
|
|
|
func (c *windowsConsole) Path() string {
|
|
return ""
|
|
}
|
|
|
|
func (c *windowsConsole) Read(b []byte) (int, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (c *windowsConsole) Write(b []byte) (int, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (c *windowsConsole) Close() error {
|
|
return nil
|
|
}
|