MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / Handle

Function Handle

agent/utils/controller/controller.go:44–54  ·  view source on GitHub ↗
(operate, serviceName string)

Source from the content-addressed store, hash-verified

42}
43
44func Handle(operate, serviceName string) error {
45 service, err := LoadServiceName(serviceName)
46 if err != nil {
47 return err
48 }
49 client, err := New()
50 if err != nil {
51 return err
52 }
53 return client.Operate(operate, service)
54}
55func HandleStart(serviceName string) error {
56 service, err := LoadServiceName(serviceName)
57 if err != nil {

Callers 3

HandleStartFunction · 0.70
HandleStopFunction · 0.70
HandleRestartFunction · 0.70

Calls 3

LoadServiceNameFunction · 0.70
NewFunction · 0.70
OperateMethod · 0.65

Tested by

no test coverage detected