(ctx context.Context, id string)
| 243 | } |
| 244 | |
| 245 | func (i *imlAPIKeyModule) Delete(ctx context.Context, id string) error { |
| 246 | return i.transaction.Transaction(ctx, func(ctx context.Context) error { |
| 247 | err := i.apikeyService.Delete(ctx, id) |
| 248 | if err != nil { |
| 249 | return err |
| 250 | } |
| 251 | client, err := i.clusterServer.GatewayClient(ctx, cluster.DefaultClusterID) |
| 252 | if err != nil { |
| 253 | return err |
| 254 | } |
| 255 | return i.online(ctx, client) |
| 256 | }) |
| 257 | } |
| 258 | |
| 259 | func (i *imlAPIKeyModule) Get(ctx context.Context, id string) (*system_apikey_dto.APIKey, error) { |
| 260 | info, err := i.apikeyService.Get(ctx, id) |
nothing calls this directly
no test coverage detected