Skip to content

Commit

Permalink
feat: add trust policies api
Browse files Browse the repository at this point in the history
The trust policies APIs allow one to add, remove,
and list OIDC trust policies for specific projects.

Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed Oct 27, 2023
1 parent 69fab75 commit 5b8e5b6
Show file tree
Hide file tree
Showing 2 changed files with 522 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/gen/depot/core/v1/project_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import {MethodKind} from '@bufbuild/protobuf'
import {
AddTrustPolicyRequest,
AddTrustPolicyResponse,
CreateProjectRequest,
CreateProjectResponse,
DeleteProjectRequest,
Expand All @@ -13,6 +15,10 @@ import {
GetProjectResponse,
ListProjectsRequest,
ListProjectsResponse,
ListTrustPoliciesRequest,
ListTrustPoliciesResponse,
RemoveTrustPolicyRequest,
RemoveTrustPolicyResponse,
UpdateProjectRequest,
UpdateProjectResponse,
} from './project_pb.js'
Expand Down Expand Up @@ -78,5 +84,38 @@ export const ProjectService = {
O: DeleteProjectResponse,
kind: MethodKind.Unary,
},
/**
* List project's trust policies.
*
* @generated from rpc depot.core.v1.ProjectService.ListTrustPolicies
*/
listTrustPolicies: {
name: 'ListTrustPolicies',
I: ListTrustPoliciesRequest,
O: ListTrustPoliciesResponse,
kind: MethodKind.Unary,
},
/**
* Add a trust policy to a project.
*
* @generated from rpc depot.core.v1.ProjectService.AddTrustPolicy
*/
addTrustPolicy: {
name: 'AddTrustPolicy',
I: AddTrustPolicyRequest,
O: AddTrustPolicyResponse,
kind: MethodKind.Unary,
},
/**
* Remove a trust policy from a project.
*
* @generated from rpc depot.core.v1.ProjectService.RemoveTrustPolicy
*/
removeTrustPolicy: {
name: 'RemoveTrustPolicy',
I: RemoveTrustPolicyRequest,
O: RemoveTrustPolicyResponse,
kind: MethodKind.Unary,
},
},
} as const
Loading

0 comments on commit 5b8e5b6

Please sign in to comment.