Documentation ¶
Index ¶
- func GetExecutableName() (string, error)
- func GetLatestTag(repo string) (string, error)
- func GetPublicIP() (string, error)
- func KillProcess(config config.Config) error
- func RestartApplication()
- func RestartService(config config.Config)
- func RunViaBatch(config config.Config, exepath string, args []string) error
- func SetTitle(title string)
- type Restarter
- type Tag
- type UnixRestarter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestTag ¶
func GetPublicIP ¶
func KillProcess ¶
func RunViaBatch ¶
RunViaBatch 函数接受配置,程序路径和参数数组
Types ¶
type UnixRestarter ¶
type UnixRestarter struct{}
UnixRestarter implements the Restarter interface for Unix-like systems.
func NewRestarter ¶
func NewRestarter() *UnixRestarter
NewRestarter creates a new Restarter appropriate for Unix-like systems.
func (*UnixRestarter) Restart ¶
func (r *UnixRestarter) Restart(executableName string) error
Restart restarts the application on Unix-like systems.
Click to show internal directories.
Click to hide internal directories.