Versions in this module Expand all Collapse all v0 v0.0.4 Jan 27, 2025 Changes in this version + type StorageProvider struct + func New(ctx context.Context, inMemory bool, dbPath string) (*StorageProvider, error) + func (sp *StorageProvider) AcquireLock(ctx context.Context, k lockKey) error + func (sp *StorageProvider) GetAgreement(ctx context.Context, id uuid.UUID) (*odrl.Agreement, error) + func (sp *StorageProvider) GetContractR(ctx context.Context, pid uuid.UUID, role constants.DataspaceRole) (*contract.Negotiation, error) + func (sp *StorageProvider) GetContractRW(ctx context.Context, pid uuid.UUID, role constants.DataspaceRole) (*contract.Negotiation, error) + func (sp *StorageProvider) GetTransferR(ctx context.Context, pid uuid.UUID, role constants.DataspaceRole) (*transfer.Request, error) + func (sp *StorageProvider) GetTransferRW(ctx context.Context, pid uuid.UUID, role constants.DataspaceRole) (*transfer.Request, error) + func (sp *StorageProvider) PutAgreement(ctx context.Context, agreement *odrl.Agreement) error + func (sp *StorageProvider) PutContract(ctx context.Context, negotiation *contract.Negotiation) error + func (sp *StorageProvider) PutTransfer(ctx context.Context, transfer *transfer.Request) error + func (sp *StorageProvider) ReleaseLock(ctx context.Context, k lockKey) error