moby--moby/pkg/pidfile
Sebastiaan van Stijn 43d6eb7173
pkg/pidfile: remove PIDFile type, rename New() to Write()
This type felt really redundant; `pidfile.New()` takes the path of the file to
create as an argument, so this is already known. The only thing the PIDFile
type provided was a `Remove()` method, which was just calling `os.Remove()` on
the path of the file.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-10-15 16:40:16 +02:00
..
pidfile.go pkg/pidfile: remove PIDFile type, rename New() to Write() 2022-10-15 16:40:16 +02:00
pidfile_darwin.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
pidfile_test.go pkg/pidfile: remove PIDFile type, rename New() to Write() 2022-10-15 16:40:16 +02:00
pidfile_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
pidfile_windows.go pkg/pidfile: replace uses of windows.Close() with windows.CloseHandle() 2022-10-09 13:27:58 +02:00