Documentation
¶
Index ¶
- Constants
- Variables
- func CheckBinary() types.Check
- func CheckVersion() types.Check
- func Cleanup(details *daemon.Details) (err error)
- 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 RestoreConsole(next types.Restore) types.Restore
- 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 UpdateStateOnRestore(next types.Restore) types.Restore
- type RuncState
Constants ¶
View Source
const ( RUNC_BINARY = "runc" RUNC_LOG_FILE = "runc.log" )
View Source
const StateFile = "state.json"
Variables ¶
View Source
var ( Run types.Run = run Manage types.Run = manage )
View Source
var RUNC_LOG_DEBUG = log.Logger.GetLevel() <= zerolog.DebugLevel
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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.