(organization database.Organization)
| 895 | } |
| 896 | |
| 897 | func Organization(organization database.Organization) codersdk.Organization { |
| 898 | return codersdk.Organization{ |
| 899 | MinimalOrganization: codersdk.MinimalOrganization{ |
| 900 | ID: organization.ID, |
| 901 | Name: organization.Name, |
| 902 | DisplayName: organization.DisplayName, |
| 903 | Icon: organization.Icon, |
| 904 | }, |
| 905 | Description: organization.Description, |
| 906 | CreatedAt: organization.CreatedAt, |
| 907 | UpdatedAt: organization.UpdatedAt, |
| 908 | IsDefault: organization.IsDefault, |
| 909 | } |
| 910 | } |
| 911 | |
| 912 | func CryptoKeys(keys []database.CryptoKey) []codersdk.CryptoKey { |
| 913 | return slice.List(keys, CryptoKey) |
no outgoing calls
no test coverage detected