(in string)
| 81 | } |
| 82 | |
| 83 | func parseTrigger(in string) pb.AttestationServiceCancelRequest_TriggerType { |
| 84 | switch in { |
| 85 | case AttestationResetTriggerFailed: |
| 86 | return pb.AttestationServiceCancelRequest_TRIGGER_TYPE_FAILURE |
| 87 | case AttestationResetTriggerCancelled: |
| 88 | return pb.AttestationServiceCancelRequest_TRIGGER_TYPE_CANCELLATION |
| 89 | } |
| 90 | |
| 91 | return pb.AttestationServiceCancelRequest_TRIGGER_TYPE_UNSPECIFIED |
| 92 | } |