resappsimple

package
v3.0.0-rc67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 31 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Driver

Types

type T

type T struct {
	resapp.T
	Kill string `json:"kill"`
}

T is the driver structure.

func (*T) DriverID

func (t *T) DriverID() driver.ID

func (*T) Label

func (t *T) Label(_ context.Context) string

Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource

func (*T) Manifest

func (t *T) Manifest() *manifest.T

Manifest ...

func (*T) Signal

func (t *T) Signal(ctx context.Context, sig syscall.Signal) error

Signal implements the signal action, as the signal of an install line asks a reload of the application whose configuration file changed. It sends sig to the processes the stop terminates, as the kill keyword says: every process of the resource by default, which reaches the application under the shell running its start command, and the process the start command launched with kill = parent, for a server passing a signal on to its workers as it chooses.

func (*T) Start

func (t *T) Start(ctx context.Context) (err error)

Start the Resource

func (*T) Status

func (t *T) Status(ctx context.Context) status.T

func (*T) Stop

func (t *T) Stop(ctx context.Context) error

Stop runs the stop command, if any, then terminates the processes the start command left running, as v2 did: a stop command telling the application to stop, or cleaning after it, does not always end the processes it was started as, and the resource would stay up. A stop command set to false does nothing.

Jump to

Keyboard shortcuts

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