bridge

package
v0.0.0-...-2413186 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeBs

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

func (BridgeBs) AllKeysChan

func (b BridgeBs) AllKeysChan(ctx ctx.Context) (<-chan cid.Cid, error)

func (BridgeBs) Close

func (c BridgeBs) Close() error

func (BridgeBs) DeleteBlock

func (b BridgeBs) DeleteBlock(ctx.Context, cid.Cid) error

func (BridgeBs) Get

func (b BridgeBs) Get(ctx ctx.Context, key cid.Cid) (blocks.Block, error)

func (BridgeBs) GetRaw

func (b BridgeBs) GetRaw(ctx ctx.Context, key cid.Cid) (value []byte, err error)

func (BridgeBs) GetSize

func (b BridgeBs) GetSize(ctx ctx.Context, key cid.Cid) (size int, err error)

func (BridgeBs) Has

func (b BridgeBs) Has(ctx ctx.Context, key cid.Cid) (exists bool, err error)

func (BridgeBs) HashOnRead

func (b BridgeBs) HashOnRead(enabled bool)

func (BridgeBs) Put

func (BridgeBs) PutMany

func (b BridgeBs) PutMany(ctx.Context, []blocks.Block) error

type BridgeDs

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

func (BridgeDs) Batch

func (b BridgeDs) Batch(ctx ctx.Context) (ds.Batch, error)

func (BridgeDs) Close

func (c BridgeDs) Close() error

func (BridgeDs) Delete

func (b BridgeDs) Delete(ctx ctx.Context, key ds.Key) error

func (BridgeDs) Get

func (b BridgeDs) Get(ctx ctx.Context, key ds.Key) (value []byte, err error)

func (BridgeDs) GetSize

func (b BridgeDs) GetSize(ctx ctx.Context, key ds.Key) (size int, err error)

func (BridgeDs) Has

func (b BridgeDs) Has(ctx ctx.Context, key ds.Key) (exists bool, err error)

func (BridgeDs) Put

func (b BridgeDs) Put(ctx ctx.Context, key ds.Key, value []byte) error

func (BridgeDs) Query

func (b BridgeDs) Query(ctx ctx.Context, q dsq.Query) (dsq.Results, error)

func (BridgeDs) Sync

func (b BridgeDs) Sync(ctx ctx.Context, prefix ds.Key) error

type BridgePlugin

type BridgePlugin struct{}

func (*BridgePlugin) DatastoreConfigParser

func (*BridgePlugin) DatastoreConfigParser() fsrepo.ConfigFromMap

func (*BridgePlugin) DatastoreTypeName

func (*BridgePlugin) DatastoreTypeName() string

func (*BridgePlugin) Init

func (*BridgePlugin) Init(env *plugin.Environment) error

func (*BridgePlugin) Name

func (*BridgePlugin) Name() string

func (*BridgePlugin) Version

func (*BridgePlugin) Version() string

type SwhClient

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

type SwhClientConfig

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

func ParseConfig

func ParseConfig(params map[string]interface{}) (*SwhClientConfig, error)

func (*SwhClientConfig) Create

func (cfg *SwhClientConfig) Create(string) (repo.Datastore, error)

func (*SwhClientConfig) DiskSpec

func (c *SwhClientConfig) DiskSpec() fsrepo.DiskSpec

Jump to

Keyboard shortcuts

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