Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectManager ¶
type ProjectManager interface { Get(projectIDOrName interface{}) (*models.Project, error) Create(*models.Project) (int64, error) Delete(projectIDOrName interface{}) error Update(projectIDOrName interface{}, project *models.Project) error List(query *models.ProjectQueryParam) (*models.ProjectQueryResult, error) IsPublic(projectIDOrName interface{}) (bool, error) Exists(projectIDOrName interface{}) (bool, error) // get all public project GetPublic() ([]*models.Project, error) // if the project manager uses a metadata manager, return it, otherwise return nil GetMetadataManager() metamgr.ProjectMetadataManager }
ProjectManager is the project mamager which abstracts the operations related to projects
func NewDefaultProjectManager ¶
func NewDefaultProjectManager(driver pmsdriver.PMSDriver, metaMgrEnabled bool) ProjectManager
NewDefaultProjectManager returns an instance of defaultProjectManager, if metaMgrEnabled is true, a project metadata manager will be created and used to CURD metadata
Click to show internal directories.
Click to hide internal directories.