76d6ffd94c78a0c1b9a1b505706d662ece7d105f
[arvados-workbench2.git] / src / models / ssh-key.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Resource } from '~/models/resource';
6
7 export interface SshKey {
8     name: string;
9     keyType: KeyType;
10     authorizedUserUuid: string;
11     publicKey: string;
12     expiresAt: string;
13 }
14
15 export interface SshKeyCreateFormDialogData {
16     publicKey: string;
17     name: string;
18 }
19
20 export enum KeyType {
21     SSH = 'SSH'
22 }
23
24 export interface SshKeyResource extends Resource {
25     name: string;
26     keyType: KeyType;
27     authorizedUserUuid: string;
28     publicKey: string;
29     expiresAt: string;
30 }