Documentation
¶
Index ¶
- func ReadFileAsRoot(ctx context.Context, fn string, allowPrompt bool) ([]byte, error)
- func RemoveFileAsRoot(ctx context.Context, fn string) error
- func RenameFileAsRoot(ctx context.Context, oldFn, newFn string) error
- func StartDaemon(ctx context.Context, name string, path string, args []string, ...) error
- func SudoReader(ctx context.Context, fn string, allowPrompt bool) (*sudoReader, error)
- func SudoReaderIfNecessary(ctx context.Context, fn string, allowPrompt bool) (io.ReadCloser, error)
- func WriteFileAsRoot(ctx context.Context, fn string, content io.Reader, mode os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileAsRoot ¶
func RenameFileAsRoot ¶ added in v0.7.0
func StartDaemon ¶
func SudoReader ¶
func SudoReaderIfNecessary ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.