Documentation
¶
Overview ¶
Package plugin_host_static resolves LookupPluginHost with a fixed set of plugin hosts that another component runs.
Index ¶
Constants ¶
View Source
const ControllerID = "bldr/plugin/host/static"
ControllerID is the static plugin host controller ID.
Variables ¶
View Source
var Version = controller.MustParseVersion("0.0.1")
Version is the static plugin host controller version.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller resolves LookupPluginHost with a fixed set of plugin hosts. It publishes the hosts without running them; their owner runs them.
func NewController ¶
func NewController(hosts []plugin_host.PluginHost) *Controller
NewController constructs a controller that publishes hosts.
func (*Controller) Close ¶
func (c *Controller) Close() error
Close releases any resources used by the controller.
func (*Controller) Execute ¶
func (c *Controller) Execute(context.Context) error
Execute executes the controller.
func (*Controller) GetControllerInfo ¶
func (c *Controller) GetControllerInfo() *controller.Info
GetControllerInfo returns information about the controller.
func (*Controller) HandleDirective ¶
func (c *Controller) HandleDirective( _ context.Context, inst directive.Instance, ) ([]directive.Resolver, error)
HandleDirective resolves LookupPluginHost with the hosts matching its platform IDs.
Click to show internal directories.
Click to hide internal directories.