servicetest

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigServiceMock

type ConfigServiceMock struct {
	*viper.Viper
}

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) NewDaemon

func (ss Sservicemock) NewDaemon(name, description string, dependencies ...string) (d daemon.Daemon, err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL