Documentation ¶
Overview ¶
Package project is a generated protocol buffer package. Project Service Project Service API performs CRUD actions against project resources It is generated from these files: server/project/project.proto It has these top-level messages: ProjectCreateRequest ProjectQuery ProjectUpdateRequest EmptyResponse
Package project is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterProjectServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error
- func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
- type EmptyResponse
- func (*EmptyResponse) Descriptor() ([]byte, []int)
- func (m *EmptyResponse) Marshal() (dAtA []byte, err error)
- func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)
- func (*EmptyResponse) ProtoMessage()
- func (m *EmptyResponse) Reset()
- func (m *EmptyResponse) Size() (n int)
- func (m *EmptyResponse) String() string
- func (m *EmptyResponse) Unmarshal(dAtA []byte) error
- type ProjectCreateRequest
- func (*ProjectCreateRequest) Descriptor() ([]byte, []int)
- func (m *ProjectCreateRequest) GetProject() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject
- func (m *ProjectCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *ProjectCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ProjectCreateRequest) ProtoMessage()
- func (m *ProjectCreateRequest) Reset()
- func (m *ProjectCreateRequest) Size() (n int)
- func (m *ProjectCreateRequest) String() string
- func (m *ProjectCreateRequest) Unmarshal(dAtA []byte) error
- type ProjectQuery
- func (*ProjectQuery) Descriptor() ([]byte, []int)
- func (m *ProjectQuery) GetName() string
- func (m *ProjectQuery) Marshal() (dAtA []byte, err error)
- func (m *ProjectQuery) MarshalTo(dAtA []byte) (int, error)
- func (*ProjectQuery) ProtoMessage()
- func (m *ProjectQuery) Reset()
- func (m *ProjectQuery) Size() (n int)
- func (m *ProjectQuery) String() string
- func (m *ProjectQuery) Unmarshal(dAtA []byte) error
- type ProjectServiceClient
- type ProjectServiceServer
- type ProjectUpdateRequest
- func (*ProjectUpdateRequest) Descriptor() ([]byte, []int)
- func (m *ProjectUpdateRequest) GetProject() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject
- func (m *ProjectUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *ProjectUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ProjectUpdateRequest) ProtoMessage()
- func (m *ProjectUpdateRequest) Reset()
- func (m *ProjectUpdateRequest) Size() (n int)
- func (m *ProjectUpdateRequest) String() string
- func (m *ProjectUpdateRequest) Unmarshal(dAtA []byte) error
- type Server
- func (s *Server) Create(ctx context.Context, q *ProjectCreateRequest) (*v1alpha1.AppProject, error)
- func (s *Server) Delete(ctx context.Context, q *ProjectQuery) (*EmptyResponse, error)
- func (s *Server) Get(ctx context.Context, q *ProjectQuery) (*v1alpha1.AppProject, error)
- func (s *Server) List(ctx context.Context, q *ProjectQuery) (*v1alpha1.AppProjectList, error)
- func (s *Server) Update(ctx context.Context, q *ProjectUpdateRequest) (*v1alpha1.AppProject, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthProject = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProject = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterProjectServiceHandler ¶
func RegisterProjectServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProjectServiceHandler registers the http handlers for service ProjectService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProjectServiceHandlerClient ¶
func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error
RegisterProjectServiceHandler registers the http handlers for service ProjectService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProjectServiceClient" to call the correct interceptors.
func RegisterProjectServiceHandlerFromEndpoint ¶
func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProjectServiceHandlerFromEndpoint is same as RegisterProjectServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProjectServiceServer ¶
func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
Types ¶
type EmptyResponse ¶
type EmptyResponse struct { }
func (*EmptyResponse) Descriptor ¶
func (*EmptyResponse) Descriptor() ([]byte, []int)
func (*EmptyResponse) Marshal ¶
func (m *EmptyResponse) Marshal() (dAtA []byte, err error)
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) Reset ¶
func (m *EmptyResponse) Reset()
func (*EmptyResponse) Size ¶
func (m *EmptyResponse) Size() (n int)
func (*EmptyResponse) String ¶
func (m *EmptyResponse) String() string
func (*EmptyResponse) Unmarshal ¶
func (m *EmptyResponse) Unmarshal(dAtA []byte) error
type ProjectCreateRequest ¶
type ProjectCreateRequest struct {
Project *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
}
ProjectCreateRequest defines project creation parameters.
func (*ProjectCreateRequest) Descriptor ¶
func (*ProjectCreateRequest) Descriptor() ([]byte, []int)
func (*ProjectCreateRequest) GetProject ¶
func (m *ProjectCreateRequest) GetProject() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject
func (*ProjectCreateRequest) Marshal ¶
func (m *ProjectCreateRequest) Marshal() (dAtA []byte, err error)
func (*ProjectCreateRequest) MarshalTo ¶
func (m *ProjectCreateRequest) MarshalTo(dAtA []byte) (int, error)
func (*ProjectCreateRequest) ProtoMessage ¶
func (*ProjectCreateRequest) ProtoMessage()
func (*ProjectCreateRequest) Reset ¶
func (m *ProjectCreateRequest) Reset()
func (*ProjectCreateRequest) Size ¶
func (m *ProjectCreateRequest) Size() (n int)
func (*ProjectCreateRequest) String ¶
func (m *ProjectCreateRequest) String() string
func (*ProjectCreateRequest) Unmarshal ¶
func (m *ProjectCreateRequest) Unmarshal(dAtA []byte) error
type ProjectQuery ¶
type ProjectQuery struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
ProjectQuery is a query for Project resources
func (*ProjectQuery) Descriptor ¶
func (*ProjectQuery) Descriptor() ([]byte, []int)
func (*ProjectQuery) GetName ¶
func (m *ProjectQuery) GetName() string
func (*ProjectQuery) Marshal ¶
func (m *ProjectQuery) Marshal() (dAtA []byte, err error)
func (*ProjectQuery) ProtoMessage ¶
func (*ProjectQuery) ProtoMessage()
func (*ProjectQuery) Reset ¶
func (m *ProjectQuery) Reset()
func (*ProjectQuery) Size ¶
func (m *ProjectQuery) Size() (n int)
func (*ProjectQuery) String ¶
func (m *ProjectQuery) String() string
func (*ProjectQuery) Unmarshal ¶
func (m *ProjectQuery) Unmarshal(dAtA []byte) error
type ProjectServiceClient ¶
type ProjectServiceClient interface { // Create a new project. Create(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject, error) // List returns list of projects List(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProjectList, error) // Get returns a project by name Get(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject, error) // Update updates a project Update(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject, error) // Delete deletes a project Delete(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*EmptyResponse, error) }
func NewProjectServiceClient ¶
func NewProjectServiceClient(cc *grpc.ClientConn) ProjectServiceClient
type ProjectServiceServer ¶
type ProjectServiceServer interface { // Create a new project. Create(context.Context, *ProjectCreateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject, error) // List returns list of projects List(context.Context, *ProjectQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProjectList, error) // Get returns a project by name Get(context.Context, *ProjectQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject, error) // Update updates a project Update(context.Context, *ProjectUpdateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject, error) // Delete deletes a project Delete(context.Context, *ProjectQuery) (*EmptyResponse, error) }
type ProjectUpdateRequest ¶
type ProjectUpdateRequest struct {
Project *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
}
func (*ProjectUpdateRequest) Descriptor ¶
func (*ProjectUpdateRequest) Descriptor() ([]byte, []int)
func (*ProjectUpdateRequest) GetProject ¶
func (m *ProjectUpdateRequest) GetProject() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.AppProject
func (*ProjectUpdateRequest) Marshal ¶
func (m *ProjectUpdateRequest) Marshal() (dAtA []byte, err error)
func (*ProjectUpdateRequest) MarshalTo ¶
func (m *ProjectUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*ProjectUpdateRequest) ProtoMessage ¶
func (*ProjectUpdateRequest) ProtoMessage()
func (*ProjectUpdateRequest) Reset ¶
func (m *ProjectUpdateRequest) Reset()
func (*ProjectUpdateRequest) Size ¶
func (m *ProjectUpdateRequest) Size() (n int)
func (*ProjectUpdateRequest) String ¶
func (m *ProjectUpdateRequest) String() string
func (*ProjectUpdateRequest) Unmarshal ¶
func (m *ProjectUpdateRequest) Unmarshal(dAtA []byte) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Project service
func NewServer ¶
func NewServer(ns string, kubeclientset kubernetes.Interface, appclientset appclientset.Interface, enf *rbac.Enforcer, projectLock *util.KeyLock) *Server
NewServer returns a new instance of the Project service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, q *ProjectCreateRequest) (*v1alpha1.AppProject, error)
Create a new project.
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, q *ProjectQuery) (*EmptyResponse, error)
Delete deletes a project
func (*Server) Get ¶
func (s *Server) Get(ctx context.Context, q *ProjectQuery) (*v1alpha1.AppProject, error)
Get returns a project by name
func (*Server) List ¶
func (s *Server) List(ctx context.Context, q *ProjectQuery) (*v1alpha1.AppProjectList, error)
List returns list of projects
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, q *ProjectUpdateRequest) (*v1alpha1.AppProject, error)
Update updates a project