structs.d.ts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import type { Nfsv3FType, Nfsv3TimeHow, Nfsv3StableHow, Nfsv3CreateMode } from './constants';
  2. export declare class Nfsv3Time {
  3. readonly seconds: number;
  4. readonly nseconds: number;
  5. constructor(seconds: number, nseconds: number);
  6. }
  7. export declare class Nfsv3SpecData {
  8. readonly specdata1: number;
  9. readonly specdata2: number;
  10. constructor(specdata1: number, specdata2: number);
  11. }
  12. export declare class Nfsv3Fh {
  13. readonly data: Uint8Array;
  14. constructor(data: Uint8Array);
  15. }
  16. export declare class Nfsv3SetMode {
  17. readonly set: boolean;
  18. readonly mode?: number | undefined;
  19. constructor(set: boolean, mode?: number | undefined);
  20. }
  21. export declare class Nfsv3SetUid {
  22. readonly set: boolean;
  23. readonly uid?: number | undefined;
  24. constructor(set: boolean, uid?: number | undefined);
  25. }
  26. export declare class Nfsv3SetGid {
  27. readonly set: boolean;
  28. readonly gid?: number | undefined;
  29. constructor(set: boolean, gid?: number | undefined);
  30. }
  31. export declare class Nfsv3SetSize {
  32. readonly set: boolean;
  33. readonly size?: bigint | undefined;
  34. constructor(set: boolean, size?: bigint | undefined);
  35. }
  36. export declare class Nfsv3SetAtime {
  37. readonly how: Nfsv3TimeHow;
  38. readonly atime?: Nfsv3Time | undefined;
  39. constructor(how: Nfsv3TimeHow, atime?: Nfsv3Time | undefined);
  40. }
  41. export declare class Nfsv3SetMtime {
  42. readonly how: Nfsv3TimeHow;
  43. readonly mtime?: Nfsv3Time | undefined;
  44. constructor(how: Nfsv3TimeHow, mtime?: Nfsv3Time | undefined);
  45. }
  46. export declare class Nfsv3Sattr {
  47. readonly mode: Nfsv3SetMode;
  48. readonly uid: Nfsv3SetUid;
  49. readonly gid: Nfsv3SetGid;
  50. readonly size: Nfsv3SetSize;
  51. readonly atime: Nfsv3SetAtime;
  52. readonly mtime: Nfsv3SetMtime;
  53. constructor(mode: Nfsv3SetMode, uid: Nfsv3SetUid, gid: Nfsv3SetGid, size: Nfsv3SetSize, atime: Nfsv3SetAtime, mtime: Nfsv3SetMtime);
  54. }
  55. export declare class Nfsv3SattrGuard {
  56. readonly check: boolean;
  57. readonly objCtime?: Nfsv3Time | undefined;
  58. constructor(check: boolean, objCtime?: Nfsv3Time | undefined);
  59. }
  60. export declare class Nfsv3DirOpArgs {
  61. readonly dir: Nfsv3Fh;
  62. readonly name: string;
  63. constructor(dir: Nfsv3Fh, name: string);
  64. }
  65. export declare class Nfsv3WccAttr {
  66. readonly size: bigint;
  67. readonly mtime: Nfsv3Time;
  68. readonly ctime: Nfsv3Time;
  69. constructor(size: bigint, mtime: Nfsv3Time, ctime: Nfsv3Time);
  70. }
  71. export declare class Nfsv3PreOpAttr {
  72. readonly attributesFollow: boolean;
  73. readonly attributes?: Nfsv3WccAttr | undefined;
  74. constructor(attributesFollow: boolean, attributes?: Nfsv3WccAttr | undefined);
  75. }
  76. export declare class Nfsv3PostOpAttr {
  77. readonly attributesFollow: boolean;
  78. readonly attributes?: Nfsv3Fattr | undefined;
  79. constructor(attributesFollow: boolean, attributes?: Nfsv3Fattr | undefined);
  80. }
  81. export declare class Nfsv3PostOpFh {
  82. readonly handleFollows: boolean;
  83. readonly handle?: Nfsv3Fh | undefined;
  84. constructor(handleFollows: boolean, handle?: Nfsv3Fh | undefined);
  85. }
  86. export declare class Nfsv3WccData {
  87. readonly before: Nfsv3PreOpAttr;
  88. readonly after: Nfsv3PostOpAttr;
  89. constructor(before: Nfsv3PreOpAttr, after: Nfsv3PostOpAttr);
  90. }
  91. export declare class Nfsv3Fattr {
  92. readonly type: Nfsv3FType;
  93. readonly mode: number;
  94. readonly nlink: number;
  95. readonly uid: number;
  96. readonly gid: number;
  97. readonly size: bigint;
  98. readonly used: bigint;
  99. readonly rdev: Nfsv3SpecData;
  100. readonly fsid: bigint;
  101. readonly fileid: bigint;
  102. readonly atime: Nfsv3Time;
  103. readonly mtime: Nfsv3Time;
  104. readonly ctime: Nfsv3Time;
  105. constructor(type: Nfsv3FType, mode: number, nlink: number, uid: number, gid: number, size: bigint, used: bigint, rdev: Nfsv3SpecData, fsid: bigint, fileid: bigint, atime: Nfsv3Time, mtime: Nfsv3Time, ctime: Nfsv3Time);
  106. }
  107. export declare class Nfsv3DeviceData {
  108. readonly devAttributes: Nfsv3Sattr;
  109. readonly spec: Nfsv3SpecData;
  110. constructor(devAttributes: Nfsv3Sattr, spec: Nfsv3SpecData);
  111. }
  112. export declare class Nfsv3MknodData {
  113. readonly type: Nfsv3FType;
  114. readonly chr?: Nfsv3DeviceData | undefined;
  115. readonly blk?: Nfsv3DeviceData | undefined;
  116. readonly sock?: Nfsv3Sattr | undefined;
  117. readonly pipe?: Nfsv3Sattr | undefined;
  118. constructor(type: Nfsv3FType, chr?: Nfsv3DeviceData | undefined, blk?: Nfsv3DeviceData | undefined, sock?: Nfsv3Sattr | undefined, pipe?: Nfsv3Sattr | undefined);
  119. }
  120. export declare class Nfsv3CreateHow {
  121. readonly mode: Nfsv3CreateMode;
  122. readonly objAttributes?: Nfsv3Sattr | undefined;
  123. readonly verf?: Uint8Array | undefined;
  124. constructor(mode: Nfsv3CreateMode, objAttributes?: Nfsv3Sattr | undefined, verf?: Uint8Array | undefined);
  125. }
  126. export declare class Nfsv3WriteHow {
  127. readonly stable: Nfsv3StableHow;
  128. constructor(stable: Nfsv3StableHow);
  129. }
  130. export declare class Nfsv3Entry {
  131. readonly fileid: bigint;
  132. readonly name: string;
  133. readonly cookie: bigint;
  134. readonly nextentry?: Nfsv3Entry | undefined;
  135. constructor(fileid: bigint, name: string, cookie: bigint, nextentry?: Nfsv3Entry | undefined);
  136. }
  137. export declare class Nfsv3EntryPlus {
  138. readonly fileid: bigint;
  139. readonly name: string;
  140. readonly cookie: bigint;
  141. readonly nameAttributes: Nfsv3PostOpAttr;
  142. readonly nameHandle: Nfsv3PostOpFh;
  143. readonly nextentry?: Nfsv3EntryPlus | undefined;
  144. constructor(fileid: bigint, name: string, cookie: bigint, nameAttributes: Nfsv3PostOpAttr, nameHandle: Nfsv3PostOpFh, nextentry?: Nfsv3EntryPlus | undefined);
  145. }
  146. export declare class Nfsv3DirList {
  147. readonly eof: boolean;
  148. readonly entries?: Nfsv3Entry | undefined;
  149. constructor(eof: boolean, entries?: Nfsv3Entry | undefined);
  150. }
  151. export declare class Nfsv3DirListPlus {
  152. readonly eof: boolean;
  153. readonly entries?: Nfsv3EntryPlus | undefined;
  154. constructor(eof: boolean, entries?: Nfsv3EntryPlus | undefined);
  155. }