Documentation
¶
Index ¶
- type AppWorkflowDto
- type AppWorkflowMappingDto
- type AppWorkflowService
- type AppWorkflowServiceImpl
- func (impl AppWorkflowServiceImpl) CheckCdPipelineByCiPipelineId(id int) bool
- func (impl AppWorkflowServiceImpl) CreateAppWorkflow(req AppWorkflowDto) (AppWorkflowDto, error)
- func (impl AppWorkflowServiceImpl) DeleteAppWorkflow(appId, appWorkflowId int, userId int32) error
- func (impl AppWorkflowServiceImpl) FindAppWorkflowById(Id int, appId int) (AppWorkflowDto, error)
- func (impl AppWorkflowServiceImpl) FindAppWorkflowByName(name string, appId int) (AppWorkflowDto, error)
- func (impl AppWorkflowServiceImpl) FindAppWorkflowMapping(workflowId int) ([]AppWorkflowMappingDto, error)
- func (impl AppWorkflowServiceImpl) FindAppWorkflowMappingByComponent(id int, compType string) ([]*appWorkflow.AppWorkflowMapping, error)
- func (impl AppWorkflowServiceImpl) FindAppWorkflows(appId int) ([]AppWorkflowDto, error)
- func (impl AppWorkflowServiceImpl) SaveAppWorkflowMapping(req AppWorkflowMappingDto) (AppWorkflowMappingDto, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppWorkflowDto ¶
type AppWorkflowDto struct { Id int `json:"id,omitempty"` Name string `json:"name"` AppId int `json:"appId"` AppWorkflowMappingDto []AppWorkflowMappingDto `json:"tree,omitempty"` UserId int32 `json:"-"` }
type AppWorkflowMappingDto ¶
type AppWorkflowService ¶
type AppWorkflowService interface { CreateAppWorkflow(req AppWorkflowDto) (AppWorkflowDto, error) FindAppWorkflows(appId int) ([]AppWorkflowDto, error) FindAppWorkflowById(Id int, appId int) (AppWorkflowDto, error) DeleteAppWorkflow(appId, appWorkflowId int, userId int32) error SaveAppWorkflowMapping(wf AppWorkflowMappingDto) (AppWorkflowMappingDto, error) FindAppWorkflowMapping(workflowId int) ([]AppWorkflowMappingDto, error) FindAppWorkflowMappingByComponent(id int, compType string) ([]*appWorkflow.AppWorkflowMapping, error) CheckCdPipelineByCiPipelineId(id int) bool FindAppWorkflowByName(name string, appId int) (AppWorkflowDto, error) }
type AppWorkflowServiceImpl ¶
type AppWorkflowServiceImpl struct { Logger *zap.SugaredLogger // contains filtered or unexported fields }
func NewAppWorkflowServiceImpl ¶
func NewAppWorkflowServiceImpl(logger *zap.SugaredLogger, appWorkflowRepository appWorkflow.AppWorkflowRepository, dbPipelineOrchestrator pipeline.DbPipelineOrchestrator, ciPipelineRepository pipelineConfig.CiPipelineRepository, pipelineRepository pipelineConfig.PipelineRepository) *AppWorkflowServiceImpl
func (AppWorkflowServiceImpl) CheckCdPipelineByCiPipelineId ¶ added in v0.4.8
func (impl AppWorkflowServiceImpl) CheckCdPipelineByCiPipelineId(id int) bool
func (AppWorkflowServiceImpl) CreateAppWorkflow ¶
func (impl AppWorkflowServiceImpl) CreateAppWorkflow(req AppWorkflowDto) (AppWorkflowDto, error)
func (AppWorkflowServiceImpl) DeleteAppWorkflow ¶
func (impl AppWorkflowServiceImpl) DeleteAppWorkflow(appId, appWorkflowId int, userId int32) error
func (AppWorkflowServiceImpl) FindAppWorkflowById ¶
func (impl AppWorkflowServiceImpl) FindAppWorkflowById(Id int, appId int) (AppWorkflowDto, error)
func (AppWorkflowServiceImpl) FindAppWorkflowByName ¶
func (impl AppWorkflowServiceImpl) FindAppWorkflowByName(name string, appId int) (AppWorkflowDto, error)
func (AppWorkflowServiceImpl) FindAppWorkflowMapping ¶
func (impl AppWorkflowServiceImpl) FindAppWorkflowMapping(workflowId int) ([]AppWorkflowMappingDto, error)
func (AppWorkflowServiceImpl) FindAppWorkflowMappingByComponent ¶
func (impl AppWorkflowServiceImpl) FindAppWorkflowMappingByComponent(id int, compType string) ([]*appWorkflow.AppWorkflowMapping, error)
func (AppWorkflowServiceImpl) FindAppWorkflows ¶
func (impl AppWorkflowServiceImpl) FindAppWorkflows(appId int) ([]AppWorkflowDto, error)
func (AppWorkflowServiceImpl) SaveAppWorkflowMapping ¶
func (impl AppWorkflowServiceImpl) SaveAppWorkflowMapping(req AppWorkflowMappingDto) (AppWorkflowMappingDto, error)
Click to show internal directories.
Click to hide internal directories.