Documentation
¶
Index ¶
- Variables
- func NewKeystorePoolFiller(updater KeystorePoolFiller, repo repo.Repo, poolConfig config.KeystorePool) async.TaskHandler
- func NewNotificationSender(client NotificationClient) async.TaskHandler
- func NewPendingStateSync(keyClient PendingStateUpdater, repo repo.Repo) async.TaskHandler
- func NewWorkflowProcessor(updater WorkflowUpdater, repo repo.Repo) async.TaskHandler
- type KeystorePoolFiller
- type NotificationClient
- type PendingStateSync
- type PendingStateUpdater
- type WorkflowProcessor
- type WorkflowUpdater
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRunningTask = errors.New("task failed")
Functions ¶
func NewKeystorePoolFiller ¶
func NewKeystorePoolFiller( updater KeystorePoolFiller, repo repo.Repo, poolConfig config.KeystorePool, ) async.TaskHandler
func NewNotificationSender ¶
func NewNotificationSender( client NotificationClient, ) async.TaskHandler
func NewPendingStateSync ¶ added in v0.10.0
func NewPendingStateSync( keyClient PendingStateUpdater, repo repo.Repo, ) async.TaskHandler
func NewWorkflowProcessor ¶
func NewWorkflowProcessor( updater WorkflowUpdater, repo repo.Repo, ) async.TaskHandler
Types ¶
type KeystorePoolFiller ¶
type NotificationClient ¶
type PendingStateSync ¶ added in v0.10.0
type PendingStateSync struct {
// contains filtered or unexported fields
}
PendingStateSync is an on-demand per-key task that processes a single key in PENDING_CREATION or PENDING_REGISTRATION state. It drives provisioning or auth retry until success, or transitions the key to ERROR/FORBIDDEN on hard timeout.
func (*PendingStateSync) ProcessTask ¶ added in v0.10.0
func (*PendingStateSync) Role ¶ added in v0.10.0
func (h *PendingStateSync) Role() constants.InternalRole
func (*PendingStateSync) TaskType ¶ added in v0.10.0
func (h *PendingStateSync) TaskType() string
type PendingStateUpdater ¶ added in v0.10.0
type PendingStateUpdater interface {
SyncPendingCreationKey(ctx context.Context, keyID uuid.UUID) error
SyncPendingRegistrationKey(ctx context.Context, keyID uuid.UUID) error
}
PendingStateUpdater is implemented by KeyManager.
type WorkflowProcessor ¶
type WorkflowProcessor struct {
// contains filtered or unexported fields
}
func (*WorkflowProcessor) ProcessTask ¶
func (*WorkflowProcessor) Role ¶ added in v0.9.0
func (s *WorkflowProcessor) Role() constants.InternalRole
func (*WorkflowProcessor) TaskType ¶
func (s *WorkflowProcessor) TaskType() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.