package
0.0.0-20230628214157-3bfe64699e82
Repository: https://github.com/gravitational/gravity.git
Documentation: pkg.go.dev

# Functions

DefaultUnitPath returns the default path for the specified systemd unit.
FullServiceName returns the full service name (incl.
IsKnownStatus returns whether passed service status is a known status.
IsUnknownServiceError determines whether the err specifies the 'unknown service' error.
MergeInto applies preset config to existing request if request's field is not initialized.
New creates a new instance of the default service manager.
PackageServiceName returns the name of the package service for the specified package locator.
SystemdNameEscape escapes the name according to systemd naming convention.

# Constants

ServiceStatusActivating indicates that service is activating.
ServiceStatusActive means that service is active.
ServiceStatusDeactivating indicates that service is deactivating.
ServiceStatusFailed means that service has failed.
ServiceStatusInactive indicates that service is not running Corresponds to exit code 3.
ServiceStatusUnknown indicates that service does not exist or the status could not be determined - depending on the command.
ServiceSuffix specifies the suffix of the systemd service file.
UnitTypeService defines the service type of the unit file.

# Variables

DefaultListServiceOptions specifies the default configuration to list package services.

# Structs

Dependencies defines dependencies to other services.
DisableServiceRequest describes a request to disable a service.
ListServiceOptions describes additional configuration for listing services.
MountServiceSpec describes specification for a systemd mount service.
NewMountServiceRequest describes a request to create a new systemd mount service.
NewPackageServiceRequest specifies parameters needed to create a new service that is using gravity package manager.
NewServiceRequest describes a request to create a systemd service.
PackageServiceStatus provides the status of a running service.
ServiceSpec is a generic service specification.
UninstallServiceRequest describes a request to uninstall a service.

# Interfaces

ServiceManager is an interface for collaborating with system service managers, e.g.