Documentation
¶
Index ¶
- Variables
- func CurrentHostFacts() map[string]any
- func DefaultStatePath(wf *config.Workflow) (string, error)
- func EvaluateWhen(expr string, vars map[string]any, runtime map[string]any) (bool, error)
- func EvaluateWhenWithContext(expr string, vars map[string]any, runtime map[string]any, ...) (bool, error)
- func LegacyStatePath(wf *config.Workflow) (string, error)
- func ResolveStateReadPathForWorkflow(wf *config.Workflow, preferredPath string) (string, error)
- func ResolveStateReadPathForWorkflowNoFallback(wf *config.Workflow, preferredPath string) (string, error)
- func ResolveStateReadPathForWorkflowWithMigrationSink(wf *config.Workflow, preferredPath string, ...) (string, error)
- func Run(ctx context.Context, wf *config.Workflow, opts RunOptions) error
- func SaveRawStateFile(path string, raw []byte) error
- func SaveState(path string, st *State) error
- func SaveStateWithMetadata(path string, st *State, metadata StateMetadata) error
- func StatePathInDir(wf *config.Workflow, stateDir string) (string, error)
- func XDGApplyStatePath(wf *config.Workflow) (string, error)
- func XDGStatePath(wf *config.Workflow) (string, error)
- type ExecutionContext
- type RunOptions
- type RuntimeSecret
- type State
- type StateMetadata
- type StateWorkflow
- type StepEvent
- type StepEventSink
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStepCommandTimeout = errors.New("step command timeout")
Functions ¶
func CurrentHostFacts ¶ added in v0.2.0
func EvaluateWhen ¶
func EvaluateWhenWithContext ¶ added in v0.2.6
func ResolveStateReadPathForWorkflowNoFallback ¶ added in v0.2.9
func ResolveStateReadPathForWorkflowWithMigrationSink ¶ added in v0.2.9
func SaveRawStateFile ¶ added in v0.2.9
func SaveStateWithMetadata ¶ added in v0.2.9
func SaveStateWithMetadata(path string, st *State, metadata StateMetadata) error
func StatePathInDir ¶ added in v0.2.9
func XDGApplyStatePath ¶ added in v0.2.9
Types ¶
type ExecutionContext ¶
type ExecutionContext struct {
BundleRoot string
StatePath string
Context workflowcontext.Context
Interaction operatorio.Interface
SecretValues []string
// contains filtered or unexported fields
}
func (ExecutionContext) RenderContext ¶
func (c ExecutionContext) RenderContext() map[string]any
type RunOptions ¶
type RunOptions struct {
BundleRoot string
StatePath string
StateMetadata StateMetadata
DisableStateFallback bool
StateMigrationSink func(source string, target string)
Context workflowcontext.Context
EventSink StepEventSink
Fresh bool
Interaction operatorio.Interface
NonInteractive bool
// contains filtered or unexported fields
}
type RuntimeSecret ¶ added in v0.2.9
type State ¶
type State struct {
Version int `json:"-"`
Kind string `json:"-"`
StateKey string `json:"-"`
Workflow StateWorkflow `json:"-"`
Status string `json:"-"`
CreatedAt string `json:"-"`
UpdatedAt string `json:"-"`
Phase string `json:"phase,omitempty"`
CompletedPhases []string `json:"completedPhases,omitempty"`
FailedPhase string `json:"failedPhase,omitempty"`
RuntimeVars map[string]any `json:"runtimeVars,omitempty"`
RuntimeSecrets map[string]RuntimeSecret `json:"runtimeSecrets,omitempty"`
Error string `json:"error,omitempty"`
}
func (*State) UnmarshalJSON ¶ added in v0.2.9
type StateMetadata ¶ added in v0.2.9
type StateMetadata struct {
StateKey string
Workflow StateWorkflow
Now func() time.Time
}
type StateWorkflow ¶ added in v0.2.9
type StepEventSink ¶
type StepEventSink func(StepEvent)
Source Files
¶
- command.go
- conditions.go
- dispatch.go
- events.go
- execution_context.go
- fileops.go
- hostfacts.go
- kubeadm_executor.go
- operator_interaction.go
- outputs.go
- package_repo_policy.go
- runner.go
- secrets.go
- services.go
- state.go
- state_compat.go
- steps_cluster_check.go
- steps_containerd.go
- steps_download.go
- steps_extract_archive.go
- steps_files.go
- steps_images_load.go
- steps_kubeadm.go
- steps_package_cache.go
- steps_packages.go
- steps_system.go
- steps_systemd_unit.go
- steps_verify.go
- steps_wait.go
Click to show internal directories.
Click to hide internal directories.