-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
210 changed files
with
10,241 additions
and
707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
export const tapisPod = { | ||
pod_id: 'testpod2', | ||
pod_template: 'template/postgres', | ||
description: 'Test pod fixture for testing', | ||
command: undefined, | ||
environment_variables: {}, | ||
data_requests: [], | ||
roles_required: [], | ||
status_requested: 'ON', | ||
volume_mounts: { | ||
test4: { | ||
type: 'tapisvolume', | ||
mount_path: '/var/lib/postgresql/data', | ||
sub_path: '', | ||
}, | ||
}, | ||
time_to_stop_default: -1, | ||
time_to_stop_instance: undefined, | ||
networking: { | ||
default: { | ||
protocol: 'postgres', | ||
port: 5432, | ||
url: 'test4.pods.tacc.develop.tapis.io', | ||
}, | ||
}, | ||
resources: { | ||
cpu_request: 250, | ||
cpu_limit: 2000, | ||
mem_request: 256, | ||
mem_limit: 3072, | ||
gpus: 0, | ||
}, | ||
time_to_stop_ts: null, | ||
status: 'AVAILABLE', | ||
status_container: { | ||
phase: 'Running', | ||
start_time: '2024-02-13T20:58:32.000000', | ||
message: 'Pod is running.', | ||
}, | ||
data_attached: [], | ||
roles_inherited: [], | ||
creation_ts: '2024-02-13T20:58:31.358557', | ||
update_ts: '2024-02-13T20:58:31.358649', | ||
start_instance_ts: '2024-02-13T20:59:08.175504', | ||
action_logs: [ | ||
"24/02/13 20:58: Pod object created by 'cgarcia'", | ||
'24/02/13 20:58: spawner set status to CREATING', | ||
'24/02/13 20:59: health set status to AVAILABLE', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Apps } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const createApp = ( | ||
createAppVersionRequest: Apps.CreateAppVersionRequest, | ||
basepath: string, | ||
jwt: string | ||
) => { | ||
const api: Apps.ApplicationsApi = apiGenerator<Apps.ApplicationsApi>( | ||
Apps, | ||
Apps.ApplicationsApi, | ||
basepath, | ||
jwt | ||
); | ||
return errorDecoder<Apps.RespBasic>(() => | ||
api.createAppVersion(createAppVersionRequest) | ||
); | ||
}; | ||
|
||
export default createApp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { default as list } from './list'; | ||
export { default as detail } from './detail'; | ||
export { default as createApp } from './createApp'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Jobs } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
export const cancel = ( | ||
jobCancelReq: Jobs.CancelJobRequest, | ||
basePath: string, | ||
jwt: string | ||
) => { | ||
const api: Jobs.JobsApi = apiGenerator<Jobs.JobsApi>( | ||
Jobs, | ||
Jobs.JobsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Jobs.RespCancelJob>(() => api.cancelJob(jobCancelReq)); | ||
}; | ||
|
||
export default cancel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Jobs } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const hideJob = (jobUuid: string, basePath: string, jwt: string) => { | ||
const api: Jobs.JobsApi = apiGenerator<Jobs.JobsApi>( | ||
Jobs, | ||
Jobs.JobsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Jobs.RespHideJob>(() => api.hideJob({ jobUuid })); | ||
}; | ||
|
||
export default hideJob; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export { default as list } from './list'; | ||
export { default as details } from './details'; | ||
export { default as submit } from './submit'; | ||
export { default as cancel } from './cancel'; | ||
export { default as hideJob } from './hideJob'; | ||
export { default as unhideJob } from './unhideJob'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Jobs } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const unhideJob = (jobUuid: string, basePath: string, jwt: string) => { | ||
const api: Jobs.JobsApi = apiGenerator<Jobs.JobsApi>( | ||
Jobs, | ||
Jobs.JobsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Jobs.RespHideJob>(() => api.unhideJob({ jobUuid })); | ||
}; | ||
|
||
export default unhideJob; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const deletePod = (podId: string, basePath: string, jwt: string) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.DeletePodResponse>(() => api.deletePod({ podId })); | ||
}; | ||
|
||
export default deletePod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const details = (params: Pods.GetPodRequest, basePath: string, jwt: string) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodResponse>(() => api.getPod(params)); | ||
}; | ||
|
||
export default details; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export { default as list } from './list'; | ||
export { default as logs } from './logs'; | ||
export { default as details } from './details'; | ||
export { default as makeNewPod } from './makeNewPod'; | ||
export { default as deletePod } from './deletePod'; | ||
export { default as startPod } from './startPod'; | ||
export { default as restartPod } from './restartPod'; | ||
export { default as stopPod } from './stopPod'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const list = (params: {}, basePath: string, jwt: string) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodsResponse>(() => api.getPods()); | ||
}; | ||
|
||
export default list; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const logs = ( | ||
params: Pods.GetPodLogsRequest, | ||
basePath: string, | ||
jwt: string | ||
) => { | ||
const api: Pods.LogsApi = apiGenerator<Pods.LogsApi>( | ||
Pods, | ||
Pods.LogsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodLogsResponse>(() => api.getPodLogs(params)); | ||
}; | ||
|
||
export default logs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const makeNewPod = ( | ||
reqCreatePod: Pods.CreatePodRequest, | ||
basePath: string, | ||
jwt: string | ||
) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodResponse>(() => api.createPod(reqCreatePod)); | ||
}; | ||
|
||
export default makeNewPod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const restartPod = (podId: string, basePath: string, jwt: string) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodResponse>(() => api.restartPod({ podId })); | ||
}; | ||
|
||
export default restartPod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const startPod = (podId: string, basePath: string, jwt: string) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodResponse>(() => api.startPod({ podId })); | ||
}; | ||
|
||
export default startPod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Pods } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const stopPod = (podId: string, basePath: string, jwt: string) => { | ||
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>( | ||
Pods, | ||
Pods.PodsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Pods.PodResponse>(() => api.stopPod({ podId })); | ||
}; | ||
|
||
export default stopPod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Systems } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const createChildSystem = ( | ||
reqPostChildSystem: Systems.ReqPostChildSystem, | ||
parentId: string, | ||
basePath: string, | ||
jwt: string | ||
) => { | ||
const api: Systems.ChildSystemsApi = apiGenerator<Systems.ChildSystemsApi>( | ||
Systems, | ||
Systems.ChildSystemsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Systems.RespBasic>(() => | ||
api.createChildSystem({ reqPostChildSystem, parentId }) | ||
); | ||
}; | ||
|
||
export default createChildSystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Systems } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const deleteSystem = (systemId: string, basePath: string, jwt: string) => { | ||
const api: Systems.SystemsApi = apiGenerator<Systems.SystemsApi>( | ||
Systems, | ||
Systems.SystemsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Systems.RespBasic>(() => api.deleteSystem({ systemId })); | ||
}; | ||
|
||
export default deleteSystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export { default as list } from './list'; | ||
export { default as details } from './details'; | ||
export { default as listSchedulerProfiles } from './schedulerProfiles'; | ||
export { default as makeNewSystem } from './makeNewSystem'; | ||
export { default as deleteSystem } from './deleteSystem'; | ||
export { default as undeleteSystem } from './undeleteSystem'; | ||
export { default as shareSystemPublic } from './shareSystemPublic'; | ||
export { default as unShareSystemPublic } from './unShareSystemPublic'; | ||
export { default as createChildSystem } from './createChildSystem'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Systems } from '@tapis/tapis-typescript'; | ||
import { apiGenerator, errorDecoder } from 'tapis-api/utils'; | ||
|
||
const makeNewSystem = ( | ||
reqCreateSystem: Systems.CreateSystemRequest, | ||
basePath: string, | ||
jwt: string | ||
) => { | ||
const api: Systems.SystemsApi = apiGenerator<Systems.SystemsApi>( | ||
Systems, | ||
Systems.SystemsApi, | ||
basePath, | ||
jwt | ||
); | ||
return errorDecoder<Systems.RespBasic>(() => | ||
api.createSystem(reqCreateSystem) | ||
); | ||
}; | ||
|
||
export default makeNewSystem; |
Oops, something went wrong.