retiredcandidateack

package
v0.182.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package retiredcandidateack owns the candidate-only acknowledgement used to retire an unpublished integration candidate after its recorded target was deleted. It deliberately contains no source-absorption assertion.

Index

Constants

View Source
const (
	SchemaVersion = 1
	Status        = "retired_prepare_candidate_acknowledged"
	FileSuffix    = ".retired-prepare-candidate.ack.json"
)

Variables

This section is empty.

Functions

func ComputeID

func ComputeID(a Acknowledgement) string

func DistinctCandidate

func DistinctCandidate(candidate Source, sources []Source) bool

func FileSHA256

func FileSHA256(path string) (string, error)

func Path

func Path(receiptPath string) string

func Persist

func Persist(path string, a Acknowledgement) error

Types

type Acknowledgement

type Acknowledgement struct {
	SchemaVersion int       `json:"schema_version"`
	ID            string    `json:"id"`
	Status        string    `json:"status"`
	ReceiptPath   string    `json:"receipt_path"`
	ReceiptSHA256 string    `json:"receipt_sha256"`
	ReceiptID     string    `json:"receipt_id"`
	ReceiptPhase  string    `json:"receipt_phase"`
	ReceiptStatus string    `json:"receipt_status"`
	Lane          string    `json:"lane"`
	Repository    string    `json:"repository"`
	Target        string    `json:"target"`
	TargetSHA     string    `json:"target_sha"`
	Candidate     Source    `json:"candidate"`
	Sources       []Source  `json:"sources"`
	DefaultBranch string    `json:"default_branch"`
	DefaultSHA    string    `json:"default_sha"`
	Actor         string    `json:"actor"`
	Reason        string    `json:"reason"`
	RecordedAt    time.Time `json:"recorded_at"`
}

func Load

func Load(path string, id ReceiptIdentity) (Acknowledgement, error)

type ReceiptIdentity

type ReceiptIdentity struct {
	Path, ID, Phase, Status, Lane, Repository, Target, TargetSHA string
	Candidate                                                    Source
	Sources                                                      []Source
}

type Source

type Source struct {
	Task     string `json:"task"`
	Worktree string `json:"worktree"`
	Branch   string `json:"branch"`
	SHA      string `json:"sha"`
}

Jump to

Keyboard shortcuts

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