run

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package run executes approved imperative UWS runbooks without treating their outputs as desired-state resources.

This package is experimental in Ramen v0.1 and is adjacent to Ramen's native desired-state lifecycle.

Index

Constants

View Source
const Version = "ramen.run.v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutedTarget

type ExecutedTarget struct {
	Target string          `json:"target"`
	Action string          `json:"action"`
	Result executor.Result `json:"result,omitempty"`
	Error  string          `json:"error,omitempty"`
}

type Options

type Options struct {
	DocumentPath   string
	StatePath      string
	Workspace      string
	Targets        []string
	PolicyFiles    []string
	Check          bool
	AutoApprove    bool
	ApprovalDigest string
	OutDir         string
	Executor       executor.Executor
}

type Result

type Result struct {
	Version        string            `json:"version"`
	DocumentPath   string            `json:"document_path"`
	DocumentDigest string            `json:"document_digest"`
	StatePath      string            `json:"state_path,omitempty"`
	Workspace      string            `json:"workspace,omitempty"`
	RunID          int64             `json:"run_id,omitempty"`
	Check          bool              `json:"check"`
	ApprovalDigest string            `json:"approval_digest"`
	Governance     governance.Result `json:"governance,omitempty"`
	Summary        Summary           `json:"summary"`
	Executed       []ExecutedTarget  `json:"executed,omitempty"`
	Errors         []string          `json:"errors,omitempty"`
}

func Execute

func Execute(ctx context.Context, opts Options) (*Result, error)

type Summary

type Summary struct {
	Targets  int `json:"targets"`
	Executed int `json:"executed"`
	Skipped  int `json:"skipped"`
	Failed   int `json:"failed"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL