buildkit/vendor/github.com/containerd/fifo
Tonis Tiigi 2d18f3a923 gomod: update to go1.17
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-16 20:00:00 -07:00
..
.gitattributes go.mod: containerd v1.5.0-rc.2 2021-04-21 03:43:35 +09:00
.gitignore vendor: update containerd and dependencies to current master 2020-05-14 21:01:44 +02:00
.golangci.yml vendor: update containerd and dependencies to current master 2020-05-14 21:01:44 +02:00
LICENSE worker: runc worker exection 2017-06-02 10:20:05 -07:00
Makefile vendor: update containerd and dependencies to current master 2020-05-14 21:01:44 +02:00
errors.go go.mod: containerd v1.5.0-rc.2 2021-04-21 03:43:35 +09:00
fifo.go go.mod: containerd v1.5.0-rc.2 2021-04-21 03:43:35 +09:00
handle_linux.go vendor: update containerd and dependencies to current master 2020-05-14 21:01:44 +02:00
handle_nolinux.go go.mod: containerd v1.5.0-rc.2 2021-04-21 03:43:35 +09:00
raw.go go.mod: containerd v1.5.0-rc.2 2021-04-21 03:43:35 +09:00
readme.md AkihiroSuda/containerd-fuse-overlayfs -> containerd/fuse-overlayfs-snapshotter 2021-03-23 18:43:01 +09:00
utils.go go.mod: containerd v1.5.0-rc.2 2021-04-21 03:43:35 +09:00

readme.md

fifo

PkgGoDev Build Status codecov Go Report Card

Go package for handling fifos in a sane way.

// OpenFifo opens a fifo. Returns io.ReadWriteCloser.
// Context can be used to cancel this function until open(2) has not returned.
// Accepted flags:
// - syscall.O_CREAT - create new fifo if one doesn't exist
// - syscall.O_RDONLY - open fifo only from reader side
// - syscall.O_WRONLY - open fifo only from writer side
// - syscall.O_RDWR - open fifo from both sides, never block on syscall level
// - syscall.O_NONBLOCK - return io.ReadWriteCloser even if other side of the
//     fifo isn't open. read/write will be connected after the actual fifo is
//     open or after fifo is closed.
func OpenFifo(ctx context.Context, fn string, flag int, perm os.FileMode) (io.ReadWriteCloser, error)


// Read from a fifo to a byte array.
func (f *fifo) Read(b []byte) (int, error)


// Write from byte array to a fifo.
func (f *fifo) Write(b []byte) (int, error)


// Close the fifo. Next reads/writes will error. This method can also be used
// before open(2) has returned and fifo was never opened.
func (f *fifo) Close() error 

Project details

The fifo is a containerd sub-project, licensed under the Apache 2.0 license. As a containerd sub-project, you will find the:

information in our containerd/project repository.