From 75d28f441cc4c4316ed0ab4a6f58525fb826ca09 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 22 Mar 2021 11:29:21 -0400 Subject: [PATCH] feat: create types to handle shared storage --- striker-ui/types/AnvilSharedStorage.d.ts | 3 +++ striker-ui/types/AnvilSharedStorageFileSystem.d.ts | 4 ++++ striker-ui/types/AnvilSharedStorageNode.d.ts | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 striker-ui/types/AnvilSharedStorage.d.ts create mode 100644 striker-ui/types/AnvilSharedStorageFileSystem.d.ts create mode 100644 striker-ui/types/AnvilSharedStorageNode.d.ts diff --git a/striker-ui/types/AnvilSharedStorage.d.ts b/striker-ui/types/AnvilSharedStorage.d.ts new file mode 100644 index 00000000..4ce52860 --- /dev/null +++ b/striker-ui/types/AnvilSharedStorage.d.ts @@ -0,0 +1,3 @@ +declare type AnvilSharedStorage = { + file_systems: Array; +}; diff --git a/striker-ui/types/AnvilSharedStorageFileSystem.d.ts b/striker-ui/types/AnvilSharedStorageFileSystem.d.ts new file mode 100644 index 00000000..835a5ba9 --- /dev/null +++ b/striker-ui/types/AnvilSharedStorageFileSystem.d.ts @@ -0,0 +1,4 @@ +declare type AnvilSharedStorageFileSystem = { + mountPoint: string; + nodes: Array; +}; diff --git a/striker-ui/types/AnvilSharedStorageNode.d.ts b/striker-ui/types/AnvilSharedStorageNode.d.ts new file mode 100644 index 00000000..971f0692 --- /dev/null +++ b/striker-ui/types/AnvilSharedStorageNode.d.ts @@ -0,0 +1,9 @@ +declare type AnvilSharedStorageNode = { + is_mounted: boolean; + total: number; + free: number; + nodeInfo?: { + node_name: string; + node_uuid: string; + }; +};