This repository was archived by the owner on Aug 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathswarm.graphql
111 lines (95 loc) · 1.79 KB
/
swarm.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
type Swarm {
createdAt: String
id: ID!
joinTokens: JoinTokens
rootRotationInProgress: Boolean
swarmSpec: SwarmSpec
tlsInfo: TLSInfo
unlockKey: UnlockKey
updatedAt: String
version: SwarmVersion
}
type SwarmSpec {
caConfig: CaConfig
dispatcher: DispatcherConfig
encryptionConfig: EncryptionConfig
# TBI
# labels: StringAnyMap
name: String
orchestration: OrchestrationConfig
raft: RaftConfig
taskDefaults: TaskDefaults
}
type OrchestrationConfig {
taskHistoryRetentionLimit: Int
}
type RaftConfig {
electionTick: Int
heartbeatTick: Int
keepOldSnapshots: Int
logEntriesForSlowFollowers: Int
snapshotInterval: Int
}
type DispatcherConfig {
heartbeatPeriod: String
}
type CaConfig {
externalCas: [ExternalCa]
nodeCertExpiry: String
}
type ExternalCa {
caCert: String
# options: StringAnyMap
protocol: String
url: String
}
type EncryptionConfig {
autoLockManagers: Boolean
}
type TaskDefaults {
logDriver: Driver
}
type Driver {
name: String
# TBI
# options: StringAnyMap
}
type JoinTokens {
manager: String
worker: String
}
type UnlockKey {
unlockKey: String
}
type SwarmInfo {
cluster: SwarmCluster
controlAvailable: Boolean
error: String
localNodeState: String
managers: Int
nodeAddr: String
nodeId: String
nodes: Int
remoteManagers: [RemoteManager]
}
type SwarmCluster {
createdAt: String
id: ID!
rootRotationInProgress: Boolean
swarmSpec: SwarmSpec
tlsInfo: TLSInfo
updatedAt: String
version: SwarmVersion
}
type SwarmVersion {
index: Int
}
type TLSInfo{
certIssuerPublicKey: String
certIssuerSubject: String
trustRoot: String
}
type RemoteManager {
addr: String
nodeId: String
}