Documentation
¶
Overview ¶
Package project manages Docker Compose project history and metadata.
It tracks active and recently stopped projects, persisting data to JSON for display in the dashboard and quick restart functionality.
Index ¶
- type Project
- type Store
- func (s *Store) Count() int
- func (s *Store) Get(name string) *Project
- func (s *Store) List(activeOnly bool) []*Project
- func (s *Store) ListActive() []*Project
- func (s *Store) ListInactive() []*Project
- func (s *Store) Remove(name string)
- func (s *Store) SetActive(name string, active bool)
- func (s *Store) SetAllInactive()
- func (s *Store) Update(p *Project)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct {
Name string `json:"name"`
WorkingDir string `json:"working_dir"`
ConfigFiles string `json:"config_files"`
LastActive time.Time `json:"last_active"`
Services []string `json:"services"`
Active bool `json:"active"`
}
Project represents a docker-compose project
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages project history with persistence
func (*Store) ListActive ¶
ListActive returns only active projects
func (*Store) ListInactive ¶
ListInactive returns only inactive projects
func (*Store) SetAllInactive ¶
func (s *Store) SetAllInactive()
SetAllInactive marks all projects as inactive
Click to show internal directories.
Click to hide internal directories.