profile

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

Package profile implements a NanoCMD Workflow for "statefully" installing and removing profiles.

Index

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 Option

type Option func(*Workflow)

func WithLogger

func WithLogger(logger log.Logger) Option

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) 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