vault

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificationStorage added in v0.5.0

type CertificationStorage struct {
	*tokendb.StoreService
}

func (*CertificationStorage) Exists added in v0.5.0

func (t *CertificationStorage) Exists(ctx context.Context, id *token.ID) bool

func (*CertificationStorage) Store added in v0.5.0

func (t *CertificationStorage) Store(ctx context.Context, certifications map[*token.ID][]byte) error

type Provider added in v0.2.0

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

func NewVaultProvider

func NewVaultProvider(
	tokenStoreServiceManager tokens.StoreServiceManager,
	ttxStoreServiceManager ttx.StoreServiceManager,
	auditStoreServiceManager auditor.StoreServiceManager,
) *Provider

func (*Provider) Vault added in v0.2.0

func (v *Provider) Vault(network string, channel string, namespace string) (driver.Vault, error)

type PublicParamsStorage added in v0.5.0

type PublicParamsStorage struct {
	Provider *Provider
}

func (*PublicParamsStorage) PublicParams added in v0.5.0

func (p *PublicParamsStorage) PublicParams(ctx context.Context, networkID string, channel string, namespace string) ([]byte, error)

type QueryEngine added in v0.5.0

type QueryEngine struct {
	*tokendb.StoreService
	// contains filtered or unexported fields
}

func (*QueryEngine) GetStatus added in v0.5.0

func (q *QueryEngine) GetStatus(ctx context.Context, txID string) (driver.TxStatus, string, error)

func (*QueryEngine) IsMine added in v0.5.0

func (q *QueryEngine) IsMine(ctx context.Context, id *token.ID) (bool, error)

func (*QueryEngine) IsPending added in v0.5.0

func (q *QueryEngine) IsPending(ctx context.Context, id *token.ID) (bool, error)

type Vault added in v0.4.0

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

func NewVault added in v0.5.0

func NewVault(tmsID token2.TMSID, auditdb *auditdb.StoreService, ttxdb *ttxdb.StoreService, tokenDB *tokendb.StoreService) (*Vault, error)

func (*Vault) CertificationStorage added in v0.4.0

func (v *Vault) CertificationStorage() driver.CertificationStorage

func (*Vault) DeleteTokens added in v0.5.0

func (v *Vault) DeleteTokens(ctx context.Context, ids ...*token.ID) error

func (*Vault) QueryEngine added in v0.4.0

func (v *Vault) QueryEngine() driver.QueryEngine

Jump to

Keyboard shortcuts

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