Documentation
¶
Index ¶
- Constants
- func Args(user, group string, args ...string) []string
- func AssembleSudoersFragments(fragments ...string) string
- func ContainsActiveFragment(file, fragment string) bool
- func NOPASSWD(subject, runAsUser, runAsGroup string, commands ...string) string
- func NewCommand(ctx context.Context, user, group string, stdin io.Reader, ...) *exec.Cmd
- func Run(ctx context.Context, user, group string, stdin io.Reader, ...) error
Constants ¶
View Source
const RegenerateGrantWarning = "" /* 190-byte string literal not displayed */
RegenerateGrantWarning applies even to network-only callers: they may be replacing a file that also contains block-device grants.
Variables ¶
This section is empty.
Functions ¶
func Args ¶
Args is the one place that defines Lima's non-interactive sudo invocation shape. Callers own the actual helper command names and sudoers policy; this package only keeps the invocation mechanics consistent.
func AssembleSudoersFragments ¶
AssembleSudoersFragments joins already-rendered sudoers fragments into a single file. The individual fragments stay owned by their domain packages; this helper only handles the generic newline normalization needed to concatenate them.
func ContainsActiveFragment ¶
func NewCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.