Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
Package workflows provides implementations of workflows for Credentials Issuers. It includes the CredentialsIssuersWorkflow, which validates and imports credential issuer metadata. The workflow performs various steps including checking the issuer, parsing JSON responses, validating metadata, and storing credentials.
Package workflows provides implementations of workflows for the OpenID certification site. It includes the EudiwWorkflow for conformance checks. for draining logs from the OpenID certification site.
SPDX-FileCopyrightText: 2026 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
Package workflows provides the OpenID4VCIIssuerWorkflow for running OID4VCI issuer conformance checks via the OpenID Foundation Certification Suite.
Package workflows provides implementations of workflows for the OpenID certification site. It includes the OpenID4VPWalletWorkflow for conformance checks and the OpenID4VPWalletLogsWorkflow for draining logs from the OpenID certification site.
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
Package workflows provides implementations of workflows for Credentials Issuers. It includes the CredentialsIssuersWorkflow, which validates and imports credential issuer metadata. The workflow performs various steps including checking the issuer, parsing JSON responses, storing credentials, and cleaning up invalid credentials.
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
Package workflows provides implementations of workflows for Credentials Issuers. It includes the WalletWorkflow, which validates and imports credential issuer metadata. The workflow performs various steps including checking the issuer, parsing JSON responses, storing credentials, and cleaning up invalid credentials.
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
- Constants
- Variables
- func BuildQRDeepLink(clientID, requestURI string) (string, error)
- func ConformanceSuiteHasLogs(suite string) bool
- func MobileDeviceSemaphoreWorkflowID(deviceID string) string
- func ResolveEWCLikeCheckEndpoint(suite string, standard string) (string, error)
- func ResolveEWCLikeLogsEndpoint(suite string, standard string) (string, error)
- type AggregateScoreboardWorkflow
- func (w *AggregateScoreboardWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *AggregateScoreboardWorkflow) GetOptions() workflow.ActivityOptions
- func (w *AggregateScoreboardWorkflow) Name() string
- func (w *AggregateScoreboardWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *AggregateScoreboardWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type AggregateScoreboardWorkflowOutput
- type AggregatedPipelineStats
- type CredentialsIssuersWorkflow
- func (w *CredentialsIssuersWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *CredentialsIssuersWorkflow) GetOptions() workflow.ActivityOptions
- func (w *CredentialsIssuersWorkflow) Name() string
- func (w *CredentialsIssuersWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *CredentialsIssuersWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type CredentialsIssuersWorkflowPayload
- type CustomCheckWorkflow
- func (w *CustomCheckWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (CustomCheckWorkflow) GetOptions() workflow.ActivityOptions
- func (CustomCheckWorkflow) Name() string
- func (w *CustomCheckWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *CustomCheckWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type CustomCheckWorkflowPayload
- type EWCResponseBody
- type EWCStatusWorkflow
- func (w *EWCStatusWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (EWCStatusWorkflow) GetOptions() workflow.ActivityOptions
- func (EWCStatusWorkflow) Name() string
- func (w *EWCStatusWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type EWCStatusWorkflowPayload
- type EWCWorkflow
- func (w *EWCWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (EWCWorkflow) GetOptions() workflow.ActivityOptions
- func (EWCWorkflow) Name() string
- func (w *EWCWorkflow) Start(input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *EWCWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type EWCWorkflowPayload
- type EudiwResponseBody
- type EudiwWorkflow
- func (w *EudiwWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (EudiwWorkflow) GetOptions() workflow.ActivityOptions
- func (EudiwWorkflow) Name() string
- func (w *EudiwWorkflow) Start(input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *EudiwWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type EudiwWorkflowPayload
- type FidesCredentialIssuersWorkflow
- func (w *FidesCredentialIssuersWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *FidesCredentialIssuersWorkflow) GetOptions() workflow.ActivityOptions
- func (w *FidesCredentialIssuersWorkflow) Name() string
- func (w *FidesCredentialIssuersWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *FidesCredentialIssuersWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type Form
- type GetCredentialOfferWorkflow
- func (w *GetCredentialOfferWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *GetCredentialOfferWorkflow) GetOptions() workflow.ActivityOptions
- func (w *GetCredentialOfferWorkflow) Name() string
- func (w *GetCredentialOfferWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type GetCredentialOfferWorkflowPayload
- type GetUseCaseVerificationDeeplinkWorkflow
- func (w *GetUseCaseVerificationDeeplinkWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *GetUseCaseVerificationDeeplinkWorkflow) GetOptions() workflow.ActivityOptions
- func (w *GetUseCaseVerificationDeeplinkWorkflow) Name() string
- func (w *GetUseCaseVerificationDeeplinkWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type GetUseCaseVerificationDeeplinkWorkflowPayload
- type GitHubPRCommentWorkflow
- func (w *GitHubPRCommentWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (GitHubPRCommentWorkflow) GetOptions() workflow.ActivityOptions
- func (GitHubPRCommentWorkflow) Name() string
- func (w *GitHubPRCommentWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type LatestExecutionDetails
- type MobileAutomationAction
- type MobileAutomationWorkflow
- func (w *MobileAutomationWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (MobileAutomationWorkflow) GetOptions() workflow.ActivityOptions
- func (MobileAutomationWorkflow) Name() string
- func (w *MobileAutomationWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type MobileAutomationWorkflowPayload
- type MobileAutomationWorkflowPipelinePayload
- type MobileDeviceSemaphoreCleanupMetadata
- type MobileDeviceSemaphoreEnqueueRunRequest
- type MobileDeviceSemaphoreEnqueueRunResponse
- type MobileDeviceSemaphoreGitHubPRNotification
- type MobileDeviceSemaphoreNotification
- type MobileDeviceSemaphorePauseDeviceRequest
- type MobileDeviceSemaphorePauseDeviceResponse
- type MobileDeviceSemaphoreQueuedRunView
- type MobileDeviceSemaphoreResumeDeviceRequest
- type MobileDeviceSemaphoreResumeDeviceResponse
- type MobileDeviceSemaphoreRunCancelRequest
- type MobileDeviceSemaphoreRunDoneRequest
- type MobileDeviceSemaphoreRunDoneSignal
- type MobileDeviceSemaphoreRunGrantedSignal
- type MobileDeviceSemaphoreRunStartedSignal
- type MobileDeviceSemaphoreRunStatus
- type MobileDeviceSemaphoreRunStatusView
- type MobileDeviceSemaphoreRunTicketState
- type MobileDeviceSemaphoreShutdownDeviceRequest
- type MobileDeviceSemaphoreShutdownDeviceResponse
- type MobileDeviceSemaphoreStateView
- type MobileDeviceSemaphoreTempCredentialCleanupMetadata
- type MobileDeviceSemaphoreWorkflow
- func (w *MobileDeviceSemaphoreWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (MobileDeviceSemaphoreWorkflow) GetOptions() workflow.ActivityOptions
- func (MobileDeviceSemaphoreWorkflow) Name() string
- func (w *MobileDeviceSemaphoreWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type MobileDeviceSemaphoreWorkflowInput
- type MobileDeviceSemaphoreWorkflowState
- type MobileWorkflowOutput
- type OpenID4VCIIssuerWorkflow
- func (w *OpenID4VCIIssuerWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (OpenID4VCIIssuerWorkflow) GetOptions() workflow.ActivityOptions
- func (OpenID4VCIIssuerWorkflow) Name() string
- func (w *OpenID4VCIIssuerWorkflow) Start(input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *OpenID4VCIIssuerWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type OpenID4VCIIssuerWorkflowPayload
- type OpenID4VPVerifierWorkflow
- func (w *OpenID4VPVerifierWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (OpenID4VPVerifierWorkflow) GetOptions() workflow.ActivityOptions
- func (OpenID4VPVerifierWorkflow) Name() string
- func (w *OpenID4VPVerifierWorkflow) Start(input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *OpenID4VPVerifierWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type OpenID4VPVerifierWorkflowPayload
- type OpenID4VPWalletLogsWorkflow
- func (w *OpenID4VPWalletLogsWorkflow) Configure(ctx workflow.Context) workflow.Context
- func (w *OpenID4VPWalletLogsWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (OpenID4VPWalletLogsWorkflow) GetOptions() workflow.ActivityOptions
- func (OpenID4VPWalletLogsWorkflow) Name() string
- func (w *OpenID4VPWalletLogsWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type OpenID4VPWalletLogsWorkflowPayload
- type OpenID4VPWalletWorkflow
- func (w *OpenID4VPWalletWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (OpenID4VPWalletWorkflow) GetOptions() workflow.ActivityOptions
- func (OpenID4VPWalletWorkflow) Name() string
- func (w *OpenID4VPWalletWorkflow) Start(input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *OpenID4VPWalletWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type OpenID4VPWalletWorkflowPayload
- type OpenIDConformanceWorkflowPayload
- type PipelineRetentionWorkflow
- func (w *PipelineRetentionWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *PipelineRetentionWorkflow) GetOptions() workflow.ActivityOptions
- func (w *PipelineRetentionWorkflow) Name() string
- func (w *PipelineRetentionWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *PipelineRetentionWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type PipelineRetentionWorkflowInput
- type ScheduledPipelineEnqueueWorkflow
- func (w *ScheduledPipelineEnqueueWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (ScheduledPipelineEnqueueWorkflow) GetOptions() workflow.ActivityOptions
- func (ScheduledPipelineEnqueueWorkflow) Name() string
- func (w *ScheduledPipelineEnqueueWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type ScheduledPipelineEnqueueWorkflowInput
- type ScoreboardExecutionInput
- type ScoreboardNamespaceInput
- type SignalData
- type StartCheckWorkflow
- func (w *StartCheckWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (StartCheckWorkflow) GetOptions() workflow.ActivityOptions
- func (StartCheckWorkflow) Name() string
- func (w *StartCheckWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *StartCheckWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type StartCheckWorkflowPayload
- type StartCheckWorkflowPipelinePayload
- type StepCIAndEmailConfig
- type StepCIAndEmailResult
- type VLEIValidationLocalWorkflow
- func (w *VLEIValidationLocalWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *VLEIValidationLocalWorkflow) GetOptions() workflow.ActivityOptions
- func (w *VLEIValidationLocalWorkflow) Name() string
- func (w *VLEIValidationLocalWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *VLEIValidationLocalWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type VLEIValidationLocalWorkflowPayload
- type VLEIValidationWorkflow
- func (w *VLEIValidationWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *VLEIValidationWorkflow) GetOptions() workflow.ActivityOptions
- func (w *VLEIValidationWorkflow) Name() string
- func (w *VLEIValidationWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *VLEIValidationWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type VLEIValidationWorkflowPayload
- type WalletWorkflow
- func (w *WalletWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *WalletWorkflow) GetOptions() workflow.ActivityOptions
- func (w *WalletWorkflow) Name() string
- func (w *WalletWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *WalletWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type WalletWorkflowPayload
- type WebuildStatusWorkflow
- func (w *WebuildStatusWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (WebuildStatusWorkflow) GetOptions() workflow.ActivityOptions
- func (WebuildStatusWorkflow) Name() string
- func (w *WebuildStatusWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type WebuildWorkflow
- func (w *WebuildWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (WebuildWorkflow) GetOptions() workflow.ActivityOptions
- func (WebuildWorkflow) Name() string
- func (w *WebuildWorkflow) Start(input workflowengine.WorkflowInput) (result workflowengine.WorkflowResult, err error)
- func (w *WebuildWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type WorkerManagerRunnerResult
- type WorkerManagerWorkflow
- func (w *WorkerManagerWorkflow) ExecuteWorkflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (WorkerManagerWorkflow) GetOptions() workflow.ActivityOptions
- func (WorkerManagerWorkflow) Name() string
- func (w *WorkerManagerWorkflow) Start(namespace string, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- func (w *WorkerManagerWorkflow) Workflow(ctx workflow.Context, input workflowengine.WorkflowInput) (workflowengine.WorkflowResult, error)
- type WorkerManagerWorkflowOutput
- type WorkerManagerWorkflowPayload
Constants ¶
const ( OpenIDConformanceSuite = "openid_conformance_suite" EWCSuite = "ewc" WebuildSuite = "webuild" EudiwSuite = "eudiw" VLEISuite = "vlei" OpenID4VPWalletStandard = "openid4vp_wallet" OpenID4VCIWalletStandard = "openid4vci_wallet" OpenID4VPVerifierStandard = "openid4vp_verifier" OpenID4VCIIssuerStandard = "openid4vci_issuer" ConformanceCheckTaskQueue = "ConformanceCheckTaskQueue" PipelineCancelSignal = "pipeline_cancel_signal" )
const ( CredentialsTaskQueue = "CredentialsTaskQueue" CredentialsIssuerDataUpdate = "getCredentialsIssuerData" CredentialIssuerSchemaPath = "schemas/credentialissuer/openid-credential-issuer.schema.json" )
CredentialsTaskQueue is the task queue for the credentials workflow.
const ( EudiwTaskQueue = "EUDIWTaskQueue" EudiwTemplateFolderPath = "pkg/workflowengine/workflows/eudiw_config" EudiwStartCheckSignal = "start-eudiw-check-signal" EudiwStopCheckSignal = "stop-eudiw-check-signal" EudiwSubscription = "eudiw-logs" )
EudiwTaskQueue is the task queue for Eudiw workflows.
const ( EWCTaskQueue = "EWCTaskQueue" EWCTemplateFolderPath = "pkg/workflowengine/workflows/ewc_config" EwcStartCheckSignal = "start-ewc-check-signal" EwcStopCheckSignal = "stop-ewc-check-signal" )
EWCTaskQueue is the task queue for EWC workflows.
const ( FidesCredentialIssuersTaskQueue = "FidesCredentialIssuersTaskQueue" FidesCredentialIssuersWorkflowName = "Import Fides Credential Issuers" )
const ( MobileDeviceSemaphoreTaskQueue = mobiledevicesemaphore.TaskQueue MobileDeviceSemaphoreWorkflowName = mobiledevicesemaphore.WorkflowName MobileDeviceSemaphoreStateQuery = mobiledevicesemaphore.StateQuery MobileDeviceSemaphoreEnqueueRunUpdate = mobiledevicesemaphore.EnqueueRunUpdate MobileDeviceSemaphoreRunStatusQuery = mobiledevicesemaphore.RunStatusQuery MobileDeviceSemaphoreListQueuedRunsQuery = mobiledevicesemaphore.ListQueuedRunsQuery MobileDeviceSemaphoreRunDoneUpdate = mobiledevicesemaphore.RunDoneUpdate MobileDeviceSemaphoreCancelRunUpdate = mobiledevicesemaphore.CancelRunUpdate MobileDeviceSemaphorePauseDeviceUpdate = mobiledevicesemaphore.PauseDeviceUpdate MobileDeviceSemaphoreResumeDeviceUpdate = mobiledevicesemaphore.ResumeDeviceUpdate MobileDeviceSemaphoreShutdownDeviceUpdate = mobiledevicesemaphore.ShutdownDeviceUpdate MobileDeviceSemaphoreRunGrantedSignalName = mobiledevicesemaphore.RunGrantedSignal MobileDeviceSemaphoreRunStartedSignalName = mobiledevicesemaphore.RunStartedSignal MobileDeviceSemaphoreRunDoneSignalName = mobiledevicesemaphore.RunDoneSignal MobileDeviceSemaphoreErrInvalidRequest = mobiledevicesemaphore.ErrInvalidRequest MobileDeviceSemaphoreErrQueueLimitExceeded = mobiledevicesemaphore.ErrQueueLimitExceeded )
const ( OpenID4VCIIssuerTaskQueue = "OpenID4VCIIssuerTaskQueue" OpenID4VCIIssuerStepCITemplatePath = "pkg/workflowengine/workflows/openid4vci_issuer_config/stepci_issuer_template_v1_0.yaml" OpenID4VCIIssuerStartCheckSignal = "start-openid4vci-issuer-log-update" OpenID4VCIIssuerStopCheckSignal = "stop-openid4vci-issuer-log-update" )
const ( OpenID4VPVerifierTaskQueue = "OpenID4VPVerifierTaskQueue" OpenID4VPVerifierStepCITemplatePath = "pkg/workflowengine/workflows/openid4vp_verifier_config/stepci_verifier_template_v1_0.yaml" OpenID4VPVerifierStartCheckSignal = "start-openid4vp-verifier-log-update" OpenID4VPVerifierStopCheckSignal = "stop-openid4vp-verifier-log-update" )
const ( OpenID4VPWalletTaskQueue = "OpenID4VPWalletTaskQueue" OpenID4VPWalletStepCITemplatePathv1_0 = "pkg/workflowengine/workflows/openid4vp_wallet_config/stepci_wallet_template_v1_0.yaml" OpenID4VPWalletStepCITemplatePathDr24 = "pkg/workflowengine/workflows/openid4vp_wallet_config/stepci_wallet_template_draft_24.yaml" OpenID4VPWalletSubscription = "openidnet-logs" OpenID4VPWalletStartCheckSignal = "start-openidnet-check-log-update" OpenID4VPWalletStopCheckSignal = "stop-openidnet-check-log-update" )
OpenID4VPWalletTaskQueue is the task queue for OID4VP wallet workflows.
const ( ListScoreboardNamespacesActivityName = "List organization namespaces for the scoreboard" GetNamespaceScoreboardActivityName = "Get the pipeline scoreboard of a namespace" GetScoreboardExecutionDetailsActivityName = "Get scoreboard execution details" SaveScoreboardResultsActivityName = "Save aggregated scoreboard results" )
Activity names of the scoreboard activities. The activities live in the handlers package because they reuse its Temporal listing code.
const ( VLEIValidationTaskQueue = "VLEIValidationTaskQueue" VLEIValidationLocalTaskQueue = "VLEIValidationLocalTaskQueue" )
const ( WalletTaskQueue = "WalletTaskQueue" AppleStoreAPIURL = "https://itunes.apple.com/lookup" AppMetadataUpdate = "getAppMetadata" )
WalletTaskQueue is the task queue for the wallet workflow.
const AggregateScoreboardTaskQueue = "AggregateScoreboardTaskQueue"
const CustomCheckTaskQueue = "custom-check-task-queue"
const (
EWCSubscription = "ewc-logs"
)
const MobileAutomationTaskQueue = "MobileAutomationTaskQueue"
const OpenID4VCIWalletStepCITemplatePath = "pkg/workflowengine/workflows/openid4vci_wallet_config/stepci_wallet_template_v1_0.yaml"
const PipelineRetentionDefaultBatchSize = 100
const PipelineRetentionTaskQueue = "PipelineRetentionTaskQueue"
const ScheduledPipelineEnqueueWorkflowName = "Scheduled Pipeline Enqueue Workflow"
ScheduledPipelineEnqueueWorkflowName identifies the scheduled enqueue workflow.
const WebuildTemplateFolderPath = "pkg/workflowengine/workflows/webuild_config"
const WorkerManagerTaskQueue = "worker-manager-task-queue"
Variables ¶
var DefaultActivityOptions = workflow.ActivityOptions{ ScheduleToCloseTimeout: time.Minute * 10, StartToCloseTimeout: time.Minute * 5, RetryPolicy: retryPolicy, }
DefaultActivityOptions defines the configuration options for a workflow activity. It includes timeouts and retry policies to control the execution behavior of activities.
Fields: - ScheduleToCloseTimeout: The maximum time allowed from scheduling to the completion of the activity. - StartToCloseTimeout: The maximum time allowed from the start to the completion of the activity. - RetryPolicy: The policy that defines how retries should be handled in case of activity failures.
var DefaultNamespace = "default"
Functions ¶
func BuildQRDeepLink ¶
func ConformanceSuiteHasLogs ¶
ConformanceSuiteHasLogs reports whether a conformance suite exposes UI logs.
Types ¶
type AggregateScoreboardWorkflow ¶
type AggregateScoreboardWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewAggregateScoreboardWorkflow ¶
func NewAggregateScoreboardWorkflow() *AggregateScoreboardWorkflow
func (*AggregateScoreboardWorkflow) ExecuteWorkflow ¶
func (w *AggregateScoreboardWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*AggregateScoreboardWorkflow) GetOptions ¶
func (w *AggregateScoreboardWorkflow) GetOptions() workflow.ActivityOptions
func (*AggregateScoreboardWorkflow) Name ¶
func (w *AggregateScoreboardWorkflow) Name() string
func (*AggregateScoreboardWorkflow) Start ¶
func (w *AggregateScoreboardWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*AggregateScoreboardWorkflow) Workflow ¶
func (w *AggregateScoreboardWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type AggregateScoreboardWorkflowOutput ¶
type AggregateScoreboardWorkflowOutput struct {
AggregatedPipelines []AggregatedPipelineStats `json:"aggregated_pipelines"`
NamespacesProcessed int `json:"namespaces_processed"`
NamespacesFailed int `json:"namespaces_failed"`
FailedNamespaces []string `json:"failed_namespaces,omitempty"`
}
type AggregatedPipelineStats ¶
type AggregatedPipelineStats struct {
PipelineID string `json:"pipeline_id"`
PipelineName string `json:"pipeline_name"`
DeviceTypes []string `json:"device_types"`
DeviceIDs []string `json:"device_ids"`
TotalRuns int `json:"total_runs"`
TotalSuccesses int `json:"total_successes"`
SuccessRate float64 `json:"success_rate"`
ManualExecutions int `json:"manual_executions"`
ScheduledExecutions int `json:"scheduled_executions"`
CIExecutions int `json:"ci_executions"`
MinExecutionTime string `json:"min_execution_time"`
MinExecutionTimeSeconds int `json:"min_execution_time_seconds"`
FirstExecutionDate string `json:"first_execution_date"`
LastExecutionDate string `json:"last_execution_date"`
LastExecution *LatestExecutionDetails `json:"last_execution,omitempty"`
}
type CredentialsIssuersWorkflow ¶
type CredentialsIssuersWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
CredentialsIssuersWorkflow is a workflow that validates and imports credential issuer metadata.
func NewCredentialsIssuersWorkflow ¶
func NewCredentialsIssuersWorkflow() *CredentialsIssuersWorkflow
func (*CredentialsIssuersWorkflow) ExecuteWorkflow ¶
func (w *CredentialsIssuersWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
Workflow is the main workflow function for the CredentialsIssuersWorkflow. It performs the following steps:
- Executes the CheckCredentialsIssuerActivity to validate the credentials issuer.
- Parses the raw JSON response from the issuer using the JSONActivity.
- Iterates through the credential configurations supported by the issuer and: - Stores each credential with the StoreIssuerCredential activity. - Logs the stored credentials.
- Returns a WorkflowResult containing a success message and logs.
Parameters: - ctx: The workflow context. - input: The input for the workflow, containing configuration and payload data.
Returns: - workflowengine.WorkflowResult: The result of the workflow execution, including logs. - error: An error if any step in the workflow fails.
func (*CredentialsIssuersWorkflow) GetOptions ¶
func (w *CredentialsIssuersWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the activity options for the workflow.
func (*CredentialsIssuersWorkflow) Name ¶
func (w *CredentialsIssuersWorkflow) Name() string
Name returns the name of the workflow.
func (*CredentialsIssuersWorkflow) Start ¶
func (w *CredentialsIssuersWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
Start initializes and starts the CredentialsIssuersWorkflow execution. It loads environment variables, configures the Temporal client with the specified namespace, and sets up workflow options including a unique workflow ID and optional memo. The workflow is then executed with the provided input.
Parameters:
- input: A WorkflowInput object containing configuration and input data for the workflow.
Returns:
- result: A WorkflowResult object (empty in this implementation).
- err: An error if the workflow fails to start or if there is an issue with the Temporal client.
Errors:
- Returns an error if the Temporal client cannot be created or if the workflow execution fails.
func (*CredentialsIssuersWorkflow) Workflow ¶
func (w *CredentialsIssuersWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type CredentialsIssuersWorkflowPayload ¶
type CredentialsIssuersWorkflowPayload struct {
BaseURL string `json:"base_url" yaml:"base_url" validate:"required"`
IssuerID string `json:"issuer_id" yaml:"issuer_id" validate:"required"`
}
CredentialsIssuersWorkflowPayload is the payload for the CredentialsIssuersWorkflow.
type CustomCheckWorkflow ¶
type CustomCheckWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
CustomCheckWorkflow is a workflow that performs a custom check.
func NewCustomCheckWorkflow ¶
func NewCustomCheckWorkflow() *CustomCheckWorkflow
func (*CustomCheckWorkflow) ExecuteWorkflow ¶
func (w *CustomCheckWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (CustomCheckWorkflow) GetOptions ¶
func (CustomCheckWorkflow) GetOptions() workflow.ActivityOptions
func (CustomCheckWorkflow) Name ¶
func (CustomCheckWorkflow) Name() string
func (*CustomCheckWorkflow) Start ¶
func (w *CustomCheckWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*CustomCheckWorkflow) Workflow ¶
func (w *CustomCheckWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type EWCResponseBody ¶
type EWCResponseBody struct {
Status string `json:"status"`
Error string `json:"error,omitempty"`
Result map[string]any `json:"result,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
Reason string `json:"reason,omitempty"`
SessionID string `json:"sessionId"`
Claims map[string]any `json:"claims,omitempty"`
}
type EWCStatusWorkflow ¶
type EWCStatusWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
EWCStatusWorkflow is a workflow that checks the status of an EWC check.
func NewEWCStatusWorkflow ¶
func NewEWCStatusWorkflow() *EWCStatusWorkflow
func (*EWCStatusWorkflow) ExecuteWorkflow ¶
func (w *EWCStatusWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
Workflow continuously polls EWC Status and pushes updates to the backend. It can be paused/resumed by Temporal signals.
func (EWCStatusWorkflow) GetOptions ¶
func (EWCStatusWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the default activity options for this workflow.
func (EWCStatusWorkflow) Name ¶
func (EWCStatusWorkflow) Name() string
Name returns the human-readable name for this workflow.
func (*EWCStatusWorkflow) Workflow ¶
func (w *EWCStatusWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type EWCStatusWorkflowPayload ¶
type EWCStatusWorkflowPayload struct {
SessionID string `json:"session_id"`
}
EWCStatusWorkflowPayload is the payload for the EWCStatusWorkflow.
type EWCWorkflow ¶
type EWCWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
EWCWorkflow is a workflow that performs conformance checks on the EWC suite.
func NewEWCWorkflow ¶
func NewEWCWorkflow() *EWCWorkflow
func (*EWCWorkflow) ExecuteWorkflow ¶
func (w *EWCWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow is the main workflow function for the EWCWorkflow. It orchestrates the execution of various activities to perform conformance checks and send notifications to the user.
Parameters:
- ctx: The workflow context used to manage workflow execution.
- input: The input data for the workflow, including payload and configuration.
Returns:
- workflowengine.WorkflowResult: The result of the workflow execution, including a message and log data.
- error: An error if the workflow fails at any step.
Workflow Steps:
- Execute the StepCIWorkflowActivity to perform initial checks and gets the QR code deep link.
- Generate a URL with query parameters for the user to continue the process.
- Configure and execute the SendMailActivity to notify the user via email.
- Wait for a signal ("ewc-check-started") to start polling the API to getthe current status of the check.
- Wait for either a signal ("ewc-check-stopped") to pause the workflow or the check result from the API
- Process the response to determine the success or failure of the workflow.
Notes:
- The workflow uses a selector to wait for either a signal or the next API call.
- If the signal data indicates failure, the workflow terminates with a failure message.
func (EWCWorkflow) GetOptions ¶
func (EWCWorkflow) GetOptions() workflow.ActivityOptions
GetOptions Configure sets up the workflow with the necessary options.
func (EWCWorkflow) Name ¶
func (EWCWorkflow) Name() string
Name returns the name of the EWCWorkflow.
func (*EWCWorkflow) Start ¶
func (w *EWCWorkflow) Start( input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
Start initializes and starts the EWCWorkflow execution. It loads environment variables, configures the Temporal client with the specified namespace, and sets up workflow options including a unique workflow ID and optional memo. The workflow is then executed with the provided input.
Parameters:
- input: A WorkflowInput object containing configuration and input data for the workflow.
Returns:
- result: A WorkflowResult object (currently empty in this implementation).
- err: An error if the workflow fails to start or if there is an issue with the Temporal client.
Notes:
- The namespace defaults to "default" if not provided in the input configuration.
- The workflow ID is generated using a UUID to ensure uniqueness.
- The Temporal client is closed after the workflow execution is initiated.
func (*EWCWorkflow) Workflow ¶
func (w *EWCWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type EWCWorkflowPayload ¶
type EudiwResponseBody ¶
type EudiwWorkflow ¶
type EudiwWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
EudiwWorkflow is a workflow that performs conformance checks on the EUDIW suite.
func NewEudiwWorkflow ¶
func NewEudiwWorkflow() *EudiwWorkflow
func (*EudiwWorkflow) ExecuteWorkflow ¶
func (w *EudiwWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow is the main workflow function for the EudiwWorkflow. It orchestrates the execution of various activities to perform conformance checks and send notifications to the user.
Parameters:
- ctx: The workflow context used to manage workflow execution.
- input: The input data for the workflow, including payload and configuration.
Returns:
- workflowengine.WorkflowResult: The result of the workflow execution, including a message and log data.
- error: An error if the workflow fails at any step.
Workflow Steps:
- Execute the StepCIWorkflowActivity to perform initial checks and gets the QR code deep link.
- Generate a URL with query parameters for the user to continue the process.
- Configure and execute the SendMailActivity to notify the user via email.
- Wait for a signal to start polling the API to get the current status of the check.
- Wait for either a signal to pause the workflow or the check result from the API
- Process the response to determine the success or failure of the workflow.
Notes:
- The workflow uses a selector to wait for either a signal or the next API call.
- If the signal data indicates failure, the workflow terminates with a failure message.
func (EudiwWorkflow) GetOptions ¶
func (EudiwWorkflow) GetOptions() workflow.ActivityOptions
GetOptions Configure sets up the workflow with the necessary options.
func (EudiwWorkflow) Name ¶
func (EudiwWorkflow) Name() string
Name returns the name of the EudiwWorkflow.
func (*EudiwWorkflow) Start ¶
func (w *EudiwWorkflow) Start( input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
Start initializes and starts the EudiwWorkflow execution. It loads environment variables, configures the Temporal client with the specified namespace, and sets up workflow options including a unique workflow ID and optional memo. The workflow is then executed with the provided input.
Parameters:
- input: A WorkflowInput object containing configuration and input data for the workflow.
Returns:
- result: A WorkflowResult object (currently empty in this implementation).
- err: An error if the workflow fails to start or if there is an issue with the Temporal client.
Notes:
- The namespace defaults to "default" if not provided in the input configuration.
- The workflow ID is generated using a UUID to ensure uniqueness.
- The Temporal client is closed after the workflow execution is initiated.
func (*EudiwWorkflow) Workflow ¶
func (w *EudiwWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type EudiwWorkflowPayload ¶
type FidesCredentialIssuersWorkflow ¶
type FidesCredentialIssuersWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewFidesCredentialIssuersWorkflow ¶
func NewFidesCredentialIssuersWorkflow() *FidesCredentialIssuersWorkflow
func (*FidesCredentialIssuersWorkflow) ExecuteWorkflow ¶
func (w *FidesCredentialIssuersWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*FidesCredentialIssuersWorkflow) GetOptions ¶
func (w *FidesCredentialIssuersWorkflow) GetOptions() workflow.ActivityOptions
func (*FidesCredentialIssuersWorkflow) Name ¶
func (w *FidesCredentialIssuersWorkflow) Name() string
func (*FidesCredentialIssuersWorkflow) Start ¶
func (w *FidesCredentialIssuersWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*FidesCredentialIssuersWorkflow) Workflow ¶
func (w *FidesCredentialIssuersWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type Form ¶
type Form struct {
Alias string `json:"alias" yaml:"alias" validate:"required"`
Description string `json:"description" yaml:"description"`
Client struct {
PresentationDefinition string `json:"presentation_definition,omitempty" yaml:"presentation_definition,omitempty"`
JWKS struct {
Keys []map[string]any `json:"keys" yaml:"keys"`
} `json:"jwks" yaml:"jwks"`
DCQL struct {
Credentials []map[string]any `json:"credentials" yaml:"credentials"`
} `json:"dcql,omitempty" yaml:"dcql,omitempty"`
ClientID string `json:"client_id,omitempty" yaml:"client_id,omitempty"`
AuthorizationEncryptedResponseEnc string `json:"authorization_encrypted_response_enc,omitempty" yaml:"authorization_encrypted_response_enc,omitempty"` //nolint:lll
AuthorizationEncryptedResponseAlg string `json:"authorization_encrypted_response_alg,omitempty" yaml:"authorization_encrypted_response_alg,omitempty"` //nolint:lll
} `json:"client" yaml:"client" validate:"required"`
Server struct {
AuthorizationEndpoint string `json:"authorization_endpoint" yaml:"authorization_endpoint"`
} `json:"server" yaml:"server"`
}
type GetCredentialOfferWorkflow ¶
type GetCredentialOfferWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
GetCredentialOfferWorkflow is a workflow that gets a credential offer from a stored credential.
func NewGetCredentialOfferWorkflow ¶
func NewGetCredentialOfferWorkflow() *GetCredentialOfferWorkflow
func (*GetCredentialOfferWorkflow) ExecuteWorkflow ¶
func (w *GetCredentialOfferWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*GetCredentialOfferWorkflow) GetOptions ¶
func (w *GetCredentialOfferWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the activity options for the workflow.
func (*GetCredentialOfferWorkflow) Name ¶
func (w *GetCredentialOfferWorkflow) Name() string
func (*GetCredentialOfferWorkflow) Workflow ¶
func (w *GetCredentialOfferWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow retrieves a credential offer for a stored credential. Static offers are returned directly; dynamic offers execute the stored StepCI workflow and return its deeplink.
Parameters: - ctx: The workflow context. - input: The input for the workflow, containing configuration and payload data.
Returns: - workflowengine.WorkflowResult: The result of the workflow execution, including logs. - error: An error if any step in the workflow fails.
type GetCredentialOfferWorkflowPayload ¶
type GetCredentialOfferWorkflowPayload struct {
CredentialID string `json:"credential_id" yaml:"credential_id" validate:"required"`
}
type GetUseCaseVerificationDeeplinkWorkflow ¶
type GetUseCaseVerificationDeeplinkWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
GetUseCaseVerificationDeeplinkWorkflow is a workflow that get the deeplink for a use case verification.
func NewGetUseCaseVerificationDeeplinkWorkflow ¶
func NewGetUseCaseVerificationDeeplinkWorkflow() *GetUseCaseVerificationDeeplinkWorkflow
func (*GetUseCaseVerificationDeeplinkWorkflow) ExecuteWorkflow ¶
func (w *GetUseCaseVerificationDeeplinkWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*GetUseCaseVerificationDeeplinkWorkflow) GetOptions ¶
func (w *GetUseCaseVerificationDeeplinkWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the activity options for the workflow.
func (*GetUseCaseVerificationDeeplinkWorkflow) Name ¶
func (w *GetUseCaseVerificationDeeplinkWorkflow) Name() string
Name returns the name of the workflow.
func (*GetUseCaseVerificationDeeplinkWorkflow) Workflow ¶
func (w *GetUseCaseVerificationDeeplinkWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type GetUseCaseVerificationDeeplinkWorkflowPayload ¶
type GetUseCaseVerificationDeeplinkWorkflowPayload struct {
UseCaseIdentifier string `json:"use_case_id" yaml:"use_case_id" validate:"required"`
}
GetUseCaseVerificationDeeplinkWorkflowPayload is the payload for the GetUseCaseVerificationDeeplinkWorkflow.
type GitHubPRCommentWorkflow ¶
type GitHubPRCommentWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewGitHubPRCommentWorkflow ¶
func NewGitHubPRCommentWorkflow() *GitHubPRCommentWorkflow
func (*GitHubPRCommentWorkflow) ExecuteWorkflow ¶
func (w *GitHubPRCommentWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (GitHubPRCommentWorkflow) GetOptions ¶
func (GitHubPRCommentWorkflow) GetOptions() workflow.ActivityOptions
func (GitHubPRCommentWorkflow) Name ¶
func (GitHubPRCommentWorkflow) Name() string
func (*GitHubPRCommentWorkflow) Workflow ¶
func (w *GitHubPRCommentWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type LatestExecutionDetails ¶
type LatestExecutionDetails struct {
WorkflowID string `json:"workflow_id,omitempty"`
RunID string `json:"run_id,omitempty"`
WalletUsed []string `json:"wallet_used,omitempty"`
WalletVersionUsed []string `json:"wallet_version_used,omitempty"`
MaestroScripts []string `json:"maestro_scripts,omitempty"`
Credentials []string `json:"credentials,omitempty"`
Issuers []string `json:"issuers,omitempty"`
UseCaseVerifications []string `json:"use_case_verifications,omitempty"`
Verifiers []string `json:"verifiers,omitempty"`
ConformanceTests []string `json:"conformance_tests,omitempty"`
CustomChecks []string `json:"custom_checks,omitempty"`
}
type MobileAutomationAction ¶
type MobileAutomationAction struct {
ID string `json:"id,omitempty" yaml:"id,omitempty"`
Code string `json:"code,omitempty" yaml:"code,omitempty"`
Parameters map[string]string `json:"parameters,omitempty" yaml:"parameters,omitempty"`
}
MobileAutomationAction is one wallet action of a step that runs several in one Maestro flow: a stored action (`id`) or inline Maestro code (`code`).
type MobileAutomationWorkflow ¶
type MobileAutomationWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
MobileAutomationWorkflow is a workflow that runs a mobile automation flow.
func NewMobileAutomationWorkflow ¶
func NewMobileAutomationWorkflow() *MobileAutomationWorkflow
func (*MobileAutomationWorkflow) ExecuteWorkflow ¶
func (w *MobileAutomationWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow returns an error when the mobile automation module is disabled.
func (MobileAutomationWorkflow) GetOptions ¶
func (MobileAutomationWorkflow) GetOptions() workflow.ActivityOptions
func (MobileAutomationWorkflow) Name ¶
func (MobileAutomationWorkflow) Name() string
func (*MobileAutomationWorkflow) Workflow ¶
func (w *MobileAutomationWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type MobileAutomationWorkflowPayload ¶
type MobileAutomationWorkflowPayload struct {
ActionID string `json:"action_id,omitempty" yaml:"action_id,omitempty"`
VersionID string `json:"version_id,omitempty" yaml:"version_id,omitempty"`
ActionCode string `json:"action_code,omitempty" yaml:"action_code,omitempty"`
StoredActionCode bool `json:"stored_action_code,omitempty" yaml:"stored_action_code,omitempty"`
Serial string `json:"serial,omitempty" yaml:"serial,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
DeviceID string `json:"device_id,omitempty" yaml:"device_id,omitempty"`
Parameters map[string]string `json:"parameters,omitempty" yaml:"parameters,omitempty"`
}
MobileAutomationWorkflowPayload is the payload for the mobile automation workflow.
type MobileAutomationWorkflowPipelinePayload ¶
type MobileAutomationWorkflowPipelinePayload struct {
ActionID string `json:"action_id,omitempty" yaml:"action_id,omitempty"`
VersionID string `json:"version_id,omitempty" yaml:"version_id,omitempty"`
ActionCode string `json:"action_code,omitempty" yaml:"action_code,omitempty"`
Parameters map[string]string `json:"parameters,omitempty" yaml:"parameters,omitempty"`
DeviceID string `json:"device_id,omitempty" yaml:"device_id,omitempty"`
Actions []MobileAutomationAction `json:"actions,omitempty" yaml:"actions,omitempty"`
}
type MobileDeviceSemaphoreCleanupMetadata ¶
type MobileDeviceSemaphoreCleanupMetadata = mobiledevicesemaphore.MobileDeviceSemaphoreCleanupMetadata
type MobileDeviceSemaphoreEnqueueRunRequest ¶
type MobileDeviceSemaphoreEnqueueRunRequest = mobiledevicesemaphore.MobileDeviceSemaphoreEnqueueRunRequest
type MobileDeviceSemaphoreEnqueueRunResponse ¶
type MobileDeviceSemaphoreEnqueueRunResponse = mobiledevicesemaphore.MobileDeviceSemaphoreEnqueueRunResponse
type MobileDeviceSemaphoreGitHubPRNotification ¶
type MobileDeviceSemaphoreGitHubPRNotification = mobiledevicesemaphore.MobileDeviceSemaphoreGitHubPRNotification
type MobileDeviceSemaphoreNotification ¶
type MobileDeviceSemaphoreNotification = mobiledevicesemaphore.MobileDeviceSemaphoreNotification
type MobileDeviceSemaphorePauseDeviceRequest ¶
type MobileDeviceSemaphorePauseDeviceRequest = mobiledevicesemaphore.MobileDeviceSemaphorePauseDeviceRequest
type MobileDeviceSemaphorePauseDeviceResponse ¶
type MobileDeviceSemaphorePauseDeviceResponse = mobiledevicesemaphore.MobileDeviceSemaphorePauseDeviceResponse
type MobileDeviceSemaphoreQueuedRunView ¶
type MobileDeviceSemaphoreQueuedRunView = mobiledevicesemaphore.MobileDeviceSemaphoreQueuedRunView
type MobileDeviceSemaphoreResumeDeviceRequest ¶
type MobileDeviceSemaphoreResumeDeviceRequest = mobiledevicesemaphore.MobileDeviceSemaphoreResumeDeviceRequest
type MobileDeviceSemaphoreResumeDeviceResponse ¶
type MobileDeviceSemaphoreResumeDeviceResponse = mobiledevicesemaphore.MobileDeviceSemaphoreResumeDeviceResponse
type MobileDeviceSemaphoreRunCancelRequest ¶
type MobileDeviceSemaphoreRunCancelRequest = mobiledevicesemaphore.MobileDeviceSemaphoreRunCancelRequest
type MobileDeviceSemaphoreRunDoneRequest ¶
type MobileDeviceSemaphoreRunDoneRequest = mobiledevicesemaphore.MobileDeviceSemaphoreRunDoneRequest
type MobileDeviceSemaphoreRunDoneSignal ¶
type MobileDeviceSemaphoreRunDoneSignal = mobiledevicesemaphore.MobileDeviceSemaphoreRunDoneSignal
type MobileDeviceSemaphoreRunGrantedSignal ¶
type MobileDeviceSemaphoreRunGrantedSignal = mobiledevicesemaphore.MobileDeviceSemaphoreRunGrantedSignal
type MobileDeviceSemaphoreRunStartedSignal ¶
type MobileDeviceSemaphoreRunStartedSignal = mobiledevicesemaphore.MobileDeviceSemaphoreRunStartedSignal
type MobileDeviceSemaphoreRunStatus ¶
type MobileDeviceSemaphoreRunStatus = mobiledevicesemaphore.MobileDeviceSemaphoreRunStatus
type MobileDeviceSemaphoreRunStatusView ¶
type MobileDeviceSemaphoreRunStatusView = mobiledevicesemaphore.MobileDeviceSemaphoreRunStatusView
type MobileDeviceSemaphoreRunTicketState ¶
type MobileDeviceSemaphoreRunTicketState = mobiledevicesemaphore.MobileDeviceSemaphoreRunTicketState
type MobileDeviceSemaphoreShutdownDeviceRequest ¶
type MobileDeviceSemaphoreShutdownDeviceRequest = mobiledevicesemaphore.MobileDeviceSemaphoreShutdownDeviceRequest
type MobileDeviceSemaphoreShutdownDeviceResponse ¶
type MobileDeviceSemaphoreShutdownDeviceResponse = mobiledevicesemaphore.MobileDeviceSemaphoreShutdownDeviceResponse
type MobileDeviceSemaphoreStateView ¶
type MobileDeviceSemaphoreStateView = mobiledevicesemaphore.MobileDeviceSemaphoreStateView
type MobileDeviceSemaphoreTempCredentialCleanupMetadata ¶
type MobileDeviceSemaphoreTempCredentialCleanupMetadata = mobiledevicesemaphore.MobileDeviceSemaphoreTempCredentialCleanupMetadata
type MobileDeviceSemaphoreWorkflow ¶
type MobileDeviceSemaphoreWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewMobileDeviceSemaphoreWorkflow ¶
func NewMobileDeviceSemaphoreWorkflow() *MobileDeviceSemaphoreWorkflow
func (*MobileDeviceSemaphoreWorkflow) ExecuteWorkflow ¶
func (w *MobileDeviceSemaphoreWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (MobileDeviceSemaphoreWorkflow) GetOptions ¶
func (MobileDeviceSemaphoreWorkflow) GetOptions() workflow.ActivityOptions
func (MobileDeviceSemaphoreWorkflow) Name ¶
func (MobileDeviceSemaphoreWorkflow) Name() string
func (*MobileDeviceSemaphoreWorkflow) Workflow ¶
func (w *MobileDeviceSemaphoreWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type MobileDeviceSemaphoreWorkflowInput ¶
type MobileDeviceSemaphoreWorkflowInput = mobiledevicesemaphore.MobileDeviceSemaphoreWorkflowInput
type MobileDeviceSemaphoreWorkflowState ¶
type MobileDeviceSemaphoreWorkflowState = mobiledevicesemaphore.MobileDeviceSemaphoreWorkflowState
type MobileWorkflowOutput ¶
type OpenID4VCIIssuerWorkflow ¶
type OpenID4VCIIssuerWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
OpenID4VCIIssuerWorkflow runs a fully automated OID4VCI issuer conformance check against the OpenID Foundation Certification Suite. Unlike the wallet workflow it requires no user interaction: StepCI handles plan creation, runner start, and log polling end-to-end. The user supplies StepCI parameters, including the credential-offer deeplink.
func NewOpenID4VCIIssuerWorkflow ¶
func NewOpenID4VCIIssuerWorkflow() *OpenID4VCIIssuerWorkflow
func (*OpenID4VCIIssuerWorkflow) ExecuteWorkflow ¶
func (w *OpenID4VCIIssuerWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow is the main workflow function. It:
- Decodes the payload (parameters + test name).
- Runs StepCIWorkflowActivity using the issuer StepCI Go template to resolve the credential issuer, create the test plan, and start the runner.
- Polls the OpenID certification logs directly from Temporal until the runner reaches a terminal state.
- Returns a WorkflowResult with the full final logs.
The OPENIDNET_TOKEN environment variable must be set with a valid bearer token for the OpenID Foundation Certification Suite API.
func (OpenID4VCIIssuerWorkflow) GetOptions ¶
func (OpenID4VCIIssuerWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns activity options with extended timeouts for the StepCI polling run.
func (OpenID4VCIIssuerWorkflow) Name ¶
func (OpenID4VCIIssuerWorkflow) Name() string
Name returns the human-readable name of the workflow.
func (*OpenID4VCIIssuerWorkflow) Start ¶
func (w *OpenID4VCIIssuerWorkflow) Start( input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
Start enqueues the workflow on the OpenID4VCIIssuerTaskQueue.
func (*OpenID4VCIIssuerWorkflow) Workflow ¶
func (w *OpenID4VCIIssuerWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type OpenID4VCIIssuerWorkflowPayload ¶
type OpenID4VCIIssuerWorkflowPayload = OpenIDConformanceWorkflowPayload
OpenID4VCIIssuerWorkflowPayload is the input payload for OpenID4VCIIssuerWorkflow.
type OpenID4VPVerifierWorkflow ¶
type OpenID4VPVerifierWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
OpenID4VPVerifierWorkflow runs a fully automated OID4VP verifier conformance check against the OpenID Foundation Certification Suite.
func NewOpenID4VPVerifierWorkflow ¶
func NewOpenID4VPVerifierWorkflow() *OpenID4VPVerifierWorkflow
func (*OpenID4VPVerifierWorkflow) ExecuteWorkflow ¶
func (w *OpenID4VPVerifierWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (OpenID4VPVerifierWorkflow) GetOptions ¶
func (OpenID4VPVerifierWorkflow) GetOptions() workflow.ActivityOptions
func (OpenID4VPVerifierWorkflow) Name ¶
func (OpenID4VPVerifierWorkflow) Name() string
func (*OpenID4VPVerifierWorkflow) Start ¶
func (w *OpenID4VPVerifierWorkflow) Start( input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*OpenID4VPVerifierWorkflow) Workflow ¶
func (w *OpenID4VPVerifierWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type OpenID4VPVerifierWorkflowPayload ¶
type OpenID4VPVerifierWorkflowPayload = OpenIDConformanceWorkflowPayload
OpenID4VPVerifierWorkflowPayload is the input payload for OpenID4VPVerifierWorkflow.
type OpenID4VPWalletLogsWorkflow ¶
type OpenID4VPWalletLogsWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
OpenID4VPWalletLogsWorkflow is a workflow that drains logs from the OpenID certification site.
func NewOpenID4VPWalletLogsWorkflow ¶
func NewOpenID4VPWalletLogsWorkflow() *OpenID4VPWalletLogsWorkflow
func (*OpenID4VPWalletLogsWorkflow) Configure ¶
func (w *OpenID4VPWalletLogsWorkflow) Configure(ctx workflow.Context) workflow.Context
Configure sets up the OpenID4VPWalletLogsWorkflow with specific child workflow options. It configures the child workflow to have a unique WorkflowID by appending "-log" to the parent workflow's ID and sets the ParentClosePolicy to terminate the child workflow when the parent workflow is closed.
Parameters:
- ctx: The workflow.Context for the current workflow execution.
Returns:
- A new workflow.Context configured with the specified child workflow options.
func (*OpenID4VPWalletLogsWorkflow) ExecuteWorkflow ¶
func (w *OpenID4VPWalletLogsWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow is the main workflow function for the OpenID4VPWalletLogsWorkflow. It periodically fetches logs from a specified URL and processes them based on the provided input configuration. The workflow listens for signals to trigger additional activities and terminates when a specific condition in the logs is met.
Parameters:
- ctx: The workflow context used to manage workflow execution.
- input: The input configuration and payload for the workflow.
Returns:
- workflowengine.WorkflowResult: Contains the collected logs upon successful completion of the workflow.
- error: An error if the workflow fails during execution.
Behavior:
- Fetches logs from a remote API using the provided input configuration.
- Listens for a signal ("wallet-test-start-log-update") to trigger additional activities.
- Uses a timer to periodically fetch logs at intervals specified in the input configuration.
- Terminates when the logs reach a terminal result.
- Sends logs to a specified endpoint when triggered by a signal.
func (OpenID4VPWalletLogsWorkflow) GetOptions ¶
func (OpenID4VPWalletLogsWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the activity options for the OpenID4VPWalletLogsWorkflow.
func (OpenID4VPWalletLogsWorkflow) Name ¶
func (OpenID4VPWalletLogsWorkflow) Name() string
Name returns the name of the OpenID4VPWalletLogsWorkflow.
func (*OpenID4VPWalletLogsWorkflow) Workflow ¶
func (w *OpenID4VPWalletLogsWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type OpenID4VPWalletWorkflow ¶
type OpenID4VPWalletWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
OpenID4VPWalletWorkflow is a workflow that start a conformance checks on the OpenID certification site.
func NewOpenID4VPWalletWorkflow ¶
func NewOpenID4VPWalletWorkflow() *OpenID4VPWalletWorkflow
func (*OpenID4VPWalletWorkflow) ExecuteWorkflow ¶
func (w *OpenID4VPWalletWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow is the main workflow function for the OpenID4VPWalletWorkflow. It orchestrates the execution of various activities and child workflows to perform conformance checks and send notifications to the user.
Parameters:
- ctx: The workflow context used to manage workflow execution.
- input: The input data for the workflow, including payload and configuration.
Returns:
- workflowengine.WorkflowResult: The result of the workflow execution, including a message and log data.
- error: An error if the workflow fails at any step.
Workflow Steps:
- Configure and execute the StepCIWorkflowActivity to perform initial checks.
- Generate a URL with query parameters for the user to continue the process.
- Configure and execute the SendMailActivity to notify the user via email.
- Execute a child workflow (OpenID4VPWalletLogsWorkflow) asynchronously to monitor logs.
- Wait for either a log-start signal or the completion of the child workflow.
- Process the signal data to determine the success or failure of the workflow.
Notes:
- The workflow uses a selector to wait for either a signal or the child workflow's completion.
- If the signal data indicates failure, the workflow terminates with a failure message.
- The workflow relies on environment variables (e.g., OPENIDNET_TOKEN) for configuration.
func (OpenID4VPWalletWorkflow) GetOptions ¶
func (OpenID4VPWalletWorkflow) GetOptions() workflow.ActivityOptions
GetOptions Configure sets up the workflow with the necessary options.
func (OpenID4VPWalletWorkflow) Name ¶
func (OpenID4VPWalletWorkflow) Name() string
Name returns the name of the OpenID4VPWalletWorkflow.
func (*OpenID4VPWalletWorkflow) Start ¶
func (w *OpenID4VPWalletWorkflow) Start( input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
Start initializes and starts the OpenID4VPWalletWorkflow execution. It loads environment variables, configures the Temporal client with the specified namespace, and sets up workflow options including a unique workflow ID and optional memo. The workflow is then executed with the provided input.
Parameters:
- input: A WorkflowInput object containing configuration and input data for the workflow.
Returns:
- result: A WorkflowResult object (currently empty in this implementation).
- err: An error if the workflow fails to start or if there is an issue with the Temporal client.
Notes:
- The namespace defaults to "default" if not provided in the input configuration.
- The workflow ID is generated using a UUID to ensure uniqueness.
- The Temporal client is closed after the workflow execution is initiated.
func (*OpenID4VPWalletWorkflow) Workflow ¶
func (w *OpenID4VPWalletWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type OpenID4VPWalletWorkflowPayload ¶
type OpenID4VPWalletWorkflowPayload struct {
Variant string `json:"variant" yaml:"variant" validate:"required"`
Form Form `json:"form" yaml:"form" validate:"required"`
UserMail string `json:"user_mail" yaml:"user_mail" validate:"required"`
TestName string `json:"test" yaml:"test" validate:"required"`
}
OpenID4VPWalletWorkflowPayload represents the payload for the OpenID4VPWalletWorkflow.
type OpenIDConformanceWorkflowPayload ¶
type OpenIDConformanceWorkflowPayload struct {
Parameters map[string]any `json:"parameters,omitempty" yaml:"parameters,omitempty"`
UserMail string `json:"user_mail" yaml:"user_mail" validate:"required"`
TestName string `json:"test" yaml:"test" validate:"required"`
}
OpenIDConformanceWorkflowPayload is the input payload for automated OpenID certification suite workflows.
type PipelineRetentionWorkflow ¶
type PipelineRetentionWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewPipelineRetentionWorkflow ¶
func NewPipelineRetentionWorkflow() *PipelineRetentionWorkflow
func (*PipelineRetentionWorkflow) ExecuteWorkflow ¶
func (w *PipelineRetentionWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*PipelineRetentionWorkflow) GetOptions ¶
func (w *PipelineRetentionWorkflow) GetOptions() workflow.ActivityOptions
func (*PipelineRetentionWorkflow) Name ¶
func (w *PipelineRetentionWorkflow) Name() string
func (*PipelineRetentionWorkflow) Start ¶
func (w *PipelineRetentionWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*PipelineRetentionWorkflow) Workflow ¶
func (w *PipelineRetentionWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type ScheduledPipelineEnqueueWorkflow ¶
type ScheduledPipelineEnqueueWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
ScheduledPipelineEnqueueWorkflow enqueues scheduled pipeline runs into the runner queue.
func NewScheduledPipelineEnqueueWorkflow ¶
func NewScheduledPipelineEnqueueWorkflow() *ScheduledPipelineEnqueueWorkflow
NewScheduledPipelineEnqueueWorkflow constructs a scheduled enqueue workflow.
func (*ScheduledPipelineEnqueueWorkflow) ExecuteWorkflow ¶
func (w *ScheduledPipelineEnqueueWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
ExecuteWorkflow validates schedule input, fetches YAML, and enqueues a run ticket.
func (ScheduledPipelineEnqueueWorkflow) GetOptions ¶
func (ScheduledPipelineEnqueueWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the default activity options for the scheduled enqueue workflow.
func (ScheduledPipelineEnqueueWorkflow) Name ¶
func (ScheduledPipelineEnqueueWorkflow) Name() string
Name returns the workflow name for scheduled enqueues.
func (*ScheduledPipelineEnqueueWorkflow) Workflow ¶
func (w *ScheduledPipelineEnqueueWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
Workflow delegates execution to the configured workflow function.
type ScheduledPipelineEnqueueWorkflowInput ¶
type ScheduledPipelineEnqueueWorkflowInput struct {
PipelineIdentifier string `json:"pipeline_identifier"`
OwnerNamespace string `json:"owner_namespace"`
PipelineConfig map[string]any `json:"pipeline_config,omitempty"`
GlobalDeviceID string `json:"global_device_id,omitempty"`
MaxPipelinesInQueue int `json:"max_pipelines_in_queue,omitempty"`
}
ScheduledPipelineEnqueueWorkflowInput defines the schedule enqueue payload.
type ScoreboardExecutionInput ¶
type ScoreboardExecutionInput struct {
Namespace string `json:"namespace" validate:"required"`
WorkflowID string `json:"workflow_id" validate:"required"`
RunID string `json:"run_id" validate:"required"`
}
ScoreboardExecutionInput is the payload of GetScoreboardExecutionDetailsActivityName.
type ScoreboardNamespaceInput ¶
type ScoreboardNamespaceInput struct {
Namespace string `json:"namespace" validate:"required"`
}
ScoreboardNamespaceInput is the payload of GetNamespaceScoreboardActivityName.
type SignalData ¶
SignalData represents the data structure for signals used in the workflow.
type StartCheckWorkflow ¶
type StartCheckWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewStartCheckWorkflow ¶
func NewStartCheckWorkflow() *StartCheckWorkflow
func (*StartCheckWorkflow) ExecuteWorkflow ¶
func (w *StartCheckWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
executeWorkflow starts the conformance check workflow.
It takes the workflow input and starts the conformance check workflow. The workflow input should contain the suite, standard, check_id, test and parameters. The function first decodes the workflow input and checks if the required fields are present. If not, it returns an error. Then it runs the StepCIAndEmail function with the decoded input and returns the result. If the StepCIAndEmail function returns an error, it logs the error and returns the error. If the StepCIAndEmail function returns a successful result, it runs the child workflow depending on the suite and standard. If the child workflow returns an error, it logs the error and returns the error. If the child workflow returns a successful result, it returns the successful result.
func (StartCheckWorkflow) GetOptions ¶
func (StartCheckWorkflow) GetOptions() workflow.ActivityOptions
func (StartCheckWorkflow) Name ¶
func (StartCheckWorkflow) Name() string
func (*StartCheckWorkflow) Start ¶
func (w *StartCheckWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*StartCheckWorkflow) Workflow ¶
func (w *StartCheckWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
Workflow starts the conformance check workflow.
type StartCheckWorkflowPayload ¶
type StartCheckWorkflowPayload struct {
Suite string `json:"suite" yaml:"suite"`
Standard string `json:"standard,omitempty" yaml:"standard,omitempty"`
CheckID string `json:"check_id" yaml:"check_id" validate:"required"`
TestName string `json:"test,omitempty" yaml:"test,omitempty"`
Parameters map[string]any `json:"parameters,omitempty" yaml:"parameters,omitempty"`
UserMail string `json:"user_mail" yaml:"user_mail"`
SendMail bool `json:"send_mail" yaml:"send_mail"`
}
type StepCIAndEmailConfig ¶
type StepCIAndEmailConfig struct {
AppURL string
AppName string
AppLogo string
UserName string
UserMail string
Namespace string
Template string
StepCIPayload activities.StepCIWorkflowActivityPayload
Secrets map[string]any
RunMetadata *workflowengine.WorkflowRunMetadata
Suite string
SendMail bool
}
type StepCIAndEmailResult ¶
func RunStepCIAndSendMail ¶
func RunStepCIAndSendMail( ctx workflow.Context, cfg StepCIAndEmailConfig, ) (StepCIAndEmailResult, error)
type VLEIValidationLocalWorkflow ¶
type VLEIValidationLocalWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
VLEIValidationLocalWorkflow is a workflow that validates a vLEI credential from a local file.
func NewVLEIValidationLocalWorkflow ¶
func NewVLEIValidationLocalWorkflow() *VLEIValidationLocalWorkflow
func (*VLEIValidationLocalWorkflow) ExecuteWorkflow ¶
func (w *VLEIValidationLocalWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*VLEIValidationLocalWorkflow) GetOptions ¶
func (w *VLEIValidationLocalWorkflow) GetOptions() workflow.ActivityOptions
func (*VLEIValidationLocalWorkflow) Name ¶
func (w *VLEIValidationLocalWorkflow) Name() string
func (*VLEIValidationLocalWorkflow) Start ¶
func (w *VLEIValidationLocalWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*VLEIValidationLocalWorkflow) Workflow ¶
func (w *VLEIValidationLocalWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type VLEIValidationLocalWorkflowPayload ¶
type VLEIValidationLocalWorkflowPayload struct {
CESR string `json:"cesr" yaml:"cesr" validate:"required"`
}
VLEIValidationLocalWorkflowPayload is the payload for the vLEI validation workflow.
type VLEIValidationWorkflow ¶
type VLEIValidationWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
VLEIValidationWorkflow is a workflow that validates a vLEI credential from a server request.
func NewVLEIValidationWorkflow ¶
func NewVLEIValidationWorkflow() *VLEIValidationWorkflow
func (*VLEIValidationWorkflow) ExecuteWorkflow ¶
func (w *VLEIValidationWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*VLEIValidationWorkflow) GetOptions ¶
func (w *VLEIValidationWorkflow) GetOptions() workflow.ActivityOptions
func (*VLEIValidationWorkflow) Name ¶
func (w *VLEIValidationWorkflow) Name() string
func (*VLEIValidationWorkflow) Start ¶
func (w *VLEIValidationWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*VLEIValidationWorkflow) Workflow ¶
func (w *VLEIValidationWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type VLEIValidationWorkflowPayload ¶
type VLEIValidationWorkflowPayload struct {
CredentialID string `json:"credential_id" yaml:"credential_id" validate:"required"`
}
VLEIValidationWorkflowPayload is the payload for the vLEI validation workflow.
type WalletWorkflow ¶
type WalletWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
Wallet is a workflow that imports wallet metadata from app stores urls.
func NewWalletWorkflow ¶
func NewWalletWorkflow() *WalletWorkflow
func (*WalletWorkflow) ExecuteWorkflow ¶
func (w *WalletWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*WalletWorkflow) GetOptions ¶
func (w *WalletWorkflow) GetOptions() workflow.ActivityOptions
GetOptions returns the activity options for the workflow.
func (*WalletWorkflow) Name ¶
func (w *WalletWorkflow) Name() string
Name returns the name of the workflow.
func (*WalletWorkflow) Start ¶
func (w *WalletWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
Start initializes and starts the WalletWorkflow execution. It loads environment variables, configures the Temporal client with the specified namespace, and sets up workflow options including a unique workflow ID and optional memo. The workflow is then executed with the provided input.
Parameters:
- input: A WorkflowInput object containing configuration and input data for the workflow.
Returns:
- result: A WorkflowResult object (empty in this implementation).
- err: An error if the workflow fails to start or if there is an issue with the Temporal client.
Errors:
- Returns an error if the Temporal client cannot be created or if the workflow execution fails.
func (*WalletWorkflow) Workflow ¶
func (w *WalletWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type WalletWorkflowPayload ¶
type WalletWorkflowPayload struct {
URL string `json:"url" yaml:"url" validate:"required"`
}
WalletWorkflowPayload is a struct that represents the input payload for the WalletWorkflow.
type WebuildStatusWorkflow ¶
type WebuildStatusWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewWebuildStatusWorkflow ¶
func NewWebuildStatusWorkflow() *WebuildStatusWorkflow
func (*WebuildStatusWorkflow) ExecuteWorkflow ¶
func (w *WebuildStatusWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (WebuildStatusWorkflow) GetOptions ¶
func (WebuildStatusWorkflow) GetOptions() workflow.ActivityOptions
func (WebuildStatusWorkflow) Name ¶
func (WebuildStatusWorkflow) Name() string
func (*WebuildStatusWorkflow) Workflow ¶
func (w *WebuildStatusWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type WebuildWorkflow ¶
type WebuildWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewWebuildWorkflow ¶
func NewWebuildWorkflow() *WebuildWorkflow
func (*WebuildWorkflow) ExecuteWorkflow ¶
func (w *WebuildWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (WebuildWorkflow) GetOptions ¶
func (WebuildWorkflow) GetOptions() workflow.ActivityOptions
func (WebuildWorkflow) Name ¶
func (WebuildWorkflow) Name() string
func (*WebuildWorkflow) Start ¶
func (w *WebuildWorkflow) Start( input workflowengine.WorkflowInput, ) (result workflowengine.WorkflowResult, err error)
func (*WebuildWorkflow) Workflow ¶
func (w *WebuildWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type WorkerManagerWorkflow ¶
type WorkerManagerWorkflow struct {
WorkflowFunc workflowengine.WorkflowFn
}
func NewWorkerManagerWorkflow ¶
func NewWorkerManagerWorkflow() *WorkerManagerWorkflow
func (*WorkerManagerWorkflow) ExecuteWorkflow ¶
func (w *WorkerManagerWorkflow) ExecuteWorkflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (WorkerManagerWorkflow) GetOptions ¶
func (WorkerManagerWorkflow) GetOptions() workflow.ActivityOptions
func (WorkerManagerWorkflow) Name ¶
func (WorkerManagerWorkflow) Name() string
func (*WorkerManagerWorkflow) Start ¶
func (w *WorkerManagerWorkflow) Start( namespace string, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
func (*WorkerManagerWorkflow) Workflow ¶
func (w *WorkerManagerWorkflow) Workflow( ctx workflow.Context, input workflowengine.WorkflowInput, ) (workflowengine.WorkflowResult, error)
type WorkerManagerWorkflowOutput ¶
type WorkerManagerWorkflowOutput struct {
Namespace string `json:"namespace"`
RunnerResults []WorkerManagerRunnerResult `json:"runner_results"`
TotalRunners int `json:"total_runners"`
SuccessfulRunners int `json:"successful_runners"`
FailedRunners int `json:"failed_runners"`
}
type WorkerManagerWorkflowPayload ¶
type WorkerManagerWorkflowPayload struct {
Namespace string `json:"namespace" yaml:"namespace" validate:"required"`
OldNamespace string `json:"old_namespace,omitempty" yaml:"old_namespace,omitempty"`
RunnerIDs []string `json:"runner_ids" yaml:"runner_ids"`
}
WorkerManagerWorkflowPayload is the payload for the worker manager workflow.
Source Files
¶
- config.go
- conformance_check.go
- credentials.go
- custom.go
- eudiw.go
- ewc.go
- fides_credential_issuers.go
- github_pr_comment.go
- mobile_device_semaphore.go
- mobile_device_semaphore_aliases.go
- mobile_stub.go
- openid4vci_issuer.go
- openid4vci_wallet.go
- openid4vp_verifier.go
- openid4vp_wallet.go
- openid_conformance.go
- openidnet_status.go
- pipeline_retention.go
- poll_timer.go
- realtime_logs.go
- scheduled_pipeline_enqueue.go
- scoreboard.go
- verifier.go
- vlei.go
- wallet.go
- webuild.go
- worker_manager.go