(cfg *AttestationResetOpts)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 47 | func (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 |
no test coverage detected