Documentation
¶
Index ¶
- type BranchPolicies
- type BranchPolicy
- type Client
- func (db *Client) CreateDevFlowRule(f *DevFlowRule) error
- func (db *Client) DeleteDevFlowRuleByProjectID(projectID uint64) error
- func (db *Client) GetDevFlowRule(id string) (f *DevFlowRule, err error)
- func (db *Client) GetDevFlowRuleByProjectID(proID uint64) (fs *DevFlowRule, err error)
- func (db *Client) UpdateDevFlowRule(f *DevFlowRule) error
- type DevFlowRule
- type Flow
- type Flows
- type JSON
- type Model
- type Operator
- type Policy
- type Scope
- type TargetBranch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchPolicies ¶
type BranchPolicies []BranchPolicy
type BranchPolicy ¶
type BranchPolicy struct {
Branch string `json:"branch"`
BranchType string `json:"branchType"`
Policy *Policy `json:"policy"`
}
func (*BranchPolicy) Convert ¶
func (b *BranchPolicy) Convert() *pb.BranchPolicy
type Client ¶
func (*Client) CreateDevFlowRule ¶
func (db *Client) CreateDevFlowRule(f *DevFlowRule) error
func (*Client) DeleteDevFlowRuleByProjectID ¶
func (*Client) GetDevFlowRule ¶
func (db *Client) GetDevFlowRule(id string) (f *DevFlowRule, err error)
func (*Client) GetDevFlowRuleByProjectID ¶
func (db *Client) GetDevFlowRuleByProjectID(proID uint64) (fs *DevFlowRule, err error)
func (*Client) UpdateDevFlowRule ¶
func (db *Client) UpdateDevFlowRule(f *DevFlowRule) error
type DevFlowRule ¶
func (*DevFlowRule) Convert ¶
func (r *DevFlowRule) Convert() (*pb.DevFlowRule, error)
func (DevFlowRule) TableName ¶
func (DevFlowRule) TableName() string
type Flow ¶
type JSON ¶
type JSON json.RawMessage
type Policy ¶
type Policy struct {
SourceBranch string `json:"sourceBranch"`
CurrentBranch string `json:"currentBranch"`
TempBranch string `json:"tempBranch"`
TargetBranch *TargetBranch `json:"targetBranch"`
}
type TargetBranch ¶
Click to show internal directories.
Click to hide internal directories.