Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when queried project does not exist ErrNotFound = errors.New("Project not found") // ErrDuplicate is returned when adding duplicate project ErrDuplicate = errors.New("Duplicate project") )
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
Attributes represents the configuration of a single project
type Container ¶
type Container interface { Projects() []string Project(string) (Project, error) Add(project Project) error }
Container is the project manager
func NewStaticContainer ¶
NewStaticContainer returns a container with a project for testing
type Project ¶
type Project interface { Manager Attributes }
Project represents a single managed project
func NewStaticProject ¶
NewStaticProject returns a new project based on static data
Click to show internal directories.
Click to hide internal directories.