MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / doOnline

Method doOnline

module/application-authorization/iml.go:299–309  ·  view source on GitHub ↗
(ctx context.Context, clusterId string, app *gateway.ApplicationRelease)

Source from the content-addressed store, hash-verified

297 return nil
298}
299func (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}
310func (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 {

Callers 1

onlineMethod · 0.95

Calls 4

GatewayClientMethod · 0.65
CloseMethod · 0.65
OnlineMethod · 0.65
ApplicationMethod · 0.65

Tested by

no test coverage detected