package
0.0.0-20241011174943-18b16e6b932c
Repository: https://github.com/digitalocean/droplet-agent.git
Documentation: pkg.go.dev

# Functions

NewSysManager returns a new SysManager Object.

# Variables

ErrCreateFileFailed indicates the error of failing to create a file.
ErrGetUserFailed indicates the system call for fetching user entry from passwd has failed.
ErrMakeDirFailed indicates the system call for making a directory has failed.
ErrRunCmdFailed is returned when a command is failed to run.
ErrUserNotFound indicates the user does not exist in the system.

# Structs

CmdResult struct contains the result of executing a command.
SysManager is the tool for interacting with the OS.
User struct contains information of a user.