String implements Stringer.
()
| 23 | |
| 24 | // String implements Stringer. |
| 25 | func (r RepoType) String() string { |
| 26 | switch r { |
| 27 | case RepoTypeAdmin: |
| 28 | return "Admin" |
| 29 | case RepoTypeOrgConfig: |
| 30 | return "OrgConfig" |
| 31 | case RepoTypeOrg: |
| 32 | return "Org" |
| 33 | case RepoTypeUserConfig: |
| 34 | return "UserConfig" |
| 35 | case RepoTypeUser: |
| 36 | return "User" |
| 37 | case RepoTypeTopLevel: |
| 38 | return "TopLevel" |
| 39 | default: |
| 40 | return fmt.Sprintf("Unknown(%d)", r) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | // RepoLookup represents a repository that has been confirmed in the config and |
| 45 | // the access level the given user has. |
no outgoing calls