/
mongocrypt_context_not_enabled.go
56 lines (44 loc) · 1.62 KB
/
mongocrypt_context_not_enabled.go
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
// Copyright (C) MongoDB, Inc. 2017-present.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
// +build !cse
package mongocrypt
import (
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
)
// Context represents a mongocrypt_ctx_t handle
type Context struct{}
// State returns the current State of the Context.
func (c *Context) State() State {
panic(cseNotSupportedMsg)
}
// NextOperation gets the document for the next database operation to run.
func (c *Context) NextOperation() (bsoncore.Document, error) {
panic(cseNotSupportedMsg)
}
// AddOperationResult feeds the result of a database operation to mongocrypt.
func (c *Context) AddOperationResult(result bsoncore.Document) error {
panic(cseNotSupportedMsg)
}
// CompleteOperation signals a database operation has been completed.
func (c *Context) CompleteOperation() error {
panic(cseNotSupportedMsg)
}
// NextKmsContext returns the next KmsContext, or nil if there are no more.
func (c *Context) NextKmsContext() *KmsContext {
panic(cseNotSupportedMsg)
}
// FinishKmsContexts signals that all KMS contexts have been completed.
func (c *Context) FinishKmsContexts() error {
panic(cseNotSupportedMsg)
}
// Finish performs the final operations for the context and returns the resulting document.
func (c *Context) Finish() (bsoncore.Document, error) {
panic(cseNotSupportedMsg)
}
// Close cleans up any resources associated with the given Context instance.
func (c *Context) Close() {
panic(cseNotSupportedMsg)
}