Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,7 @@ After the Skyflow client is initialized, you can add, update, retrieve, and remo
|--------|-------------|
| `AddVaultConfig(config VaultConfig)` | Add a new vault after initialization |
| `RemoveVaultConfig(vaultId string)` | Remove a vault by ID |
| `UpdateVaultConfig(config VaultConfig)` | Update an existing vault configuration |
| `UpdateVaultConfig(config VaultConfig)` | Update an existing vault configuration. Only the `ClusterId`, `Env`, and `Credentials` you set change. |
Comment thread
promptless[bot] marked this conversation as resolved.
| `GetVaultConfig(vaultId string)` | Retrieve a vault configuration by ID |

```go
Expand Down Expand Up @@ -3208,7 +3208,7 @@ func main() {
config := common.VaultConfig{
VaultId: "<VAULT_ID>", // Replace with the actual Vault ID (first vault)
ClusterId: "<CLUSTER_ID>", // Replace with the actual Cluster ID (from vault URL)
Env: common.DEV, // Set the environment (default is DEV, can also use PROD)
Env: common.DEV, // Set the environment (PROD, SANDBOX, STAGE, or DEV; default is PROD)
Comment thread
promptless[bot] marked this conversation as resolved.
Credentials: credentials,
}
credentialString := "<CREDENTIAL_AS_JSON_STRING>"
Expand Down
4 changes: 3 additions & 1 deletion docs/api_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ All mutating methods return `*SkyflowError` (nil on success) unless the table no
|--------|---------|-------------|
| `AddVaultConfig(VaultConfig)` | `*SkyflowError` | Add a vault after initialization. |
| `GetVaultConfig(vaultId string)` | `(*VaultConfig, *SkyflowError)` | Retrieve a vault configuration by ID. |
| `UpdateVaultConfig(VaultConfig)` | `*SkyflowError` | Replace an existing vault configuration (matched by `VaultId`). |
| `UpdateVaultConfig(VaultConfig)` | `*SkyflowError` | Update an existing vault configuration (matched by `VaultId`). Only the `ClusterId`, `Env`, and `Credentials` you set change; fields you leave empty keep their current values. |
Comment thread
promptless[bot] marked this conversation as resolved.
| `RemoveVaultConfig(vaultId string)` | `*SkyflowError` | Remove a vault configuration. |
| `AddConnectionConfig(ConnectionConfig)` | `*SkyflowError` | Add a connection after initialization. |
| `GetConnectionConfig(connId string)` | `(*ConnectionConfig, *SkyflowError)` | Retrieve a connection configuration by ID. |
Expand Down Expand Up @@ -677,6 +677,8 @@ Used inside [`Transformations`](#transformations).
| `SANDBOX` | Sandbox environment. |
| `DEV` | Development environment. |

An unset `Env` (the zero value) resolves to `PROD`. Use the named constants rather than numeric values: `PROD` is `1`, not `0`.
Comment thread
promptless[bot] marked this conversation as resolved.

### `RedactionType`

`github.com/skyflowapi/skyflow-go/v2/utils/common`
Expand Down
Loading
Loading