| 1 | package gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ |
| 2 | |
| 3 | import "github.com/git-lfs/git-lfs/v3/trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/" |
| 4 | |
| 5 | // FilterProcessStatus is a constant type representing the various valid |
| 6 | // responses for `status=` in the Git filtering process protocol. |
| 7 | type FilterProcessStatusscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/FilterProcessStatus# uint8 |
| 8 | |
| 9 | const ( |
| 10 | // StatusSuccess is a valid response when a successful event has |
| 11 | // occurred. |
| 12 | StatusSuccessscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/StatusSuccess. FilterProcessStatusscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/FilterProcessStatus# = iota + 1 |
| 13 | // StatusDelay is a valid response when a delay has occurred. |
| 14 | StatusDelayscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/StatusDelay. |
| 15 | // StatusError is a valid response when an error has occurred. |
| 16 | StatusErrorscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/StatusError. |
| 17 | ) |
| 18 | |
| 19 | // String implements fmt.Stringer by returning a protocol-compliant |
| 20 | // representation of the receiving status, or panic()-ing if the Status is |
| 21 | // unknown. |
| 22 | func (s FilterProcessStatusscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/FilterProcessStatus#) Stringscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/FilterProcessStatus#String().() string { |
| 23 | switch s { |
| 24 | case StatusSuccessscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/StatusSuccess.: |
| 25 | return "success" |
| 26 | case StatusDelayscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/StatusDelay.: |
| 27 | return "delayed" |
| 28 | case StatusErrorscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/StatusError.: |
| 29 | return "error" |
| 30 | } |
| 31 | |
| 32 | panic(trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/.Trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/Tr..Getscip-go gomod github.com/leonelquinteros/gotext v1.7.2 `github.com/leonelquinteros/gotext`/Locale#Get().("unknown FilterProcessStatus '%d'", s)) |
| 33 | } |