summaryrefslogtreecommitdiff
path: root/pkg/backend/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/backend/actions.go')
-rw-r--r--pkg/backend/actions.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkg/backend/actions.go b/pkg/backend/actions.go
new file mode 100644
index 0000000..725a550
--- /dev/null
+++ b/pkg/backend/actions.go
@@ -0,0 +1,21 @@
+package backend
+
+import (
+ "log"
+ "os"
+)
+
+func startVPN() {
+ err := ctx.bm.StartVPN(ctx.Provider)
+ if err != nil {
+ log.Println(err)
+ os.Exit(1)
+ }
+}
+
+func stopVPN() {
+ err := ctx.bm.StopVPN()
+ if err != nil {
+ log.Println(err)
+ }
+}