rundaemon

package
v0.0.0-...-a9ed6da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package rundaemon implements rundaemon plugin and its configuration

Package rundaemon implements rundaemon plugin and its configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDaemonInput

func ValidateDaemonInput(input ConfigureDaemonPluginInput) error

ValidateDaemonInput validates the input given to configure daemon

Types

type ConfigureDaemonPluginInput

type ConfigureDaemonPluginInput struct {
	contracts.PluginInput
	Name            string `json:"name"`
	Action          string `json:"action"`
	PackageLocation string `json:"packagelocation"`
	Command         string `json:"command"`
}

ConfigureDaemonPluginInput represents an action to run a package as a daemon.

type Plugin

type Plugin struct {
	iohandler.PluginConfig
	// ExeLocation is the location directory for a particular daemon
	ExeLocation string
	// Name is the name of the daemon
	Name string
	// CommandLine is the command line to launch the daemon (On Windows, ame of executable or a powershell script)
	CommandLine string
}

Plugin is the type for the configureDaemon plugin.

func (*Plugin) IsRunning

func (p *Plugin) IsRunning(context context.T) bool

IsRunning checks if the daemon is alive

func (*Plugin) Start

func (p *Plugin) Start(context context.T, configuration string, orchestrationDir string, cancelFlag task.CancelFlag, out iohandler.IOHandler) error

Start starts the daemon

func (*Plugin) Stop

func (p *Plugin) Stop(context context.T, cancelFlag task.CancelFlag) error

Stop stops the daemon

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL