aboutsummaryrefslogtreecommitdiffhomepage
path: root/bwrap/config.string.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-07 14:40:35 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-07 14:40:35 +0900
commit6a2802cf309fb9758756c56ef05c9354d9cb9003 (patch)
treed1efa27407aa3a2e1337fa4ffafa3df9fd677ec4 /bwrap/config.string.go
parent0fb9e401912f89d25ff96b0dd36aabf43b4fab8f (diff)
helper: move bwrap into helper
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'bwrap/config.string.go')
-rw-r--r--bwrap/config.string.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/bwrap/config.string.go b/bwrap/config.string.go
deleted file mode 100644
index c5c7a41e..00000000
--- a/bwrap/config.string.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package bwrap
-
-const (
- Hostname = iota
- Chdir
- UnsetEnv
- LockFile
- RemountRO
-
- stringC
-)
-
-var stringArgs = func() (n [stringC]string) {
- n[Hostname] = "--hostname"
- n[Chdir] = "--chdir"
- n[UnsetEnv] = "--unsetenv"
- n[LockFile] = "--lock-file"
- n[RemountRO] = "--remount-ro"
-
- return
-}()
-
-func (c *Config) stringArgs() (n [stringC][]string) {
- if c.Hostname != "" {
- n[Hostname] = []string{c.Hostname}
- }
- if c.Chdir != "" {
- n[Chdir] = []string{c.Chdir}
- }
- n[UnsetEnv] = c.UnsetEnv
- n[LockFile] = c.LockFile
- n[RemountRO] = c.RemountRO
-
- return
-}