Internal

internal/app/reconcile

Package reconcile rebuilds living spec projections from session evidence.

import "github.com/nilstate/scafld/v2/internal/app/reconcile"

Package reconcile rebuilds living spec projections from session evidence.

Functions

func Run(ctx context.Context, specs SpecStore, sessions SessionStore, taskID string) (spec.Model, error)

Source: internal/app/reconcile/reconcile.go:23

Run rebuilds a spec projection from session evidence.

Types

type SessionStore

Source: internal/app/reconcile/reconcile.go:18

SessionStore is the session loading port used by reconcile.

type SessionStore interface {
	Load(context.Context, string) (session.Session, error)
}
Methods
  • Load func(context.Context, string) (session.Session, error)

type SpecStore

Source: internal/app/reconcile/reconcile.go:12

SpecStore is the spec persistence port used by reconcile.

type SpecStore interface {
	Load(context.Context, string) (spec.Model, string, error)
	Save(context.Context, string, spec.Model) error
}
Methods
  • Load func(context.Context, string) (spec.Model, string, error)
  • Save func(context.Context, string, spec.Model) error