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

Function statePath

pkg/tour/state.go:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29var noTourEnvVars = []string{"DOCKER_AGENT_NO_TOUR", "CAGENT_NO_TOUR"}
30
31func statePath() string {
32 return filepath.Join(paths.GetConfigDir(), ".cagent_tour")
33}
34
35// ReadStatus returns the persisted tour status. A missing file, a read error,
36// or unknown content all read as StatusUnanswered.

Callers 2

ReadStatusFunction · 0.85
writeStatusFunction · 0.85

Calls 1

GetConfigDirFunction · 0.92

Tested by

no test coverage detected