Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
type
Snap
struct
{ toolCmd string }
8
9
func
NewSnap() *Snap {
10
return
&Snap{toolCmd:
"snap"
}
11
}
12
13
func
(s *Snap) IsExist(serviceName string) bool {
14
out, err := run(s.toolCmd,
"services"
)
Callers
4
IsActive
Method · 0.70
IsEnable
Method · 0.70
IsExist
Method · 0.70
Operate
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected