| 1 | // Copyright (C) MongoDB, Inc. 2017-present. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | // not use this file except in compliance with the License. You may obtain |
| 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | |
| 7 | package optionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ |
| 8 | |
| 9 | import ( |
| 10 | "go.mongodb.org/mongo-driver/bson/primitivescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/bson/primitive`/" |
| 11 | "go.mongodb.org/mongo-driver/x/bsonx/bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/" |
| 12 | ) |
| 13 | |
| 14 | // DataKeyOptions specifies options for creating a new data key. |
| 15 | type DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions# struct { |
| 16 | KeyAltNamesscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#KeyAltNames. []string |
| 17 | KeyMaterialscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#KeyMaterial. []byte |
| 18 | MasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#MasterKey. bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/.Documentscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/Document# |
| 19 | } |
| 20 | |
| 21 | // DataKey creates a new DataKeyOptions instance. |
| 22 | func DataKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKey().() *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions# { |
| 23 | return &DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#{} |
| 24 | } |
| 25 | |
| 26 | // SetKeyAltNames specifies alternate key names. |
| 27 | func (dko *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#) SetKeyAltNamesscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#SetKeyAltNames().(names []string) *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions# { |
| 28 | dko.KeyAltNamesscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#KeyAltNames. = names |
| 29 | return dko |
| 30 | } |
| 31 | |
| 32 | // SetMasterKey specifies the master key. |
| 33 | func (dko *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#) SetMasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#SetMasterKey().(key bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/.Documentscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/Document#) *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions# { |
| 34 | dko.MasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#MasterKey. = key |
| 35 | return dko |
| 36 | } |
| 37 | |
| 38 | // SetKeyMaterial specifies the key material. |
| 39 | func (dko *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#) SetKeyMaterialscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#SetKeyMaterial().(keyMaterial []byte) *DataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions# { |
| 40 | dko.KeyMaterialscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/DataKeyOptions#KeyMaterial. = keyMaterial |
| 41 | return dko |
| 42 | } |
| 43 | |
| 44 | // QueryType describes the type of query the result of Encrypt is used for. |
| 45 | type QueryTypescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/QueryType# int |
| 46 | |
| 47 | // These constants specify valid values for QueryType |
| 48 | const ( |
| 49 | QueryTypeEqualityscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/QueryTypeEquality. QueryTypescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/QueryType# = 1 |
| 50 | ) |
| 51 | |
| 52 | // ExplicitEncryptionOptions specifies options for configuring an explicit encryption context. |
| 53 | type ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# struct { |
| 54 | KeyIDscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#KeyID. *primitivescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/bson/primitive`/.Binaryscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/bson/primitive`/Binary# |
| 55 | KeyAltNamescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#KeyAltName. *string |
| 56 | Algorithmscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#Algorithm. string |
| 57 | QueryTypescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#QueryType. string |
| 58 | ContentionFactorscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#ContentionFactor. *int64 |
| 59 | RangeOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#RangeOptions. *ExplicitRangeOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions# |
| 60 | } |
| 61 | |
| 62 | // ExplicitRangeOptions specifies options for the range index. |
| 63 | type ExplicitRangeOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions# struct { |
| 64 | Minscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions#Min. *bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/.Valuescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/Value# |
| 65 | Maxscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions#Max. *bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/.Valuescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/Value# |
| 66 | Sparsityscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions#Sparsity. *int64 |
| 67 | TrimFactorscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions#TrimFactor. *int32 |
| 68 | Precisionscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions#Precision. *int32 |
| 69 | } |
| 70 | |
| 71 | // ExplicitEncryption creates a new ExplicitEncryptionOptions instance. |
| 72 | func ExplicitEncryptionscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryption().() *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 73 | return &ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#{} |
| 74 | } |
| 75 | |
| 76 | // SetKeyID sets the key identifier. |
| 77 | func (eeo *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#) SetKeyIDscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#SetKeyID().(keyID primitivescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/bson/primitive`/.Binaryscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/bson/primitive`/Binary#) *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 78 | eeo.KeyIDscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#KeyID. = &keyID |
| 79 | return eeo |
| 80 | } |
| 81 | |
| 82 | // SetKeyAltName sets the key alternative name. |
| 83 | func (eeo *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#) SetKeyAltNamescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#SetKeyAltName().(keyAltName string) *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 84 | eeo.KeyAltNamescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#KeyAltName. = &keyAltName |
| 85 | return eeo |
| 86 | } |
| 87 | |
| 88 | // SetAlgorithm specifies an encryption algorithm. |
| 89 | func (eeo *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#) SetAlgorithmscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#SetAlgorithm().(algorithm string) *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 90 | eeo.Algorithmscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#Algorithm. = algorithm |
| 91 | return eeo |
| 92 | } |
| 93 | |
| 94 | // SetQueryType specifies the query type. |
| 95 | func (eeo *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#) SetQueryTypescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#SetQueryType().(queryType string) *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 96 | eeo.QueryTypescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#QueryType. = queryType |
| 97 | return eeo |
| 98 | } |
| 99 | |
| 100 | // SetContentionFactor specifies the contention factor. |
| 101 | func (eeo *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#) SetContentionFactorscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#SetContentionFactor().(contentionFactor int64) *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 102 | eeo.ContentionFactorscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#ContentionFactor. = &contentionFactor |
| 103 | return eeo |
| 104 | } |
| 105 | |
| 106 | // SetRangeOptions specifies the range options. |
| 107 | func (eeo *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#) SetRangeOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#SetRangeOptions().(ro ExplicitRangeOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitRangeOptions#) *ExplicitEncryptionOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions# { |
| 108 | eeo.RangeOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/ExplicitEncryptionOptions#RangeOptions. = &ro |
| 109 | return eeo |
| 110 | } |
| 111 | |
| 112 | // RewrapManyDataKeyOptions represents all possible options used to decrypt and encrypt all matching data keys with a |
| 113 | // possibly new masterKey. |
| 114 | type RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions# struct { |
| 115 | // Provider identifies the new KMS provider. If omitted, encrypting uses the current KMS provider. |
| 116 | Providerscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#Provider. *string |
| 117 | |
| 118 | // MasterKey identifies the new masterKey. If omitted, rewraps with the current masterKey. |
| 119 | MasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#MasterKey. bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/.Documentscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/Document# |
| 120 | } |
| 121 | |
| 122 | // RewrapManyDataKey creates a new RewrapManyDataKeyOptions instance. |
| 123 | func RewrapManyDataKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKey().() *RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions# { |
| 124 | return new(RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#) |
| 125 | } |
| 126 | |
| 127 | // SetProvider sets the value for the Provider field. |
| 128 | func (rmdko *RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#) SetProviderscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#SetProvider().(provider string) *RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions# { |
| 129 | rmdko.Providerscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#Provider. = &provider |
| 130 | return rmdko |
| 131 | } |
| 132 | |
| 133 | // SetMasterKey sets the value for the MasterKey field. |
| 134 | func (rmdko *RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#) SetMasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#SetMasterKey().(masterKey bsoncorescip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/.Documentscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/bsonx/bsoncore`/Document#) *RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions# { |
| 135 | rmdko.MasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#MasterKey. = masterKey |
| 136 | return rmdko |
| 137 | } |
| 138 | |
| 139 | // MergeRewrapManyDataKeyOptions combines the given RewrapManyDataKeyOptions instances into a single |
| 140 | // RewrapManyDataKeyOptions in a last one wins fashion. |
| 141 | // |
| 142 | // Deprecated: Merging options structs will not be supported in Go Driver 2.0. Users should create a |
| 143 | // single options struct instead. |
| 144 | func MergeRewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/MergeRewrapManyDataKeyOptions().(opts ...*RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#) *RewrapManyDataKeyOptionsscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions# { |
| 145 | rmdkOpts := RewrapManyDataKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKey().() |
| 146 | for _, rmdko := range opts { |
| 147 | if rmdko == nil { |
| 148 | continue |
| 149 | } |
| 150 | if provider := rmdko.Providerscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#Provider.; provider != nil { |
| 151 | rmdkOpts.Providerscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#Provider. = provider |
| 152 | } |
| 153 | if masterKey := rmdko.MasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#MasterKey.; masterKey != nil { |
| 154 | rmdkOpts.MasterKeyscip-go gomod go.mongodb.org/mongo-driver . `go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options`/RewrapManyDataKeyOptions#MasterKey. = masterKey |
| 155 | } |
| 156 | } |
| 157 | return rmdkOpts |
| 158 | } |