inout

package
v0.1.607 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Blackbox
	contract.WrapperWriteCloser
}

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) Close added in v0.1.381

func (d *DefaultTool) Close(ctx context.Context, c io.Closer) error

Close closes the given io.Closer.

func (*DefaultTool) Copy added in v0.1.479

func (d *DefaultTool) Copy(ctx context.Context, dst io.Writer, src io.Reader) error

Copy copies data from one io.Reader to another io.Writer.

func (*DefaultTool) Open added in v0.1.498

func (d *DefaultTool) Open(ctx context.Context, path string) (io.ReadCloser, error)

Open opens a file for reading.

func (*DefaultTool) Read added in v0.1.11

func (d *DefaultTool) Read(ctx context.Context, r io.Reader) ([]byte, error)

Read reads data from an input source.

func (*DefaultTool) WrapWriteCloser added in v0.1.594

func (d *DefaultTool) WrapWriteCloser(ctx context.Context, w io.Writer) (io.WriteCloser, error)

WrapWriteCloser wraps the given io.Writer with a no-op Close method.

func (*DefaultTool) Write added in v0.1.381

func (d *DefaultTool) Write(ctx context.Context, w io.Writer, data []byte) error

Write writes the given byte slice to the provided io.Writer.

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