store

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound   = errors.New("proyecto no encontrado")
	ErrNameExists = errors.New("el nombre del proyecto ya existe")
	ErrPathExists = errors.New("la ruta del proyecto ya existe")
)

Functions

This section is empty.

Types

type BoltStore

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

func OpenDefault

func OpenDefault() (*BoltStore, error)

func OpenDefaultReadOnly

func OpenDefaultReadOnly() (*BoltStore, error)

func (*BoltStore) Add

func (s *BoltStore) Add(p model.Project) error

func (*BoltStore) Close

func (s *BoltStore) Close() error

func (*BoltStore) DeleteByName

func (s *BoltStore) DeleteByName(name string) (bool, error)

func (*BoltStore) DeleteByPath

func (s *BoltStore) DeleteByPath(path string) (bool, error)

func (*BoltStore) GetByName

func (s *BoltStore) GetByName(name string) (model.Project, error)

func (*BoltStore) GetByPath

func (s *BoltStore) GetByPath(path string) (model.Project, error)

func (*BoltStore) LastPath added in v0.1.1

func (s *BoltStore) LastPath() (string, error)

func (*BoltStore) List

func (s *BoltStore) List() ([]model.Project, error)

func (*BoltStore) PreferredOpener added in v0.1.1

func (s *BoltStore) PreferredOpener() (string, error)

func (*BoltStore) Rename

func (s *BoltStore) Rename(oldName, newName string) error

func (*BoltStore) SaveLastPath added in v0.1.1

func (s *BoltStore) SaveLastPath(path string) error

func (*BoltStore) SavePreferredOpener added in v0.1.1

func (s *BoltStore) SavePreferredOpener(opener string) error

Jump to

Keyboard shortcuts

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