Documentation ¶
Overview ¶
Package cluster is a generated protocol buffer package.
Cluster Service ¶
Cluster Service API performs CRUD actions against cluster resources ¶
It is generated from these files:
server/cluster/cluster.proto
It has these top-level messages:
ClusterQuery ClusterResponse ClusterUpdateRequest
Package cluster is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterClusterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterClusterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClusterServiceClient) error
- func RegisterClusterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterClusterServiceServer(s *grpc.Server, srv ClusterServiceServer)
- type ClusterQuery
- type ClusterResponse
- type ClusterServiceClient
- type ClusterServiceServer
- type ClusterUpdateRequest
- func (*ClusterUpdateRequest) Descriptor() ([]byte, []int)
- func (m *ClusterUpdateRequest) GetCluster() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster
- func (m *ClusterUpdateRequest) GetServer() string
- func (*ClusterUpdateRequest) ProtoMessage()
- func (m *ClusterUpdateRequest) Reset()
- func (m *ClusterUpdateRequest) String() string
- type Server
- func (s *Server) Create(ctx context.Context, c *appv1.Cluster) (*appv1.Cluster, error)
- func (s *Server) Delete(ctx context.Context, q *ClusterQuery) (*ClusterResponse, error)
- func (s *Server) Get(ctx context.Context, q *ClusterQuery) (*appv1.Cluster, error)
- func (s *Server) List(ctx context.Context, q *ClusterQuery) (*appv1.ClusterList, error)
- func (s *Server) ListPods(ctx context.Context, q *ClusterQuery) (*apiv1.PodList, error)
- func (s *Server) Update(ctx context.Context, c *appv1.Cluster) (*appv1.Cluster, error)
- func (s *Server) UpdateREST(ctx context.Context, r *ClusterUpdateRequest) (*appv1.Cluster, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterClusterServiceHandler ¶
func RegisterClusterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterClusterServiceHandler registers the http handlers for service ClusterService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterClusterServiceHandlerClient ¶
func RegisterClusterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClusterServiceClient) error
RegisterClusterServiceHandler registers the http handlers for service ClusterService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClusterServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClusterServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ClusterServiceClient" to call the correct interceptors.
func RegisterClusterServiceHandlerFromEndpoint ¶
func RegisterClusterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterClusterServiceHandlerFromEndpoint is same as RegisterClusterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterClusterServiceServer ¶
func RegisterClusterServiceServer(s *grpc.Server, srv ClusterServiceServer)
Types ¶
type ClusterQuery ¶
type ClusterQuery struct {
Server string `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
}
ClusterQuery is a query for cluster resources
func (*ClusterQuery) Descriptor ¶
func (*ClusterQuery) Descriptor() ([]byte, []int)
func (*ClusterQuery) GetServer ¶
func (m *ClusterQuery) GetServer() string
func (*ClusterQuery) ProtoMessage ¶
func (*ClusterQuery) ProtoMessage()
func (*ClusterQuery) Reset ¶
func (m *ClusterQuery) Reset()
func (*ClusterQuery) String ¶
func (m *ClusterQuery) String() string
type ClusterResponse ¶
type ClusterResponse struct { }
func (*ClusterResponse) Descriptor ¶
func (*ClusterResponse) Descriptor() ([]byte, []int)
func (*ClusterResponse) ProtoMessage ¶
func (*ClusterResponse) ProtoMessage()
func (*ClusterResponse) Reset ¶
func (m *ClusterResponse) Reset()
func (*ClusterResponse) String ¶
func (m *ClusterResponse) String() string
type ClusterServiceClient ¶
type ClusterServiceClient interface { // List returns list of clusters List(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ClusterList, error) // Create creates a cluster Create(ctx context.Context, in *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Get returns a cluster by server address Get(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Update updates a cluster Update(ctx context.Context, in *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Update updates a cluster (special handler intended to be used only by the gRPC gateway) UpdateREST(ctx context.Context, in *ClusterUpdateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Delete updates a cluster Delete(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*ClusterResponse, error) // ListPods returns pods in a cluster ListPods(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*k8s_io_api_core_v1.PodList, error) }
func NewClusterServiceClient ¶
func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient
type ClusterServiceServer ¶
type ClusterServiceServer interface { // List returns list of clusters List(context.Context, *ClusterQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ClusterList, error) // Create creates a cluster Create(context.Context, *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Get returns a cluster by server address Get(context.Context, *ClusterQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Update updates a cluster Update(context.Context, *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Update updates a cluster (special handler intended to be used only by the gRPC gateway) UpdateREST(context.Context, *ClusterUpdateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Delete updates a cluster Delete(context.Context, *ClusterQuery) (*ClusterResponse, error) // ListPods returns pods in a cluster ListPods(context.Context, *ClusterQuery) (*k8s_io_api_core_v1.PodList, error) }
func NewServer ¶
func NewServer(namespace string, kubeclientset kubernetes.Interface, appclientset appclientset.Interface) ClusterServiceServer
NewServer returns a new instance of the Cluster service
type ClusterUpdateRequest ¶
type ClusterUpdateRequest struct { Server string `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"` Cluster *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` }
func (*ClusterUpdateRequest) Descriptor ¶
func (*ClusterUpdateRequest) Descriptor() ([]byte, []int)
func (*ClusterUpdateRequest) GetCluster ¶
func (m *ClusterUpdateRequest) GetCluster() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster
func (*ClusterUpdateRequest) GetServer ¶
func (m *ClusterUpdateRequest) GetServer() string
func (*ClusterUpdateRequest) ProtoMessage ¶
func (*ClusterUpdateRequest) ProtoMessage()
func (*ClusterUpdateRequest) Reset ¶
func (m *ClusterUpdateRequest) Reset()
func (*ClusterUpdateRequest) String ¶
func (m *ClusterUpdateRequest) String() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Cluster service
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, q *ClusterQuery) (*ClusterResponse, error)
Delete deletes a cluster by name
func (*Server) List ¶
func (s *Server) List(ctx context.Context, q *ClusterQuery) (*appv1.ClusterList, error)
List returns list of clusters
func (*Server) UpdateREST ¶
UpdateREST updates a cluster (special handler intended to be used only by the gRPC gateway)