plugin/backend_unsupported.go
a8139460
 // +build !linux
 
 package plugin
 
 import (
 	"errors"
 	"io"
 	"net/http"
 
3a127939
 	"github.com/docker/distribution/reference"
a8139460
 	"github.com/docker/docker/api/types"
a66e0dc3
 	"github.com/docker/docker/api/types/filters"
a8139460
 	"golang.org/x/net/context"
 )
 
9c559e6d
 var errNotSupported = errors.New("plugins are not supported on this platform")
a8139460
 
 // Disable deactivates a plugin, which implies that they cannot be used by containers.
8cb2229c
 func (pm *Manager) Disable(name string, config *types.PluginDisableConfig) error {
9c559e6d
 	return errNotSupported
a8139460
 }
 
 // Enable activates a plugin, which implies that they are ready to be used by containers.
83ca993c
 func (pm *Manager) Enable(name string, config *types.PluginEnableConfig) error {
9c559e6d
 	return errNotSupported
a8139460
 }
 
 // Inspect examines a plugin config
3d86b0c7
 func (pm *Manager) Inspect(refOrID string) (tp *types.Plugin, err error) {
 	return nil, errNotSupported
a8139460
 }
 
fa3b61a2
 // Privileges pulls a plugin config and computes the privileges required to install it.
3d86b0c7
 func (pm *Manager) Privileges(ctx context.Context, ref reference.Named, metaHeader http.Header, authConfig *types.AuthConfig) (types.PluginPrivileges, error) {
9c559e6d
 	return nil, errNotSupported
a8139460
 }
 
fa3b61a2
 // Pull pulls a plugin, check if the correct privileges are provided and install the plugin.
72c3bcf2
 func (pm *Manager) Pull(ctx context.Context, ref reference.Named, name string, metaHeader http.Header, authConfig *types.AuthConfig, privileges types.PluginPrivileges, out io.Writer, opts ...CreateOpt) error {
fa3b61a2
 	return errNotSupported
 }
 
03c69497
 // Upgrade pulls a plugin, check if the correct privileges are provided and install the plugin.
 func (pm *Manager) Upgrade(ctx context.Context, ref reference.Named, name string, metaHeader http.Header, authConfig *types.AuthConfig, privileges types.PluginPrivileges, outStream io.Writer) error {
 	return errNotSupported
 }
 
a8139460
 // List displays the list of plugins and associated metadata.
a66e0dc3
 func (pm *Manager) List(pluginFilters filters.Args) ([]types.Plugin, error) {
9c559e6d
 	return nil, errNotSupported
a8139460
 }
 
 // Push pushes a plugin to the store.
3d86b0c7
 func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header, authConfig *types.AuthConfig, out io.Writer) error {
9c559e6d
 	return errNotSupported
a8139460
 }
 
 // Remove deletes plugin's root directory.
 func (pm *Manager) Remove(name string, config *types.PluginRmConfig) error {
9c559e6d
 	return errNotSupported
a8139460
 }
 
 // Set sets plugin args
 func (pm *Manager) Set(name string, args []string) error {
9c559e6d
 	return errNotSupported
a8139460
 }
 
 // CreateFromContext creates a plugin from the given pluginDir which contains
 // both the rootfs and the config.json and a repoName with optional tag.
3d86b0c7
 func (pm *Manager) CreateFromContext(ctx context.Context, tarCtx io.ReadCloser, options *types.PluginCreateOptions) error {
9c559e6d
 	return errNotSupported
a8139460
 }