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
Click to show internal directories.
Click to hide internal directories.