MCPcopy
hub / github.com/lima-vm/lima / isGuestAgentSocketAccessible

Function isGuestAgentSocketAccessible

pkg/hostagent/hostagent.go:844–847  ·  view source on GitHub ↗
(ctx context.Context, client *guestagentclient.GuestAgentClient)

Source from the content-addressed store, hash-verified

842}
843
844func isGuestAgentSocketAccessible(ctx context.Context, client *guestagentclient.GuestAgentClient) bool {
845 _, err := client.Info(ctx)
846 return err == nil
847}
848
849// getClient returns the current guest agent client under the clientMu lock,
850// so callers observe a consistent (non-mid-transition) snapshot.

Callers 2

watchGuestAgentEventsMethod · 0.85
getOrCreateClientMethod · 0.85

Calls 1

InfoMethod · 0.65

Tested by

no test coverage detected