tap

package
v0.1.23-oss Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtrlDir    = ".ctrl"
	TapCtrlDir = "tap"

	MaxChunkSize      = 8192
	ChannelMultiplier = 4
	MinimumChannel    = 64
)
View Source
const TapSeqVersion = 0x03

Variables

This section is empty.

Functions

func NewTapTrackNode

func NewTapTrackNode(name string, mode fs.FileMode, isAuto bool) *tapTrackNode

func OSModeToFSMode

func OSModeToFSMode(mode int32) fs.FileMode

func RunTapCmd

func RunTapCmd(cmd *exec.Cmd, tapPath string, showRaw bool, prefix string, strict bool, outDir string, snapshotConcurrency int) (tapResult *entities.TapCmdResult, retErr error)

func TapCommand

func TapCommand(cmd string, chroot, outDir string, strictTappingOff bool, snapshotConcurrency int) (entities.TapCmdResult, error)

func TapDecode

func TapDecode(reader io.Reader, taps chan *entities.TapFSEntry) error

Types

type TapTrack

type TapTrack interface {
	Add(path string, mode fs.FileMode)
	Remove(path string)
	Rename(path, newPath string, newMode fs.FileMode)
	Walk(fn WalkFunc) error
}

func NewTapTrack

func NewTapTrack() TapTrack

type WalkFunc

type WalkFunc = func(path string, mode fs.FileMode) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL