Documentation ¶
Index ¶
- type Member
- func (m *Member) Create() error
- func (m *Member) Delete() error
- func (m *Member) Detail() error
- func (m *Member) Exists() (bool, error)
- func (m *Member) List(spaceId, offset, limit int) ([]Member, error)
- func (m *Member) MemberInSpace() bool
- func (m *Member) SpaceIdsByUserId() ([]int, error)
- func (m *Member) Total(spaceId int) (int, error)
- type Project
- func (p *Project) CreateOrUpdate() error
- func (p *Project) Delete() error
- func (p *Project) Detail() error
- func (p *Project) List(keyword string, spaceId, offset, limit int) ([]Project, error)
- func (p *Project) Total(keyword string, spaceId int) (int, error)
- func (p *Project) UpdateBuildScript() error
- func (p *Project) UpdateHookScript() error
- func (p *Project) UpdateStatus() error
- type Space
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct { ID int `json:"id"` UserId int `json:"user_id"` SpaceId int `json:"space_id"` Username string `json:"username"` Email string `json:"email"` RoleName string `json:"role_name"` Status int `json:"status"` Ctime int `json:"ctime"` }
func (*Member) MemberInSpace ¶
func (*Member) SpaceIdsByUserId ¶
type Project ¶
type Project struct { ID int `json:"id"` SpaceId int `json:"space_id"` Name string `json:"name"` Description string `json:"description"` NeedAudit int `json:"need_audit"` Status int `json:"status"` RepoUrl string `json:"repo_url"` RepoBranch string `json:"repo_branch"` DeployMode int `json:"deploy_mode"` OnlineCluster []int `json:"online_cluster"` DeployUser string `json:"deploy_user"` DeployPath string `json:"deploy_path"` BuildScript string `json:"build_script"` BuildHookScript string `json:"build_hook_script"` DeployHookScript string `json:"deploy_hook_script"` PreDeployCmd string `json:"pre_deploy_cmd"` AfterDeployCmd string `json:"after_deploy_cmd"` AuditNotice string `json:"audit_notice"` DeployNotice string `json:"deploy_notice"` Ctime int `json:"ctime"` }
func ProjectAllBySpaceIds ¶
func ProjectListByIds ¶
func (*Project) CreateOrUpdate ¶
func (*Project) UpdateBuildScript ¶
func (*Project) UpdateHookScript ¶
func (*Project) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.