rundaemon

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 12

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
	// Context is the agent context for config, identity and logger
	Context context.T
	// 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() bool

IsRunning checks if the daemon is alive

func (*Plugin) Start

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

Start starts the daemon

func (*Plugin) Stop

func (p *Plugin) Stop(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