transient

package
v0.60.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	dbadapter.Store
	// contains filtered or unexported fields
}

Store is a wrapper for a memory store which does not persist data.

func NewStore

func NewStore() *Store

NewStore constructs a new transient store.

func (*Store) Commit

func (ts *Store) Commit() (id types.CommitID)

Implements CommitStore Commit cleans up Store.

func (*Store) GetPruning

func (ts *Store) GetPruning() pruningtypes.PruningOptions

func (*Store) GetStoreType

func (ts *Store) GetStoreType() types.StoreType

Implements Store.

func (*Store) LastCommitID

func (ts *Store) LastCommitID() (id types.CommitID)

func (*Store) SetPruning

func (ts *Store) SetPruning(pruningtypes.PruningOptions)

Jump to

Keyboard shortcuts

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