add network share descriptions and removed old array

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-07-22 13:49:50 +09:30
parent 0ff1e5d57e
commit dcb2281d02
3 changed files with 14 additions and 27 deletions
@@ -34,6 +34,7 @@ type Disk {
fsStatus: String
luksState: String
comment: String
"""Indicates if the disk should be exported as a network share."""
exportable: Boolean!
"""Indicates the file system detected in partition 1 of the device."""
fsType: DiskFsType!
@@ -52,8 +53,11 @@ enum DiskStatus {
}
enum DiskType {
"""Data disk"""
Data
"""Parity disk"""
Parity
"""Flash disk"""
Flash
}
@@ -62,7 +66,9 @@ enum DiskFsType {
}
enum DiskFsColor {
"""Disk is OK and running"""
green_on
"""Disk is OK and not running"""
green_off
yellow_on
yellow_off
@@ -1,26 +0,0 @@
type Info {
array: InfoArray @func(module: "info/get-array")
}
enum InfoArrayState {
"""Array is started"""
started
"""Array is stopped"""
stopped
}
type InfoArray {
state: InfoArrayState
capacity: InfoArrayCapacity
}
type InfoArrayCapacity {
bytes: Capacity
disks: Capacity
}
type Capacity {
free: Long
used: Long
total: Long
}
@@ -1,16 +1,23 @@
type Query {
"""Network Share"""
"""Network Shares"""
shares: [Share] @func(module: "get-shares")
}
"""Network Share"""
type Share {
"""Display name"""
name: String
"""Free space in bytes"""
free: Int
"""Total size in bytes"""
size: Int
"""Disks that're included in this share"""
include: [String]
"""Disks that're excluded from this share"""
exclude: [String]
cache: Boolean
nameOrig: String
"""User comment"""
comment: String
allocator: String
splitLevel: String