Documentation ¶
Index ¶
- Variables
- type Bolt
- func (b *Bolt) ClientIDs() ([]string, error)
- func (b *Bolt) Clients() ([]*conf.Client, error)
- func (b *Bolt) Close() error
- func (b *Bolt) CreateBuckets() error
- func (b *Bolt) GetClient(id []byte) (c *conf.Client, err error)
- func (b *Bolt) Open(name string) error
- func (b *Bolt) SaveClient(c *conf.Client) error
- type Bucket
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var Buckets = []Bucket{Invalid, Client, Role, Group, Cluster, Datacenter}
Buckets is a slice of top level buckets for the database.
Functions ¶
This section is empty.
Types ¶
type Bolt ¶
Bolt is a container for a bolt database
func (*Bolt) CreateBuckets ¶
CreateBuckets creates the buckets for margo.
type Bucket ¶
type Bucket int
func BucketFromString ¶
BucketFromString returns the Bucket for a given string, or Invalid for anything that does not match. All input strings are normalized to lower.
Click to show internal directories.
Click to hide internal directories.