github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/pluginmap/map.go (about)

     1  // pluginmap is a package that contains the mapping of internal plugin
     2  // names to their factories that we can register it in various ways.
     3  package pluginmap
     4  
     5  import (
     6  	"github.com/hashicorp/otto/plugin"
     7  
     8  	appCustom "github.com/hashicorp/otto/builtin/app/custom"
     9  	appDockerExt "github.com/hashicorp/otto/builtin/app/docker-external"
    10  	appGo "github.com/hashicorp/otto/builtin/app/go"
    11  	appJava "github.com/hashicorp/otto/builtin/app/java"
    12  	appNode "github.com/hashicorp/otto/builtin/app/node"
    13  	appPHP "github.com/hashicorp/otto/builtin/app/php"
    14  	appPython "github.com/hashicorp/otto/builtin/app/python"
    15  	appRuby "github.com/hashicorp/otto/builtin/app/ruby"
    16  	appScriptPack "github.com/hashicorp/otto/builtin/app/scriptpack"
    17  )
    18  
    19  var Map = map[string]*plugin.ServeOpts{
    20  	"app-custom":          &plugin.ServeOpts{AppFunc: appCustom.AppFactory},
    21  	"app-docker-external": &plugin.ServeOpts{AppFunc: appDockerExt.AppFactory},
    22  	"app-go":              &plugin.ServeOpts{AppFunc: appGo.AppFactory},
    23  	"app-java":            &plugin.ServeOpts{AppFunc: appJava.AppFactory},
    24  	"app-node":            &plugin.ServeOpts{AppFunc: appNode.AppFactory},
    25  	"app-php":             &plugin.ServeOpts{AppFunc: appPHP.AppFactory},
    26  	"app-python":          &plugin.ServeOpts{AppFunc: appPython.AppFactory},
    27  	"app-ruby":            &plugin.ServeOpts{AppFunc: appRuby.AppFactory},
    28  	"app-scriptpack":      &plugin.ServeOpts{AppFunc: appScriptPack.AppFactory},
    29  }