package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ContainerUsage retrieves per-container CPU usage.
ExecAsync runs a new task, but doesn't wait for it to finish.
NewFilePayload returns a FilePayload that maps file descriptors to files inside the executed process and provides a file for execution.
NewMemoryUsageRecord creates a new MemoryUsageRecord from usageFile and platformFile.
NewProfile returns a new Profile object.
PrintPIDsJSON prints a JSON object containing only the PIDs in pl.
Processes retrieves information about processes running in the sandbox with the given container id.
ProcessListToJSON will return the JSON representation of ps.
ProcessListToTable prints a table with the following format: UID PID PPID C TTY STIME TIME CMD 0 1 0 0 pty/4 14:04 505262ns tail.
# Constants
DefaultBlockProfileRate is the default profiling rate for block profiles.
DefaultMutexProfileRate is the default profiling rate for mutex profiles.
# Variables
ErrInvalidFiles is returned when the urpc call to Save does not include an appropriate file payload (e.g.
# Structs
BlockProfileOpts contains options specifically for block profiles.
CatOpts contains options for the Cat RPC call.
CgroupControlFile identifies a specific control file within a specific cgroup, for the hierarchy with a given controller.
Cgroups contains the state for cgroupfs related control commands.
CgroupsReadArg represents the arguments for a single read command.
CgroupsReadArgs represents the list of arguments for a batched read command.
CgroupsResult represents the result of a cgroup operation.
CgroupsResults represents the list of results for a batch command.
CgroupsWriteArg represents the arguments for a single write command.
CgroupsWriteArgs represents the lust of arguments for a batched write command.
Container contains the set of parameters to represent a container.
ContainerArgs is the set of arguments for container related APIs after starting the container.
CPUProfileOpts contains options specifically for CPU profiles.
Events is the control server state for eventchannel-related commands.
EventsOpts are the arguments for eventchannel-related commands.
ExecArgs is the set of arguments to exec.
FilePayload aids to ensure that payload files and guest file descriptors are consistent when instantiated through the NewFilePayload helper method.
Fs includes fs-related functions.
GetRegisteredMetricsOpts contains metric registration query options.
GoroutineProfileOpts contains options specifically for goroutine profiles.
HeapProfileOpts contains options specifically for heap profiles.
Lifecycle provides functions related to starting and stopping tasks.
Logging provides functions related to logging.
LoggingArgs are the arguments to use for changing the logging level and strace list.
MemoryUsage is a memory usage structure.
MemoryUsageFile contains the file handle to the usage file.
MemoryUsageFileOpts contains usage file options.
MemoryUsageOpts contains usage options.
MemoryUsageRecord contains the mapping and platform memory file.
Metrics includes metrics-related RPC stubs.
MetricsExportData contains data for all metrics being exported.
MetricsExportOpts contains metric exporting options.
MetricsRegistrationResponse contains metric registration data.
MutexProfileOpts contains options specifically for mutex profiles.
Proc includes task-related functions.
Process contains information about a single process in a Sandbox.
Profile includes profile-related RPC stubs.
PsArgs is the set of arguments to ps.
SaveOpts contains options for the Save RPC call.
SignalContainerArgs is the set of arguments for signalling a container.
StartContainerArgs is the set of arguments to start a container.
State includes state-related functions.
TraceProfileOpts contains options specifically for traces.
Usage includes usage-related RPC stubs.
UsageReduceOpts contains options to Usage.Reduce().
UsageReduceOutput contains output from Usage.Reduce().