Documentation
¶
Index ¶
- Variables
- func HooksFromSpec(spec *specs.Hooks, hook LifecycleHook) (hooks []specs.Hook)
- func InvokeHooks(hooks *specs.Hooks, hook LifecycleHook) (err error)
- func MountOptions(mount *specs.Mount) (flags int, opts string)
- func ParseMountOptions(options []string) (flags int, opts string)
- func Rootfs(spec *specs.Root) string
- func RunHook(ctx context.Context, hook specs.Hook) error
- func RunHooks(ctx context.Context, hooks []specs.Hook) (err error)
- type LifecycleHook
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = fmt.Sprintf("%v%v", specs.Version, reducedOciVersionTag)
Functions ¶
func HooksFromSpec ¶
func HooksFromSpec(spec *specs.Hooks, hook LifecycleHook) (hooks []specs.Hook)
HooksFromSpec retrieves the hooks corresponding to the specified lifecycle stage from the specification.
func InvokeHooks ¶
func InvokeHooks(hooks *specs.Hooks, hook LifecycleHook) (err error)
InvokeHooks runs the hooks corresponding to the specified lifecycle stage.
func MountOptions ¶
func ParseMountOptions ¶
Types ¶
type LifecycleHook ¶
type LifecycleHook uint8
const ( HookCreateRuntime LifecycleHook = iota HookCreateContainer HookStartContainer HookPostStart HookPostStop // HookPreStart is deprecated HookPreStart )
Click to show internal directories.
Click to hide internal directories.