fvenable

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: 14 Imported by: 0

Documentation

Overview

Package fvenable implements a NanoCMD Workflow for enabling FileVault on a Mac.

Index

Constants

View Source
const ProfileTemplate = `` /* 1940-byte string literal not displayed */
View Source
const WorkflowName = "io.micromdm.wf.fvenable.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(enq workflow.StepEnqueuer, store fvstorage.FVEnable, profStore profstorage.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

Start installs the initial FileVault profile.

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