MCPcopy
hub / github.com/apptainer/apptainer / WithProfile

Function WithProfile

e2e/internal/e2e/apptainercmd.go:354–358  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

352// RootProfile, RootUserNamespaceProfile will set privileges which
353// means that PreRun and PostRun are executed with privileges.
354func 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.

Callers 15

issue5097Method · 0.92
issue5350Method · 0.92
prepTestFunction · 0.92
testMultipleArchMethod · 0.92
issue4488Method · 0.92
issue4587Method · 0.92
issue4755Method · 0.92
issue4768Method · 0.92
issue4797Method · 0.92
issue4836Method · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected