fsys

package
v0.1.985 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackbox

type Blackbox interface {
	contract.FSysOperator
}

type Client

type Client interface {
	Blackbox
}

func NewClient

func NewClient() Client

type DefaultTool added in v0.1.11

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) FSysReadDir added in v0.1.516

func (d *DefaultTool) FSysReadDir(ctx context.Context, fsys fs.FS, path string) ([]fs.DirEntry, error)

FSysReadDir reads a directory from a file system.

func (*DefaultTool) FSysReadFile added in v0.1.11

func (d *DefaultTool) FSysReadFile(ctx context.Context, fsys fs.ReadFileFS, path string) ([]byte, error)

FSysReadFile reads a file from a file system.

func (*DefaultTool) FSysSub added in v0.1.377

func (d *DefaultTool) FSysSub(ctx context.Context, fsys fs.FS, path string) (fs.FS, error)

FSysSub returns a sub-filesystem rooted at the given path.

type Tool added in v0.1.245

type Tool interface {
	Client
}

Jump to

Keyboard shortcuts

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