datamocktest

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMockTest

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

DataMockTest is a mock data provider for testing purposes.

func (*DataMockTest) Init

func (d *DataMockTest) Init(_ *types.DataStore) error

func (*DataMockTest) ListPins

func (d *DataMockTest) ListPins(_ context.Context) (map[string]string, error)

func (*DataMockTest) Pin

func (d *DataMockTest) Pin(_ context.Context, path string) error

func (*DataMockTest) Publish

func (d *DataMockTest) Publish(_ context.Context, o []byte) (string, error)

func (*DataMockTest) PublishReader

func (d *DataMockTest) PublishReader(_ context.Context, r io.Reader) (string, error)

func (*DataMockTest) Retrieve

func (d *DataMockTest) Retrieve(_ context.Context, id string, _ int64) ([]byte, error)

func (*DataMockTest) RetrieveDir

func (d *DataMockTest) RetrieveDir(_ context.Context, id string, _ int64) (map[string][]byte, error)

func (*DataMockTest) Stats

func (*DataMockTest) Stats() map[string]any

func (*DataMockTest) Stop

func (*DataMockTest) Stop() error

func (*DataMockTest) URIprefix

func (d *DataMockTest) URIprefix() string

func (*DataMockTest) Unpin

func (d *DataMockTest) Unpin(_ context.Context, path string) error

Jump to

Keyboard shortcuts

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