reconcileprofiles

package
v0.158.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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