Documentation ¶
Index ¶
- type BranchRule
- func (branchRule *BranchRule) CheckRuleValid(newBranchRule *model.BranchRule) error
- func (branchRule *BranchRule) Count(scopeType apistructs.ScopeType) (int64, error)
- func (branchRule *BranchRule) Create(request apistructs.CreateBranchRuleRequest) (*apistructs.BranchRule, error)
- func (branchRule *BranchRule) Delete(id int64) (*apistructs.BranchRule, error)
- func (branchRule *BranchRule) Get(ID int64) (*apistructs.BranchRule, error)
- func (branchRule *BranchRule) GetAllProjectRulesMap() (map[int64][]*apistructs.BranchRule, error)
- func (branchRule *BranchRule) GetAllValidBranchWorkspaces(appID int64, userID string) ([]*apistructs.ValidBranch, error)
- func (branchRule *BranchRule) InitAppRules(appID int64) error
- func (branchRule *BranchRule) InitAppRulesWithData(appID int64, rules []*apistructs.BranchRule) error
- func (branchRule *BranchRule) InitProjectRules(projectID int64) error
- func (branchRule *BranchRule) Query(scopeType apistructs.ScopeType, scopeID int64) ([]*apistructs.BranchRule, error)
- func (branchRule *BranchRule) Update(request apistructs.UpdateBranchRuleRequest) (*apistructs.BranchRule, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchRule ¶
type BranchRule struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...Option) *BranchRule
func (*BranchRule) CheckRuleValid ¶
func (branchRule *BranchRule) CheckRuleValid(newBranchRule *model.BranchRule) error
func (*BranchRule) Count ¶
func (branchRule *BranchRule) Count(scopeType apistructs.ScopeType) (int64, error)
func (*BranchRule) Create ¶
func (branchRule *BranchRule) Create(request apistructs.CreateBranchRuleRequest) (*apistructs.BranchRule, error)
func (*BranchRule) Delete ¶
func (branchRule *BranchRule) Delete(id int64) (*apistructs.BranchRule, error)
func (*BranchRule) Get ¶
func (branchRule *BranchRule) Get(ID int64) (*apistructs.BranchRule, error)
func (*BranchRule) GetAllProjectRulesMap ¶
func (branchRule *BranchRule) GetAllProjectRulesMap() (map[int64][]*apistructs.BranchRule, error)
func (*BranchRule) GetAllValidBranchWorkspaces ¶
func (branchRule *BranchRule) GetAllValidBranchWorkspaces(appID int64, userID string) ([]*apistructs.ValidBranch, error)
func (*BranchRule) InitAppRules ¶
func (branchRule *BranchRule) InitAppRules(appID int64) error
func (*BranchRule) InitAppRulesWithData ¶
func (branchRule *BranchRule) InitAppRulesWithData(appID int64, rules []*apistructs.BranchRule) error
func (*BranchRule) InitProjectRules ¶
func (branchRule *BranchRule) InitProjectRules(projectID int64) error
func (*BranchRule) Query ¶
func (branchRule *BranchRule) Query(scopeType apistructs.ScopeType, scopeID int64) ([]*apistructs.BranchRule, error)
func (*BranchRule) Update ¶
func (branchRule *BranchRule) Update(request apistructs.UpdateBranchRuleRequest) (*apistructs.BranchRule, error)
type Option ¶
type Option func(*BranchRule)
Click to show internal directories.
Click to hide internal directories.