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 ¶
- 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
- type RepoResponse
- 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 (*RepoUpdateRequest) ProtoMessage()
- func (m *RepoUpdateRequest) Reset()
- func (m *RepoUpdateRequest) String() string
- 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 ¶
This section is empty.
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" 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) ProtoMessage ¶
func (*RepoResponse) ProtoMessage()
func (*RepoResponse) Reset ¶
func (m *RepoResponse) Reset()
func (*RepoResponse) String ¶
func (m *RepoResponse) String() string
type RepoUpdateRequest ¶
type RepoUpdateRequest struct { Url string `protobuf:"bytes,1,opt,name=url" 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) ProtoMessage ¶
func (*RepoUpdateRequest) ProtoMessage()
func (*RepoUpdateRequest) Reset ¶
func (m *RepoUpdateRequest) Reset()
func (*RepoUpdateRequest) String ¶
func (m *RepoUpdateRequest) String() string
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 NewServer ¶
func NewServer(namespace string, kubeclientset kubernetes.Interface, appclientset appclientset.Interface) *Server
NewServer returns a new instance of the 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)