Documentation ¶
Overview ¶
Package profile implements a NanoCMD Workflow for "statefully" installing and removing profiles.
Index ¶
- Constants
- type CommaStringSliceContext
- type Option
- type Workflow
- func (w *Workflow) Config() *workflow.Config
- func (w *Workflow) Event(_ context.Context, _ *workflow.Event, _ string, _ *workflow.MDMContext) error
- func (w *Workflow) Name() string
- func (w *Workflow) NewContextValue(name string) workflow.ContextMarshaler
- func (w *Workflow) Start(ctx context.Context, step *workflow.StepStart) error
- func (w *Workflow) StepCompleted(ctx context.Context, stepResult *workflow.StepResult) error
- func (w *Workflow) StepTimeout(_ context.Context, _ *workflow.StepResult) error
Constants ¶
View Source
const WorkflowName = "io.micromdm.wf.profile.v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommaStringSliceContext ¶
type CommaStringSliceContext []string
CommaStringSliceContext is a very simple ContextMarshaler.
func (*CommaStringSliceContext) MarshalBinary ¶
func (c *CommaStringSliceContext) MarshalBinary() ([]byte, error)
MarshalBinary converts c into a byte slice.
func (*CommaStringSliceContext) UnmarshalBinary ¶
func (c *CommaStringSliceContext) UnmarshalBinary(data []byte) error
UnmarshalBinary converts and loads data into c.
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
Workflow "statefully" installs and removes profiles.
func New ¶
func New(enq workflow.StepEnqueuer, store storage.ReadStorage, opts ...Option) (*Workflow, error)
func (*Workflow) NewContextValue ¶
func (w *Workflow) NewContextValue(name string) workflow.ContextMarshaler
func (*Workflow) StepCompleted ¶
func (*Workflow) StepTimeout ¶
Click to show internal directories.
Click to hide internal directories.