(instance *store.InstanceMessage, metadata *storepb.Instance)
| 247 | } |
| 248 | |
| 249 | func instanceWithMetadata(instance *store.InstanceMessage, metadata *storepb.Instance) *store.InstanceMessage { |
| 250 | candidate := *instance |
| 251 | candidate.Metadata = metadata |
| 252 | return &candidate |
| 253 | } |
| 254 | |
| 255 | func (s *InstanceService) convertToV1Instance(ctx context.Context, instance *store.InstanceMessage) *v1pb.Instance { |
| 256 | return convertToV1Instance(instance, s.licenseService.IsInstanceEffectivelyActivated(ctx, common.GetWorkspaceIDFromContext(ctx), instance)) |
no outgoing calls
no test coverage detected