Skip to content

Commit d7b5ae3

Browse files
(DOCSP-25303) Add CSE build Constraint Info to all In-Use-Enc Go Tuts (#2051)
* qe add build constraint note * nl - feedback Co-authored-by: Nathan <[email protected]> Co-authored-by: Nathan <[email protected]>
1 parent 8b101fd commit d7b5ae3

File tree

7 files changed

+22
-11
lines changed

7 files changed

+22
-11
lines changed

source/includes/queryable-encryption/quick-start/key-vault-index.rst

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,8 @@ Create a unique index on the ``keyAltNames`` field in your
4848
.. tab::
4949
:tabid: go
5050

51-
.. important::
52-
53-
When building or running the Golang code in this guide using
54-
``go build`` or ``go run``, always include the ``cse`` build
55-
constraint to enable {+qe+}. See the following shell
56-
command for an example of including the build constraint:
57-
58-
.. code-block:: bash
59-
60-
go run -tags cse insert-encrypted-document.go
61-
51+
.. include:: /includes/queryable-encryption/tutorials/go-build-constraint.rst
52+
6253
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/local/reader/make-data-key.go
6354
:start-after: start-create-index
6455
:end-before: end-create-index

source/includes/queryable-encryption/tutorials/automatic/aws/key-vault-index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Create a unique index on the ``keyAltNames`` field in your
4848
.. tab::
4949
:tabid: go
5050

51+
.. include:: /includes/queryable-encryption/tutorials/go-build-constraint.rst
52+
5153
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/aws/reader/make-data-key.go
5254
:start-after: start-create-index
5355
:end-before: end-create-index

source/includes/queryable-encryption/tutorials/automatic/azure/key-vault-index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Create a unique index on the ``keyAltNames`` field in your
4848
.. tab::
4949
:tabid: go
5050

51+
.. include:: /includes/queryable-encryption/tutorials/go-build-constraint.rst
52+
5153
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/azure/reader/make-data-key.go
5254
:start-after: start-create-index
5355
:end-before: end-create-index

source/includes/queryable-encryption/tutorials/automatic/gcp/key-vault-index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Create a unique index on the ``keyAltNames`` field in your
4848
.. tab::
4949
:tabid: go
5050

51+
.. include:: /includes/queryable-encryption/tutorials/go-build-constraint.rst
52+
5153
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/gcp/reader/make-data-key.go
5254
:start-after: start-create-index
5355
:end-before: end-create-index

source/includes/queryable-encryption/tutorials/automatic/kmip/key-vault-index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Create a unique index on the ``keyAltNames`` field in your
4848
.. tab::
4949
:tabid: go
5050

51+
.. include:: /includes/queryable-encryption/tutorials/go-build-constraint.rst
52+
5153
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/kmip/reader/make-data-key.go
5254
:start-after: start-create-index
5355
:end-before: end-create-index

source/includes/queryable-encryption/tutorials/exp/key-vault-index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Create a unique index on the ``keyAltNames`` field in your
3535
.. tab::
3636
:tabid: go
3737

38+
.. include:: /includes/queryable-encryption/tutorials/go-build-constraint.rst
39+
3840
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/exp/reader/make-data-key.go
3941
:start-after: start-create-index
4042
:end-before: end-create-index
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. important::
2+
3+
When building or running the Golang code in this guide using
4+
``go build`` or ``go run``, always include the ``cse`` build
5+
constraint to enable {+qe+}. See the following shell
6+
command for an example of including the build constraint:
7+
8+
.. code-block:: bash
9+
10+
go run -tags cse make-data-key.go

0 commit comments

Comments
 (0)