containerd/vendor/github.com/containerd/fifo
Kazuyoshi Kato 040babe003 Vendor dependencies with module graph pruning
The empty-mod hack no longer works with Go 1.18.

This commit fixes #6586.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2022-03-18 16:49:09 +00:00
..
.gitattributes go.mod: github.com/containerd/fifo v1.0.0 2021-04-19 09:27:45 +02:00
.gitignore Go mod vendor 2020-12-01 01:41:25 +08:00
.golangci.yml Go mod vendor 2020-12-01 01:41:25 +08:00
errors.go go.mod: github.com/containerd/fifo v1.0.0 2021-04-19 09:27:45 +02:00
fifo.go go.mod: github.com/containerd/fifo v1.0.0 2021-04-19 09:27:45 +02:00
handle_linux.go vendor: containerd/fifo f15a3290365b9d2627d189e619ab4008e0069caf 2020-05-11 23:11:33 +02:00
handle_nolinux.go go.mod: github.com/containerd/fifo v1.0.0 2021-04-19 09:27:45 +02:00
LICENSE bump fifo dependency to 69b995 2017-05-23 14:14:54 -04:00
Makefile Go mod vendor 2020-12-01 01:41:25 +08:00
raw.go go.mod: github.com/containerd/fifo v1.0.0 2021-04-19 09:27:45 +02:00
readme.md go.mod: github.com/containerd/fifo v0.0.0-20210316144830-115abcc95a1d 2021-03-16 16:01:16 +01:00
utils.go go.mod: github.com/containerd/fifo v1.0.0 2021-04-19 09:27:45 +02:00

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.