Documentation
¶
Index ¶
- type DataMockTest
- func (d *DataMockTest) Init(_ *types.DataStore) error
- func (d *DataMockTest) ListPins(_ context.Context) (map[string]string, error)
- func (d *DataMockTest) Pin(_ context.Context, path string) error
- func (d *DataMockTest) Publish(_ context.Context, o []byte) (string, error)
- func (d *DataMockTest) PublishReader(_ context.Context, r io.Reader) (string, error)
- func (d *DataMockTest) Retrieve(_ context.Context, id string, _ int64) ([]byte, error)
- func (d *DataMockTest) RetrieveDir(_ context.Context, id string, _ int64) (map[string][]byte, error)
- func (*DataMockTest) Stats() map[string]any
- func (*DataMockTest) Stop() error
- func (d *DataMockTest) URIprefix() string
- func (d *DataMockTest) Unpin(_ context.Context, path string) error
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) PublishReader ¶
func (*DataMockTest) RetrieveDir ¶
func (*DataMockTest) Stats ¶
func (*DataMockTest) Stats() map[string]any
func (*DataMockTest) Stop ¶
func (*DataMockTest) Stop() error
func (*DataMockTest) URIprefix ¶
func (d *DataMockTest) URIprefix() string
Click to show internal directories.
Click to hide internal directories.