cmd

package
v0.6.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppFs = afero.NewOsFs()

wrapper over filesystem, useful for mocking in tests

Functions

func Execute

func Execute() error

func SetVersionInfo

func SetVersionInfo(version, commit, date string)

Types

type Bootstrap

type Bootstrap struct {
	// contains filtered or unexported fields
}

type Client

type Client struct {
	CRIU *criu.Criu
	// contains filtered or unexported fields
}

func (*Client) AddDaemonLayer

func (c *Client) AddDaemonLayer() error

Layers daemon capabilities onto client (adding nats, jetstream and jetstream contexts)

func (*Client) WriteOnlyFds

func (c *Client) WriteOnlyFds(openFds []process.OpenFilesStat, pid int32) []string

WriteOnlyFds takes a snapshot of files that are open (in writeonly) by process PID and outputs full paths. For concurrent processes (multithreaded) this can be dangerous and lead to weird race conditions (maybe). To avoid actually using ptrace (TODO NR) we loop through the openFds of the process and check the flags.

type CommandChannels

type CommandChannels struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL