Documentation
¶
Index ¶
- Constants
- Variables
- func CheckBinary() types.Check
- func CheckVersion() types.Check
- func CreateContainerForRestore(next types.Restore) types.Restore
- func GetContainerForDump(next types.Dump) types.Dump
- func GetStdioFds(pid int32) ([]string, error)
- func LoadSpecFromBundle(next types.Run) types.Run
- func LoadSpecFromBundleForRestore(next types.Restore) types.Restore
- func Query(ctx context.Context, req *daemon.QueryReq) (*daemon.QueryResp, error)
- func RunHooksOnRestore(next types.Restore) types.Restore
- func RuncLogMsgToString(b []byte) (string, error)
- func SaveState(root string, id string, state *libcontainer.State) (err error)
- func SetPIDForDump(next types.Dump) types.Dump
- func SetUsChildSubreaper(next types.Run) types.Run
- func UpdateStateOnRestore(next types.Restore) types.Restore
- type RuncLogMsg
- type RuncState
Constants ¶
View Source
const ( RUNC_BINARY = "runc" RUNC_LOG_FILE = "runc.log" RUNC_LOG_DEBUG = true )
View Source
const StateFile = "state.json"
Variables ¶
View Source
var ( Run types.Run = run Manage types.Run = manage )
Functions ¶
func CheckVersion ¶
CheckVersion checks the versions associated with the runc binary
func GetStdioFds ¶
lifted from libcontainer -> getPipeFds
func LoadSpecFromBundle ¶
LoadSpecFromBundle loads the spec from the bundle path, and sets it in the context
func LoadSpecFromBundleForRestore ¶
LoadSpecFromBundleForRestore loads the spec from the bundle path, and sets it in the context
func RunHooksOnRestore ¶
Adds CRIU callback to run the prestart and create runtime hooks before the namespaces are setup during restore
func RuncLogMsgToString ¶
func SetUsChildSubreaper ¶
SetUsChildSubreaper sets the current process as the child subreaper
Types ¶
type RuncLogMsg ¶
Click to show internal directories.
Click to hide internal directories.