daemon

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	// Start is the trigger to kick of the daemon. Returns an
	// error if the Start fails or if it is running already
	Start() error
	// Stop is the trigger to stop the daemon. Returns an
	// error if the Stop fails or if nothing is running already
	Stop() error
}

Daemon is the interface to a background process that is started after a successful pipeline execution. When a rebuild is triggered, the daemon will be stopped and restarted again after a successful execution.

func NewDaemon

func NewDaemon(cmdStr string) Daemon

NewDaemon creates a new Daemon that can be started and stopped using the interface methods.

type Docker added in v0.1.2

type Docker interface {
}

Sidecar describes a backend service for a build pipeline or server

type Runner added in v0.1.2

type Runner interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

func NewRunner added in v0.1.2

func NewRunner(l o.Logger, sidecarCfg map[string]c.Sidecar) (Runner, error)

NewRunner returns a Runner that gives you control over all sidecars.

type Sidecar added in v0.1.2

type Sidecar interface {
	Start(ctx *context.Context) error
	Stop(ctx *context.Context) error
	Reload(ctx *context.Context) error
}

Sidecar describes a backend service for a build pipeline or server

Jump to

Keyboard shortcuts

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