reconcile

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

Documentation

Overview

Package reconcile refreshes and imports native Ramen resources through the trusted executor boundary.

The reconcile package is part of Ramen's supported v0.1 core API.

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type APISourceInput

type APISourceInput = tfplan.APISourceInput

type ActionResult

type ActionResult struct {
	Address  string `json:"address"`
	Action   string `json:"action"`
	Document string `json:"document,omitempty"`
}

type ImportOptions

type ImportOptions struct {
	StatePath   string
	ConfigDir   string
	ProjectPath string
	APISources  []APISourceInput
	VarFiles    []string
	Vars        []string
	Workspace   string
	Address     string
	Type        string
	Provider    string
	Identity    map[string]any
	Attributes  map[string]any
	SourceKind  string
	SourceID    string
	OperationID string
	Executor    executor.Executor
}

type Options

type Options struct {
	ConfigDir   string
	ProjectPath string
	StatePath   string
	APISources  []APISourceInput
	VarFiles    []string
	Vars        []string
	Workspace   string
	PlanPath    string
	AutoApprove bool
	OutDir      string
	Executor    executor.Executor
}

type Result

type Result struct {
	Version   string                    `json:"version"`
	StatePath string                    `json:"state_path"`
	RunID     int64                     `json:"run_id,omitempty"`
	Summary   Summary                   `json:"summary"`
	Actions   []ActionResult            `json:"actions,omitempty"`
	Feedback  []executor.FeedbackRecord `json:"feedback,omitempty"`
}

func Destroy

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

func Import

func Import(ctx context.Context, opts ImportOptions) (*Result, error)

func Refresh

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

type Summary

type Summary struct {
	Read      int `json:"read"`
	Delete    int `json:"delete"`
	Imported  int `json:"imported"`
	Changed   int `json:"changed"`
	Unchanged int `json:"unchanged"`
	Missing   int `json:"missing"`
	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