feat: storage actions + git module actions

This commit is contained in:
Nick
2019-04-06 19:05:47 -04:00
parent 16d88a7c7a
commit 10df1b4b0c
10 changed files with 261 additions and 83 deletions

View File

@@ -31,6 +31,11 @@ type StorageMutation {
updateTargets(
targets: [StorageTargetInput]!
): DefaultResponse @auth(requires: ["manage:system"])
executeAction(
targetKey: String!
handler: String!
): DefaultResponse @auth(requires: ["manage:system"])
}
# -----------------------------------------------
@@ -51,6 +56,7 @@ type StorageTarget {
syncInterval: String
syncIntervalDefault: String
config: [KeyValuePair]
actions: [StorageTargetAction]
}
input StorageTargetInput {
@@ -68,3 +74,9 @@ type StorageStatus {
message: String!
lastAttempt: String!
}
type StorageTargetAction {
handler: String!
label: String!
hint: String!
}