Documentation ¶
Index ¶
- type Option
- type ReleaseRule
- func (rule *ReleaseRule) Create(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) (*apistructs.BranchReleaseRuleModel, *errorresp.APIError)
- func (rule *ReleaseRule) Delete(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) *errorresp.APIError
- func (rule *ReleaseRule) Get(projectID uint64, ID string) (*apistructs.BranchReleaseRuleModel, *errorresp.APIError)
- func (rule *ReleaseRule) List(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) (*apistructs.ListReleaseRuleResponse, *errorresp.APIError)
- func (rule *ReleaseRule) Update(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) (*apistructs.BranchReleaseRuleModel, *errorresp.APIError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(rule *ReleaseRule)
Option defines *ReleaseRule configurations
func WithDBClient ¶
WithDBClient sets the db client to *ReleaseRule
type ReleaseRule ¶
type ReleaseRule struct {
// contains filtered or unexported fields
}
ReleaseRule is the handle to operate release rule
func (*ReleaseRule) Create ¶
func (rule *ReleaseRule) Create(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) (*apistructs.BranchReleaseRuleModel, *errorresp.APIError)
Create creates the release rule record
func (*ReleaseRule) Delete ¶
func (rule *ReleaseRule) Delete(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) *errorresp.APIError
Delete deletes the release rule record
func (*ReleaseRule) Get ¶
func (rule *ReleaseRule) Get(projectID uint64, ID string) (*apistructs.BranchReleaseRuleModel, *errorresp.APIError)
func (*ReleaseRule) List ¶
func (rule *ReleaseRule) List(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) (*apistructs.ListReleaseRuleResponse, *errorresp.APIError)
List lists the release rules
func (*ReleaseRule) Update ¶
func (rule *ReleaseRule) Update(request *apistructs.CreateUpdateDeleteReleaseRuleRequest) (*apistructs.BranchReleaseRuleModel, *errorresp.APIError)
Update updates the release rule
Click to show internal directories.
Click to hide internal directories.