Mark the attestation as canceled
( ctx context.Context, // The reason for canceling, in human-readable form // +optional reason string, )
| 792 | |
| 793 | // Mark the attestation as canceled |
| 794 | func (att *Attestation) MarkCanceled( |
| 795 | ctx context.Context, |
| 796 | // The reason for canceling, in human-readable form |
| 797 | // +optional |
| 798 | reason string, |
| 799 | ) error { |
| 800 | return att.reset(ctx, "cancellation", reason) |
| 801 | } |
| 802 | |
| 803 | // Call `chainloop reset` to mark the attestation as either failed or cancelled. |
| 804 | func (att *Attestation) reset(ctx context.Context, |