An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/zchee/ctxfs

Package ctxfs provides Context-aware file system access. A file is typically opened with Open or Create. The File object can provide io.Reader and io.Writer views on the file bound to a context using the IO method. For example to read a file: Interrupting the underlying system calls is implemented using operating system signals. This package uses SIGUSR1, programs that use this package should avoid using that signal to minimize the performance penalty. There are several known conditions where blocking system calls cannot be interrupted even by non-restartable signals. In those cases, canceling a context will not work. Examples include: - darwin will not interrupt a partially successful write to a pipe - linux will not interrupt normal disk I/O (see SA_RESTART in signal(7)). As cancellation of contexts should be treated as advisory, it is best to program with the expectation that some calls will not be cleaned up promptly. If this is not possible, calling the SetNonBlocking method on a File object will enable non-blocking I/O. The contract of the io.Reader and io.Writer interfaces will be met, though at a potential performance penalty. TODO: document and implement OpenLimit.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20181201042912-05071e81dcba
over 7 years ago
Versions
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/zchee/ctxfs
spec
License BSD-3-Clause
Namespace github.com/zchee
First Release over 7 years ago
Last Synced 12 days ago
Keywords
context filesystem go
Repository
Stars 2 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%