Documentation ¶
Overview ¶
Package storage provides the persistence services for `flagon` using BoltDB for on-disk storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPathEmpty is answered when a non-empty path was expected but // an empty path was given. ErrPathEmpty = errors.New("empty path given") // ErrPathNotAbsolute is answered when an absolute path was // expected but a relative path was given. ErrPathNotAbsolute = errors.New("given path is not an absolute one") )
View Source
var ( // ErrNameEmpty is answered when an unexpected empty name is // provided. ErrNameEmpty = errors.New("empty name given") )
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents a BoltDB database. All of `flagon` uses a single database.
Internally, each entity type has its own bucket per namespace in which its instances have to be stored.
func DbInstance ¶
DbInstance opens the underlying BoltDB database, and answers the singleton DB instance.
Click to show internal directories.
Click to hide internal directories.