{"modulePath":"github.com/devtron-labs/devtron","version":"v1.8.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package workflowStatusLatest\n\n## Variables\n\n```go\nvar WorkflowStatusLatestWireSet = wire.NewSet(\n\tpipelineConfig.NewWorkflowStatusLatestRepositoryImpl,\n\twire.Bind(new(pipelineConfig.WorkflowStatusLatestRepository), new(*pipelineConfig.WorkflowStatusLatestRepositoryImpl)),\n\tNewWorkflowStatusLatestServiceImpl,\n\twire.Bind(new(WorkflowStatusLatestService), new(*WorkflowStatusLatestServiceImpl)),\n)\n```\n\n## Types\n\n```go\ntype CdWorkflowStatusLatest struct {\n\tPipelineId       int    `json:\"pipelineId\"`\n\tAppId            int    `json:\"appId\"`\n\tEnvironmentId    int    `json:\"environmentId\"`\n\tWorkflowType     string `json:\"workflowType\"`\n\tWorkflowRunnerId int    `json:\"workflowRunnerId\"`\n\tStatus           string `json:\"status\"` // Derived from cd_workflow_runner table\n}\n```\n\n```go\ntype CiWorkflowStatusLatest struct {\n\tPipelineId        int    `json:\"pipelineId\"`\n\tAppId             int    `json:\"appId\"`\n\tCiWorkflowId      int    `json:\"ciWorkflowId\"`\n\tStatus            string `json:\"status\"` // Derived from ci_workflow table\n\tStorageConfigured bool   `json:\"storageConfigured\"`\n}\n```\n\n```go\ntype WorkflowStatusLatestService interface {\n\t// CI Workflow Status Latest methods\n\tSaveCiWorkflowStatusLatest(tx *pg.Tx, pipelineId, appId, ciWorkflowId int, userId int32) error\n\tGetCiWorkflowStatusLatestByPipelineIds(pipelineIds []int) ([]*pipelineConfig.CiWorkflowStatusLatest, error)\n\n\t// CD Workflow Status Latest methods\n\tSaveCdWorkflowStatusLatest(tx *pg.Tx, pipelineId, appId, environmentId, workflowRunnerId int, workflowType string, userId int32) error\n\tGetCdWorkflowLatestByPipelineIds(pipelineIds []int) ([]*CdWorkflowStatusLatest, error)\n}\n```\n\n```go\ntype WorkflowStatusLatestServiceImpl struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowStatusLatestServiceImpl(\n\tlogger *zap.SugaredLogger,\n\tworkflowStatusLatestRepository pipelineConfig.WorkflowStatusLatestRepository,\n\tciWorkflowRepository pipelineConfig.CiWorkflowRepository,\n\tcdWorkflowRepository pipelineConfig.CdWorkflowRepository,\n\tciPipelineRepository pipelineConfig.CiPipelineRepository,\n) *WorkflowStatusLatestServiceImpl\n```\n\n```go\nfunc (impl *WorkflowStatusLatestServiceImpl) GetCdWorkflowLatestByPipelineIds(pipelineIds []int) ([]*CdWorkflowStatusLatest, error)\n```\n\n```go\nfunc (impl *WorkflowStatusLatestServiceImpl) GetCiWorkflowStatusLatestByPipelineIds(pipelineIds []int) ([]*pipelineConfig.CiWorkflowStatusLatest, error)\n```\n\n```go\nfunc (impl *WorkflowStatusLatestServiceImpl) SaveCdWorkflowStatusLatest(tx *pg.Tx, pipelineId, appId, environmentId, workflowRunnerId int, workflowType string, userId int32) error\n```\nCD Workflow Status Latest methods implementation\n\n```go\nfunc (impl *WorkflowStatusLatestServiceImpl) SaveCiWorkflowStatusLatest(tx *pg.Tx, pipelineId, appId, ciWorkflowId int, userId int32) error\n```\n\n","path":"github.com/devtron-labs/devtron/pkg/workflow/workflowStatusLatest","name":"workflowStatusLatest","synopsis":"","isRedistributable":true}
