MCPcopy Create free account
hub / github.com/bytebase/bytebase / convertToPlanSpecs

Function convertToPlanSpecs

backend/api/v1/plan_service.go:1053–1059  ·  view source on GitHub ↗
(projectID string, specs []*storepb.PlanConfig_Spec)

Source from the content-addressed store, hash-verified

1051}
1052
1053func convertToPlanSpecs(projectID string, specs []*storepb.PlanConfig_Spec) []*v1pb.Plan_Spec {
1054 v1Specs := make([]*v1pb.Plan_Spec, len(specs))
1055 for i := range specs {
1056 v1Specs[i] = convertToPlanSpec(projectID, specs[i])
1057 }
1058 return v1Specs
1059}
1060
1061func convertToPlanSpec(projectID string, spec *storepb.PlanConfig_Spec) *v1pb.Plan_Spec {
1062 v1Spec := &v1pb.Plan_Spec{

Callers 2

buildV1PlanFieldsFunction · 0.85

Calls 1

convertToPlanSpecFunction · 0.85

Tested by

no test coverage detected