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

Function convertToEnvironment

backend/api/v1/setting_service_converter.go:226–234  ·  view source on GitHub ↗
(e *storepb.EnvironmentSetting_Environment)

Source from the content-addressed store, hash-verified

224}
225
226func convertToEnvironment(e *storepb.EnvironmentSetting_Environment) *v1pb.EnvironmentSetting_Environment {
227 return &v1pb.EnvironmentSetting_Environment{
228 Name: common.FormatEnvironment(e.Id),
229 Id: e.Id,
230 Title: e.Title,
231 Tags: e.Tags,
232 Color: e.Color,
233 }
234}
235
236func convertEnvironmentSetting(e *v1pb.EnvironmentSetting) *storepb.EnvironmentSetting {
237 var environments []*storepb.EnvironmentSetting_Environment

Callers 1

Calls 1

FormatEnvironmentFunction · 0.92

Tested by

no test coverage detected