2024-09-30 00:23:57 +09:00
|
|
|
package bwrap
|
|
|
|
|
|
|
|
const (
|
2024-10-11 01:30:11 +09:00
|
|
|
Tmpfs = iota
|
2024-09-30 00:23:57 +09:00
|
|
|
Dir
|
|
|
|
Symlink
|
|
|
|
|
|
|
|
interfaceC
|
|
|
|
)
|
|
|
|
|
|
|
|
var interfaceArgs = func() (g [interfaceC]string) {
|
|
|
|
g[Tmpfs] = "--tmpfs"
|
|
|
|
g[Dir] = "--dir"
|
|
|
|
g[Symlink] = "--symlink"
|
|
|
|
|
|
|
|
return
|
|
|
|
}()
|
|
|
|
|
|
|
|
func (c *Config) interfaceArgs() (g [interfaceC][]argOf) {
|
|
|
|
g[Tmpfs] = copyToArgOfSlice(c.Tmpfs)
|
|
|
|
g[Dir] = copyToArgOfSlice(c.Dir)
|
|
|
|
g[Symlink] = copyToArgOfSlice(c.Symlink)
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|