rpc

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirEntry added in v1.2.0

func DirEntry(en fs.DirEntry) (fs.DirEntry, error)

DirEntry returns DirEntry interface to be passed as RPC argument.

func FileInfo

func FileInfo(fi os.FileInfo) os.FileInfo

FileInfo returns FileInfo interface to be passed as RPC argument.

Types

type AccessArgs added in v1.1.0

type AccessArgs struct {
	Path string
	Mode uint32
}

AccessArgs defines the arguments to access.

type AccessReply added in v1.1.0

type AccessReply struct {
	Err error
}

AccessReply defines the reply for access.

type ChdirArgs

type ChdirArgs struct {
	Dir string
}

ChdirArgs defines the arguments to chdir.

type ChownArgs

type ChownArgs struct {
	Name string
	UID  int
	GID  int
}

ChownArgs defines the arguments to chown/lchown.

type ChrootArgs

type ChrootArgs struct {
	Root   string
	Method string
}

ChrootArgs defines the arguments to chroot.

type CryptArgs

type CryptArgs struct {
	Offset    uint64
	Loopdev   string
	Key       []byte
	MasterPid int
}

CryptArgs defines the arguments to mount.

type EvalRelativeArgs

type EvalRelativeArgs struct {
	Name string
	Root string
}

EvalRelativeArgs defines the arguments to evalrelative.

type HostnameArgs

type HostnameArgs struct {
	Hostname string
}

HostnameArgs defines the arguments to sethostname.

type LoopArgs

type LoopArgs struct {
	Image      string
	Mode       int
	Info       unix.LoopInfo64
	MaxDevices int
	Shared     bool
}

LoopArgs defines the arguments to create a loop device.

type MkdirArgs

type MkdirArgs struct {
	Path string
	Perm os.FileMode
}

MkdirArgs defines the arguments to mkdir.

type MountArgs

type MountArgs struct {
	Source     string
	Target     string
	Filesystem string
	Mountflags uintptr
	Data       string
}

MountArgs defines the arguments to mount.

type NvCCLIArgs

type NvCCLIArgs struct {
	Flags      []string
	RootFsPath string
	UserNS     bool
}

NvCCLIArgs defines the arguments to NvCCLI.

type OpenSendFuseFdArgs

type OpenSendFuseFdArgs struct {
	Socket int
}

OpenSendFuseFdArgs defines the arguments to open and send a fuse file descriptor.

type ReadDirArgs

type ReadDirArgs struct {
	Dir string
}

ReadDirArgs defines the arguments to readdir.

type ReadDirReply

type ReadDirReply struct {
	Files []fs.DirEntry
}

ReadDirReply defines the reply for readdir.

type ReadlinkArgs

type ReadlinkArgs struct {
	Name string
}

ReadlinkArgs defines the arguments to readlink.

type SendFuseFdArgs

type SendFuseFdArgs struct {
	Socket int
	Fds    []int
}

SendFuseFdArgs defines the arguments to send fuse file descriptor.

type StatArgs

type StatArgs struct {
	Path string
}

StatArgs defines the arguments to stat.

type StatReply

type StatReply struct {
	Fi  os.FileInfo
	Err error
}

StatReply defines the reply for stat.

type SymlinkArgs

type SymlinkArgs struct {
	Old string
	New string
}

SymlinkArgs defines the arguments to symlink.

type UmaskArgs

type UmaskArgs struct {
	Mask int
}

UmaskArgs defines the arguments to umask.

type UnmountArgs added in v1.3.0

type UnmountArgs struct {
	Target       string
	Unmountflags int
}

UnmountArgs defines the arguments to unmount.

type WriteFileArgs

type WriteFileArgs struct {
	Filename string
	Data     []byte
	Perm     os.FileMode
}

WriteFileArgs defines the arguments to writefile.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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