(dataSources []*v1pb.DataSource)
| 106 | } |
| 107 | |
| 108 | func 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 | |
| 121 | func convertDataSourceExternalSecret(externalSecret *storepb.DataSourceExternalSecret) *v1pb.DataSourceExternalSecret { |
| 122 | if externalSecret == nil { |
no test coverage detected