...
1
2
3
4
5
6
7
8
9
10 package mongocrypt
11
12 import (
13 "context"
14
15 "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
16 "go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options"
17 )
18
19 const cseNotSupportedMsg = "client-side encryption not enabled. add the cse build tag to support"
20
21
22 type MongoCrypt struct{}
23
24
25
26 func Version() string {
27 return ""
28 }
29
30
31 func NewMongoCrypt(*options.MongoCryptOptions) (*MongoCrypt, error) {
32 panic(cseNotSupportedMsg)
33 }
34
35
36 func (m *MongoCrypt) CreateEncryptionContext(string, bsoncore.Document) (*Context, error) {
37 panic(cseNotSupportedMsg)
38 }
39
40
41 func (m *MongoCrypt) CreateExplicitEncryptionExpressionContext(bsoncore.Document, *options.ExplicitEncryptionOptions) (*Context, error) {
42 panic(cseNotSupportedMsg)
43 }
44
45
46 func (m *MongoCrypt) CreateDecryptionContext(bsoncore.Document) (*Context, error) {
47 panic(cseNotSupportedMsg)
48 }
49
50
51 func (m *MongoCrypt) CreateDataKeyContext(string, *options.DataKeyOptions) (*Context, error) {
52 panic(cseNotSupportedMsg)
53 }
54
55
56 func (m *MongoCrypt) CreateExplicitEncryptionContext(bsoncore.Document, *options.ExplicitEncryptionOptions) (*Context, error) {
57 panic(cseNotSupportedMsg)
58 }
59
60
61 func (m *MongoCrypt) RewrapDataKeyContext([]byte, *options.RewrapManyDataKeyOptions) (*Context, error) {
62 panic(cseNotSupportedMsg)
63 }
64
65
66 func (m *MongoCrypt) CreateExplicitDecryptionContext(bsoncore.Document) (*Context, error) {
67 panic(cseNotSupportedMsg)
68 }
69
70
71
72 func (m *MongoCrypt) CryptSharedLibVersion() uint64 {
73 panic(cseNotSupportedMsg)
74 }
75
76
77
78 func (m *MongoCrypt) CryptSharedLibVersionString() string {
79 panic(cseNotSupportedMsg)
80 }
81
82
83 func (m *MongoCrypt) Close() {
84 panic(cseNotSupportedMsg)
85 }
86
87
88 func (m *MongoCrypt) GetKmsProviders(context.Context) (bsoncore.Document, error) {
89 panic(cseNotSupportedMsg)
90 }
91
View as plain text