Documentation ¶
Index ¶
- type DuplicateError
- type NotFoundError
- type ObjectType
- type Repo
- type Tx
- func (tx *Tx) AllocateId() (uint64, error)
- func (tx *Tx) Associate(id uint64, name string) error
- func (tx *Tx) Delete(id uint64) error
- func (tx *Tx) ForEach(fn func(uint64, []byte) error) error
- func (tx *Tx) Get(id uint64) ([]byte, error)
- func (tx *Tx) Lookup(name string) (uint64, error)
- func (tx *Tx) Put(id uint64, v []byte) error
- func (tx *Tx) Unassociate(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplicateError ¶
type DuplicateError struct { Type ObjectType ExistingId uint64 DesiredName string }
func (*DuplicateError) Error ¶
func (err *DuplicateError) Error() string
type NotFoundError ¶
type NotFoundError struct { Type ObjectType Id uint64 Name string }
func (*NotFoundError) Error ¶
func (err *NotFoundError) Error() string
type ObjectType ¶
type ObjectType string
const ( BLOB ObjectType = "blob" USER ObjectType = "user" GROUP ObjectType = "group" )
func (ObjectType) GoString ¶
func (ot ObjectType) GoString() string
func (ObjectType) String ¶
func (ot ObjectType) String() string
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) AllocateId ¶
func (*Tx) Unassociate ¶
Click to show internal directories.
Click to hide internal directories.