Documentation
¶
Index ¶
- func DefaultGotKV() gotkv.Machine
- type DeleteOp
- type Entry
- type Iterator
- type Operation
- type PutOp
- type Tx
- func (tx *Tx) Abort(ctx context.Context) error
- func (tx *Tx) Apply(ctx context.Context, fsag *gotfs.Machine, ss [2]stores.RW, base *gotfs.Root) (*gotfs.Root, error)
- func (tx *Tx) CheckConflict(ctx context.Context, p string) error
- func (tx *Tx) Clear(ctx context.Context) error
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Delete(ctx context.Context, p string) error
- func (tx *Tx) Discard(ctx context.Context, p string) error
- func (tx *Tx) ForEach(ctx context.Context, fn func(Entry) error) error
- func (tx *Tx) Get(ctx context.Context, p string) (*Operation, error)
- func (tx *Tx) IsEmpty(ctx context.Context) (bool, error)
- func (tx *Tx) Iterate(ctx context.Context, span gotkv.Span) (*Iterator, error)
- func (tx *Tx) Put(ctx context.Context, p string, root gotfs.Root) error
- func (tx *Tx) Store() stores.RW
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGotKV ¶
Types ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx is a transaction on a stage
func New ¶
New wraps a transaction to create a transaction on a Stage paramHash if not-nil, causes operations to error if it does not match the paramHash in the stage
func (*Tx) Get ¶
Get returns the operation, if any, staged for the path p If there is no operation staged Get returns (nil, nil)
Click to show internal directories.
Click to hide internal directories.