19504: Set breadcrumbs chevron color to match icon
[arvados.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 import { MountType } from 'models/mount-types';
7 import { RuntimeConstraints } from "models/runtime-constraints";
8 import { SchedulingParameters } from './scheduling-parameters';
9 import { RuntimeStatus } from "./runtime-status";
10
11 export enum ContainerState {
12     QUEUED = 'Queued',
13     LOCKED = 'Locked',
14     RUNNING = 'Running',
15     COMPLETE = 'Complete',
16     CANCELLED = 'Cancelled',
17 }
18
19 export interface ContainerResource extends Resource {
20     kind: ResourceKind.CONTAINER;
21     state: string;
22     startedAt: string | null;
23     finishedAt: string | null;
24     log: string | null;
25     environment: {};
26     cwd: string;
27     command: string[];
28     cost: number;
29     outputPath: string;
30     mounts: MountType[];
31     runtimeConstraints: RuntimeConstraints;
32     runtimeStatus: RuntimeStatus;
33     runtimeUserUuid: string;
34     schedulingParameters: SchedulingParameters;
35     output: string | null;
36     containerImage: string;
37     progress: number;
38     priority: number;
39     exitCode: number | null;
40     authUuid: string | null;
41     lockedByUuid: string | null;
42 }