WithProfile sets the Apptainer execution profile, this is a convenient way to automatically set requirements like privileges, arguments injection in order to execute Apptainer command with the corresponding profile. RootProfile, RootUserNamespaceProfile will set privileges which means that PreRun an
(profile Profile)
| 352 | // RootProfile, RootUserNamespaceProfile will set privileges which |
| 353 | // means that PreRun and PostRun are executed with privileges. |
| 354 | func WithProfile(profile Profile) ApptainerCmdOp { |
| 355 | return func(s *apptainerCmd) { |
| 356 | s.profile = profile |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | // WithStdin sets a reader to use as input data to pass |
| 361 | // to the apptainer command. |
no outgoing calls
no test coverage detected