Create container service
[arvados-workbench2.git] / src / models / container.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Resource, ResourceKind } from "./resource";
6
7 export enum ContainerState {
8     QUEUED = 'Queued',
9     LOCKED = 'Locked',
10     RUNNING = 'Running',
11     COMPLETE = 'Complete',
12     CANCELLED = 'Cancelled',
13 }
14
15 export interface ContainerResource extends Resource {
16     kind: ResourceKind.CONTAINER;
17     state: string;
18     startedAt: string;
19     finishedAt: string;
20     log: string;
21     environment: {};
22     cwd: string;
23     command: string[];
24     outputPath: string;
25     mounts: {};
26     runtimeConstraints: {};
27     schedulingParameters: {};
28     output: string;
29     containerImage: string;
30     progress: number;
31     priority: number;
32     exitCode: number;
33     authUuid: string;
34     lockedByUuid: string;
35 }