1
0
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:
Alex Andreev 2022-08-01 13:22:01 +03:00
parent a68ce2b2be
commit 90f8342387

View File

@ -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;