Documentation ¶
Index ¶
- type LauncherClient
- func (cl *LauncherClient) List(onlyRunning bool) ([]launcherapi.PluginInfo, error)
- func (cl *LauncherClient) Start() error
- func (cl *LauncherClient) StartAllPlugins() error
- func (cl *LauncherClient) StartPlugin(name string) (launcherapi.PluginInfo, error)
- func (cl *LauncherClient) Stop() error
- func (cl *LauncherClient) StopAllPlugins() error
- func (cl *LauncherClient) StopPlugin(name string) (launcherapi.PluginInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LauncherClient ¶
type LauncherClient struct {
// contains filtered or unexported fields
}
LauncherClient is a marshaller for service messages using a provided hub connection. This uses the default serializer to marshal and unmarshal messages.
func NewLauncherClient ¶
func NewLauncherClient(launcherID string, hc *hubclient.HubClient) *LauncherClient
NewLauncherClient returns a launcher service client
launcherID is the optional ID of the launcher to use. Default is 'launcher' hc is the hub client connection to use.
func (*LauncherClient) List ¶
func (cl *LauncherClient) List(onlyRunning bool) ([]launcherapi.PluginInfo, error)
List services
func (*LauncherClient) StartAllPlugins ¶
func (cl *LauncherClient) StartAllPlugins() error
StartAllPlugins starts all enabled plugins This returns the error from the last service that could not be started
func (*LauncherClient) StartPlugin ¶
func (cl *LauncherClient) StartPlugin(name string) (launcherapi.PluginInfo, error)
StartPlugin requests to start a plugin
func (*LauncherClient) StopAllPlugins ¶
func (cl *LauncherClient) StopAllPlugins() error
StopAllPlugins stops running plugins
func (*LauncherClient) StopPlugin ¶
func (cl *LauncherClient) StopPlugin(name string) (launcherapi.PluginInfo, error)
StopPlugin stops a running plugin
Click to show internal directories.
Click to hide internal directories.