MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / FindByID

Method FindByID

app/controlplane/pkg/biz/workflow.go:416–426  ·  view source on GitHub ↗
(ctx context.Context, workflowID string)

Source from the content-addressed store, hash-verified

414}
415
416func (uc *WorkflowUseCase) FindByID(ctx context.Context, workflowID string) (*Workflow, error) {
417 ctx, span := otelx.Start(ctx, workflowTracer, "WorkflowUseCase.FindByID")
418 defer span.End()
419
420 workflowUUID, err := uuid.Parse(workflowID)
421 if err != nil {
422 return nil, err
423 }
424
425 return uc.wfRepo.FindByID(ctx, workflowUUID)
426}
427
428func (uc *WorkflowUseCase) FindByIDInOrg(ctx context.Context, orgID, workflowID string) (*Workflow, error) {
429 ctx, span := otelx.Start(ctx, workflowTracer, "WorkflowUseCase.FindByIDInOrg")

Callers

nothing calls this directly

Calls 3

StartFunction · 0.92
ParseMethod · 0.80
FindByIDMethod · 0.65

Tested by

no test coverage detected