Documentation ¶
Overview ¶
Package repository is a generated protocol buffer package. Repository Service Repository Service API performs CRUD actions against repository resources It is generated from these files: server/repository/repository.proto It has these top-level messages: RepoQuery RepoResponse RepoUpdateRequest
Package repository is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRepositoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepositoryServiceClient) error
- func RegisterRepositoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer)
- type RepoQuery
- func (*RepoQuery) Descriptor() ([]byte, []int)
- func (m *RepoQuery) GetRepo() string
- func (m *RepoQuery) Marshal() (dAtA []byte, err error)
- func (m *RepoQuery) MarshalTo(dAtA []byte) (int, error)
- func (*RepoQuery) ProtoMessage()
- func (m *RepoQuery) Reset()
- func (m *RepoQuery) Size() (n int)
- func (m *RepoQuery) String() string
- func (m *RepoQuery) Unmarshal(dAtA []byte) error
- type RepoResponse
- func (*RepoResponse) Descriptor() ([]byte, []int)
- func (m *RepoResponse) Marshal() (dAtA []byte, err error)
- func (m *RepoResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RepoResponse) ProtoMessage()
- func (m *RepoResponse) Reset()
- func (m *RepoResponse) Size() (n int)
- func (m *RepoResponse) String() string
- func (m *RepoResponse) Unmarshal(dAtA []byte) error
- type RepoUpdateRequest
- func (*RepoUpdateRequest) Descriptor() ([]byte, []int)
- func (m *RepoUpdateRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
- func (m *RepoUpdateRequest) GetUrl() string
- func (m *RepoUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *RepoUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RepoUpdateRequest) ProtoMessage()
- func (m *RepoUpdateRequest) Reset()
- func (m *RepoUpdateRequest) Size() (n int)
- func (m *RepoUpdateRequest) String() string
- func (m *RepoUpdateRequest) Unmarshal(dAtA []byte) error
- type RepositoryServiceClient
- type RepositoryServiceServer
- type Server
- func (s *Server) Create(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error)
- func (s *Server) Delete(ctx context.Context, q *RepoQuery) (*RepoResponse, error)
- func (s *Server) Get(ctx context.Context, q *RepoQuery) (*appsv1.Repository, error)
- func (s *Server) List(ctx context.Context, q *RepoQuery) (*appsv1.RepositoryList, error)
- func (s *Server) Update(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error)
- func (s *Server) UpdateREST(ctx context.Context, r *RepoUpdateRequest) (*appsv1.Repository, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthRepository = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRepository = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterRepositoryServiceHandler ¶
func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRepositoryServiceHandler registers the http handlers for service RepositoryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRepositoryServiceHandlerClient ¶
func RegisterRepositoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepositoryServiceClient) error
RegisterRepositoryServiceHandler registers the http handlers for service RepositoryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RepositoryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RepositoryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RepositoryServiceClient" to call the correct interceptors.
func RegisterRepositoryServiceHandlerFromEndpoint ¶
func RegisterRepositoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRepositoryServiceHandlerFromEndpoint is same as RegisterRepositoryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRepositoryServiceServer ¶
func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer)
Types ¶
type RepoQuery ¶
type RepoQuery struct {
Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
}
RepoQuery is a query for Repository resources
func (*RepoQuery) Descriptor ¶
func (*RepoQuery) ProtoMessage ¶
func (*RepoQuery) ProtoMessage()
type RepoResponse ¶
type RepoResponse struct { }
func (*RepoResponse) Descriptor ¶
func (*RepoResponse) Descriptor() ([]byte, []int)
func (*RepoResponse) Marshal ¶ added in v0.3.1
func (m *RepoResponse) Marshal() (dAtA []byte, err error)
func (*RepoResponse) MarshalTo ¶ added in v0.3.1
func (m *RepoResponse) MarshalTo(dAtA []byte) (int, error)
func (*RepoResponse) ProtoMessage ¶
func (*RepoResponse) ProtoMessage()
func (*RepoResponse) Reset ¶
func (m *RepoResponse) Reset()
func (*RepoResponse) Size ¶ added in v0.3.1
func (m *RepoResponse) Size() (n int)
func (*RepoResponse) String ¶
func (m *RepoResponse) String() string
func (*RepoResponse) Unmarshal ¶ added in v0.3.1
func (m *RepoResponse) Unmarshal(dAtA []byte) error
type RepoUpdateRequest ¶
type RepoUpdateRequest struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Repo *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository `protobuf:"bytes,2,opt,name=repo" json:"repo,omitempty"` }
func (*RepoUpdateRequest) Descriptor ¶
func (*RepoUpdateRequest) Descriptor() ([]byte, []int)
func (*RepoUpdateRequest) GetRepo ¶
func (m *RepoUpdateRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
func (*RepoUpdateRequest) GetUrl ¶
func (m *RepoUpdateRequest) GetUrl() string
func (*RepoUpdateRequest) Marshal ¶ added in v0.3.1
func (m *RepoUpdateRequest) Marshal() (dAtA []byte, err error)
func (*RepoUpdateRequest) MarshalTo ¶ added in v0.3.1
func (m *RepoUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*RepoUpdateRequest) ProtoMessage ¶
func (*RepoUpdateRequest) ProtoMessage()
func (*RepoUpdateRequest) Reset ¶
func (m *RepoUpdateRequest) Reset()
func (*RepoUpdateRequest) Size ¶ added in v0.3.1
func (m *RepoUpdateRequest) Size() (n int)
func (*RepoUpdateRequest) String ¶
func (m *RepoUpdateRequest) String() string
func (*RepoUpdateRequest) Unmarshal ¶ added in v0.3.1
func (m *RepoUpdateRequest) Unmarshal(dAtA []byte) error
type RepositoryServiceClient ¶
type RepositoryServiceClient interface { // List returns list of repos List(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.RepositoryList, error) // Create creates a repo Create(ctx context.Context, in *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Get returns a repo by name Get(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Update updates a repo Update(ctx context.Context, in *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Update updates a repo (special handler intended to be used only by the gRPC gateway) UpdateREST(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Delete updates a repo Delete(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) }
func NewRepositoryServiceClient ¶
func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient
type RepositoryServiceServer ¶
type RepositoryServiceServer interface { // List returns list of repos List(context.Context, *RepoQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.RepositoryList, error) // Create creates a repo Create(context.Context, *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Get returns a repo by name Get(context.Context, *RepoQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Update updates a repo Update(context.Context, *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Update updates a repo (special handler intended to be used only by the gRPC gateway) UpdateREST(context.Context, *RepoUpdateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Delete updates a repo Delete(context.Context, *RepoQuery) (*RepoResponse, error) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Repository service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error)
Create creates a repository
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error)
Update updates a repository
func (*Server) UpdateREST ¶
func (s *Server) UpdateREST(ctx context.Context, r *RepoUpdateRequest) (*appsv1.Repository, error)
UpdateREST updates a repository (from a REST request)