github.com/portworx/docker@v1.12.1/api/server/router/plugin/plugin_experimental.go (about)

     1  // +build experimental
     2  
     3  package plugin
     4  
     5  import (
     6  	"github.com/docker/docker/api/server/router"
     7  )
     8  
     9  func (r *pluginRouter) initRoutes() {
    10  	r.routes = []router.Route{
    11  		router.NewGetRoute("/plugins", r.listPlugins),
    12  		router.NewGetRoute("/plugins/{name:.*}", r.inspectPlugin),
    13  		router.NewDeleteRoute("/plugins/{name:.*}", r.removePlugin),
    14  		router.NewPostRoute("/plugins/{name:.*}/enable", r.enablePlugin), // PATCH?
    15  		router.NewPostRoute("/plugins/{name:.*}/disable", r.disablePlugin),
    16  		router.NewPostRoute("/plugins/pull", r.pullPlugin),
    17  		router.NewPostRoute("/plugins/{name:.*}/push", r.pushPlugin),
    18  		router.NewPostRoute("/plugins/{name:.*}/set", r.setPlugin),
    19  	}
    20  }