client

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 5 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) Chdir

func (t *RPC) Chdir(dir string) (int, error)

Chdir calls the chdir RPC using the supplied arguments.

func (*RPC) Chown

func (t *RPC) Chown(name string, uid int, gid int) error

Chown calls the chown RPC using the supplied arguments.

func (*RPC) Chroot

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

Chroot calls the chroot RPC using the supplied arguments.

func (*RPC) Decrypt

func (t *RPC) Decrypt(offset uint64, path string, key []byte, masterPid int) (string, error)

Decrypt calls the DeCrypt RPC using the supplied arguments.

func (*RPC) EvalRelative

func (t *RPC) EvalRelative(name string, root string) string

EvalRelative calls the evalrelative RPC using the supplied arguments.

func (*RPC) Lchown

func (t *RPC) Lchown(name string, uid int, gid int) error

Lchown calls the lchown RPC using the supplied arguments.

func (*RPC) LoopDevice

func (t *RPC) LoopDevice(image string, mode int, info unix.LoopInfo64, maxDevices int, shared bool) (int, error)

LoopDevice calls the loop device RPC using the supplied arguments.

func (*RPC) Lstat

func (t *RPC) Lstat(path string) (os.FileInfo, error)

Lstat calls the lstat RPC using the supplied arguments.

func (*RPC) Mkdir

func (t *RPC) Mkdir(path string, perm os.FileMode) 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) error

Mount calls the mount RPC using the supplied arguments.

func (*RPC) NvCCLI

func (t *RPC) NvCCLI(flags []string, rootFsPath string, userNS bool) error

NvCCLI will call nvidia-container-cli to configure GPU(s) for the container.

func (*RPC) ReadDir

func (t *RPC) ReadDir(dir string) ([]fs.DirEntry, error)

ReadDir calls the readdir RPC using the supplied arguments.

func (t *RPC) Readlink(name string) (string, error)

Readlink calls the readlink RPC using the supplied arguments.

func (*RPC) SendFuseFd

func (t *RPC) SendFuseFd(socket int, fds []int) error

SendFuseFd calls the SendFuseFd 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.

func (*RPC) Stat

func (t *RPC) Stat(path string) (os.FileInfo, error)

Stat calls the stat RPC using the supplied arguments.

func (t *RPC) Symlink(old string, new string) error

Symlink calls the mkdir RPC using the supplied arguments.

func (*RPC) Umask

func (t *RPC) Umask(mask int) int

Umask calls the umask RPC using the supplied arguments.

func (*RPC) WriteFile

func (t *RPC) WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile calls the writefile RPC using the supplied arguments.

Jump to

Keyboard shortcuts

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