plugin

package
v1.13.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: Apache-2.0 Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v1.13.0

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 added in v1.13.0

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 added in v1.13.0

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

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

func (*Manager) Enable added in v1.13.0

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 added in v1.13.0

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

Inspect examines a plugin config

func (*Manager) List added in v1.13.0

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

List displays the list of plugins and associated metadata.

func (*Manager) Privileges added in v1.13.0

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

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

func (*Manager) Pull added in v1.13.0

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

Pull pulls a plugin, check if the correct privileges are provided and install the plugin.

func (*Manager) Push added in v1.13.0

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

Push pushes a plugin to the store.

func (*Manager) Remove added in v1.13.0

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

Remove deletes plugin's root directory.

func (*Manager) Set added in v1.13.0

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

Set sets plugin args

func (*Manager) Shutdown added in v1.13.0

func (pm *Manager) Shutdown()

Shutdown stops all plugins and called during daemon shutdown.

func (*Manager) StateChanged added in v1.13.0

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

StateChanged updates plugin internals using libcontainerd events.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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