package
1.5.0
Repository: https://github.com/threefoldtech/0-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddHandle add handler to various process events.
No description provided by the author
No description provided by the author
No description provided by the author
GetProcessFactory gets a process factory from command name.
Internal run builtin command by name.
No description provided by the author
No description provided by the author
Processes returs a list of running processes.
Kill kills a r by the cmd ID.
Killall kills all running processes.
LoadCmd loads cmd from json string.
MustArguments serialize an object to *json.RawMessage.
New initialize singleton process manager.
NewContainerProcess creates a new contained process, used soley fromthe container subsystem.
NewInternalProcess factory to build Runnable processes */.
No description provided by the author
NewJobResult creates a new job result from command.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Register registers a command process factory.
RegisterBuiltIn registers a built in function.
RegisterBuiltInWithCtx registers a built in function that accepts a command and a context.
RegisterExtension registers a new command (extension) so it can be executed via commands */.
Run runs a command immediately (no pre-processors).
RunFactory run a command by creating a process by calling the factory with that command.accepts optional hooks to certain process events.
RunSlice runs a slice of processes honoring dependencies.
No description provided by the author
SetUnprivileged switch to unprivileged mode (no way back) all processthat runs after calling this will has some of their capabilities dropped.
Shutdown kills all running processes.
Start starts the process manager.
System is a wrapper around core.system.

# Constants

No description provided by the author
No description provided by the author
CommandSystem is the first and built in `core.system` command.
StateDuplicateID dublicate id exit status.
StateError error exist status.
StateKilled killed exit status.
StateSuccess successs exit status.
StateTimeout timeout exit status.
StateUnknownCmd unknown cmd exit status.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BackOff a back off strategy.
Command is the main way to communicate witht he process managerA Command.command is matched against a list of know process factoriesthat build the corresponding process to handle the rest of the commandarguments.
ContainerCommandArguments arguments for container command.
No description provided by the author
DelayHook called after a certain amount of time passes from process start.
ExitHook is called when the process exits.
JobFlags to control job behavior but only from the internal APIClients can't set the JobFlags, unlike the other public flags on the Command struct body.
JobResult represents a result of a job.
MatchHook is called if a message matches a given pattern.
NOOPHook empty handler.
PIDHook is called if a process got a PID.
ProcessStats holds process cpu and memory usage.
* Queue is used for sequential cmds exectuions */.
StreamHook captures full stdout and stderr of a process.
No description provided by the author
No description provided by the author
TestingPIDTable is used for testing to mock the process manager.

# Interfaces

Channel is a 2 way communication channel that is mainly usedto talk to the main containerd process `coreX`.
ContainerProcess interface.
Handler defines an interface to receiver the process manager eventsA handler can be any object that implements one or many handle methods below.
MessageHandler gets called on the receive of each single messagefrom all commands.
PIDer a process that can return a PID.
PIDTable a table that keeps track of running process ids.
PreHandler is called with the commands before exectution.
Process interface.
ResultHandler receives the command result on exit.
No description provided by the author
RunnerHook is a per process event handler.
Signaler a process that supports signals.
Stater a process that supports stats query.
StatsHandler receives parsed stats messages.

# Type aliases

GetPID returns a PID of a process.
JobState of a job.
M short hand for map[string]interface{}.
ProcessFactory interface.
Runnable represents a runnable built in function that can be managed by the process manager.
No description provided by the author
Streams holds stdout and stderr of a job.
Tags defines a list of keyword tags.