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

Function writeStatus

pkg/tour/state.go:50–56  ·  view source on GitHub ↗
(status Status)

Source from the content-addressed store, hash-verified

48}
49
50func writeStatus(status Status) error {
51 if err := os.MkdirAll(paths.GetConfigDir(), 0o700); err != nil {
52 return err
53 }
54 //nolint:gosec // marker file with no sensitive content
55 return os.WriteFile(statePath(), []byte(string(status)+"\n"), 0o644)
56}
57
58// MarkDone records that the tour was started, so the first-run offer is not
59// shown again.

Callers 3

MarkDoneFunction · 0.85
MarkNeverFunction · 0.85

Calls 2

GetConfigDirFunction · 0.92
statePathFunction · 0.85

Tested by 1