k3s/vendor/github.com/containerd/fifo
Jacob Blain Christen 93b18b343a Update to Kubernetes v1.20.5 (#3094)
* Update to Kubernetes v1.20.5
* vendor: bumps for some containerd deps
* go: bump to 1.16.2 for arm

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
(cherry picked from commit 355fff3017)
2021-03-31 14:18:41 -07:00
..
.gitignore Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
.golangci.yml Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
errors.go Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
fifo.go Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
go.mod Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
go.sum Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
handle_linux.go Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
handle_nolinux.go Update vendor 2019-01-11 21:58:27 -07:00
LICENSE Update vendor 2019-01-11 21:58:27 -07:00
Makefile Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
mkfifo_nosolaris.go Update vendor 2019-01-11 21:58:27 -07:00
mkfifo_solaris.go Update vendor 2019-01-11 21:58:27 -07:00
raw.go Update to Kubernetes v1.20.5 (#3094) 2021-03-31 14:18:41 -07:00
readme.md Update vendor 2019-09-27 16:54:32 -07:00

fifo

Build Status codecov

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.