MCPcopy Index your code
hub / github.com/bytebase/bytebase / instanceWithMetadata

Function instanceWithMetadata

backend/api/v1/instance_service.go:249–253  ·  view source on GitHub ↗
(instance *store.InstanceMessage, metadata *storepb.Instance)

Source from the content-addressed store, hash-verified

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

Callers 2

AddDataSourceMethod · 0.85
UpdateDataSourceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected