MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / NewSnap

Function NewSnap

agent/utils/controller/manager/snap.go:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7type Snap struct{ toolCmd string }
8
9func NewSnap() *Snap {
10 return &Snap{toolCmd: "snap"}
11}
12
13func (s *Snap) IsExist(serviceName string) bool {
14 out, err := run(s.toolCmd, "services")

Callers 4

IsActiveMethod · 0.70
IsEnableMethod · 0.70
IsExistMethod · 0.70
OperateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected