prehook

package
v1.0.0-rc4-1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreHook

func PreHook(opt *HookOptions, spec *specs.Spec) error

func RegisterPreHook

func RegisterPreHook(f *HookRegistration)

Types

type HookFunc

type HookFunc func(opt *HookOptions, spec *specs.Spec) error

type HookOptions

type HookOptions struct {
	//container rootfs path
	RootfsDir string
	//container id
	ID string
}

func CreateHookOptions

func CreateHookOptions(context *cli.Context, spec *specs.Spec) (*HookOptions, error)

type HookRegistration

type HookRegistration struct {
	Type    string
	RunFunc HookFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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