Versions in this module Expand all Collapse all v1 v1.2.1 Jan 8, 2020 v1.2.0 Dec 10, 2019 Changes in this version + type Context struct + func (c *Context) AddOperationResult(result bsoncore.Document) error + func (c *Context) Close() + func (c *Context) CompleteOperation() error + func (c *Context) Finish() (bsoncore.Document, error) + func (c *Context) FinishKmsContexts() error + func (c *Context) NextKmsContext() *KmsContext + func (c *Context) NextOperation() (bsoncore.Document, error) + func (c *Context) State() State + type Error struct + Code int32 + Message string + func (Error) Error() string + type KmsContext struct + func (kc *KmsContext) BytesNeeded() int32 + func (kc *KmsContext) FeedResponse(response []byte) error + func (kc *KmsContext) HostName() (string, error) + func (kc *KmsContext) Message() ([]byte, error) + type MongoCrypt struct + func NewMongoCrypt(opts *options.MongoCryptOptions) (*MongoCrypt, error) + func (m *MongoCrypt) Close() + func (m *MongoCrypt) CreateDataKeyContext(kmsProvider string, opts *options.DataKeyOptions) (*Context, error) + func (m *MongoCrypt) CreateDecryptionContext(cmd bsoncore.Document) (*Context, error) + func (m *MongoCrypt) CreateEncryptionContext(db string, cmd bsoncore.Document) (*Context, error) + func (m *MongoCrypt) CreateExplicitDecryptionContext(doc bsoncore.Document) (*Context, error) + func (m *MongoCrypt) CreateExplicitEncryptionContext(doc bsoncore.Document, opts *options.ExplicitEncryptionOptions) (*Context, error) + type State int + const Done + const NeedKms + const NeedMongoCollInfo + const NeedMongoKeys + const NeedMongoMarkings + const Ready + const StateError + func (s State) String() string