Documentation ¶
Index ¶
- type Project
- func (p *Project) CloneFromGitPath(username string) error
- func (p *Project) CreateProjectRoot(username string) error
- func (p *Project) GetWithID(session *xorm.Session) (bool, error)
- func (p *Project) GetWithUserID(session *xorm.Session) ([]Project, error)
- func (p *Project) GetWithUserIDAndName(session *xorm.Session) (bool, error)
- func (p *Project) Insert(session *xorm.Session) (int, error)
- func (p Project) TableName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { ID int `xorm:"pk autoincr 'id'"` UserID int `xorm:"'user_id'"` Name string `xorm:"notnull"` CreateTime *time.Time `xorm:"created"` Description string GitPath string Path string }
Project corresponds to project table in db
func (*Project) CloneFromGitPath ¶
CloneFromGitPath clone project form given git path
func (*Project) CreateProjectRoot ¶
CreateProjectRoot create project root in the user home
func (*Project) GetWithUserID ¶
GetWithUserID returns projects with given user id
func (*Project) GetWithUserIDAndName ¶
GetWithUserIDAndName returns project with given user id and project name
Click to show internal directories.
Click to hide internal directories.