Documentation ¶
Overview ¶
Package meta provides access to META partition: key-value partition persisted across reboots.
Index ¶
- type Meta
- func (meta *Meta) DeleteTag(ctx context.Context, t uint8) (bool, error)
- func (meta *Meta) Flush() error
- func (meta *Meta) ReadTag(t uint8) (val string, ok bool)
- func (meta *Meta) ReadTagBytes(t uint8) (val []byte, ok bool)
- func (meta *Meta) Reload(ctx context.Context) error
- func (meta *Meta) SetTag(ctx context.Context, t uint8, val string) (bool, error)
- func (meta *Meta) SetTagBytes(ctx context.Context, t uint8, val []byte) (bool, error)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta represents the META reader/writer.
Meta abstracts away all details about loading/storing the metadata providing an easy to use interface.
func (*Meta) ReadTagBytes ¶
ReadTagBytes reads a tag from the META.
type Option ¶
type Option func(*Options)
Option is a functional option.
func WithFixedPath ¶
WithFixedPath sets the fixed path to META partition.
func WithPrinter ¶ added in v1.5.5
WithPrinter sets the function to print the logs, default is log.Printf.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
adv
Package adv provides common interfaces to access ADV data.
|
Package adv provides common interfaces to access ADV data. |
adv/syslinux
Package syslinux provides syslinux-compatible ADV data.
|
Package syslinux provides syslinux-compatible ADV data. |
adv/talos
Package talos implements modern ADV which supports large size for the values and tags.
|
Package talos implements modern ADV which supports large size for the values and tags. |
Click to show internal directories.
Click to hide internal directories.