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

Function parseTrigger

app/cli/pkg/action/attestation_reset.go:83–92  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

81}
82
83func 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}

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected