MCPcopy Index your code
hub / github.com/containerd/fifo

github.com/containerd/fifo @v1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.0 ↗ · + Follow
44 symbols 213 edges 10 files 7 documented · 16% 49 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

OpenFifo
called by 37
fifo.go
Close
called by 33
fifo.go
Read
called by 27
fifo.go
Write
called by 20
fifo.go
Name
called by 20
handle_linux.go
procPath
called by 5
handle_linux.go
Control
called by 3
raw.go
openFifo
called by 2
fifo.go

Shape

Function 26
Method 14
Struct 4

Languages

Go100%

Modules by API surface

fifo_test.go10 symbols
raw_test.go8 symbols
fifo.go7 symbols
handle_linux.go6 symbols
raw.go5 symbols
handle_nolinux.go5 symbols
utils.go1 symbols
fifo_nolinux_test.go1 symbols
fifo_linux_test.go1 symbols

For agents

$ claude mcp add fifo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact