client

package
v3.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPC

type RPC struct {
	Client *rpc.Client
	Name   string
}

RPC holds the state necessary for remote procedure calls.

func (*RPC) Chroot

func (t *RPC) Chroot(root string, usePivot bool) (int, error)

Chroot calls the chroot RPC using the supplied arguments.

func (*RPC) HasNamespace

func (t *RPC) HasNamespace(pid int, nstype string) (bool, error)

HasNamespace calls the HasNamespace RPC using the supplied arguments.

func (*RPC) LoopDevice

func (t *RPC) LoopDevice(image string, mode int, info loop.Info64) (int, error)

LoopDevice calls the loop device RPC using the supplied arguments.

func (*RPC) Mkdir

func (t *RPC) Mkdir(path string, perm os.FileMode) (int, error)

Mkdir calls the mkdir RPC using the supplied arguments.

func (*RPC) Mount

func (t *RPC) Mount(source string, target string, filesystem string, flags uintptr, data string) (int, error)

Mount calls tme mount RPC using the supplied arguments.

func (*RPC) SetFsID

func (t *RPC) SetFsID(uid int, gid int) (int, error)

SetFsID calls the setfsid RPC using the supplied arguments.

func (*RPC) SetHostname

func (t *RPC) SetHostname(hostname string) (int, error)

SetHostname calls the sethostname RPC using the supplied arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL