bolt

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bolt

type Bolt struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*Bolt, error)

func (*Bolt) BatchSet

func (b *Bolt) BatchSet(bucket string, kvs map[string][]byte) error

func (*Bolt) Close

func (b *Bolt) Close() error

func (*Bolt) Del

func (b *Bolt) Del(bucket, key string) (err error)

func (*Bolt) Get

func (b *Bolt) Get(bucket, key string) (value []byte, err error)

func (*Bolt) Name

func (b *Bolt) Name() string

func (*Bolt) Prefix

func (b *Bolt) Prefix(bucket, prefix string) (values [][]byte, err error)

func (*Bolt) Range

func (b *Bolt) Range(bucket, start, limit string) (values [][]byte, err error)

func (*Bolt) Set

func (b *Bolt) Set(bucket, key string, value []byte) (err error)

func (*Bolt) SetTask

func (b *Bolt) SetTask(bucket, task string, val *types.TaskState) error

func (*Bolt) SetTaskStep

func (b *Bolt) SetTaskStep(bucket, task, step string, val *types.TaskStepState) error

func (*Bolt) SetTaskStepLog

func (b *Bolt) SetTaskStepLog(bucket, task, step string, line int64, val *types.TaskStepLog) error

func (*Bolt) Suffix

func (b *Bolt) Suffix(bucket, suffix string) (values [][]byte, err error)

func (*Bolt) TaskDetail

func (b *Bolt) TaskDetail(bucket, task string) (res *types.TaskState, err error)

func (*Bolt) TaskList

func (b *Bolt) TaskList(bucket, prefix string) (res types.TaskStates, err error)

func (*Bolt) TaskStepDetail

func (b *Bolt) TaskStepDetail(bucket, task, step string) (res *types.TaskStepState, err error)

func (*Bolt) TaskStepList

func (b *Bolt) TaskStepList(bucket, task string) (res types.TaskStepStates, err error)

func (*Bolt) TaskStepLogList

func (b *Bolt) TaskStepLogList(bucket, task, step string) (res types.TaskStepLogs, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL