MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / cleanup

Function cleanup

app/cli/cmd/root.go:386–394  ·  view source on GitHub ↗
(conn *grpc.ClientConn)

Source from the content-addressed store, hash-verified

384}
385
386func cleanup(conn *grpc.ClientConn) error {
387 cleanupPlugins()
388 if conn != nil {
389 if err := conn.Close(); err != nil {
390 return err
391 }
392 }
393 return nil
394}
395
396// Load the controlplane based on the following order:
397// 1. If the command requires an API token, we load it and fail otherwise

Callers 7

TestNewFunction · 0.85
WireTestDataFunction · 0.85
wireAppFunction · 0.85
mainFunction · 0.85
NewRootCmdFunction · 0.85
wireAppFunction · 0.85
mainFunction · 0.85

Calls 2

cleanupPluginsFunction · 0.85
CloseMethod · 0.45

Tested by 1

TestNewFunction · 0.68