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.
Click to show internal directories.
Click to hide internal directories.