systemd

package
v1.21.4-27 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceOpts

type ServiceOpts func(*ServiceUnit) error

func WithInstance

func WithInstance(n string) ServiceOpts

func WithName

func WithName(n string) ServiceOpts

func WithUnitContent

func WithUnitContent(n string) ServiceOpts

type ServiceUnit

type ServiceUnit struct {
	// contains filtered or unexported fields
}

func EdgeVPN

func EdgeVPN(instance string) (ServiceUnit, error)

func Getty

func Getty(i int) (ServiceUnit, error)

func NewService

func NewService(opts ...ServiceOpts) (ServiceUnit, error)

func (ServiceUnit) Enable

func (s ServiceUnit) Enable() error

func (ServiceUnit) OverrideCmd

func (s ServiceUnit) OverrideCmd(cmd string) error

func (ServiceUnit) Start

func (s ServiceUnit) Start() error

func (ServiceUnit) StartBlocking

func (s ServiceUnit) StartBlocking() error

func (ServiceUnit) WriteUnit

func (s ServiceUnit) WriteUnit() error

Jump to

Keyboard shortcuts

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