pkg/cmd/serviceaccount/phases/workflow/phase.go (12 lines of code) (raw):
package workflow
import (
"context"
)
// Phase is a single phase of the workflow.
type Phase struct {
// Name is the name of the phase
Name string
// Aliases are alternative names for the phase
Aliases []string
// Description is the description of the phase
Description string
// PreRun is the function to run before the phase
PreRun func(data RunData) error
// Run is the function to run the phase
Run func(ctx context.Context, data RunData) error
// Flags is the list of flags to add to the command
// when it is run as an individual phase
Flags []string
}