We have to do this to avoid a circular dependency on db2sdk (cryptokeys -> db2sdk -> tailnet -> cryptokeys)
(keys []database.CryptoKey)
| 386 | |
| 387 | // We have to do this to avoid a circular dependency on db2sdk (cryptokeys -> db2sdk -> tailnet -> cryptokeys) |
| 388 | func toSDKKeys(keys []database.CryptoKey) []codersdk.CryptoKey { |
| 389 | into := make([]codersdk.CryptoKey, 0, len(keys)) |
| 390 | for _, key := range keys { |
| 391 | into = append(into, toSDK(key)) |
| 392 | } |
| 393 | return into |
| 394 | } |
| 395 | |
| 396 | func toSDK(key database.CryptoKey) codersdk.CryptoKey { |
| 397 | return codersdk.CryptoKey{ |