Skip to content

Commit e0fa9d2

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Add GetOwnerToken method to WorkspaceService
1 parent 3939796 commit e0fa9d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/public-api-server/pkg/apiv1/workspace.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ func (w *WorkspaceService) GetWorkspace(ctx context.Context, r *v1.GetWorkspaceR
5959
}, nil
6060
}
6161

62+
func (w *WorkspaceService) GetOwnerToken(ctx context.Context, r *v1.GetOwnerTokenRequest) (*v1.GetOwnerTokenResponse, error) {
63+
return &v1.GetOwnerTokenResponse{Token: "some-owner-token"}, nil
64+
}
65+
6266
func bearerTokenFromContext(ctx context.Context) (string, error) {
6367
md, ok := metadata.FromIncomingContext(ctx)
6468
if !ok {

0 commit comments

Comments
 (0)