kaniko/vendor/github.com/containerd/fifo
Jason Hall 6bbd8a331c
Bump deps (#1885)
```
* use go 1.17 semantics in go.mod
* pin tonistiigi/fsutil dep to match docker/docker's dep
go get -u ./...
go mod vendor
```
2022-01-21 13:59:16 -05:00
..
.gitattributes Bump deps (#1885) 2022-01-21 13:59:16 -05:00
.gitignore Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
.golangci.yml Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
LICENSE Updated vendor for exported BuildArgs 2018-05-09 11:56:32 -07:00
Makefile Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
errors.go Bump deps (#1885) 2022-01-21 13:59:16 -05:00
fifo.go Bump deps (#1885) 2022-01-21 13:59:16 -05:00
handle_linux.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
handle_nolinux.go Bump deps (#1885) 2022-01-21 13:59:16 -05:00
raw.go Bump deps (#1885) 2022-01-21 13:59:16 -05:00
readme.md Bump deps (#1885) 2022-01-21 13:59:16 -05:00
utils.go Bump deps (#1885) 2022-01-21 13:59:16 -05: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.