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
Copy file name to clipboardExpand all lines: docs/docs/icechunk-python/storage.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,18 @@ Icechunk can be used with [Google Cloud Storage](https://cloud.google.com/storag
175
175
)
176
176
```
177
177
178
+
==="Bearer Token"
179
+
180
+
With this option, you provide a bearer token to use for the object store. This is useful for short lived workflows where expiration isnot relevant or when the bearer token will not expire [See the API](./reference.md#icechunk.gcs_storage)
181
+
182
+
```python
183
+
icechunk.gcs_storage(
184
+
bucket="icechunk-test",
185
+
prefix="quickstart-demo-1",
186
+
bearer_token="my-bearer-token"
187
+
)
188
+
```
189
+
178
190
==="Refreshable Credentials"
179
191
180
192
With this option, you provide a callback function that will be called to obtain GCS credentials when needed. This is useful for workloads that depend on retrieving short-lived credentials fromGCSor similar authority, allowing for credentials to be refreshed as needed without interrupting any workflows. This works at a lower level than the other methods, and accepts a bearer token and expiration time. These are the same credentials that are created for you when specifying the service account file, key, orADC. [See the API](./reference.md#icechunk.gcs_storage)
0 commit comments