Documentation ¶
Index ¶
- Variables
- type Database
- type Repository
- func (r *Repository) Database(id string) (*Database, error)
- func (r *Repository) Drop(id string) error
- func (r *Repository) Len() int
- func (r *Repository) Load(filename string) error
- func (r *Repository) New(n string) (*Database, error)
- func (r *Repository) Persist(filename string) error
- func (r *Repository) SortDatabases() []*Database
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrAlreadyExists = errors.New("already exists") )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Stacks map[name]*Stack Name string ID uuid.UUID // contains filtered or unexported fields }
func (*Database) SortStacks ¶
type Repository ¶
type Repository struct { Databases map[name]*Database // contains filtered or unexported fields }
func New ¶
func New() *Repository
func (*Repository) Drop ¶
func (r *Repository) Drop(id string) error
func (*Repository) Len ¶
func (r *Repository) Len() int
func (*Repository) Load ¶ added in v0.0.6
func (r *Repository) Load(filename string) error
func (*Repository) Persist ¶ added in v0.0.6
func (r *Repository) Persist(filename string) error
func (*Repository) SortDatabases ¶
func (r *Repository) SortDatabases() []*Database
Click to show internal directories.
Click to hide internal directories.