-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
#363) * Pods - Start/Restart/Stop/Logs/ActionLogs/Hints/Pretty Tabs/AutoPodID in Modals/Formatting * Ensure no overflow when pressing login and loading icon joins div. Works in most large layouts, not mobile. * Add pods back to Router. Merge had deleted.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +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'; |
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; |
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; |
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; |
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.