mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Creating callForAllLogsInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
a68ce2b2be
commit
90f8342387
@ -0,0 +1,21 @@
|
|||||||
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
import callForLogsInjectable from "./call-for-logs.injectable";
|
||||||
|
|
||||||
|
const callForAllLogsInjectable = getInjectable({
|
||||||
|
id: "call-for-all-logs",
|
||||||
|
|
||||||
|
instantiate: (di) => {
|
||||||
|
const callForLogs = di.inject(callForLogsInjectable);
|
||||||
|
|
||||||
|
return async (name: string, namespace: string) => {
|
||||||
|
const logs = await callForLogs({
|
||||||
|
name,
|
||||||
|
namespace,
|
||||||
|
});
|
||||||
|
|
||||||
|
return logs;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export default callForAllLogsInjectable;
|
||||||
Loading…
Reference in New Issue
Block a user