Documentation ¶
Index ¶
- type GetParams
- type Run
- type RunListParams
- type RunRepository
- type RunRepositoryImpl
- func (r *RunRepositoryImpl) Create(run *Run) (*Run, error)
- func (r *RunRepositoryImpl) Delete(runId *types.UuidOrString) error
- func (r *RunRepositoryImpl) Get(runId *types.UuidOrString) (*Run, error)
- func (r *RunRepositoryImpl) List(params *RunListParams) ([]Run, error)
- func (r *RunRepositoryImpl) Update(run *Run) (*Run, error)
- type UpdateRunParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Run ¶
type Run struct { ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` Status types.RunStatus `json:"status"` WorkspaceID uuid.UUID `json:"workspace_id"` Workspace workspaces.Workspace `json:"-"` Add int `json:"add"` Change int `json:"change"` Destroy int `json:"destroy"` ManagedResources int `json:"managed_resources"` CompletedAt *time.Time `json:"completed_at"` Operation string `json:"operation"` // Agent configuration AgentID *uuid.UUID `json:"-" gorm:"default:null"` Agent agent.Agent `json:"agent,omitempty"` SourceRunID *uuid.UUID `json:"source_run_id"` }
type RunListParams ¶
type RunRepository ¶
type RunRepository interface { List(params *RunListParams) ([]Run, error) Get(runId *types.UuidOrString) (*Run, error) Create(run *Run) (*Run, error) Update(run *Run) (*Run, error) Delete(runId *types.UuidOrString) error }
func NewRunRepository ¶
func NewRunRepository(db *gorm.DB) RunRepository
type RunRepositoryImpl ¶
func (*RunRepositoryImpl) Delete ¶
func (r *RunRepositoryImpl) Delete(runId *types.UuidOrString) error
func (*RunRepositoryImpl) Get ¶
func (r *RunRepositoryImpl) Get(runId *types.UuidOrString) (*Run, error)
func (*RunRepositoryImpl) List ¶
func (r *RunRepositoryImpl) List(params *RunListParams) ([]Run, error)
Click to show internal directories.
Click to hide internal directories.