Skip to content

Commit

Permalink
Management Plane Alpha: Project and API Key Management (#15)
Browse files Browse the repository at this point in the history
Adds the management plane alpha API to the Go SDK. Implementation is
similar to the control plane client currently in stable.

This initial alpha release provides robust support for managing projects
and their associated API keys directly through the Go client library.

New Features

Project Management

* CreateProject: Allows users to create new projects, specifying project
names.
* ListProjects: Enables listing all projects available to the user.
* FetchProject: Retrieves details for a specific project by its ID.
* DeleteProject: Removes a project identified by its ID.

API Key Management

* CreateApiKey: Supports creating new API keys within a specified
project, including setting names for easy identification.
* ListApiKeys: Lists all API keys associated with a given project,
enhancing manageability and oversight.
* FetchApiKey: Simplified to fetch details of an API key using its ID
only, removing the need for projectId in the request.
* DeleteApiKey: Allows for the deletion of specific API keys by their
ID, completing the set of CRUD operations for API key management.
  • Loading branch information
haruska authored Apr 9, 2024
1 parent 666cf72 commit 22cce8b
Show file tree
Hide file tree
Showing 9 changed files with 2,160 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
API_KEY="<Project API Key>"
TEST_POD_INDEX_NAME="<Pod based Index name>"
TEST_SERVERLESS_INDEX_NAME="<Serverless based Index name>"
ORG_API_KEY="<Organization API Key>"
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
- alpha

jobs:
build:
Expand All @@ -21,4 +22,5 @@ jobs:
env:
TEST_POD_INDEX_NAME: ${{ secrets.TEST_POD_INDEX_NAME }}
TEST_SERVERLESS_INDEX_NAME: ${{ secrets.TEST_SERVERLESS_INDEX_NAME }}
API_KEY: ${{ secrets.API_KEY }}
API_KEY: ${{ secrets.API_KEY }}
ORG_API_KEY: ${{ secrets.ORG_API_KEY }}
2 changes: 1 addition & 1 deletion apis
Submodule apis updated from 3a31d3 to 474c95
2 changes: 1 addition & 1 deletion internal/gen/data/vector_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 22cce8b

Please sign in to comment.