openrc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 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 WithName

func WithName(n string) ServiceOpts

func WithRoot

func WithRoot(n string) ServiceOpts

func WithUnitContent

func WithUnitContent(n string) ServiceOpts

type ServiceUnit

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

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

TODO: This is too much k3s specific.

func (ServiceUnit) Restart

func (s ServiceUnit) Restart() 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