svcmgr

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package svcmgr contains integration for managing services on a machine.

Currently supported service managers are systemd, circus, sysv, openrc, and dummy.

Index

Constants

This section is empty.

Variables

View Source
var SupportedBackends = map[string]managerCreator{}

SupportedBackends map of 'backend' -> creator function.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	TakeAction(changeType string, specPath string, caPath string, certPath string, keyPath string) error
}

The Manager interface provides a common API for interacting with service managers.

func New

func New(name string, action string, service string) (Manager, error)

New returns a new service manager.

Jump to

Keyboard shortcuts

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