Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PodmanServiceName is the service name of podman service PodmanServiceName = "container-atest.service" SystemCtl = "systemctl" ServiceName = "atest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶ added in v0.0.15
type Service interface { Start() (string, error) // start the service Stop() (string, error) // stop the service gracefully Restart() (string, error) // restart the service gracefully Status() (string, error) // status of the service Install() (string, error) // install the service Uninstall() (string, error) // uninstall the service }
Service is the interface of service
func NewService ¶ added in v0.0.15
func NewService(execer fakeruntime.Execer, scriptPath string) Service
Click to show internal directories.
Click to hide internal directories.