Versions in this module Expand all Collapse all v1 v1.0.1 Sep 10, 2021 v1.0.0 Sep 2, 2021 Changes in this version + func Scan(it Iter, do func(string) error) error + type Cache struct + func (c *Cache) Close() error + func (c *Cache) GateOpen(family, gate, collection, id string) bool + func (c *Cache) LookupGates(family, collection, id string) []string + type Collection struct + func (col *Collection) Add(id string) error + func (col *Collection) Close() error + func (col *Collection) IDs() *IDIter + func (col *Collection) Path() string + func (col *Collection) Sync() error + type CollectionIter struct + func (it *CollectionIter) Close() error + func (it *CollectionIter) IDs() *IDIter + func (it *CollectionIter) Name() string + func (it *CollectionIter) Next() bool + type FamilyIter struct + func (it *FamilyIter) Close() error + func (it *FamilyIter) Gates() *GateIter + func (it *FamilyIter) Name() string + func (it *FamilyIter) Next() bool + type GateCreatedIter struct + func (it *GateCreatedIter) Close() error + func (it *GateCreatedIter) Name() string + func (it *GateCreatedIter) Next() bool + type GateDisabledIter struct + func (it *GateDisabledIter) Close() error + func (it *GateDisabledIter) Family() string + func (it *GateDisabledIter) Gate() string + func (it *GateDisabledIter) Name() string + func (it *GateDisabledIter) Next() bool + type GateEnabledIter struct + func (it *GateEnabledIter) Close() error + func (it *GateEnabledIter) Family() string + func (it *GateEnabledIter) Gate() string + func (it *GateEnabledIter) Name() string + func (it *GateEnabledIter) Next() bool + type GateIter struct + func (it *GateIter) Close() error + func (it *GateIter) Created() *GateCreatedIter + func (it *GateIter) Name() string + func (it *GateIter) Next() bool + type GroupIter struct + func (it *GroupIter) Close() error + func (it *GroupIter) Name() string + func (it *GroupIter) Next() bool + func (it *GroupIter) Tiers() *TierIter + type IDIter struct + func (it *IDIter) Close() error + func (it *IDIter) Name() string + func (it *IDIter) Next() bool + type Iter interface + Close func() error + Name func() string + Next func() bool + type MountPoint string + func Mount(path string) (MountPoint, error) + func (path MountPoint) CreateTier(group, name string) (*Tier, error) + func (path MountPoint) DeleteGroup(group string) error + func (path MountPoint) DeleteTier(group, name string) error + func (path MountPoint) Groups() *GroupIter + func (path MountPoint) Load() (*Cache, error) + func (path MountPoint) Open() (*Store, error) + func (path MountPoint) OpenTier(group, name string) (*Tier, error) + func (path MountPoint) Tiers(group string) *TierIter + func (path MountPoint) Wait(ctx context.Context) error + type Store struct + func (s *Store) Close() error + func (s *Store) GateOpen(family, gate, collection, id string) bool + func (s *Store) LookupGates(family, collection, id string) []string + type Tier struct + func (tier *Tier) Close() error + func (tier *Tier) Collections() *CollectionIter + func (tier *Tier) CreateCollection(collection string) (*Collection, error) + func (tier *Tier) CreateGate(family, name, collection string, salt uint32) error + func (tier *Tier) DeleteCollection(collection string) error + func (tier *Tier) DeleteGate(family, name, collection string) error + func (tier *Tier) EnableGate(family, name, collection string, volume float64, open bool) error + func (tier *Tier) Families() *FamilyIter + func (tier *Tier) Gates(family string) *GateIter + func (tier *Tier) GatesCreated(family, gate string) *GateCreatedIter + func (tier *Tier) GatesDisabled(collection, id string) *GateDisabledIter + func (tier *Tier) GatesEnabled(collection, id string) *GateEnabledIter + func (tier *Tier) Group() string + func (tier *Tier) IDs(collection string) *IDIter + func (tier *Tier) Name() string + func (tier *Tier) OpenCollection(collection string) (*Collection, error) + func (tier *Tier) ReadGate(family, name, collection string) (open bool, salt string, volume float64, err error) + func (tier *Tier) String() string + type TierIter struct + func (it *TierIter) Close() error + func (it *TierIter) Name() string + func (it *TierIter) Next() bool