service_public

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable added in v0.0.38

func Disable(name string, now bool) error

func Enable added in v0.0.38

func Enable(name string, now bool) error

func Inspect added in v0.0.16

func Inspect(ctx context.Context, service *Service, state *InspectState) (json.RawMessage, error)

func PrintInspect

func PrintInspect(services ...string) error

func PrintList

func PrintList(settings PrintListSettings) error

func PrintListCommands added in v0.0.15

func PrintListCommands(service *Service) error

func PrintListFilter added in v0.0.16

func PrintListFilter(service *Service, settings PrintListSettings) (bool, error)

func PrintService

func PrintService(name string, settings PrintSettings) error

func Reload

func Reload(definition_path string, opts ReloadOpts) error

func ReloadServices added in v0.0.15

func ReloadServices(inclusive bool, verbose bool) error

func Restart

func Restart(definition_path string, opts RestartOpts) error

func RunServiceCommand added in v0.0.15

func RunServiceCommand(service *Service, direct bool, strictVersion bool, env []string, cmd_name string, args ...string) error

func ServiceSetConfig

func ServiceSetConfig(filename string, config map[string]string) error

func Start

func Start(definition_path string, opts StartOpts) error

func Stop

func Stop(definition_path string, opts StopOpts) error

Types

type InspectState added in v0.0.16

type InspectState struct {
	UnitStatus dbus.UnitStatus `json:"unit_status"`
}

type PrintListSettings

type PrintListSettings struct {
	Unit              bool
	FilterApplication string
	FilterConfig      map[string][]Selector
	FilterJSONPaths   []string
	JSON              bool
	JSONs             bool
	CSV               bool
	CSVSeparator      string
	All               bool
	JSONPath          string
	ResumeBefore      *Selector
	ResumeAfter       *Selector
	StopBefore        *Selector
	StopAfter         *Selector
}

type PrintSettings added in v0.0.45

type PrintSettings struct {
	ShowProxyLocation bool
}

type ReloadOpts added in v0.0.16

type ReloadOpts struct {
	Foreground bool
	Background bool
	NoBlock    bool
}

type RestartOpts added in v0.0.23

type RestartOpts struct {
	Foreground bool
	Background bool
	NoBlock    bool
}

type Selector added in v0.0.16

type Selector struct {
	Selector string
	Value    string
	Negate   bool
}

func (*Selector) Match added in v0.0.16

func (sel *Selector) Match(val string) (bool, error)

type StartOpts added in v0.0.77

type StartOpts struct {
	Foreground bool
	Background bool
}

type StopOpts added in v0.0.55

type StopOpts struct {
	NoBlock              bool
	RemoveAllDeployments bool
}

Jump to

Keyboard shortcuts

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