MCPcopy
hub / github.com/caddyserver/certmagic / File

Interface File

internal/atomicfile/file.go:49–53  ·  view source on GitHub ↗

File is an io.ReadWriteCloser that can also be Canceled if a change needs to be abandoned.

Source from the content-addressed store, hash-verified

47
48// File is an io.ReadWriteCloser that can also be Canceled if a change needs to be abandoned.
49type File interface {
50 io.ReadWriteCloser
51 // Cancel abandons a change to a file. This can be called if a write fails or another error occurs.
52 Cancel() error
53}
54
55// ErrClosed is returned if Read or Write are called on a closed File.
56var ErrClosed = errors.New("file is closed")

Callers 1

StoreMethod · 0.65

Implementers 1

atomicFileinternal/atomicfile/file.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…