Documentation ¶
Overview ¶
Package state package
Index ¶
- type RunStateManager
- func (r *RunStateManager) UpdateApply(ctx context.Context, apply *models.Apply) (*models.Apply, error)
- func (r *RunStateManager) UpdateJob(ctx context.Context, job *models.Job) (*models.Job, error)
- func (r *RunStateManager) UpdatePlan(ctx context.Context, plan *models.Plan) (*models.Plan, error)
- func (r *RunStateManager) UpdateRun(ctx context.Context, run *models.Run) (*models.Run, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunStateManager ¶
type RunStateManager struct {
// contains filtered or unexported fields
}
RunStateManager is used to manage state changes for run resources
func NewRunStateManager ¶
func NewRunStateManager(dbClient *db.Client, logger logger.Logger) *RunStateManager
NewRunStateManager creates a new RunStateManager instance
func (*RunStateManager) UpdateApply ¶
func (r *RunStateManager) UpdateApply(ctx context.Context, apply *models.Apply) (*models.Apply, error)
UpdateApply handles the state transitions for updating an apply resource
func (*RunStateManager) UpdateJob ¶
UpdateJob handles the state transitions for updating a job resource
func (*RunStateManager) UpdatePlan ¶
UpdatePlan handles the state transitions for updating a plan resource
Click to show internal directories.
Click to hide internal directories.