console_freebsd.go 386 B

1234567891011121314
  1. // +build freebsd
  2. package libcontainer
  3. import (
  4. "errors"
  5. )
  6. // NewConsole returns an initalized console that can be used within a container by copying bytes
  7. // from the master side to the slave that is attached as the tty for the container's init process.
  8. func NewConsole(uid, gid int) (Console, error) {
  9. return nil, errors.New("libcontainer console is not supported on FreeBSD")
  10. }