Documentation
¶
Index ¶
- func Chmod(ctx context.Context, path string, mode fs.FileMode, recursion ...bool) (err error)
- func Chown(ctx context.Context, path string, uid, gid uint32, recursion ...bool) (err error)
- func Fork(ctx context.Context, fOpts ForkOptions) (err error)
- func ForkTag() string
- func IsForkTag(tag string) bool
- func IsSignaled(err error) bool
- func ParseGroupId(nameOrId string) (g *user.Group, err error)
- func ParseUserId(nameOrId string) (u *user.User, err error)
- func Run(ctx context.Context, name string, args []string, opts RunOption) (err error)
- func SetCredential(c *exec.Cmd, uid, gid uint32)
- func SetNewNS(ctx context.Context, c *exec.Cmd)
- func SetPdeathsig(c *exec.Cmd, sig syscall.Signal)
- func Setpgid(c *exec.Cmd)
- func SetupProcAttr(c *exec.Cmd, pdeathsig syscall.Signal, uid, gid uint32)
- func User(userNameOrId, groupNameOrId string) (uid, gid uint32, err error)
- func WalkDir(ctx context.Context, root string, fn func(path string, d fs.DirEntry) error) error
- type EnvSet
- type ForkOptions
- type RunOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSignaled ¶
func SetCredential ¶
Types ¶
type ForkOptions ¶
Click to show internal directories.
Click to hide internal directories.