project

package
v0.0.0-...-71876dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func (m *Member) Create() error

func (*Member) Delete

func (m *Member) Delete() error

func (*Member) Detail

func (m *Member) Detail() error

func (*Member) Exists

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

func (*Member) List

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

func (*Member) MemberInSpace

func (m *Member) MemberInSpace() bool

func (*Member) SpaceIdsByUserId

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

func (*Member) Total

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

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 ProjectAllBySpaceIds(spaceIds []int) ([]Project, error)

func ProjectListByIds

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

func (*Project) CreateOrUpdate

func (p *Project) CreateOrUpdate() error

func (*Project) Delete

func (p *Project) Delete() error

func (*Project) Detail

func (p *Project) Detail() error

func (*Project) List

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

func (*Project) Total

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

func (*Project) UpdateBuildScript

func (p *Project) UpdateBuildScript() error

func (*Project) UpdateHookScript

func (p *Project) UpdateHookScript() error

func (*Project) UpdateStatus

func (p *Project) UpdateStatus() error

type Space

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

func SpaceListByIds

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

func (*Space) CreateOrUpdate

func (s *Space) CreateOrUpdate() error

func (*Space) Delete

func (s *Space) Delete() error

func (*Space) Detail

func (s *Space) Detail() error

func (*Space) List

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

func (*Space) Total

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL