@@ -35,7 +35,7 @@ func (s *RegistryServer) GetPackage(ctx context.Context, req *api.GetPackageRequ
3535 if err != nil {
3636 return nil , err
3737 }
38- return api .PackageManifestToApiPackage (packageManifest ), nil
38+ return api .PackageManifestToAPIPackage (packageManifest ), nil
3939}
4040
4141func (s * RegistryServer ) GetBundleForChannel (ctx context.Context , req * api.GetBundleInChannelRequest ) (* api.Bundle , error ) {
@@ -47,7 +47,7 @@ func (s *RegistryServer) GetBundleForChannel(ctx context.Context, req *api.GetBu
4747 PackageName : req .GetPkgName (),
4848 ChannelName : req .GetChannelName (),
4949 }
50- return api .BundleStringToApiBundle (bundleString , entry )
50+ return api .BundleStringToAPIBundle (bundleString , entry )
5151}
5252
5353func (s * RegistryServer ) GetChannelEntriesThatReplace (req * api.GetAllReplacementsRequest , stream api.Registry_GetChannelEntriesThatReplaceServer ) error {
@@ -56,7 +56,7 @@ func (s *RegistryServer) GetChannelEntriesThatReplace(req *api.GetAllReplacement
5656 return err
5757 }
5858 for _ , e := range channelEntries {
59- if err := stream .Send (api .ChannelEntryToApiChannelEntry (e )); err != nil {
59+ if err := stream .Send (api .ChannelEntryToAPIChannelEntry (e )); err != nil {
6060 return err
6161 }
6262 }
@@ -71,41 +71,41 @@ func (s *RegistryServer) GetBundleThatReplaces(ctx context.Context, req *api.Get
7171 entry := & registry.ChannelEntry {
7272 PackageName : req .GetPkgName (),
7373 ChannelName : req .GetChannelName (),
74- Replaces : req .GetCsvName (),
74+ Replaces : req .GetCsvName (),
7575 }
76- return api .BundleStringToApiBundle (bundleString , entry )
76+ return api .BundleStringToAPIBundle (bundleString , entry )
7777}
7878
7979func (s * RegistryServer ) GetChannelEntriesThatProvide (req * api.GetAllProvidersRequest , stream api.Registry_GetChannelEntriesThatProvideServer ) error {
80- channelEntries , err := s .store .GetChannelEntriesThatProvide (stream .Context (), req .GetGroupOrName (), req .GetVersion (), req .GetKind ())
80+ channelEntries , err := s .store .GetChannelEntriesThatProvide (stream .Context (), req .GetGroup (), req .GetVersion (), req .GetKind ())
8181 if err != nil {
8282 return err
8383 }
8484 for _ , e := range channelEntries {
85- if err := stream .Send (api .ChannelEntryToApiChannelEntry (e )); err != nil {
85+ if err := stream .Send (api .ChannelEntryToAPIChannelEntry (e )); err != nil {
8686 return err
8787 }
8888 }
8989 return nil
9090}
9191
9292func (s * RegistryServer ) GetLatestChannelEntriesThatProvide (req * api.GetLatestProvidersRequest , stream api.Registry_GetLatestChannelEntriesThatProvideServer ) error {
93- channelEntries , err := s .store .GetLatestChannelEntriesThatProvide (stream .Context (), req .GetGroupOrName (), req .GetVersion (), req .GetKind ())
93+ channelEntries , err := s .store .GetLatestChannelEntriesThatProvide (stream .Context (), req .GetGroup (), req .GetVersion (), req .GetKind ())
9494 if err != nil {
9595 return err
9696 }
9797 for _ , e := range channelEntries {
98- if err := stream .Send (api .ChannelEntryToApiChannelEntry (e )); err != nil {
98+ if err := stream .Send (api .ChannelEntryToAPIChannelEntry (e )); err != nil {
9999 return err
100100 }
101101 }
102102 return nil
103103}
104104
105105func (s * RegistryServer ) GetDefaultBundleThatProvides (ctx context.Context , req * api.GetDefaultProviderRequest ) (* api.Bundle , error ) {
106- bundleString , channelEntry , err := s .store .GetBundleThatProvides (ctx , req .GetGroupOrName (), req .GetVersion (), req .GetKind ())
106+ bundleString , channelEntry , err := s .store .GetBundleThatProvides (ctx , req .GetGroup (), req .GetVersion (), req .GetKind ())
107107 if err != nil {
108108 return nil , err
109109 }
110- return api .BundleStringToApiBundle (bundleString , channelEntry )
110+ return api .BundleStringToAPIBundle (bundleString , channelEntry )
111111}
0 commit comments