syncd: github.com/dreamans/syncd/module/project Index | Files

package project

import "github.com/dreamans/syncd/module/project"

Index

Package Files

member.go project.go space.go

type Member Uses

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) Create Uses

func (m *Member) Create() error

func (*Member) Delete Uses

func (m *Member) Delete() error

func (*Member) Detail Uses

func (m *Member) Detail() error

func (*Member) Exists Uses

func (m *Member) Exists() (bool, error)

func (*Member) List Uses

func (m *Member) List(spaceId, offset, limit int) ([]Member, error)

func (*Member) MemberInSpace Uses

func (m *Member) MemberInSpace() bool

func (*Member) SpaceIdsByUserId Uses

func (m *Member) SpaceIdsByUserId() ([]int, error)

func (*Member) Total Uses

func (m *Member) Total(spaceId int) (int, error)

type Project Uses

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 Uses

func ProjectAllBySpaceIds(spaceIds []int) ([]Project, error)

func ProjectListByIds Uses

func ProjectListByIds(projectIds []int) ([]Project, error)

func (*Project) CreateOrUpdate Uses

func (p *Project) CreateOrUpdate() error

func (*Project) Delete Uses

func (p *Project) Delete() error

func (*Project) Detail Uses

func (p *Project) Detail() error

func (*Project) List Uses

func (p *Project) List(keyword string, spaceId, offset, limit int) ([]Project, error)

func (*Project) Total Uses

func (p *Project) Total(keyword string, spaceId int) (int, error)

func (*Project) UpdateBuildScript Uses

func (p *Project) UpdateBuildScript() error

func (*Project) UpdateHookScript Uses

func (p *Project) UpdateHookScript() error

func (*Project) UpdateStatus Uses

func (p *Project) UpdateStatus() error

type Space Uses

type Space struct {
    ID          int    `json:"id"`
    Name        string `json:"name"`
    Description string `json:"description"`
    Ctime       int    `json:"ctime"`
}

func SpaceListByIds Uses

func SpaceListByIds(spaceIds []int) ([]Space, error)

func (*Space) CreateOrUpdate Uses

func (s *Space) CreateOrUpdate() error

func (*Space) Delete Uses

func (s *Space) Delete() error

func (*Space) Detail Uses

func (s *Space) Detail() error

func (*Space) List Uses

func (s *Space) List(spaceIds []int, keyword string, offset, limit int) ([]Space, error)

func (*Space) Total Uses

func (s *Space) Total(spaceIds []int, keyword string) (int, error)

Package project imports 4 packages (graph) and is imported by 3 packages. Updated 2019-04-30. Refresh now. Tools for package owners.