hookplugins

package
v0.0.0-...-6d8d8d4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterContainerPlugin

func RegisterContainerPlugin(cp ContainerPlugin)

RegisterContainerPlugin is used to register container plugin.

Types

type ContainerPlugin

type ContainerPlugin interface {

	// PostCovert will be called after convert container successful.
	// this plugin pass two parameters:
	// `dockerHomeDir`: specify docker home-dir that we can find the container meta informations.
	// `cont`: which container we will deal with.
	PostConvert(dockerHomeDir string, cont *localtypes.Container) error
}

ContainerPlugin will be called when converts docker container to pouch container.

func GetContainerPlugin

func GetContainerPlugin() ContainerPlugin

GetContainerPlugin returns the container plugin.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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