Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppFs = afero.NewOsFs()
wrapper over filesystem, useful for mocking in tests
Functions ¶
func SetVersionInfo ¶
func SetVersionInfo(version, commit, date string)
Types ¶
type Client ¶
type Client struct {
CRIU *criu.Criu
Process cedana.ProcessInfo
// contains filtered or unexported fields
}
func InstantiateClient ¶ added in v0.6.9
func (*Client) AddDaemonLayer ¶
Layers daemon capabilities onto client (adding nats, jetstream and jetstream contexts)
func (*Client) Restore ¶ added in v0.6.9
func (c *Client) Restore(cmd *cedana.ServerCommand, path *string) error
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
}
Click to show internal directories.
Click to hide internal directories.