You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a quick example about how you use Pangea Go SDK, set up and run it.
3
+
This directory contains full examples on how to use the Pangea Go SDK.
4
4
5
5
## Setup
6
6
7
-
Set up environment variables ([Instructions](https://pangea.cloud/docs/getting-started/integrate/#set-environment-variables)) `PANGEA_AUDIT_TOKEN` and `PANGEA_DOMAIN` with your project token configured on Pangea User Console (token should have access to Audit service [Instructions](https://pangea.cloud/docs/getting-started/configure-services/#configure-a-pangea-service)) and with your pangea domain.
7
+
Each example requires certain environment variables to be set. `PANGEA_DOMAIN`
8
+
must be set to a Pangea domain (e.g. `aws.us.pangea.cloud`). Then, a token
9
+
variable must be set as well. This is typically in the format of
10
+
`PANGEA_{SERVICE_NAME}_TOKEN` (so: `PANGEA_REDACT_TOKEN` for the Redact service,
11
+
`PANGEA_VAULT_TOKEN` for the Vault service, etc.). Finally, note that some
12
+
examples require additional variables, so check out the example's source code
13
+
and look out for what environment variables it loads at the beginning.
8
14
9
15
## Run
10
16
11
-
To run examples, move to service folder:
12
-
```
13
-
cd examples/intel
14
-
go mod tidy
15
-
```
17
+
To run an example, navigate to its directory and use `go run`:
0 commit comments