Documentation ¶
Index ¶
- Variables
- func Chdir(dir string) error
- func Chroot(dir string) error
- func Clone(flags uintptr) (int, error)
- func Closefd(fd uintptr) error
- func CreateMasterAndConsole() (*os.File, string, error)
- func Dup2(fd1, fd2 uintptr) error
- func Exec(cmd string, args []string, env []string) error
- func Execv(cmd string, args []string, env []string) error
- func Fork() (int, error)
- func GetLastAccess(stat *syscall.Stat_t) syscall.Timespec
- func GetLastModification(stat *syscall.Stat_t) syscall.Timespec
- func Ioctl(fd uintptr, flag, data uintptr) error
- func LUtimesNano(path string, ts []syscall.Timespec) error
- func Lgetxattr(path string, attr string) ([]byte, error)
- func Lsetxattr(path string, attr string, data []byte, flags int) error
- func Mkfifo(name string, mode uint32) error
- func Mknod(path string, mode uint32, dev int) error
- func Mount(source, target, fstype string, flags uintptr, data string) error
- func OpenPtmx() (*os.File, error)
- func OpenTerminal(name string, flag int) (*os.File, error)
- func ParentDeathSignal() error
- func Pivotroot(newroot, putold string) error
- func Ptsname(f *os.File) (string, error)
- func SetCloneFlags(cmd *exec.Cmd, flag uintptr)
- func Setctty() error
- func Setgid(gid int) error
- func Setgroups(gids []int) error
- func Sethostname(name string) error
- func Setns(fd uintptr, flags uintptr) error
- func Setresgid(rgid, egid, sgid int) error
- func Setresuid(ruid, euid, suid int) error
- func Setsid() (int, error)
- func Setuid(uid int) error
- func Umask(mask int) int
- func Unlockpt(f *os.File) error
- func Unmount(target string, flags int) error
- func Unshare(flags int) error
- func UsetCloseOnExec(fd uintptr) error
- func UtimesNano(path string, ts []syscall.Timespec) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotSupportedPlatform = errors.New("platform and architecture is not supported")
)
Functions ¶
func CreateMasterAndConsole ¶
CreateMasterAndConsole will open /dev/ptmx on the host and retreive the pts name for use as the pty slave inside the container
func OpenTerminal ¶
OpenTerminal is a clone of os.OpenFile without the O_CLOEXEC used to open the pty slave inside the container namespace
func ParentDeathSignal ¶
func ParentDeathSignal() error
func SetCloneFlags ¶
func Sethostname ¶
func Unlockpt ¶
Unlockpt unlocks the slave pseudoterminal device corresponding to the master pseudoterminal referred to by f. Unlockpt should be called before opening the slave side of a pseudoterminal.
func UsetCloseOnExec ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.