append AsCurrentUser to FnPluginLoadingOptions

This commit is contained in:
Khris Richardson
2021-06-15 12:29:59 -07:00
parent 7e8ba62e9f
commit 727e24f365
2 changed files with 4 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ const (
BploLoadFromFileSys
)
// FnPluginLoadingOptions set way functions-based pluing are restricted
// FnPluginLoadingOptions set way functions-based plugins are restricted
type FnPluginLoadingOptions struct {
// Allow to run executables
EnableExec bool
@@ -55,4 +55,6 @@ type FnPluginLoadingOptions struct {
Mounts []string
// list of env variables to pass to fn
Env []string
// Run as uid and gid of the command executor
AsCurrentUser bool
}