Documentation
¶
Overview ¶
Package credfile keeps files in one private directory held open as a root: the custody the credential store's file needs, and the one package of this module that names the atomic-file dependency.
Its errors carry the dependency's text and never its values, so nothing a consumer can match with errors.Is or errors.As reaches the published surface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir is one private directory under a retained root handle.
func Open ¶
Open establishes custody of one directory level: created at 0700 where absent, refused where it pre-exists with group or other access or another owner, and then held as a root whose own handle is checked again, because opening the root by name re-resolves the path the custody check vouched for. Every call into the dependency carries logger, since the dependency otherwise logs to a sink this library does not own.