(ctx context.Context, clusterId string, app *gateway.ApplicationRelease)
| 297 | return nil |
| 298 | } |
| 299 | func (i *imlAuthorizationModule) doOnline(ctx context.Context, clusterId string, app *gateway.ApplicationRelease) error { |
| 300 | client, err := i.clusterService.GatewayClient(ctx, clusterId) |
| 301 | if err != nil { |
| 302 | return err |
| 303 | } |
| 304 | defer func() { |
| 305 | _ = client.Close(ctx) |
| 306 | }() |
| 307 | return client.Application().Online(ctx, app) |
| 308 | |
| 309 | } |
| 310 | func (i *imlAuthorizationModule) AddAuthorization(ctx context.Context, appId string, info *application_authorization_dto.CreateAuthorization) (*application_authorization_dto.Authorization, error) { |
| 311 | authFactory, has := authDriver.GetAuthFactory(info.Driver) |
| 312 | if !has { |
no test coverage detected