package plugin

import "github.com/docker/docker/plugin"

Index

Functions

func Init

func Init(root string, ps *store.Store, remote libcontainerd.Remote, rs registry.Service, liveRestore bool, evL eventLogger) (err error)

Init (was NewManager) instantiates the singleton Manager. TODO: revert this to NewManager once we get rid of all the singletons.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager controls the plugin subsystem.

func GetManager

func GetManager() *Manager

GetManager returns the singleton plugin Manager

func (*Manager) CreateFromContext

func (pm *Manager) CreateFromContext(ctx context.Context, tarCtx io.Reader, options *types.PluginCreateOptions) error

CreateFromContext creates a plugin from the given pluginDir which contains both the rootfs and the config.json and a repoName with optional tag.

func (*Manager) Disable

func (pm *Manager) Disable(name string) error

Disable deactivates a plugin, which implies that they cannot be used by containers.

func (*Manager) Enable

func (pm *Manager) Enable(name string, config *types.PluginEnableConfig) error

Enable activates a plugin, which implies that they are ready to be used by containers.

func (*Manager) Inspect

func (pm *Manager) Inspect(name string) (tp types.Plugin, err error)

Inspect examines a plugin config

func (*Manager) List

func (pm *Manager) List() ([]types.Plugin, error)

List displays the list of plugins and associated metadata.

func (*Manager) Pull

func (pm *Manager) Pull(name string, metaHeader http.Header, authConfig *types.AuthConfig) (types.PluginPrivileges, error)

Pull pulls a plugin and computes the privileges required to install it.

func (*Manager) Push

func (pm *Manager) Push(name string, metaHeader http.Header, authConfig *types.AuthConfig) error

Push pushes a plugin to the store.

func (*Manager) Remove

func (pm *Manager) Remove(name string, config *types.PluginRmConfig) error

Remove deletes plugin's root directory.

func (*Manager) Set

func (pm *Manager) Set(name string, args []string) error

Set sets plugin args

func (*Manager) StateChanged

func (pm *Manager) StateChanged(id string, e libcontainerd.StateInfo) error

StateChanged updates plugin internals using libcontainerd events.

Source Files

backend_unsupported.go manager.go

Directories

PathSynopsis
plugin/distribution
plugin/store
plugin/v2
Version
v1.13.0-rc3
Published
Dec 5, 2016
Platform
js/wasm
Imports
14 packages
Last checked
1 minute ago

Tools for package owners.