MCPcopy Index your code
hub / github.com/docker/docker-agent / setVersion

Method setVersion

pkg/telemetry/types.go:278–282  ·  view source on GitHub ↗

setVersion safely sets the version with proper locking

(version string)

Source from the content-addressed store, hash-verified

276
277// setVersion safely sets the version with proper locking
278func (tc *Client) setVersion(version string) {
279 tc.mu.Lock()
280 defer tc.mu.Unlock()
281 tc.version = version
282}
283
284// getVersion safely gets the version with proper locking
285func (tc *Client) getVersion() string {

Callers 1

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected