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
- func ComputeID(a Acknowledgement) string
- func DistinctCandidate(candidate Source, sources []Source) bool
- func FileSHA256(path string) (string, error)
- func Path(receiptPath string) string
- func Persist(path string, a Acknowledgement) error
- type Acknowledgement
- type ReceiptIdentity
- type Source
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 FileSHA256 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.