Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hook system to UI #20

Open
rsp9u opened this issue Jan 23, 2020 · 0 comments
Open

Add hook system to UI #20

rsp9u opened this issue Jan 23, 2020 · 0 comments

Comments

@rsp9u
Copy link
Owner

rsp9u commented Jan 23, 2020

  • I hope that a new VM is created then VNC forward will be added.
  • I hope that a VM is deleted then the associated forwards will be deleted.

These use case would be satisfied the hook system which run with user operations.

hook matrix

  • resource
    • VM
    • forward
  • CRUD
    • create
    • delete
  • timing
    • pre
    • post

hook script language

javascript

hook script store

$VMM_DIR/hooks

hook script naming convention

  • $resouce-$CRUD-$timing[-.*].js
  • e.g. vm-create-post.js, vm-create-post-vnc.js, vm-delete-post-delete-allfw.js

hook script example

TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant