Beispiel #1
0
class RPCBPROG_3_SERVER(transport.Prog):
    prog = 100000
    vers = 3
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('SET', rpchelp.r_bool, [RPCB]),
        2: rpchelp.Proc('UNSET', rpchelp.r_bool, [RPCB]),
        3: rpchelp.Proc('GETADDR', rpchelp.r_string, [RPCB]),
        4: rpchelp.Proc('DUMP', RPCBList, []),
        5: rpchelp.Proc('CALLIT', RPCBRmtcallRes, [RPCBRmtcallArgs]),
        6: rpchelp.Proc('GETTIME', rpchelp.r_uint, []),
        7: rpchelp.Proc('UADDR2TADDR', Netbuf, [rpchelp.r_string]),
        8: rpchelp.Proc('TADDR2UADDR', rpchelp.r_string, [Netbuf]),
    }

    @abc.abstractmethod
    async def NULL(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def SET(self, call_ctx: transport.CallContext, arg_0: RPCB) \
            -> transport.ProcRet[bool]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def UNSET(self, call_ctx: transport.CallContext, arg_0: RPCB) \
            -> transport.ProcRet[bool]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def GETADDR(self, call_ctx: transport.CallContext, arg_0: RPCB) \
            -> transport.ProcRet[bytes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def DUMP(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[typing.List[RPCB]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def CALLIT(self, call_ctx: transport.CallContext, arg_0: RPCBRmtcallArgs) \
            -> transport.ProcRet[RPCBRmtcallRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def GETTIME(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[int]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def UADDR2TADDR(self, call_ctx: transport.CallContext, arg_0: bytes) \
            -> transport.ProcRet[Netbuf]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def TADDR2UADDR(self, call_ctx: transport.CallContext, arg_0: Netbuf) \
            -> transport.ProcRet[bytes]:
        raise NotImplementedError()
Beispiel #2
0
class MOUNTPROG_1_CLIENT(client.BaseClient):
    prog = 100005
    vers = 1
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('MNT', FHStatus, [DirPath]),
        2: rpchelp.Proc('DUMP', MountList, []),
        3: rpchelp.Proc('UMNT', rpchelp.r_void, [DirPath]),
        4: rpchelp.Proc('UMNTALL', rpchelp.r_void, []),
        5: rpchelp.Proc('EXPORT', ExportList, []),
    }

    async def NULL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(0, )

    async def MNT(self, arg_0: bytes) -> client.UnpackedRPCMsg[FHStatus]:
        return await self.send_call(1, arg_0)

    async def DUMP(self) -> client.UnpackedRPCMsg[typing.List[MountList]]:
        return await self.send_call(2, )

    async def UMNT(self, arg_0: bytes) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(3, arg_0)

    async def UMNTALL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(4, )

    async def EXPORT(self) -> client.UnpackedRPCMsg[typing.List[ExportList]]:
        return await self.send_call(5, )
class PMAP_PROG_2_CLIENT(client.BaseClient):
    prog = 100000
    vers = 2
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('SET', rpchelp.r_bool, [Mapping]),
        2: rpchelp.Proc('UNSET', rpchelp.r_bool, [Mapping]),
        3: rpchelp.Proc('GETPORT', rpchelp.r_uint, [Mapping]),
        4: rpchelp.Proc('DUMP', PmapList, []),
        5: rpchelp.Proc('CALLIT', CallResult, [CallArgs]),
    }

    async def NULL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(0, )

    async def SET(self, arg_0: Mapping) -> client.UnpackedRPCMsg[bool]:
        return await self.send_call(1, arg_0)

    async def UNSET(self, arg_0: Mapping) -> client.UnpackedRPCMsg[bool]:
        return await self.send_call(2, arg_0)

    async def GETPORT(self, arg_0: Mapping) -> client.UnpackedRPCMsg[int]:
        return await self.send_call(3, arg_0)

    async def DUMP(self) -> client.UnpackedRPCMsg[typing.List[Mapping]]:
        return await self.send_call(4, )

    async def CALLIT(self,
                     arg_0: CallArgs) -> client.UnpackedRPCMsg[CallResult]:
        return await self.send_call(5, arg_0)
Beispiel #4
0
class RPCBPROG_3_CLIENT(client.BaseClient):
    prog = 100000
    vers = 3
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('SET', rpchelp.r_bool, [RPCB]),
        2: rpchelp.Proc('UNSET', rpchelp.r_bool, [RPCB]),
        3: rpchelp.Proc('GETADDR', rpchelp.r_string, [RPCB]),
        4: rpchelp.Proc('DUMP', RPCBList, []),
        5: rpchelp.Proc('CALLIT', RPCBRmtcallRes, [RPCBRmtcallArgs]),
        6: rpchelp.Proc('GETTIME', rpchelp.r_uint, []),
        7: rpchelp.Proc('UADDR2TADDR', Netbuf, [rpchelp.r_string]),
        8: rpchelp.Proc('TADDR2UADDR', rpchelp.r_string, [Netbuf]),
    }

    async def NULL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(0, )

    async def SET(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bool]:
        return await self.send_call(1, arg_0)

    async def UNSET(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bool]:
        return await self.send_call(2, arg_0)

    async def GETADDR(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bytes]:
        return await self.send_call(3, arg_0)

    async def DUMP(self) -> client.UnpackedRPCMsg[typing.List[RPCB]]:
        return await self.send_call(4, )

    async def CALLIT(
            self,
            arg_0: RPCBRmtcallArgs) -> client.UnpackedRPCMsg[RPCBRmtcallRes]:
        return await self.send_call(5, arg_0)

    async def GETTIME(self) -> client.UnpackedRPCMsg[int]:
        return await self.send_call(6, )

    async def UADDR2TADDR(self, arg_0: bytes) -> client.UnpackedRPCMsg[Netbuf]:
        return await self.send_call(7, arg_0)

    async def TADDR2UADDR(self, arg_0: Netbuf) -> client.UnpackedRPCMsg[bytes]:
        return await self.send_call(8, arg_0)
Beispiel #5
0
class MOUNTPROG_1_SERVER(transport.Prog):
    prog = 100005
    vers = 1
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('MNT', FHStatus, [DirPath]),
        2: rpchelp.Proc('DUMP', MountList, []),
        3: rpchelp.Proc('UMNT', rpchelp.r_void, [DirPath]),
        4: rpchelp.Proc('UMNTALL', rpchelp.r_void, []),
        5: rpchelp.Proc('EXPORT', ExportList, []),
    }

    @abc.abstractmethod
    async def NULL(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def MNT(self, call_ctx: transport.CallContext, arg_0: bytes) \
            -> transport.ProcRet[FHStatus]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def DUMP(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[typing.List[MountList]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def UMNT(self, call_ctx: transport.CallContext, arg_0: bytes) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def UMNTALL(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def EXPORT(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[typing.List[ExportList]]:
        raise NotImplementedError()
class PMAP_PROG_2_SERVER(transport.Prog):
    prog = 100000
    vers = 2
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('SET', rpchelp.r_bool, [Mapping]),
        2: rpchelp.Proc('UNSET', rpchelp.r_bool, [Mapping]),
        3: rpchelp.Proc('GETPORT', rpchelp.r_uint, [Mapping]),
        4: rpchelp.Proc('DUMP', PmapList, []),
        5: rpchelp.Proc('CALLIT', CallResult, [CallArgs]),
    }

    @abc.abstractmethod
    async def NULL(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def SET(self, call_ctx: transport.CallContext, arg_0: Mapping) \
            -> transport.ProcRet[bool]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def UNSET(self, call_ctx: transport.CallContext, arg_0: Mapping) \
            -> transport.ProcRet[bool]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def GETPORT(self, call_ctx: transport.CallContext, arg_0: Mapping) \
            -> transport.ProcRet[int]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def DUMP(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[typing.List[Mapping]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def CALLIT(self, call_ctx: transport.CallContext, arg_0: CallArgs) \
            -> transport.ProcRet[CallResult]:
        raise NotImplementedError()
Beispiel #7
0
class NFS_PROGRAM_2_CLIENT(client.BaseClient):
    prog = 100003
    vers = 2
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('GETATTR', AttrStat, [FHandle]),
        2: rpchelp.Proc('SETATTR', AttrStat, [SattrArgs]),
        3: rpchelp.Proc('ROOT', rpchelp.r_void, []),
        4: rpchelp.Proc('LOOKUP', DiropRes, [DiropArgs]),
        5: rpchelp.Proc('READLINK', ReadlinkRes, [FHandle]),
        6: rpchelp.Proc('READ', ReadRes, [ReadArgs]),
        7: rpchelp.Proc('WRITECACHE', rpchelp.r_void, []),
        8: rpchelp.Proc('WRITE', AttrStat, [WriteArgs]),
        9: rpchelp.Proc('CREATE', DiropRes, [CreateArgs]),
        10: rpchelp.Proc('REMOVE', Stat, [DiropArgs]),
        11: rpchelp.Proc('RENAME', Stat, [RenameArgs]),
        12: rpchelp.Proc('LINK', Stat, [LinkArgs]),
        13: rpchelp.Proc('SYMLINK', Stat, [SymlinkArgs]),
        14: rpchelp.Proc('MKDIR', DiropRes, [CreateArgs]),
        15: rpchelp.Proc('RMDIR', Stat, [DiropArgs]),
        16: rpchelp.Proc('READDIR', ReaddirRes, [ReaddirArgs]),
        17: rpchelp.Proc('STATFS', StatfsRes, [FHandle]),
    }

    async def NULL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(0, )

    async def GETATTR(self, arg_0: bytes) -> client.UnpackedRPCMsg[AttrStat]:
        return await self.send_call(1, arg_0)

    async def SETATTR(self,
                      arg_0: SattrArgs) -> client.UnpackedRPCMsg[AttrStat]:
        return await self.send_call(2, arg_0)

    async def ROOT(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(3, )

    async def LOOKUP(self,
                     arg_0: DiropArgs) -> client.UnpackedRPCMsg[DiropRes]:
        return await self.send_call(4, arg_0)

    async def READLINK(self,
                       arg_0: bytes) -> client.UnpackedRPCMsg[ReadlinkRes]:
        return await self.send_call(5, arg_0)

    async def READ(self, arg_0: ReadArgs) -> client.UnpackedRPCMsg[ReadRes]:
        return await self.send_call(6, arg_0)

    async def WRITECACHE(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(7, )

    async def WRITE(self, arg_0: WriteArgs) -> client.UnpackedRPCMsg[AttrStat]:
        return await self.send_call(8, arg_0)

    async def CREATE(self,
                     arg_0: CreateArgs) -> client.UnpackedRPCMsg[DiropRes]:
        return await self.send_call(9, arg_0)

    async def REMOVE(
            self, arg_0: DiropArgs
    ) -> client.UnpackedRPCMsg[typing.Union[Stat, int]]:
        return await self.send_call(10, arg_0)

    async def RENAME(
            self, arg_0: RenameArgs
    ) -> client.UnpackedRPCMsg[typing.Union[Stat, int]]:
        return await self.send_call(11, arg_0)

    async def LINK(
            self,
            arg_0: LinkArgs) -> client.UnpackedRPCMsg[typing.Union[Stat, int]]:
        return await self.send_call(12, arg_0)

    async def SYMLINK(
            self, arg_0: SymlinkArgs
    ) -> client.UnpackedRPCMsg[typing.Union[Stat, int]]:
        return await self.send_call(13, arg_0)

    async def MKDIR(self,
                    arg_0: CreateArgs) -> client.UnpackedRPCMsg[DiropRes]:
        return await self.send_call(14, arg_0)

    async def RMDIR(
            self, arg_0: DiropArgs
    ) -> client.UnpackedRPCMsg[typing.Union[Stat, int]]:
        return await self.send_call(15, arg_0)

    async def READDIR(self,
                      arg_0: ReaddirArgs) -> client.UnpackedRPCMsg[ReaddirRes]:
        return await self.send_call(16, arg_0)

    async def STATFS(self, arg_0: bytes) -> client.UnpackedRPCMsg[StatfsRes]:
        return await self.send_call(17, arg_0)
Beispiel #8
0
class NFS_PROGRAM_2_SERVER(transport.Prog):
    prog = 100003
    vers = 2
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('GETATTR', AttrStat, [FHandle]),
        2: rpchelp.Proc('SETATTR', AttrStat, [SattrArgs]),
        3: rpchelp.Proc('ROOT', rpchelp.r_void, []),
        4: rpchelp.Proc('LOOKUP', DiropRes, [DiropArgs]),
        5: rpchelp.Proc('READLINK', ReadlinkRes, [FHandle]),
        6: rpchelp.Proc('READ', ReadRes, [ReadArgs]),
        7: rpchelp.Proc('WRITECACHE', rpchelp.r_void, []),
        8: rpchelp.Proc('WRITE', AttrStat, [WriteArgs]),
        9: rpchelp.Proc('CREATE', DiropRes, [CreateArgs]),
        10: rpchelp.Proc('REMOVE', Stat, [DiropArgs]),
        11: rpchelp.Proc('RENAME', Stat, [RenameArgs]),
        12: rpchelp.Proc('LINK', Stat, [LinkArgs]),
        13: rpchelp.Proc('SYMLINK', Stat, [SymlinkArgs]),
        14: rpchelp.Proc('MKDIR', DiropRes, [CreateArgs]),
        15: rpchelp.Proc('RMDIR', Stat, [DiropArgs]),
        16: rpchelp.Proc('READDIR', ReaddirRes, [ReaddirArgs]),
        17: rpchelp.Proc('STATFS', StatfsRes, [FHandle]),
    }

    @abc.abstractmethod
    async def NULL(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def GETATTR(self, call_ctx: transport.CallContext, arg_0: bytes) \
            -> transport.ProcRet[AttrStat]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def SETATTR(self, call_ctx: transport.CallContext, arg_0: SattrArgs) \
            -> transport.ProcRet[AttrStat]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def ROOT(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def LOOKUP(self, call_ctx: transport.CallContext, arg_0: DiropArgs) \
            -> transport.ProcRet[DiropRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READLINK(self, call_ctx: transport.CallContext, arg_0: bytes) \
            -> transport.ProcRet[ReadlinkRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READ(self, call_ctx: transport.CallContext, arg_0: ReadArgs) \
            -> transport.ProcRet[ReadRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def WRITECACHE(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def WRITE(self, call_ctx: transport.CallContext, arg_0: WriteArgs) \
            -> transport.ProcRet[AttrStat]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def CREATE(self, call_ctx: transport.CallContext, arg_0: CreateArgs) \
            -> transport.ProcRet[DiropRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def REMOVE(self, call_ctx: transport.CallContext, arg_0: DiropArgs) \
            -> transport.ProcRet[typing.Union[Stat, int]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def RENAME(self, call_ctx: transport.CallContext, arg_0: RenameArgs) \
            -> transport.ProcRet[typing.Union[Stat, int]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def LINK(self, call_ctx: transport.CallContext, arg_0: LinkArgs) \
            -> transport.ProcRet[typing.Union[Stat, int]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def SYMLINK(self, call_ctx: transport.CallContext, arg_0: SymlinkArgs) \
            -> transport.ProcRet[typing.Union[Stat, int]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def MKDIR(self, call_ctx: transport.CallContext, arg_0: CreateArgs) \
            -> transport.ProcRet[DiropRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def RMDIR(self, call_ctx: transport.CallContext, arg_0: DiropArgs) \
            -> transport.ProcRet[typing.Union[Stat, int]]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READDIR(self, call_ctx: transport.CallContext, arg_0: ReaddirArgs) \
            -> transport.ProcRet[ReaddirRes]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def STATFS(self, call_ctx: transport.CallContext, arg_0: bytes) \
            -> transport.ProcRet[StatfsRes]:
        raise NotImplementedError()
Beispiel #9
0
class RPCBPROG_4_CLIENT(client.BaseClient):
    prog = 100000
    vers = 4
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('SET', rpchelp.r_bool, [RPCB]),
        2: rpchelp.Proc('UNSET', rpchelp.r_bool, [RPCB]),
        3: rpchelp.Proc('GETADDR', rpchelp.r_string, [RPCB]),
        4: rpchelp.Proc('DUMP', RPCBList, []),
        5: rpchelp.Proc('BCAST', RPCBRmtcallRes, [RPCBRmtcallArgs]),
        6: rpchelp.Proc('GETTIME', rpchelp.r_uint, []),
        7: rpchelp.Proc('UADDR2TADDR', Netbuf, [rpchelp.r_string]),
        8: rpchelp.Proc('TADDR2UADDR', rpchelp.r_string, [Netbuf]),
        9: rpchelp.Proc('GETVERSADDR', rpchelp.r_string, [RPCB]),
        10: rpchelp.Proc('INDIRECT', RPCBRmtcallRes, [RPCBRmtcallArgs]),
        11: rpchelp.Proc('GETADDRLIST', RPCBEntryList, [RPCB]),
        12: rpchelp.Proc('GETSTAT', RPCBStatByvers, []),
    }

    async def NULL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(0, )

    async def SET(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bool]:
        return await self.send_call(1, arg_0)

    async def UNSET(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bool]:
        return await self.send_call(2, arg_0)

    async def GETADDR(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bytes]:
        return await self.send_call(3, arg_0)

    async def DUMP(self) -> client.UnpackedRPCMsg[typing.List[RPCB]]:
        return await self.send_call(4, )

    async def BCAST(
            self,
            arg_0: RPCBRmtcallArgs) -> client.UnpackedRPCMsg[RPCBRmtcallRes]:
        return await self.send_call(5, arg_0)

    async def GETTIME(self) -> client.UnpackedRPCMsg[int]:
        return await self.send_call(6, )

    async def UADDR2TADDR(self, arg_0: bytes) -> client.UnpackedRPCMsg[Netbuf]:
        return await self.send_call(7, arg_0)

    async def TADDR2UADDR(self, arg_0: Netbuf) -> client.UnpackedRPCMsg[bytes]:
        return await self.send_call(8, arg_0)

    async def GETVERSADDR(self, arg_0: RPCB) -> client.UnpackedRPCMsg[bytes]:
        return await self.send_call(9, arg_0)

    async def INDIRECT(
            self,
            arg_0: RPCBRmtcallArgs) -> client.UnpackedRPCMsg[RPCBRmtcallRes]:
        return await self.send_call(10, arg_0)

    async def GETADDRLIST(
            self,
            arg_0: RPCB) -> client.UnpackedRPCMsg[typing.List[RPCBEntry]]:
        return await self.send_call(11, arg_0)

    async def GETSTAT(self) -> client.UnpackedRPCMsg[typing.List[RPCBStat]]:
        return await self.send_call(12, )
Beispiel #10
0
class NFS_PROGRAM_3_SERVER(transport.Prog):
    prog = 100003
    vers = 3
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('GETATTR', GETATTR3Res, [GETATTR3Args]),
        2: rpchelp.Proc('SETATTR', SETATTR3Res, [SETATTR3Args]),
        3: rpchelp.Proc('LOOKUP', LOOKUP3Res, [LOOKUP3Args]),
        4: rpchelp.Proc('ACCESS', ACCESS3Res, [ACCESS3Args]),
        5: rpchelp.Proc('READLINK', READLINK3Res, [READLINK3Args]),
        6: rpchelp.Proc('READ', READ3Res, [READ3Args]),
        7: rpchelp.Proc('WRITE', WRITE3Res, [WRITE3Args]),
        8: rpchelp.Proc('CREATE', CREATE3Res, [CREATE3Args]),
        9: rpchelp.Proc('MKDIR', MKDIR3Res, [MKDIR3Args]),
        10: rpchelp.Proc('SYMLINK', SYMLINK3Res, [SYMLINK3Args]),
        11: rpchelp.Proc('MKNOD', MKNOD3Res, [MKNOD3Args]),
        12: rpchelp.Proc('REMOVE', REMOVE3Res, [REMOVE3Args]),
        13: rpchelp.Proc('RMDIR', RMDIR3Res, [RMDIR3Args]),
        14: rpchelp.Proc('RENAME', RENAME3Res, [RENAME3Args]),
        15: rpchelp.Proc('LINK', LINK3Res, [LINK3Args]),
        16: rpchelp.Proc('READDIR', READDIR3Res, [READDIR3Args]),
        17: rpchelp.Proc('READDIRPLUS', READDIRPLUS3Res, [READDIRPLUS3Args]),
        18: rpchelp.Proc('FSSTAT', FSSTAT3Res, [FSSTAT3Args]),
        19: rpchelp.Proc('FSINFO', FSINFO3Res, [FSINFO3Args]),
        20: rpchelp.Proc('PATHCONF', PATHCONF3Res, [PATHCONF3Args]),
        21: rpchelp.Proc('COMMIT', COMMIT3Res, [COMMIT3Args]),
    }

    @abc.abstractmethod
    async def NULL(self, call_ctx: transport.CallContext) \
            -> transport.ProcRet[None]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def GETATTR(self, call_ctx: transport.CallContext, arg_0: GETATTR3Args) \
            -> transport.ProcRet[GETATTR3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def SETATTR(self, call_ctx: transport.CallContext, arg_0: SETATTR3Args) \
            -> transport.ProcRet[SETATTR3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def LOOKUP(self, call_ctx: transport.CallContext, arg_0: LOOKUP3Args) \
            -> transport.ProcRet[LOOKUP3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def ACCESS(self, call_ctx: transport.CallContext, arg_0: ACCESS3Args) \
            -> transport.ProcRet[ACCESS3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READLINK(self, call_ctx: transport.CallContext, arg_0: READLINK3Args) \
            -> transport.ProcRet[READLINK3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READ(self, call_ctx: transport.CallContext, arg_0: READ3Args) \
            -> transport.ProcRet[READ3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def WRITE(self, call_ctx: transport.CallContext, arg_0: WRITE3Args) \
            -> transport.ProcRet[WRITE3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def CREATE(self, call_ctx: transport.CallContext, arg_0: CREATE3Args) \
            -> transport.ProcRet[CREATE3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def MKDIR(self, call_ctx: transport.CallContext, arg_0: MKDIR3Args) \
            -> transport.ProcRet[MKDIR3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def SYMLINK(self, call_ctx: transport.CallContext, arg_0: SYMLINK3Args) \
            -> transport.ProcRet[SYMLINK3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def MKNOD(self, call_ctx: transport.CallContext, arg_0: MKNOD3Args) \
            -> transport.ProcRet[MKNOD3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def REMOVE(self, call_ctx: transport.CallContext, arg_0: REMOVE3Args) \
            -> transport.ProcRet[REMOVE3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def RMDIR(self, call_ctx: transport.CallContext, arg_0: RMDIR3Args) \
            -> transport.ProcRet[RMDIR3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def RENAME(self, call_ctx: transport.CallContext, arg_0: RENAME3Args) \
            -> transport.ProcRet[RENAME3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def LINK(self, call_ctx: transport.CallContext, arg_0: LINK3Args) \
            -> transport.ProcRet[LINK3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READDIR(self, call_ctx: transport.CallContext, arg_0: READDIR3Args) \
            -> transport.ProcRet[READDIR3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def READDIRPLUS(self, call_ctx: transport.CallContext, arg_0: READDIRPLUS3Args) \
            -> transport.ProcRet[READDIRPLUS3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def FSSTAT(self, call_ctx: transport.CallContext, arg_0: FSSTAT3Args) \
            -> transport.ProcRet[FSSTAT3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def FSINFO(self, call_ctx: transport.CallContext, arg_0: FSINFO3Args) \
            -> transport.ProcRet[FSINFO3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def PATHCONF(self, call_ctx: transport.CallContext, arg_0: PATHCONF3Args) \
            -> transport.ProcRet[PATHCONF3Res]:
        raise NotImplementedError()

    @abc.abstractmethod
    async def COMMIT(self, call_ctx: transport.CallContext, arg_0: COMMIT3Args) \
            -> transport.ProcRet[COMMIT3Res]:
        raise NotImplementedError()
Beispiel #11
0
class NFS_PROGRAM_3_CLIENT(client.BaseClient):
    prog = 100003
    vers = 3
    procs = {
        0: rpchelp.Proc('NULL', rpchelp.r_void, []),
        1: rpchelp.Proc('GETATTR', GETATTR3Res, [GETATTR3Args]),
        2: rpchelp.Proc('SETATTR', SETATTR3Res, [SETATTR3Args]),
        3: rpchelp.Proc('LOOKUP', LOOKUP3Res, [LOOKUP3Args]),
        4: rpchelp.Proc('ACCESS', ACCESS3Res, [ACCESS3Args]),
        5: rpchelp.Proc('READLINK', READLINK3Res, [READLINK3Args]),
        6: rpchelp.Proc('READ', READ3Res, [READ3Args]),
        7: rpchelp.Proc('WRITE', WRITE3Res, [WRITE3Args]),
        8: rpchelp.Proc('CREATE', CREATE3Res, [CREATE3Args]),
        9: rpchelp.Proc('MKDIR', MKDIR3Res, [MKDIR3Args]),
        10: rpchelp.Proc('SYMLINK', SYMLINK3Res, [SYMLINK3Args]),
        11: rpchelp.Proc('MKNOD', MKNOD3Res, [MKNOD3Args]),
        12: rpchelp.Proc('REMOVE', REMOVE3Res, [REMOVE3Args]),
        13: rpchelp.Proc('RMDIR', RMDIR3Res, [RMDIR3Args]),
        14: rpchelp.Proc('RENAME', RENAME3Res, [RENAME3Args]),
        15: rpchelp.Proc('LINK', LINK3Res, [LINK3Args]),
        16: rpchelp.Proc('READDIR', READDIR3Res, [READDIR3Args]),
        17: rpchelp.Proc('READDIRPLUS', READDIRPLUS3Res, [READDIRPLUS3Args]),
        18: rpchelp.Proc('FSSTAT', FSSTAT3Res, [FSSTAT3Args]),
        19: rpchelp.Proc('FSINFO', FSINFO3Res, [FSINFO3Args]),
        20: rpchelp.Proc('PATHCONF', PATHCONF3Res, [PATHCONF3Args]),
        21: rpchelp.Proc('COMMIT', COMMIT3Res, [COMMIT3Args]),
    }

    async def NULL(self) -> client.UnpackedRPCMsg[None]:
        return await self.send_call(0, )

    async def GETATTR(
            self, arg_0: GETATTR3Args) -> client.UnpackedRPCMsg[GETATTR3Res]:
        return await self.send_call(1, arg_0)

    async def SETATTR(
            self, arg_0: SETATTR3Args) -> client.UnpackedRPCMsg[SETATTR3Res]:
        return await self.send_call(2, arg_0)

    async def LOOKUP(self,
                     arg_0: LOOKUP3Args) -> client.UnpackedRPCMsg[LOOKUP3Res]:
        return await self.send_call(3, arg_0)

    async def ACCESS(self,
                     arg_0: ACCESS3Args) -> client.UnpackedRPCMsg[ACCESS3Res]:
        return await self.send_call(4, arg_0)

    async def READLINK(
            self, arg_0: READLINK3Args) -> client.UnpackedRPCMsg[READLINK3Res]:
        return await self.send_call(5, arg_0)

    async def READ(self, arg_0: READ3Args) -> client.UnpackedRPCMsg[READ3Res]:
        return await self.send_call(6, arg_0)

    async def WRITE(self,
                    arg_0: WRITE3Args) -> client.UnpackedRPCMsg[WRITE3Res]:
        return await self.send_call(7, arg_0)

    async def CREATE(self,
                     arg_0: CREATE3Args) -> client.UnpackedRPCMsg[CREATE3Res]:
        return await self.send_call(8, arg_0)

    async def MKDIR(self,
                    arg_0: MKDIR3Args) -> client.UnpackedRPCMsg[MKDIR3Res]:
        return await self.send_call(9, arg_0)

    async def SYMLINK(
            self, arg_0: SYMLINK3Args) -> client.UnpackedRPCMsg[SYMLINK3Res]:
        return await self.send_call(10, arg_0)

    async def MKNOD(self,
                    arg_0: MKNOD3Args) -> client.UnpackedRPCMsg[MKNOD3Res]:
        return await self.send_call(11, arg_0)

    async def REMOVE(self,
                     arg_0: REMOVE3Args) -> client.UnpackedRPCMsg[REMOVE3Res]:
        return await self.send_call(12, arg_0)

    async def RMDIR(self,
                    arg_0: RMDIR3Args) -> client.UnpackedRPCMsg[RMDIR3Res]:
        return await self.send_call(13, arg_0)

    async def RENAME(self,
                     arg_0: RENAME3Args) -> client.UnpackedRPCMsg[RENAME3Res]:
        return await self.send_call(14, arg_0)

    async def LINK(self, arg_0: LINK3Args) -> client.UnpackedRPCMsg[LINK3Res]:
        return await self.send_call(15, arg_0)

    async def READDIR(
            self, arg_0: READDIR3Args) -> client.UnpackedRPCMsg[READDIR3Res]:
        return await self.send_call(16, arg_0)

    async def READDIRPLUS(
            self,
            arg_0: READDIRPLUS3Args) -> client.UnpackedRPCMsg[READDIRPLUS3Res]:
        return await self.send_call(17, arg_0)

    async def FSSTAT(self,
                     arg_0: FSSTAT3Args) -> client.UnpackedRPCMsg[FSSTAT3Res]:
        return await self.send_call(18, arg_0)

    async def FSINFO(self,
                     arg_0: FSINFO3Args) -> client.UnpackedRPCMsg[FSINFO3Res]:
        return await self.send_call(19, arg_0)

    async def PATHCONF(
            self, arg_0: PATHCONF3Args) -> client.UnpackedRPCMsg[PATHCONF3Res]:
        return await self.send_call(20, arg_0)

    async def COMMIT(self,
                     arg_0: COMMIT3Args) -> client.UnpackedRPCMsg[COMMIT3Res]:
        return await self.send_call(21, arg_0)