strudelapp.ts 1.07 KB
Newer Older
1
2
3
export class AppAction {
  name: string;
  paramscmd: string;
4
  client: {cmd: string[], redir: string, usebasicauth: boolean};
5
6
  states: string[]; // list of stats such as 'RUNNING' in which the action is valid. null||undefined if its always valid
}
Chris Hines's avatar
Chris Hines committed
7
export class Strudelapp {
8
  url: string; // A url used to retrieve extra config options. May be null
9
  name: string;
10
11
  startscript: string; // batch script ... should NOT include resource directives
                       // resource directives like #SBATCH belong in the batchinterface
12
13
  appactions: AppAction[]; // appactions don't require an instance. i.e. they take place on the login submit node
  instactions: AppAction[]; // instactions apply to a particular instance of an application, eg connecting to a running desktop
14
15
16
  localbind: boolean; // does the application bind to a port on the localhost
                      // interface or on all interfaces. This behaviour determins
                      /// how we create tunnels
Chris Hines's avatar
Chris Hines committed
17
  applist: Strudelapp[] = null;
Chris Hines's avatar
Chris Hines committed
18
}
Chris Hines's avatar
Chris Hines committed
19
20
21
22
23

export class StrudelappInstance {
  port: number;
  password: string;
}