reconcileprofiles

package
v0.155.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package reconcileprofiles keeps a local project's reconciliation profiles, one plain reviewable file per profile at <project>/reconciliations/<id>.json (reconcile.ProfilesFolder).

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("reconcile profile not found")

ErrNotFound reports a profile the project does not hold.

Functions

This section is empty.

Types

type Store

type Store struct {
	Dir string
}

Store is the file-backed profile store of one project directory.

func (Store) List

func (s Store) List() ([]reconcile.Profile, error)

List returns every profile of the project in id order. A project with no folder has none.

func (Store) Load

func (s Store) Load(id string) (reconcile.Profile, error)

Load reads one profile. The id must be a lower-case kebab name, so it can never name a path outside the folder.

func (Store) Path

func (s Store) Path(id string) string

Path is the file of profile id.

func (Store) Save

func (s Store) Save(profile reconcile.Profile) error

Save validates and writes a profile atomically.

Jump to

Keyboard shortcuts

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