get.porter.sh/porter@v1.3.0/pkg/secrets/plugins/host/plugin.go (about)

     1  package host
     2  
     3  import (
     4  	"get.porter.sh/porter/pkg/portercontext"
     5  	"get.porter.sh/porter/pkg/secrets/plugins"
     6  	"get.porter.sh/porter/pkg/secrets/pluginstore"
     7  	"github.com/hashicorp/go-plugin"
     8  )
     9  
    10  const PluginKey = plugins.PluginInterface + ".porter.host"
    11  
    12  var _ plugins.SecretsProtocol = Plugin{}
    13  
    14  type Plugin struct {
    15  	Store
    16  }
    17  
    18  func NewPlugin(c *portercontext.Context) plugin.Plugin {
    19  	store := NewStore()
    20  	return pluginstore.NewPlugin(c, store)
    21  }