Created
December 17, 2019 09:44
-
-
Save MartinMuzatko/19d9950c34104aa4d06ba28154824c2a to your computer and use it in GitHub Desktop.
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
const createAppsConfig = configFiles => ({ | |
...configFiles, | |
config: configFiles.appInstances, | |
list: partial(list, [configFiles]), | |
get: partial(get, [configFiles]), | |
create: partial(create, [configFiles]), | |
edit: partial(edit, [configFiles]), | |
remove: partial(remove, [configFiles]), | |
update: partial(update, [configFiles]), | |
initApps: partial(initApps, [configFiles]), | |
getAppURL: partial(getAppURL, [configFiles]), | |
completeSetup: partial(completeSetup, [configFiles]), | |
completeDownload: partial(completeDownload, [configFiles]), | |
validateApp: partial(validateApp, [configFiles]), | |
canUpdate: partial(canUpdate, [configFiles]), | |
canCreateApp: partial(canCreateApp, [configFiles]), | |
unlock: partial(unlock, [configFiles]), | |
}) | |
const appInstances = createConfig(APPSCONFIGPATH) | |
const appCatalog = require('./appCatalog') | |
const updateBackend = require('../../update') | |
module.exports = { | |
file: createAppsConfig({ serverconfig, appCatalog, appInstances }), | |
edit, | |
get, | |
list, | |
update, | |
create, | |
remove, | |
unlock, | |
completeDownload, | |
completeSetup, | |
mergeAppWithDefaults, | |
initApps, | |
findByDockerImage, | |
findById, | |
isDownloadable, | |
isLoading, | |
createAppsConfig, | |
SICONOS_APP, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment