systemd

package
v0.0.0-...-34c5bf1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Systemd

type Systemd struct {
	Service *config.Service
	Target  Target
}

Systemd is a deployer for services running under systemd

func (*Systemd) Deploy

func (d *Systemd) Deploy(revision string) error

Deploy deploys the given revision of the service to the target

func (*Systemd) Revision

func (d *Systemd) Revision() (string, error)

Revision returns the currently deployed revision

type Target

type Target interface {
	Name() string
	Host() string
	Username() string
	Directory() string
	Architecture() string
}

Target is the interface implemented by a systemd target

Jump to

Keyboard shortcuts

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