Documentation ¶
Index ¶
- func DeleteAsCodeEventByWorkflowID(db gorp.SqlExecutor, id int64) error
- func DeleteEventsApplicationOnlyFromRepoName(ctx context.Context, db gorp.SqlExecutor, fromRepository string, appID int64, ...) error
- func DeleteEventsEnvironmentOnlyFromRepoName(ctx context.Context, db gorp.SqlExecutor, fromRepository string, envID int64, ...) error
- func DeleteEventsPipelineOnlyFromRepoName(ctx context.Context, db gorp.SqlExecutor, fromRepository string, pipID int64, ...) error
- func LoadEventByWorkflowIDAndPullRequest(ctx context.Context, db gorp.SqlExecutor, workflowID int64, ...) (*sdk.AsCodeEvent, error)
- func LoadEventsByWorkflowID(ctx context.Context, db gorp.SqlExecutor, workflowID int64) ([]sdk.AsCodeEvent, error)
- func LoadEventsByWorkflowIDs(ctx context.Context, db gorp.SqlExecutor, workflowIDs []int64) ([]sdk.AsCodeEvent, error)
- func UpdateAsCodeResult(ctx context.Context, db *gorp.DbMap, store cache.Store, ...)
- func UpdateEvent(db gorp.SqlExecutor, event *sdk.AsCodeEvent) error
- func UpsertEvent(db gorp.SqlExecutor, event *sdk.AsCodeEvent) error
- type EntityData
- type EventType
- type SyncResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAsCodeEventByWorkflowID ¶
func DeleteAsCodeEventByWorkflowID(db gorp.SqlExecutor, id int64) error
DeleteAsCodeEventByWorkflowID removes all as_code_event from workflow_id
func LoadEventByWorkflowIDAndPullRequest ¶
func LoadEventByWorkflowIDAndPullRequest(ctx context.Context, db gorp.SqlExecutor, workflowID int64, pullRequestRepo string, pullRequestID int64) (*sdk.AsCodeEvent, error)
LoadEventByWorkflowIDAndPullRequest returns a as code event if exists for given workflow holder and pull request info.
func LoadEventsByWorkflowID ¶
func LoadEventsByWorkflowID(ctx context.Context, db gorp.SqlExecutor, workflowID int64) ([]sdk.AsCodeEvent, error)
LoadEventsByWorkflowID returns as code events for the given workflow.
func LoadEventsByWorkflowIDs ¶
func LoadEventsByWorkflowIDs(ctx context.Context, db gorp.SqlExecutor, workflowIDs []int64) ([]sdk.AsCodeEvent, error)
LoadEventsByWorkflowIDs loads all events attached to a workflow_id
func UpdateAsCodeResult ¶
func UpdateAsCodeResult(ctx context.Context, db *gorp.DbMap, store cache.Store, goRoutines *sdk.GoRoutines, proj sdk.Project, workflowHolder sdk.Workflow, rootApp sdk.Application, ed EntityData, u sdk.Identifiable)
UpdateAsCodeResult pulls repositories operation and the create pullrequest + update workflow
func UpdateEvent ¶
func UpdateEvent(db gorp.SqlExecutor, event *sdk.AsCodeEvent) error
UpdateEvent in database.
func UpsertEvent ¶
func UpsertEvent(db gorp.SqlExecutor, event *sdk.AsCodeEvent) error
UpsertEvent insert or update given ascode event.
Types ¶
type EntityData ¶
type SyncResult ¶
Click to show internal directories.
Click to hide internal directories.