diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-30 00:23:57 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-30 00:25:15 +0900 |
| commit | ba76e2919b6791c78d2c1e79cb50dbc4731a5b00 (patch) | |
| tree | 81bdf965e5372ffb84052cddb48c78d698c74ea8 /bwrap/config.int.go | |
| parent | df29068d1683e044fddf6dd0d0ec24018d66cdc6 (diff) | |
bwrap: implement argument builder
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'bwrap/config.int.go')
| -rw-r--r-- | bwrap/config.int.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bwrap/config.int.go b/bwrap/config.int.go new file mode 100644 index 00000000..27c88c36 --- /dev/null +++ b/bwrap/config.int.go @@ -0,0 +1,22 @@ +package bwrap + +const ( + UID = iota + GID + + intC +) + +var intArgs = func() (n [intC]string) { + n[UID] = "--uid" + n[GID] = "--gid" + + return +}() + +func (c *Config) intArgs() (n [intC]*int) { + n[UID] = c.UID + n[GID] = c.GID + + return +} |
