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

Function CheckEnable

agent/utils/controller/controller.go:100–110  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

98 return client.IsActive(service)
99}
100func CheckEnable(serviceName string) (bool, error) {
101 service, err := LoadServiceName(serviceName)
102 if err != nil {
103 return false, err
104 }
105 client, err := New()
106 if err != nil {
107 return false, err
108 }
109 return client.IsEnable(service)
110}
111
112func Reload() error {
113 client, err := New()

Callers

nothing calls this directly

Calls 3

LoadServiceNameFunction · 0.70
NewFunction · 0.70
IsEnableMethod · 0.65

Tested by

no test coverage detected