svc

package
v0.0.0-...-86eb347 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunService

func RunService(name string, isDebug bool) error

Run Service runs the Rancher Desktop Privileged Service in Windows services

Types

type Supervisor

type Supervisor struct {
	// contains filtered or unexported fields
}

Supervisor implements service handler interface for Rancher Desktop Privileged Service

func NewSupervisor

func NewSupervisor(portServer *port.Server, logger debug.Log) *Supervisor

func (*Supervisor) Execute

func (s *Supervisor) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (bool, uint32)

Execute is the core of the supervisor service to handle all the service related event requests. Any outside function calls MUST be called in a goroutine. The signature must NOT change since it is part of the standard service handler interface This implements the golang.org/x/sys/windows/svc.Handler interface

Jump to

Keyboard shortcuts

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