...
1
2
3
4
5
6
7 package mongocrypt
8
9
10 type State int
11
12
13
14 const (
15 StateError State = 0
16 NeedMongoCollInfo State = 1
17 NeedMongoMarkings State = 2
18 NeedMongoKeys State = 3
19 NeedKms State = 4
20 Ready State = 5
21 Done State = 6
22 NeedKmsCredentials State = 7
23 )
24
25
26 func (s State) String() string {
27 switch s {
28 case StateError:
29 return "Error"
30 case NeedMongoCollInfo:
31 return "NeedMongoCollInfo"
32 case NeedMongoMarkings:
33 return "NeedMongoMarkings"
34 case NeedMongoKeys:
35 return "NeedMongoKeys"
36 case NeedKms:
37 return "NeedKms"
38 case Ready:
39 return "Ready"
40 case Done:
41 return "Done"
42 case NeedKmsCredentials:
43 return "NeedKmsCredentials"
44 default:
45 return "Unknown State"
46 }
47 }
48
View as plain text