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