state

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package state package

Index

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

func (r *RunStateManager) UpdateJob(ctx context.Context, job *models.Job) (*models.Job, error)

UpdateJob handles the state transitions for updating a job resource

func (*RunStateManager) UpdatePlan

func (r *RunStateManager) UpdatePlan(ctx context.Context, plan *models.Plan) (*models.Plan, error)

UpdatePlan handles the state transitions for updating a plan resource

func (*RunStateManager) UpdateRun

func (r *RunStateManager) UpdateRun(ctx context.Context, run *models.Run) (*models.Run, error)

UpdateRun handles the state transitions for updating a run resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL