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

Function convertV1DataSources

backend/api/v1/instance_service_converter.go:108–119  ·  view source on GitHub ↗
(dataSources []*v1pb.DataSource)

Source from the content-addressed store, hash-verified

106}
107
108func convertV1DataSources(dataSources []*v1pb.DataSource) ([]*storepb.DataSource, error) {
109 var values []*storepb.DataSource
110 for _, ds := range dataSources {
111 dataSource, err := convertV1DataSource(ds)
112 if err != nil {
113 return nil, err
114 }
115 values = append(values, dataSource)
116 }
117
118 return values, nil
119}
120
121func convertDataSourceExternalSecret(externalSecret *storepb.DataSourceExternalSecret) *v1pb.DataSourceExternalSecret {
122 if externalSecret == nil {

Callers 2

UpdateInstanceMethod · 0.85
convertToStoreInstanceFunction · 0.85

Calls 1

convertV1DataSourceFunction · 0.85

Tested by

no test coverage detected