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

Function NewAttestationReset

app/cli/pkg/action/attestation_reset.go:41–45  ·  view source on GitHub ↗
(cfg *AttestationResetOpts)

Source from the content-addressed store, hash-verified

39}
40
41func NewAttestationReset(cfg *AttestationResetOpts) (*AttestationReset, error) {
42 return &AttestationReset{
43 newCrafterOpts: &newCrafterOpts{cpConnection: cfg.CPConnection, opts: []crafter.NewOpt{crafter.WithLogger(&cfg.Logger)}},
44 ActionsOpts: cfg.ActionsOpts, localStatePath: cfg.LocalStatePath}, nil
45}
46
47func (action *AttestationReset) Run(ctx context.Context, attestationID, trigger, reason string) error {
48 // initialize the crafter. If attestation-id is provided we assume the attestation is performed using remote state

Callers 1

newAttestationResetCmdFunction · 0.92

Calls 1

WithLoggerFunction · 0.92

Tested by

no test coverage detected