package guts_cli
import "go.etcd.io/bbolt/internal/guts_cli"
Index ¶
- Constants
- Variables
- func GetRootPage(path string) (root Pgid, activeMeta Pgid, err error)
- func WritePage(path string, pageBuf []byte) error
- type BranchPageElement
- type Bucket
- func LoadBucket(buf []byte) *Bucket
- func (b *Bucket) InlinePage(v []byte) *Page
- func (b *Bucket) RootPage() Pgid
- func (b *Bucket) String() string
- type LeafPageElement
- func (n *LeafPageElement) Bucket() *Bucket
- func (n *LeafPageElement) IsBucketEntry() bool
- func (n *LeafPageElement) Key() []byte
- func (n *LeafPageElement) Value() []byte
- type Meta
- func LoadPageMeta(buf []byte) *Meta
- func (m *Meta) Print(w io.Writer)
- func (m *Meta) RootBucket() *Bucket
- func (m *Meta) Txid() uint64
- type Page
- func LoadPage(buf []byte) *Page
- func ReadPage(path string, pageID uint64) (*Page, []byte, error)
- func (p *Page) BranchPageElement(index uint16) *BranchPageElement
- func (p *Page) Count() uint16
- func (p *Page) FreelistPageCount() int
- func (p *Page) FreelistPagePages() []Pgid
- func (p *Page) Id() Pgid
- func (p *Page) LeafPageElement(index uint16) *LeafPageElement
- func (p *Page) Overflow() uint32
- func (p *Page) SetCount(target uint16)
- func (p *Page) SetId(target Pgid)
- func (p *Page) SetOverflow(target uint32)
- func (p *Page) String() string
- func (p *Page) Type() string
- type Pgid
Constants ¶
const PageHeaderSize = 16
PageHeaderSize represents the size of the bolt.Page header.
Variables ¶
var ( // ErrCorrupt is returned when a checking a data file finds errors. ErrCorrupt = errors.New("invalid value") )
Functions ¶
func GetRootPage ¶
GetRootPage returns the root-page (according to the most recent transaction).
func WritePage ¶
Types ¶
type BranchPageElement ¶
type BranchPageElement struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func (*BranchPageElement) Key ¶
func (n *BranchPageElement) Key() []byte
DO NOT EDIT. Copied from the "bolt" package.
func (*BranchPageElement) PgId ¶
func (n *BranchPageElement) PgId() Pgid
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func LoadBucket ¶
func (*Bucket) InlinePage ¶
func (*Bucket) RootPage ¶
func (*Bucket) String ¶
type LeafPageElement ¶
type LeafPageElement struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func (*LeafPageElement) Bucket ¶
func (n *LeafPageElement) Bucket() *Bucket
func (*LeafPageElement) IsBucketEntry ¶
func (n *LeafPageElement) IsBucketEntry() bool
func (*LeafPageElement) Key ¶
func (n *LeafPageElement) Key() []byte
DO NOT EDIT. Copied from the "bolt" package.
func (*LeafPageElement) Value ¶
func (n *LeafPageElement) Value() []byte
DO NOT EDIT. Copied from the "bolt" package.
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func LoadPageMeta ¶
func (*Meta) Print ¶
func (*Meta) RootBucket ¶
func (*Meta) Txid ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
DO NOT EDIT. Copied from the "bolt" package.
func LoadPage ¶
func ReadPage ¶
ReadPage reads Page info & full Page data from a path. This is not transactionally safe.
func (*Page) BranchPageElement ¶
func (p *Page) BranchPageElement(index uint16) *BranchPageElement
DO NOT EDIT. Copied from the "bolt" package.
func (*Page) Count ¶
func (*Page) FreelistPageCount ¶
func (*Page) FreelistPagePages ¶
func (*Page) Id ¶
func (*Page) LeafPageElement ¶
func (p *Page) LeafPageElement(index uint16) *LeafPageElement
DO NOT EDIT. Copied from the "bolt" package.
func (*Page) Overflow ¶
func (*Page) SetCount ¶
func (*Page) SetId ¶
func (*Page) SetOverflow ¶
func (*Page) String ¶
func (*Page) Type ¶
TODO(ptabor): Make the page-types an enum.
type Pgid ¶
type Pgid uint64
DO NOT EDIT. Copied from the "bolt" package.
func ReadPageAndHWMSize ¶
ReadPageAndHWMSize reads Page size and HWM (id of the last+1 Page). This is not transactionally safe.
Source Files ¶
guts_cli.go
- Version
- v1.3.11
- Published
- Aug 20, 2024
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 9 hours ago –
Tools for package owners.