fakeopener

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeOpener

type FakeOpener struct {
	pkgio.Opener
	Buffer     map[string]*bytes.Buffer
	ReadError  error
	WriteError error
}

func (*FakeOpener) Reader

func (fo *FakeOpener) Reader(ctx context.Context, path string) (pkgio.ReadCloser, error)

func (*FakeOpener) Writer

func (fo *FakeOpener) Writer(ctx context.Context, path string, opts ...pkgio.WriterOptions) (pkgio.WriteCloser, error)

Jump to

Keyboard shortcuts

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