Discover Packages
github.com/solus-project/libosdev
commands
package
Version:
v0.0.0-...-39032fc
Opens a new window with list of versions in this module.
Published: Nov 13, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 9 modules, 20 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
AddGroup(root, groupName, groupID)
AddSystemUser(root, userName, gecos, home, shell, uid, gid)
AddUser(root, userName, gecos, home, shell, uid, gid)
ChrootExec(dir, command)
ExecStdoutArgs(command, args)
ExecStdoutArgsDir(dir, command, args)
SetStderr(w)
SetStdin(r)
SetStdout(w)
Types
Source Files
Documentation
Documentation
¶
Package commands provides utilities for executing commands within libosdev
func AddGroup(root, groupName string, groupID int) error
func AddSystemUser(root, userName, gecos, home, shell string, uid, gid int) error
func AddUser(root, userName, gecos, home, shell string, uid, gid int) error
func ChrootExec(dir, command string) error
func ExecStdoutArgs(command string, args []string) error
func ExecStdoutArgsDir(dir string, command string, args []string) error
func SetStderr(w io.Writer)
func SetStdin(r io.Reader)
func SetStdout(w io.Writer)
AddGroup will chroot into the given root and add a group
func AddSystemUser(root, userName, gecos, home, shell string , uid, gid int ) error
AddSystemUser will chroot into the given root and add a system user
func AddUser(root, userName, gecos, home, shell string , uid, gid int ) error
AddUser will chroot into the given root and add a user
ChrootExec will run a given command in the chroot directory
ExecStdoutArgs is a convenience function to execute a command on stdout with
the given arguments
ExecStdoutArgsDir is a convenience function to execute a command on stdout with
the given arguments, in the given working directory
SetStderr will override the stderr writer used in the exec commands
SetStdin will override the stdin reader used in the exec commands
SetStdout will override the stdout writer used in the exec commands
Source Files
¶
Click to show internal directories.
Click to hide internal directories.