MCPcopy
hub / github.com/IceWhaleTech/CasaOS / ConnectionsService

Interface ConnectionsService

service/connections.go:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21)
22
23type ConnectionsService interface {
24 GetConnectionsList() (connections []model2.ConnectionsDBModel)
25 GetConnectionByHost(host string) (connections []model2.ConnectionsDBModel)
26 GetConnectionByID(id string) (connections model2.ConnectionsDBModel)
27 CreateConnection(connection *model2.ConnectionsDBModel)
28 DeleteConnection(id string)
29 UpdateConnection(connection *model2.ConnectionsDBModel)
30 MountSmaba(username, host, directory, port, mountPoint, password string) error
31 UnmountSmaba(mountPoint string) error
32}
33
34type connectionsStruct struct {
35 db *gorm.DB

Callers 14

IsMountedFunction · 0.65
InitNetworkMountFunction · 0.65
GetSambaConnectionsListFunction · 0.65
InitNetworkMountFunction · 0.65
DeleteSambaConnectionsFunction · 0.65
InitNetworkMountFunction · 0.65
DeleteSambaConnectionsFunction · 0.65
InitNetworkMountFunction · 0.65
InitNetworkMountFunction · 0.65

Implementers 1

connectionsStructservice/connections.go

Calls

no outgoing calls

Tested by

no test coverage detected