lock

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Pacakge lock implements a DeviceLock PIN escrow workflow.

Index

Constants

View Source
const WorkflowName = "io.micromdm.wf.lock.v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Workflow)

func WithLogger

func WithLogger(logger log.Logger) Option

type Workflow

type Workflow struct {
	// contains filtered or unexported fields
}

func New

func New(q workflow.StepEnqueuer, store storage.Storage, opts ...Option) (*Workflow, error)

func (*Workflow) Config

func (w *Workflow) Config() *workflow.Config

func (*Workflow) Event

func (*Workflow) Name

func (w *Workflow) Name() string

func (*Workflow) NewContextValue

func (w *Workflow) NewContextValue(name string) workflow.ContextMarshaler

func (*Workflow) Start

func (w *Workflow) Start(ctx context.Context, step *workflow.StepStart) error

func (*Workflow) StepCompleted

func (w *Workflow) StepCompleted(ctx context.Context, stepResult *workflow.StepResult) error

func (*Workflow) StepTimeout

func (w *Workflow) StepTimeout(_ context.Context, _ *workflow.StepResult) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL