Documentation ¶
Index ¶
- type ConfigServiceMock
- type SservicePermissionsMock
- type Sservicemock
- func (ss Sservicemock) CopyExecInOsDefault(execPath string) (newExecPath string, err error)
- func (ss Sservicemock) EraseData(serviceName string) (err error)
- func (ss Sservicemock) GetDefaultConfigPath(serviceName string) (string, error)
- func (ss Sservicemock) GetDefaultExecPath(serviceName string) (string, error)
- func (ss Sservicemock) InstallConfig(serviceName string) (err error)
- func (ss Sservicemock) InstallSetup(serviceName string, cmd *cobra.Command) (err error)
- func (ss Sservicemock) IsAdmin() (bool, error)
- func (ss Sservicemock) IsRunning(status string) bool
- func (ss Sservicemock) NewDaemon(name, description string, dependencies ...string) (d daemon.Daemon, err error)
- func (ss Sservicemock) ReadConfig(serviceName string) (err error)
- func (ss Sservicemock) UninstallExecutables(serviceName string) error
- func (ss Sservicemock) UninstallSetup(serviceName string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigServiceMock ¶
func (*ConfigServiceMock) GetString ¶
func (v *ConfigServiceMock) GetString(key string) string
func (*ConfigServiceMock) ReadConfig ¶
func (v *ConfigServiceMock) ReadConfig(in io.Reader) error
func (*ConfigServiceMock) SetConfigType ¶
func (v *ConfigServiceMock) SetConfigType(in string)
func (*ConfigServiceMock) WriteConfigAs ¶
func (v *ConfigServiceMock) WriteConfigAs(filename string) error
type SservicePermissionsMock ¶
type SservicePermissionsMock struct{}
func (SservicePermissionsMock) GroupCreateIfNotExists ¶
func (ssp SservicePermissionsMock) GroupCreateIfNotExists() (err error)
func (SservicePermissionsMock) SetOwnership ¶
func (ssp SservicePermissionsMock) SetOwnership(path string) (err error)
func (SservicePermissionsMock) UserCreateIfNotExists ¶
func (ssp SservicePermissionsMock) UserCreateIfNotExists() (err error)
type Sservicemock ¶
type Sservicemock struct{}
func (Sservicemock) CopyExecInOsDefault ¶
func (ss Sservicemock) CopyExecInOsDefault(execPath string) (newExecPath string, err error)
func (Sservicemock) EraseData ¶
func (ss Sservicemock) EraseData(serviceName string) (err error)
func (Sservicemock) GetDefaultConfigPath ¶
func (ss Sservicemock) GetDefaultConfigPath(serviceName string) (string, error)
func (Sservicemock) GetDefaultExecPath ¶
func (ss Sservicemock) GetDefaultExecPath(serviceName string) (string, error)
func (Sservicemock) InstallConfig ¶
func (ss Sservicemock) InstallConfig(serviceName string) (err error)
func (Sservicemock) InstallSetup ¶
func (ss Sservicemock) InstallSetup(serviceName string, cmd *cobra.Command) (err error)
func (Sservicemock) IsAdmin ¶
func (ss Sservicemock) IsAdmin() (bool, error)
func (Sservicemock) IsRunning ¶
func (ss Sservicemock) IsRunning(status string) bool
func (Sservicemock) ReadConfig ¶
func (ss Sservicemock) ReadConfig(serviceName string) (err error)
func (Sservicemock) UninstallExecutables ¶
func (ss Sservicemock) UninstallExecutables(serviceName string) error
func (Sservicemock) UninstallSetup ¶
func (ss Sservicemock) UninstallSetup(serviceName string) (err error)
Click to show internal directories.
Click to hide internal directories.