github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/repository/repository.pb.gw.go (about)

     1  // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
     2  // source: server/repository/repository.proto
     3  
     4  /*
     5  Package repository is a reverse proxy.
     6  
     7  It translates gRPC into RESTful JSON APIs.
     8  */
     9  package repository
    10  
    11  import (
    12  	"context"
    13  	"io"
    14  	"net/http"
    15  
    16  	"github.com/golang/protobuf/descriptor"
    17  	"github.com/golang/protobuf/proto"
    18  	"github.com/grpc-ecosystem/grpc-gateway/runtime"
    19  	"github.com/grpc-ecosystem/grpc-gateway/utilities"
    20  	"google.golang.org/grpc"
    21  	"google.golang.org/grpc/codes"
    22  	"google.golang.org/grpc/grpclog"
    23  	"google.golang.org/grpc/status"
    24  )
    25  
    26  // Suppress "imported and not used" errors
    27  var _ codes.Code
    28  var _ io.Reader
    29  var _ status.Status
    30  var _ = runtime.String
    31  var _ = utilities.NewDoubleArray
    32  var _ = descriptor.ForMessage
    33  
    34  var (
    35  	filter_RepositoryService_List_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
    36  )
    37  
    38  func request_RepositoryService_List_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    39  	var protoReq RepoQuery
    40  	var metadata runtime.ServerMetadata
    41  
    42  	if err := req.ParseForm(); err != nil {
    43  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    44  	}
    45  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_List_0); err != nil {
    46  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    47  	}
    48  
    49  	msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    50  	return msg, metadata, err
    51  
    52  }
    53  
    54  func local_request_RepositoryService_List_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    55  	var protoReq RepoQuery
    56  	var metadata runtime.ServerMetadata
    57  
    58  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_List_0); err != nil {
    59  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    60  	}
    61  
    62  	msg, err := server.List(ctx, &protoReq)
    63  	return msg, metadata, err
    64  
    65  }
    66  
    67  var (
    68  	filter_RepositoryService_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
    69  )
    70  
    71  func request_RepositoryService_Get_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    72  	var protoReq RepoQuery
    73  	var metadata runtime.ServerMetadata
    74  
    75  	var (
    76  		val string
    77  		ok  bool
    78  		err error
    79  		_   = err
    80  	)
    81  
    82  	val, ok = pathParams["repo"]
    83  	if !ok {
    84  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
    85  	}
    86  
    87  	protoReq.Repo, err = runtime.String(val)
    88  
    89  	if err != nil {
    90  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
    91  	}
    92  
    93  	if err := req.ParseForm(); err != nil {
    94  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    95  	}
    96  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_Get_0); err != nil {
    97  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    98  	}
    99  
   100  	msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   101  	return msg, metadata, err
   102  
   103  }
   104  
   105  func local_request_RepositoryService_Get_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   106  	var protoReq RepoQuery
   107  	var metadata runtime.ServerMetadata
   108  
   109  	var (
   110  		val string
   111  		ok  bool
   112  		err error
   113  		_   = err
   114  	)
   115  
   116  	val, ok = pathParams["repo"]
   117  	if !ok {
   118  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   119  	}
   120  
   121  	protoReq.Repo, err = runtime.String(val)
   122  
   123  	if err != nil {
   124  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   125  	}
   126  
   127  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_Get_0); err != nil {
   128  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   129  	}
   130  
   131  	msg, err := server.Get(ctx, &protoReq)
   132  	return msg, metadata, err
   133  
   134  }
   135  
   136  var (
   137  	filter_RepositoryService_ListRepositories_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   138  )
   139  
   140  func request_RepositoryService_ListRepositories_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   141  	var protoReq RepoQuery
   142  	var metadata runtime.ServerMetadata
   143  
   144  	if err := req.ParseForm(); err != nil {
   145  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   146  	}
   147  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_ListRepositories_0); err != nil {
   148  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   149  	}
   150  
   151  	msg, err := client.ListRepositories(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   152  	return msg, metadata, err
   153  
   154  }
   155  
   156  func local_request_RepositoryService_ListRepositories_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   157  	var protoReq RepoQuery
   158  	var metadata runtime.ServerMetadata
   159  
   160  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_ListRepositories_0); err != nil {
   161  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   162  	}
   163  
   164  	msg, err := server.ListRepositories(ctx, &protoReq)
   165  	return msg, metadata, err
   166  
   167  }
   168  
   169  var (
   170  	filter_RepositoryService_ListRefs_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   171  )
   172  
   173  func request_RepositoryService_ListRefs_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   174  	var protoReq RepoQuery
   175  	var metadata runtime.ServerMetadata
   176  
   177  	var (
   178  		val string
   179  		ok  bool
   180  		err error
   181  		_   = err
   182  	)
   183  
   184  	val, ok = pathParams["repo"]
   185  	if !ok {
   186  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   187  	}
   188  
   189  	protoReq.Repo, err = runtime.String(val)
   190  
   191  	if err != nil {
   192  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   193  	}
   194  
   195  	if err := req.ParseForm(); err != nil {
   196  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   197  	}
   198  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_ListRefs_0); err != nil {
   199  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   200  	}
   201  
   202  	msg, err := client.ListRefs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   203  	return msg, metadata, err
   204  
   205  }
   206  
   207  func local_request_RepositoryService_ListRefs_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   208  	var protoReq RepoQuery
   209  	var metadata runtime.ServerMetadata
   210  
   211  	var (
   212  		val string
   213  		ok  bool
   214  		err error
   215  		_   = err
   216  	)
   217  
   218  	val, ok = pathParams["repo"]
   219  	if !ok {
   220  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   221  	}
   222  
   223  	protoReq.Repo, err = runtime.String(val)
   224  
   225  	if err != nil {
   226  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   227  	}
   228  
   229  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_ListRefs_0); err != nil {
   230  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   231  	}
   232  
   233  	msg, err := server.ListRefs(ctx, &protoReq)
   234  	return msg, metadata, err
   235  
   236  }
   237  
   238  var (
   239  	filter_RepositoryService_ListApps_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   240  )
   241  
   242  func request_RepositoryService_ListApps_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   243  	var protoReq RepoAppsQuery
   244  	var metadata runtime.ServerMetadata
   245  
   246  	var (
   247  		val string
   248  		ok  bool
   249  		err error
   250  		_   = err
   251  	)
   252  
   253  	val, ok = pathParams["repo"]
   254  	if !ok {
   255  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   256  	}
   257  
   258  	protoReq.Repo, err = runtime.String(val)
   259  
   260  	if err != nil {
   261  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   262  	}
   263  
   264  	if err := req.ParseForm(); err != nil {
   265  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   266  	}
   267  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_ListApps_0); err != nil {
   268  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   269  	}
   270  
   271  	msg, err := client.ListApps(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   272  	return msg, metadata, err
   273  
   274  }
   275  
   276  func local_request_RepositoryService_ListApps_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   277  	var protoReq RepoAppsQuery
   278  	var metadata runtime.ServerMetadata
   279  
   280  	var (
   281  		val string
   282  		ok  bool
   283  		err error
   284  		_   = err
   285  	)
   286  
   287  	val, ok = pathParams["repo"]
   288  	if !ok {
   289  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   290  	}
   291  
   292  	protoReq.Repo, err = runtime.String(val)
   293  
   294  	if err != nil {
   295  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   296  	}
   297  
   298  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_ListApps_0); err != nil {
   299  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   300  	}
   301  
   302  	msg, err := server.ListApps(ctx, &protoReq)
   303  	return msg, metadata, err
   304  
   305  }
   306  
   307  func request_RepositoryService_GetAppDetails_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   308  	var protoReq RepoAppDetailsQuery
   309  	var metadata runtime.ServerMetadata
   310  
   311  	newReader, berr := utilities.IOReaderFactory(req.Body)
   312  	if berr != nil {
   313  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   314  	}
   315  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   316  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   317  	}
   318  
   319  	var (
   320  		val string
   321  		ok  bool
   322  		err error
   323  		_   = err
   324  	)
   325  
   326  	val, ok = pathParams["source.repoURL"]
   327  	if !ok {
   328  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "source.repoURL")
   329  	}
   330  
   331  	err = runtime.PopulateFieldFromPath(&protoReq, "source.repoURL", val)
   332  
   333  	if err != nil {
   334  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "source.repoURL", err)
   335  	}
   336  
   337  	msg, err := client.GetAppDetails(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   338  	return msg, metadata, err
   339  
   340  }
   341  
   342  func local_request_RepositoryService_GetAppDetails_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   343  	var protoReq RepoAppDetailsQuery
   344  	var metadata runtime.ServerMetadata
   345  
   346  	newReader, berr := utilities.IOReaderFactory(req.Body)
   347  	if berr != nil {
   348  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   349  	}
   350  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   351  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   352  	}
   353  
   354  	var (
   355  		val string
   356  		ok  bool
   357  		err error
   358  		_   = err
   359  	)
   360  
   361  	val, ok = pathParams["source.repoURL"]
   362  	if !ok {
   363  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "source.repoURL")
   364  	}
   365  
   366  	err = runtime.PopulateFieldFromPath(&protoReq, "source.repoURL", val)
   367  
   368  	if err != nil {
   369  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "source.repoURL", err)
   370  	}
   371  
   372  	msg, err := server.GetAppDetails(ctx, &protoReq)
   373  	return msg, metadata, err
   374  
   375  }
   376  
   377  var (
   378  	filter_RepositoryService_GetHelmCharts_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   379  )
   380  
   381  func request_RepositoryService_GetHelmCharts_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   382  	var protoReq RepoQuery
   383  	var metadata runtime.ServerMetadata
   384  
   385  	var (
   386  		val string
   387  		ok  bool
   388  		err error
   389  		_   = err
   390  	)
   391  
   392  	val, ok = pathParams["repo"]
   393  	if !ok {
   394  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   395  	}
   396  
   397  	protoReq.Repo, err = runtime.String(val)
   398  
   399  	if err != nil {
   400  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   401  	}
   402  
   403  	if err := req.ParseForm(); err != nil {
   404  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   405  	}
   406  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_GetHelmCharts_0); err != nil {
   407  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   408  	}
   409  
   410  	msg, err := client.GetHelmCharts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   411  	return msg, metadata, err
   412  
   413  }
   414  
   415  func local_request_RepositoryService_GetHelmCharts_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   416  	var protoReq RepoQuery
   417  	var metadata runtime.ServerMetadata
   418  
   419  	var (
   420  		val string
   421  		ok  bool
   422  		err error
   423  		_   = err
   424  	)
   425  
   426  	val, ok = pathParams["repo"]
   427  	if !ok {
   428  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   429  	}
   430  
   431  	protoReq.Repo, err = runtime.String(val)
   432  
   433  	if err != nil {
   434  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   435  	}
   436  
   437  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_GetHelmCharts_0); err != nil {
   438  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   439  	}
   440  
   441  	msg, err := server.GetHelmCharts(ctx, &protoReq)
   442  	return msg, metadata, err
   443  
   444  }
   445  
   446  var (
   447  	filter_RepositoryService_Create_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   448  )
   449  
   450  func request_RepositoryService_Create_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   451  	var protoReq RepoCreateRequest
   452  	var metadata runtime.ServerMetadata
   453  
   454  	newReader, berr := utilities.IOReaderFactory(req.Body)
   455  	if berr != nil {
   456  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   457  	}
   458  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   459  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   460  	}
   461  
   462  	if err := req.ParseForm(); err != nil {
   463  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   464  	}
   465  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_Create_0); err != nil {
   466  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   467  	}
   468  
   469  	msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   470  	return msg, metadata, err
   471  
   472  }
   473  
   474  func local_request_RepositoryService_Create_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   475  	var protoReq RepoCreateRequest
   476  	var metadata runtime.ServerMetadata
   477  
   478  	newReader, berr := utilities.IOReaderFactory(req.Body)
   479  	if berr != nil {
   480  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   481  	}
   482  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   483  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   484  	}
   485  
   486  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_Create_0); err != nil {
   487  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   488  	}
   489  
   490  	msg, err := server.Create(ctx, &protoReq)
   491  	return msg, metadata, err
   492  
   493  }
   494  
   495  var (
   496  	filter_RepositoryService_CreateRepository_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   497  )
   498  
   499  func request_RepositoryService_CreateRepository_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   500  	var protoReq RepoCreateRequest
   501  	var metadata runtime.ServerMetadata
   502  
   503  	newReader, berr := utilities.IOReaderFactory(req.Body)
   504  	if berr != nil {
   505  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   506  	}
   507  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   508  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   509  	}
   510  
   511  	if err := req.ParseForm(); err != nil {
   512  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   513  	}
   514  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_CreateRepository_0); err != nil {
   515  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   516  	}
   517  
   518  	msg, err := client.CreateRepository(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   519  	return msg, metadata, err
   520  
   521  }
   522  
   523  func local_request_RepositoryService_CreateRepository_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   524  	var protoReq RepoCreateRequest
   525  	var metadata runtime.ServerMetadata
   526  
   527  	newReader, berr := utilities.IOReaderFactory(req.Body)
   528  	if berr != nil {
   529  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   530  	}
   531  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   532  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   533  	}
   534  
   535  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_CreateRepository_0); err != nil {
   536  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   537  	}
   538  
   539  	msg, err := server.CreateRepository(ctx, &protoReq)
   540  	return msg, metadata, err
   541  
   542  }
   543  
   544  func request_RepositoryService_Update_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   545  	var protoReq RepoUpdateRequest
   546  	var metadata runtime.ServerMetadata
   547  
   548  	newReader, berr := utilities.IOReaderFactory(req.Body)
   549  	if berr != nil {
   550  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   551  	}
   552  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   553  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   554  	}
   555  
   556  	var (
   557  		val string
   558  		ok  bool
   559  		err error
   560  		_   = err
   561  	)
   562  
   563  	val, ok = pathParams["repo.repo"]
   564  	if !ok {
   565  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo.repo")
   566  	}
   567  
   568  	err = runtime.PopulateFieldFromPath(&protoReq, "repo.repo", val)
   569  
   570  	if err != nil {
   571  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo.repo", err)
   572  	}
   573  
   574  	msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   575  	return msg, metadata, err
   576  
   577  }
   578  
   579  func local_request_RepositoryService_Update_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   580  	var protoReq RepoUpdateRequest
   581  	var metadata runtime.ServerMetadata
   582  
   583  	newReader, berr := utilities.IOReaderFactory(req.Body)
   584  	if berr != nil {
   585  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   586  	}
   587  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   588  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   589  	}
   590  
   591  	var (
   592  		val string
   593  		ok  bool
   594  		err error
   595  		_   = err
   596  	)
   597  
   598  	val, ok = pathParams["repo.repo"]
   599  	if !ok {
   600  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo.repo")
   601  	}
   602  
   603  	err = runtime.PopulateFieldFromPath(&protoReq, "repo.repo", val)
   604  
   605  	if err != nil {
   606  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo.repo", err)
   607  	}
   608  
   609  	msg, err := server.Update(ctx, &protoReq)
   610  	return msg, metadata, err
   611  
   612  }
   613  
   614  func request_RepositoryService_UpdateRepository_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   615  	var protoReq RepoUpdateRequest
   616  	var metadata runtime.ServerMetadata
   617  
   618  	newReader, berr := utilities.IOReaderFactory(req.Body)
   619  	if berr != nil {
   620  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   621  	}
   622  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   623  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   624  	}
   625  
   626  	var (
   627  		val string
   628  		ok  bool
   629  		err error
   630  		_   = err
   631  	)
   632  
   633  	val, ok = pathParams["repo.repo"]
   634  	if !ok {
   635  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo.repo")
   636  	}
   637  
   638  	err = runtime.PopulateFieldFromPath(&protoReq, "repo.repo", val)
   639  
   640  	if err != nil {
   641  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo.repo", err)
   642  	}
   643  
   644  	msg, err := client.UpdateRepository(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   645  	return msg, metadata, err
   646  
   647  }
   648  
   649  func local_request_RepositoryService_UpdateRepository_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   650  	var protoReq RepoUpdateRequest
   651  	var metadata runtime.ServerMetadata
   652  
   653  	newReader, berr := utilities.IOReaderFactory(req.Body)
   654  	if berr != nil {
   655  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   656  	}
   657  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   658  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   659  	}
   660  
   661  	var (
   662  		val string
   663  		ok  bool
   664  		err error
   665  		_   = err
   666  	)
   667  
   668  	val, ok = pathParams["repo.repo"]
   669  	if !ok {
   670  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo.repo")
   671  	}
   672  
   673  	err = runtime.PopulateFieldFromPath(&protoReq, "repo.repo", val)
   674  
   675  	if err != nil {
   676  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo.repo", err)
   677  	}
   678  
   679  	msg, err := server.UpdateRepository(ctx, &protoReq)
   680  	return msg, metadata, err
   681  
   682  }
   683  
   684  var (
   685  	filter_RepositoryService_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   686  )
   687  
   688  func request_RepositoryService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   689  	var protoReq RepoQuery
   690  	var metadata runtime.ServerMetadata
   691  
   692  	var (
   693  		val string
   694  		ok  bool
   695  		err error
   696  		_   = err
   697  	)
   698  
   699  	val, ok = pathParams["repo"]
   700  	if !ok {
   701  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   702  	}
   703  
   704  	protoReq.Repo, err = runtime.String(val)
   705  
   706  	if err != nil {
   707  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   708  	}
   709  
   710  	if err := req.ParseForm(); err != nil {
   711  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   712  	}
   713  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_Delete_0); err != nil {
   714  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   715  	}
   716  
   717  	msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   718  	return msg, metadata, err
   719  
   720  }
   721  
   722  func local_request_RepositoryService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   723  	var protoReq RepoQuery
   724  	var metadata runtime.ServerMetadata
   725  
   726  	var (
   727  		val string
   728  		ok  bool
   729  		err error
   730  		_   = err
   731  	)
   732  
   733  	val, ok = pathParams["repo"]
   734  	if !ok {
   735  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   736  	}
   737  
   738  	protoReq.Repo, err = runtime.String(val)
   739  
   740  	if err != nil {
   741  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   742  	}
   743  
   744  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_Delete_0); err != nil {
   745  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   746  	}
   747  
   748  	msg, err := server.Delete(ctx, &protoReq)
   749  	return msg, metadata, err
   750  
   751  }
   752  
   753  var (
   754  	filter_RepositoryService_DeleteRepository_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   755  )
   756  
   757  func request_RepositoryService_DeleteRepository_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   758  	var protoReq RepoQuery
   759  	var metadata runtime.ServerMetadata
   760  
   761  	var (
   762  		val string
   763  		ok  bool
   764  		err error
   765  		_   = err
   766  	)
   767  
   768  	val, ok = pathParams["repo"]
   769  	if !ok {
   770  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   771  	}
   772  
   773  	protoReq.Repo, err = runtime.String(val)
   774  
   775  	if err != nil {
   776  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   777  	}
   778  
   779  	if err := req.ParseForm(); err != nil {
   780  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   781  	}
   782  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_DeleteRepository_0); err != nil {
   783  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   784  	}
   785  
   786  	msg, err := client.DeleteRepository(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   787  	return msg, metadata, err
   788  
   789  }
   790  
   791  func local_request_RepositoryService_DeleteRepository_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   792  	var protoReq RepoQuery
   793  	var metadata runtime.ServerMetadata
   794  
   795  	var (
   796  		val string
   797  		ok  bool
   798  		err error
   799  		_   = err
   800  	)
   801  
   802  	val, ok = pathParams["repo"]
   803  	if !ok {
   804  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   805  	}
   806  
   807  	protoReq.Repo, err = runtime.String(val)
   808  
   809  	if err != nil {
   810  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   811  	}
   812  
   813  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_DeleteRepository_0); err != nil {
   814  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   815  	}
   816  
   817  	msg, err := server.DeleteRepository(ctx, &protoReq)
   818  	return msg, metadata, err
   819  
   820  }
   821  
   822  var (
   823  	filter_RepositoryService_ValidateAccess_0 = &utilities.DoubleArray{Encoding: map[string]int{"repo": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
   824  )
   825  
   826  func request_RepositoryService_ValidateAccess_0(ctx context.Context, marshaler runtime.Marshaler, client RepositoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   827  	var protoReq RepoAccessQuery
   828  	var metadata runtime.ServerMetadata
   829  
   830  	newReader, berr := utilities.IOReaderFactory(req.Body)
   831  	if berr != nil {
   832  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   833  	}
   834  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   835  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   836  	}
   837  
   838  	var (
   839  		val string
   840  		ok  bool
   841  		err error
   842  		_   = err
   843  	)
   844  
   845  	val, ok = pathParams["repo"]
   846  	if !ok {
   847  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   848  	}
   849  
   850  	protoReq.Repo, err = runtime.String(val)
   851  
   852  	if err != nil {
   853  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   854  	}
   855  
   856  	if err := req.ParseForm(); err != nil {
   857  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   858  	}
   859  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RepositoryService_ValidateAccess_0); err != nil {
   860  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   861  	}
   862  
   863  	msg, err := client.ValidateAccess(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   864  	return msg, metadata, err
   865  
   866  }
   867  
   868  func local_request_RepositoryService_ValidateAccess_0(ctx context.Context, marshaler runtime.Marshaler, server RepositoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   869  	var protoReq RepoAccessQuery
   870  	var metadata runtime.ServerMetadata
   871  
   872  	newReader, berr := utilities.IOReaderFactory(req.Body)
   873  	if berr != nil {
   874  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   875  	}
   876  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Repo); err != nil && err != io.EOF {
   877  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   878  	}
   879  
   880  	var (
   881  		val string
   882  		ok  bool
   883  		err error
   884  		_   = err
   885  	)
   886  
   887  	val, ok = pathParams["repo"]
   888  	if !ok {
   889  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "repo")
   890  	}
   891  
   892  	protoReq.Repo, err = runtime.String(val)
   893  
   894  	if err != nil {
   895  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "repo", err)
   896  	}
   897  
   898  	if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_RepositoryService_ValidateAccess_0); err != nil {
   899  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   900  	}
   901  
   902  	msg, err := server.ValidateAccess(ctx, &protoReq)
   903  	return msg, metadata, err
   904  
   905  }
   906  
   907  // RegisterRepositoryServiceHandlerServer registers the http handlers for service RepositoryService to "mux".
   908  // UnaryRPC     :call RepositoryServiceServer directly.
   909  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
   910  func RegisterRepositoryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RepositoryServiceServer) error {
   911  
   912  	mux.Handle("GET", pattern_RepositoryService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   913  		ctx, cancel := context.WithCancel(req.Context())
   914  		defer cancel()
   915  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   916  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   917  		if err != nil {
   918  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   919  			return
   920  		}
   921  		resp, md, err := local_request_RepositoryService_List_0(rctx, inboundMarshaler, server, req, pathParams)
   922  		ctx = runtime.NewServerMetadataContext(ctx, md)
   923  		if err != nil {
   924  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   925  			return
   926  		}
   927  
   928  		forward_RepositoryService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   929  
   930  	})
   931  
   932  	mux.Handle("GET", pattern_RepositoryService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   933  		ctx, cancel := context.WithCancel(req.Context())
   934  		defer cancel()
   935  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   936  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   937  		if err != nil {
   938  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   939  			return
   940  		}
   941  		resp, md, err := local_request_RepositoryService_Get_0(rctx, inboundMarshaler, server, req, pathParams)
   942  		ctx = runtime.NewServerMetadataContext(ctx, md)
   943  		if err != nil {
   944  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   945  			return
   946  		}
   947  
   948  		forward_RepositoryService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   949  
   950  	})
   951  
   952  	mux.Handle("GET", pattern_RepositoryService_ListRepositories_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   953  		ctx, cancel := context.WithCancel(req.Context())
   954  		defer cancel()
   955  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   956  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   957  		if err != nil {
   958  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   959  			return
   960  		}
   961  		resp, md, err := local_request_RepositoryService_ListRepositories_0(rctx, inboundMarshaler, server, req, pathParams)
   962  		ctx = runtime.NewServerMetadataContext(ctx, md)
   963  		if err != nil {
   964  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   965  			return
   966  		}
   967  
   968  		forward_RepositoryService_ListRepositories_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   969  
   970  	})
   971  
   972  	mux.Handle("GET", pattern_RepositoryService_ListRefs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   973  		ctx, cancel := context.WithCancel(req.Context())
   974  		defer cancel()
   975  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   976  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   977  		if err != nil {
   978  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   979  			return
   980  		}
   981  		resp, md, err := local_request_RepositoryService_ListRefs_0(rctx, inboundMarshaler, server, req, pathParams)
   982  		ctx = runtime.NewServerMetadataContext(ctx, md)
   983  		if err != nil {
   984  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   985  			return
   986  		}
   987  
   988  		forward_RepositoryService_ListRefs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   989  
   990  	})
   991  
   992  	mux.Handle("GET", pattern_RepositoryService_ListApps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   993  		ctx, cancel := context.WithCancel(req.Context())
   994  		defer cancel()
   995  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   996  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   997  		if err != nil {
   998  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   999  			return
  1000  		}
  1001  		resp, md, err := local_request_RepositoryService_ListApps_0(rctx, inboundMarshaler, server, req, pathParams)
  1002  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1003  		if err != nil {
  1004  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1005  			return
  1006  		}
  1007  
  1008  		forward_RepositoryService_ListApps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1009  
  1010  	})
  1011  
  1012  	mux.Handle("POST", pattern_RepositoryService_GetAppDetails_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1013  		ctx, cancel := context.WithCancel(req.Context())
  1014  		defer cancel()
  1015  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1016  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1017  		if err != nil {
  1018  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1019  			return
  1020  		}
  1021  		resp, md, err := local_request_RepositoryService_GetAppDetails_0(rctx, inboundMarshaler, server, req, pathParams)
  1022  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1023  		if err != nil {
  1024  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1025  			return
  1026  		}
  1027  
  1028  		forward_RepositoryService_GetAppDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1029  
  1030  	})
  1031  
  1032  	mux.Handle("GET", pattern_RepositoryService_GetHelmCharts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1033  		ctx, cancel := context.WithCancel(req.Context())
  1034  		defer cancel()
  1035  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1036  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1037  		if err != nil {
  1038  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1039  			return
  1040  		}
  1041  		resp, md, err := local_request_RepositoryService_GetHelmCharts_0(rctx, inboundMarshaler, server, req, pathParams)
  1042  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1043  		if err != nil {
  1044  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1045  			return
  1046  		}
  1047  
  1048  		forward_RepositoryService_GetHelmCharts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1049  
  1050  	})
  1051  
  1052  	mux.Handle("POST", pattern_RepositoryService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1053  		ctx, cancel := context.WithCancel(req.Context())
  1054  		defer cancel()
  1055  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1056  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1057  		if err != nil {
  1058  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1059  			return
  1060  		}
  1061  		resp, md, err := local_request_RepositoryService_Create_0(rctx, inboundMarshaler, server, req, pathParams)
  1062  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1063  		if err != nil {
  1064  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1065  			return
  1066  		}
  1067  
  1068  		forward_RepositoryService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1069  
  1070  	})
  1071  
  1072  	mux.Handle("POST", pattern_RepositoryService_CreateRepository_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1073  		ctx, cancel := context.WithCancel(req.Context())
  1074  		defer cancel()
  1075  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1076  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1077  		if err != nil {
  1078  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1079  			return
  1080  		}
  1081  		resp, md, err := local_request_RepositoryService_CreateRepository_0(rctx, inboundMarshaler, server, req, pathParams)
  1082  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1083  		if err != nil {
  1084  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1085  			return
  1086  		}
  1087  
  1088  		forward_RepositoryService_CreateRepository_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1089  
  1090  	})
  1091  
  1092  	mux.Handle("PUT", pattern_RepositoryService_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1093  		ctx, cancel := context.WithCancel(req.Context())
  1094  		defer cancel()
  1095  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1096  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1097  		if err != nil {
  1098  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1099  			return
  1100  		}
  1101  		resp, md, err := local_request_RepositoryService_Update_0(rctx, inboundMarshaler, server, req, pathParams)
  1102  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1103  		if err != nil {
  1104  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1105  			return
  1106  		}
  1107  
  1108  		forward_RepositoryService_Update_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1109  
  1110  	})
  1111  
  1112  	mux.Handle("PUT", pattern_RepositoryService_UpdateRepository_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1113  		ctx, cancel := context.WithCancel(req.Context())
  1114  		defer cancel()
  1115  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1116  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1117  		if err != nil {
  1118  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1119  			return
  1120  		}
  1121  		resp, md, err := local_request_RepositoryService_UpdateRepository_0(rctx, inboundMarshaler, server, req, pathParams)
  1122  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1123  		if err != nil {
  1124  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1125  			return
  1126  		}
  1127  
  1128  		forward_RepositoryService_UpdateRepository_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1129  
  1130  	})
  1131  
  1132  	mux.Handle("DELETE", pattern_RepositoryService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1133  		ctx, cancel := context.WithCancel(req.Context())
  1134  		defer cancel()
  1135  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1136  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1137  		if err != nil {
  1138  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1139  			return
  1140  		}
  1141  		resp, md, err := local_request_RepositoryService_Delete_0(rctx, inboundMarshaler, server, req, pathParams)
  1142  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1143  		if err != nil {
  1144  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1145  			return
  1146  		}
  1147  
  1148  		forward_RepositoryService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1149  
  1150  	})
  1151  
  1152  	mux.Handle("DELETE", pattern_RepositoryService_DeleteRepository_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1153  		ctx, cancel := context.WithCancel(req.Context())
  1154  		defer cancel()
  1155  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1156  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1157  		if err != nil {
  1158  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1159  			return
  1160  		}
  1161  		resp, md, err := local_request_RepositoryService_DeleteRepository_0(rctx, inboundMarshaler, server, req, pathParams)
  1162  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1163  		if err != nil {
  1164  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1165  			return
  1166  		}
  1167  
  1168  		forward_RepositoryService_DeleteRepository_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1169  
  1170  	})
  1171  
  1172  	mux.Handle("POST", pattern_RepositoryService_ValidateAccess_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1173  		ctx, cancel := context.WithCancel(req.Context())
  1174  		defer cancel()
  1175  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1176  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
  1177  		if err != nil {
  1178  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1179  			return
  1180  		}
  1181  		resp, md, err := local_request_RepositoryService_ValidateAccess_0(rctx, inboundMarshaler, server, req, pathParams)
  1182  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1183  		if err != nil {
  1184  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1185  			return
  1186  		}
  1187  
  1188  		forward_RepositoryService_ValidateAccess_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1189  
  1190  	})
  1191  
  1192  	return nil
  1193  }
  1194  
  1195  // RegisterRepositoryServiceHandlerFromEndpoint is same as RegisterRepositoryServiceHandler but
  1196  // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
  1197  func RegisterRepositoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
  1198  	conn, err := grpc.Dial(endpoint, opts...)
  1199  	if err != nil {
  1200  		return err
  1201  	}
  1202  	defer func() {
  1203  		if err != nil {
  1204  			if cerr := conn.Close(); cerr != nil {
  1205  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
  1206  			}
  1207  			return
  1208  		}
  1209  		go func() {
  1210  			<-ctx.Done()
  1211  			if cerr := conn.Close(); cerr != nil {
  1212  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
  1213  			}
  1214  		}()
  1215  	}()
  1216  
  1217  	return RegisterRepositoryServiceHandler(ctx, mux, conn)
  1218  }
  1219  
  1220  // RegisterRepositoryServiceHandler registers the http handlers for service RepositoryService to "mux".
  1221  // The handlers forward requests to the grpc endpoint over "conn".
  1222  func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
  1223  	return RegisterRepositoryServiceHandlerClient(ctx, mux, NewRepositoryServiceClient(conn))
  1224  }
  1225  
  1226  // RegisterRepositoryServiceHandlerClient registers the http handlers for service RepositoryService
  1227  // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RepositoryServiceClient".
  1228  // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RepositoryServiceClient"
  1229  // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
  1230  // "RepositoryServiceClient" to call the correct interceptors.
  1231  func RegisterRepositoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepositoryServiceClient) error {
  1232  
  1233  	mux.Handle("GET", pattern_RepositoryService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1234  		ctx, cancel := context.WithCancel(req.Context())
  1235  		defer cancel()
  1236  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1237  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1238  		if err != nil {
  1239  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1240  			return
  1241  		}
  1242  		resp, md, err := request_RepositoryService_List_0(rctx, inboundMarshaler, client, req, pathParams)
  1243  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1244  		if err != nil {
  1245  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1246  			return
  1247  		}
  1248  
  1249  		forward_RepositoryService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1250  
  1251  	})
  1252  
  1253  	mux.Handle("GET", pattern_RepositoryService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1254  		ctx, cancel := context.WithCancel(req.Context())
  1255  		defer cancel()
  1256  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1257  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1258  		if err != nil {
  1259  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1260  			return
  1261  		}
  1262  		resp, md, err := request_RepositoryService_Get_0(rctx, inboundMarshaler, client, req, pathParams)
  1263  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1264  		if err != nil {
  1265  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1266  			return
  1267  		}
  1268  
  1269  		forward_RepositoryService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1270  
  1271  	})
  1272  
  1273  	mux.Handle("GET", pattern_RepositoryService_ListRepositories_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1274  		ctx, cancel := context.WithCancel(req.Context())
  1275  		defer cancel()
  1276  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1277  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1278  		if err != nil {
  1279  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1280  			return
  1281  		}
  1282  		resp, md, err := request_RepositoryService_ListRepositories_0(rctx, inboundMarshaler, client, req, pathParams)
  1283  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1284  		if err != nil {
  1285  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1286  			return
  1287  		}
  1288  
  1289  		forward_RepositoryService_ListRepositories_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1290  
  1291  	})
  1292  
  1293  	mux.Handle("GET", pattern_RepositoryService_ListRefs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1294  		ctx, cancel := context.WithCancel(req.Context())
  1295  		defer cancel()
  1296  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1297  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1298  		if err != nil {
  1299  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1300  			return
  1301  		}
  1302  		resp, md, err := request_RepositoryService_ListRefs_0(rctx, inboundMarshaler, client, req, pathParams)
  1303  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1304  		if err != nil {
  1305  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1306  			return
  1307  		}
  1308  
  1309  		forward_RepositoryService_ListRefs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1310  
  1311  	})
  1312  
  1313  	mux.Handle("GET", pattern_RepositoryService_ListApps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1314  		ctx, cancel := context.WithCancel(req.Context())
  1315  		defer cancel()
  1316  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1317  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1318  		if err != nil {
  1319  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1320  			return
  1321  		}
  1322  		resp, md, err := request_RepositoryService_ListApps_0(rctx, inboundMarshaler, client, req, pathParams)
  1323  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1324  		if err != nil {
  1325  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1326  			return
  1327  		}
  1328  
  1329  		forward_RepositoryService_ListApps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1330  
  1331  	})
  1332  
  1333  	mux.Handle("POST", pattern_RepositoryService_GetAppDetails_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1334  		ctx, cancel := context.WithCancel(req.Context())
  1335  		defer cancel()
  1336  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1337  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1338  		if err != nil {
  1339  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1340  			return
  1341  		}
  1342  		resp, md, err := request_RepositoryService_GetAppDetails_0(rctx, inboundMarshaler, client, req, pathParams)
  1343  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1344  		if err != nil {
  1345  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1346  			return
  1347  		}
  1348  
  1349  		forward_RepositoryService_GetAppDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1350  
  1351  	})
  1352  
  1353  	mux.Handle("GET", pattern_RepositoryService_GetHelmCharts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1354  		ctx, cancel := context.WithCancel(req.Context())
  1355  		defer cancel()
  1356  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1357  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1358  		if err != nil {
  1359  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1360  			return
  1361  		}
  1362  		resp, md, err := request_RepositoryService_GetHelmCharts_0(rctx, inboundMarshaler, client, req, pathParams)
  1363  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1364  		if err != nil {
  1365  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1366  			return
  1367  		}
  1368  
  1369  		forward_RepositoryService_GetHelmCharts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1370  
  1371  	})
  1372  
  1373  	mux.Handle("POST", pattern_RepositoryService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1374  		ctx, cancel := context.WithCancel(req.Context())
  1375  		defer cancel()
  1376  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1377  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1378  		if err != nil {
  1379  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1380  			return
  1381  		}
  1382  		resp, md, err := request_RepositoryService_Create_0(rctx, inboundMarshaler, client, req, pathParams)
  1383  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1384  		if err != nil {
  1385  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1386  			return
  1387  		}
  1388  
  1389  		forward_RepositoryService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1390  
  1391  	})
  1392  
  1393  	mux.Handle("POST", pattern_RepositoryService_CreateRepository_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1394  		ctx, cancel := context.WithCancel(req.Context())
  1395  		defer cancel()
  1396  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1397  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1398  		if err != nil {
  1399  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1400  			return
  1401  		}
  1402  		resp, md, err := request_RepositoryService_CreateRepository_0(rctx, inboundMarshaler, client, req, pathParams)
  1403  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1404  		if err != nil {
  1405  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1406  			return
  1407  		}
  1408  
  1409  		forward_RepositoryService_CreateRepository_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1410  
  1411  	})
  1412  
  1413  	mux.Handle("PUT", pattern_RepositoryService_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1414  		ctx, cancel := context.WithCancel(req.Context())
  1415  		defer cancel()
  1416  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1417  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1418  		if err != nil {
  1419  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1420  			return
  1421  		}
  1422  		resp, md, err := request_RepositoryService_Update_0(rctx, inboundMarshaler, client, req, pathParams)
  1423  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1424  		if err != nil {
  1425  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1426  			return
  1427  		}
  1428  
  1429  		forward_RepositoryService_Update_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1430  
  1431  	})
  1432  
  1433  	mux.Handle("PUT", pattern_RepositoryService_UpdateRepository_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1434  		ctx, cancel := context.WithCancel(req.Context())
  1435  		defer cancel()
  1436  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1437  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1438  		if err != nil {
  1439  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1440  			return
  1441  		}
  1442  		resp, md, err := request_RepositoryService_UpdateRepository_0(rctx, inboundMarshaler, client, req, pathParams)
  1443  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1444  		if err != nil {
  1445  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1446  			return
  1447  		}
  1448  
  1449  		forward_RepositoryService_UpdateRepository_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1450  
  1451  	})
  1452  
  1453  	mux.Handle("DELETE", pattern_RepositoryService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1454  		ctx, cancel := context.WithCancel(req.Context())
  1455  		defer cancel()
  1456  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1457  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1458  		if err != nil {
  1459  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1460  			return
  1461  		}
  1462  		resp, md, err := request_RepositoryService_Delete_0(rctx, inboundMarshaler, client, req, pathParams)
  1463  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1464  		if err != nil {
  1465  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1466  			return
  1467  		}
  1468  
  1469  		forward_RepositoryService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1470  
  1471  	})
  1472  
  1473  	mux.Handle("DELETE", pattern_RepositoryService_DeleteRepository_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1474  		ctx, cancel := context.WithCancel(req.Context())
  1475  		defer cancel()
  1476  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1477  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1478  		if err != nil {
  1479  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1480  			return
  1481  		}
  1482  		resp, md, err := request_RepositoryService_DeleteRepository_0(rctx, inboundMarshaler, client, req, pathParams)
  1483  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1484  		if err != nil {
  1485  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1486  			return
  1487  		}
  1488  
  1489  		forward_RepositoryService_DeleteRepository_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1490  
  1491  	})
  1492  
  1493  	mux.Handle("POST", pattern_RepositoryService_ValidateAccess_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1494  		ctx, cancel := context.WithCancel(req.Context())
  1495  		defer cancel()
  1496  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1497  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
  1498  		if err != nil {
  1499  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1500  			return
  1501  		}
  1502  		resp, md, err := request_RepositoryService_ValidateAccess_0(rctx, inboundMarshaler, client, req, pathParams)
  1503  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1504  		if err != nil {
  1505  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1506  			return
  1507  		}
  1508  
  1509  		forward_RepositoryService_ValidateAccess_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1510  
  1511  	})
  1512  
  1513  	return nil
  1514  }
  1515  
  1516  var (
  1517  	pattern_RepositoryService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "repositories"}, "", runtime.AssumeColonVerbOpt(true)))
  1518  
  1519  	pattern_RepositoryService_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "repositories", "repo"}, "", runtime.AssumeColonVerbOpt(true)))
  1520  
  1521  	pattern_RepositoryService_ListRepositories_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "repositories"}, "", runtime.AssumeColonVerbOpt(true)))
  1522  
  1523  	pattern_RepositoryService_ListRefs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "repositories", "repo", "refs"}, "", runtime.AssumeColonVerbOpt(true)))
  1524  
  1525  	pattern_RepositoryService_ListApps_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "repositories", "repo", "apps"}, "", runtime.AssumeColonVerbOpt(true)))
  1526  
  1527  	pattern_RepositoryService_GetAppDetails_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "repositories", "source.repoURL", "appdetails"}, "", runtime.AssumeColonVerbOpt(true)))
  1528  
  1529  	pattern_RepositoryService_GetHelmCharts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "repositories", "repo", "helmcharts"}, "", runtime.AssumeColonVerbOpt(true)))
  1530  
  1531  	pattern_RepositoryService_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "repositories"}, "", runtime.AssumeColonVerbOpt(true)))
  1532  
  1533  	pattern_RepositoryService_CreateRepository_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "repositories"}, "", runtime.AssumeColonVerbOpt(true)))
  1534  
  1535  	pattern_RepositoryService_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "repositories", "repo.repo"}, "", runtime.AssumeColonVerbOpt(true)))
  1536  
  1537  	pattern_RepositoryService_UpdateRepository_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "repositories", "repo.repo"}, "", runtime.AssumeColonVerbOpt(true)))
  1538  
  1539  	pattern_RepositoryService_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "repositories", "repo"}, "", runtime.AssumeColonVerbOpt(true)))
  1540  
  1541  	pattern_RepositoryService_DeleteRepository_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "repositories", "repo"}, "", runtime.AssumeColonVerbOpt(true)))
  1542  
  1543  	pattern_RepositoryService_ValidateAccess_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "repositories", "repo", "validate"}, "", runtime.AssumeColonVerbOpt(true)))
  1544  )
  1545  
  1546  var (
  1547  	forward_RepositoryService_List_0 = runtime.ForwardResponseMessage
  1548  
  1549  	forward_RepositoryService_Get_0 = runtime.ForwardResponseMessage
  1550  
  1551  	forward_RepositoryService_ListRepositories_0 = runtime.ForwardResponseMessage
  1552  
  1553  	forward_RepositoryService_ListRefs_0 = runtime.ForwardResponseMessage
  1554  
  1555  	forward_RepositoryService_ListApps_0 = runtime.ForwardResponseMessage
  1556  
  1557  	forward_RepositoryService_GetAppDetails_0 = runtime.ForwardResponseMessage
  1558  
  1559  	forward_RepositoryService_GetHelmCharts_0 = runtime.ForwardResponseMessage
  1560  
  1561  	forward_RepositoryService_Create_0 = runtime.ForwardResponseMessage
  1562  
  1563  	forward_RepositoryService_CreateRepository_0 = runtime.ForwardResponseMessage
  1564  
  1565  	forward_RepositoryService_Update_0 = runtime.ForwardResponseMessage
  1566  
  1567  	forward_RepositoryService_UpdateRepository_0 = runtime.ForwardResponseMessage
  1568  
  1569  	forward_RepositoryService_Delete_0 = runtime.ForwardResponseMessage
  1570  
  1571  	forward_RepositoryService_DeleteRepository_0 = runtime.ForwardResponseMessage
  1572  
  1573  	forward_RepositoryService_ValidateAccess_0 = runtime.ForwardResponseMessage
  1574  )