| 214 | } |
| 215 | |
| 216 | func cloudIdentityService(ctx context.Context, account string) (*cloudidentity.Service, error) { |
| 217 | runtime, err := runtimeWithService(ctx, "cloud identity") |
| 218 | if err != nil || runtime.Services.CloudIdentity == nil { |
| 219 | return nil, serviceError(err, "cloud identity") |
| 220 | } |
| 221 | return runtime.Services.CloudIdentity(ctx, account) |
| 222 | } |
| 223 | |
| 224 | func keepServiceWithServiceAccount(ctx context.Context, path, impersonate string) (*keepapi.Service, error) { |
| 225 | runtime, err := runtimeWithService(ctx, "keep") |