MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / MarkCanceled

Method MarkCanceled

extras/dagger/main.go:794–801  ·  view source on GitHub ↗

Mark the attestation as canceled

(
	ctx context.Context,
	// The reason for canceling, in human-readable form
	// +optional
	reason string,
)

Source from the content-addressed store, hash-verified

792
793// Mark the attestation as canceled
794func (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.
804func (att *Attestation) reset(ctx context.Context,

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected