github.com/nullne/docker@v1.13.0-rc1/api/server/router/plugin/backend.go (about)

     1  package plugin
     2  
     3  import (
     4  	"io"
     5  	"net/http"
     6  
     7  	enginetypes "github.com/docker/docker/api/types"
     8  	"golang.org/x/net/context"
     9  )
    10  
    11  // Backend for Plugin
    12  type Backend interface {
    13  	Disable(name string) error
    14  	Enable(name string) error
    15  	List() ([]enginetypes.Plugin, error)
    16  	Inspect(name string) (enginetypes.Plugin, error)
    17  	Remove(name string, config *enginetypes.PluginRmConfig) error
    18  	Set(name string, args []string) error
    19  	Pull(name string, metaHeaders http.Header, authConfig *enginetypes.AuthConfig) (enginetypes.PluginPrivileges, error)
    20  	Push(name string, metaHeaders http.Header, authConfig *enginetypes.AuthConfig) error
    21  	CreateFromContext(ctx context.Context, tarCtx io.Reader, options *enginetypes.PluginCreateOptions) error
    22  }