Documentation
¶
Index ¶
- Variables
- func GetSystemDConfigurationBasePath(ctx *log.Context) (string, error)
- func IsSystemDPresent() bool
- type Manager
- func (*Manager) CreateUnitConfigurationFile(unitName string, content []byte, ctx *log.Context) error
- func (mgr *Manager) DaemonReload(unitName string, ctx *log.Context) error
- func (mgr *Manager) DisableUnit(unitName string, ctx *log.Context) error
- func (mgr *Manager) EnableUnit(unitName string, ctx *log.Context) error
- func (*Manager) GetInstalledVersion(unitName string, ctx *log.Context) (string, error)
- func (mgr *Manager) IsUnitActive(unitName string, ctx *log.Context) error
- func (mgr *Manager) IsUnitEnabled(unitName string, ctx *log.Context) (bool, error)
- func (mgr *Manager) IsUnitInstalled(unitName string, ctx *log.Context) (bool, error)
- func (*Manager) RemoveUnitConfigurationFile(unitName string, ctx *log.Context) error
- func (mgr *Manager) StartUnit(unitName string, ctx *log.Context) error
- func (mgr *Manager) StopUnit(unitName string, ctx *log.Context) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsSystemDPresent ¶
func IsSystemDPresent() bool
Types ¶
type Manager ¶
type Manager struct { }
func NewUnitManager ¶
func NewUnitManager() *Manager
func (*Manager) CreateUnitConfigurationFile ¶
func (*Manager) DaemonReload ¶
func (*Manager) DisableUnit ¶
func (*Manager) EnableUnit ¶
func (*Manager) GetInstalledVersion ¶
Gets the installed version of the extension. The version will look at the service definition and extract it from the ExecStart field as there isn't a way to include a version parameter in the definition. The field looks as follows: ExecStart=/var/lib/waagent/Microsoft.CPlat.Core.RunCOmmandHandlerLinux-1.0.0/bin/immediate-run-command-handler
func (*Manager) IsUnitActive ¶
func (*Manager) IsUnitEnabled ¶
func (*Manager) IsUnitInstalled ¶
func (*Manager) RemoveUnitConfigurationFile ¶
Click to show internal directories.
Click to hide internal directories.