rundaemon

package
v0.0.0-...-7638cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

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 {
	pluginutil.DefaultPlugin
	// 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

func (*Plugin) Start

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

func (*Plugin) Stop

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

Jump to

Keyboard shortcuts

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