gvisorgvisor.dev/gvisor/pkg/sentry/fdcollector Index | Files

package fdcollector

import "gvisor.dev/gvisor/pkg/sentry/fdcollector"

Package fdcollector provides a goroutine that reads from a vfs.FileDescription (which may block) into a bytes.Buffer.

Index

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent represents a goroutine that reads from a vfs.FileDescription (which may block) into a bytes.Buffer.

func NewAgent

func NewAgent(ctx context.Context, rfd *vfs.FileDescription, desc string) *Agent

NewAgent creates a new Fdcollector agent.

func (*Agent) Stop

func (c *Agent) Stop()

Stop stops the goroutine that reads from the vfs.FileDescription.

func (*Agent) String

func (c *Agent) String() string

String returns a string representation of the FdCollector.

Source Files

fdcollector.go

Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
4 hours ago

Tools for package owners.