Documentation ¶
Index ¶
- type PkvBindings
- func (pkv *PkvBindings) Commit(txid uint32) error
- func (pkv *PkvBindings) Del(txid uint32, key string) error
- func (pkv *PkvBindings) DelBatch(txid uint32, keys []string) error
- func (pkv *PkvBindings) Get(txid uint32, key string) (*entities.PlugKV, error)
- func (pkv *PkvBindings) NewTxn() (uint32, error)
- func (pkv *PkvBindings) Query(txid uint32, query *store.PkvQuery) ([]*entities.PlugKV, error)
- func (pkv *PkvBindings) RollBack(txid uint32) error
- func (pkv *PkvBindings) Set(txid uint32, key, value string, opts *store.SetOptions) error
- func (pkv *PkvBindings) Update(txid uint32, key, value string, opts *store.UpdateOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PkvBindings ¶
type PkvBindings struct {
// contains filtered or unexported fields
}
func NewPKV ¶
func NewPKV(pkv store.PlugStateKV, tenantid, plugId, agentid string) PkvBindings
func (*PkvBindings) Commit ¶
func (pkv *PkvBindings) Commit(txid uint32) error
func (*PkvBindings) NewTxn ¶
func (pkv *PkvBindings) NewTxn() (uint32, error)
func (*PkvBindings) RollBack ¶
func (pkv *PkvBindings) RollBack(txid uint32) error
func (*PkvBindings) Set ¶
func (pkv *PkvBindings) Set(txid uint32, key, value string, opts *store.SetOptions) error
func (*PkvBindings) Update ¶
func (pkv *PkvBindings) Update(txid uint32, key, value string, opts *store.UpdateOptions) error
Click to show internal directories.
Click to hide internal directories.