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 ClusterCreateRequest ClusterCreateFromKubeConfigRequest ClusterUpdateRequest
Package cluster is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- 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 ClusterCreateFromKubeConfigRequest
- func (*ClusterCreateFromKubeConfigRequest) Descriptor() ([]byte, []int)
- func (m *ClusterCreateFromKubeConfigRequest) GetContext() string
- func (m *ClusterCreateFromKubeConfigRequest) GetInCluster() bool
- func (m *ClusterCreateFromKubeConfigRequest) GetKubeconfig() string
- func (m *ClusterCreateFromKubeConfigRequest) GetUpsert() bool
- func (m *ClusterCreateFromKubeConfigRequest) Marshal() (dAtA []byte, err error)
- func (m *ClusterCreateFromKubeConfigRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ClusterCreateFromKubeConfigRequest) ProtoMessage()
- func (m *ClusterCreateFromKubeConfigRequest) Reset()
- func (m *ClusterCreateFromKubeConfigRequest) Size() (n int)
- func (m *ClusterCreateFromKubeConfigRequest) String() string
- func (m *ClusterCreateFromKubeConfigRequest) Unmarshal(dAtA []byte) error
- type ClusterCreateRequest
- func (*ClusterCreateRequest) Descriptor() ([]byte, []int)
- func (m *ClusterCreateRequest) GetCluster() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster
- func (m *ClusterCreateRequest) GetUpsert() bool
- func (m *ClusterCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *ClusterCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ClusterCreateRequest) ProtoMessage()
- func (m *ClusterCreateRequest) Reset()
- func (m *ClusterCreateRequest) Size() (n int)
- func (m *ClusterCreateRequest) String() string
- func (m *ClusterCreateRequest) Unmarshal(dAtA []byte) error
- type ClusterQuery
- func (*ClusterQuery) Descriptor() ([]byte, []int)
- func (m *ClusterQuery) GetServer() string
- func (m *ClusterQuery) Marshal() (dAtA []byte, err error)
- func (m *ClusterQuery) MarshalTo(dAtA []byte) (int, error)
- func (*ClusterQuery) ProtoMessage()
- func (m *ClusterQuery) Reset()
- func (m *ClusterQuery) Size() (n int)
- func (m *ClusterQuery) String() string
- func (m *ClusterQuery) Unmarshal(dAtA []byte) error
- type ClusterResponse
- func (*ClusterResponse) Descriptor() ([]byte, []int)
- func (m *ClusterResponse) Marshal() (dAtA []byte, err error)
- func (m *ClusterResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ClusterResponse) ProtoMessage()
- func (m *ClusterResponse) Reset()
- func (m *ClusterResponse) Size() (n int)
- func (m *ClusterResponse) String() string
- func (m *ClusterResponse) Unmarshal(dAtA []byte) error
- 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) Marshal() (dAtA []byte, err error)
- func (m *ClusterUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ClusterUpdateRequest) ProtoMessage()
- func (m *ClusterUpdateRequest) Reset()
- func (m *ClusterUpdateRequest) Size() (n int)
- func (m *ClusterUpdateRequest) String() string
- func (m *ClusterUpdateRequest) Unmarshal(dAtA []byte) error
- type Server
- func (s *Server) Create(ctx context.Context, q *ClusterCreateRequest) (*appv1.Cluster, error)
- func (s *Server) CreateFromKubeConfig(ctx context.Context, q *ClusterCreateFromKubeConfigRequest) (*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) Update(ctx context.Context, q *ClusterUpdateRequest) (*appv1.Cluster, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCluster = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCluster = fmt.Errorf("proto: integer overflow") )
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 ClusterCreateFromKubeConfigRequest ¶ added in v0.8.0
type ClusterCreateFromKubeConfigRequest struct { Kubeconfig string `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` Context string `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"` Upsert bool `protobuf:"varint,3,opt,name=upsert,proto3" json:"upsert,omitempty"` InCluster bool `protobuf:"varint,4,opt,name=inCluster,proto3" json:"inCluster,omitempty"` }
func (*ClusterCreateFromKubeConfigRequest) Descriptor ¶ added in v0.8.0
func (*ClusterCreateFromKubeConfigRequest) Descriptor() ([]byte, []int)
func (*ClusterCreateFromKubeConfigRequest) GetContext ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) GetContext() string
func (*ClusterCreateFromKubeConfigRequest) GetInCluster ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) GetInCluster() bool
func (*ClusterCreateFromKubeConfigRequest) GetKubeconfig ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) GetKubeconfig() string
func (*ClusterCreateFromKubeConfigRequest) GetUpsert ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) GetUpsert() bool
func (*ClusterCreateFromKubeConfigRequest) Marshal ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) Marshal() (dAtA []byte, err error)
func (*ClusterCreateFromKubeConfigRequest) MarshalTo ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) MarshalTo(dAtA []byte) (int, error)
func (*ClusterCreateFromKubeConfigRequest) ProtoMessage ¶ added in v0.8.0
func (*ClusterCreateFromKubeConfigRequest) ProtoMessage()
func (*ClusterCreateFromKubeConfigRequest) Reset ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) Reset()
func (*ClusterCreateFromKubeConfigRequest) Size ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) Size() (n int)
func (*ClusterCreateFromKubeConfigRequest) String ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) String() string
func (*ClusterCreateFromKubeConfigRequest) Unmarshal ¶ added in v0.8.0
func (m *ClusterCreateFromKubeConfigRequest) Unmarshal(dAtA []byte) error
type ClusterCreateRequest ¶ added in v0.5.0
type ClusterCreateRequest struct { Cluster *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster `protobuf:"bytes,1,opt,name=cluster" json:"cluster,omitempty"` Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"` }
func (*ClusterCreateRequest) Descriptor ¶ added in v0.5.0
func (*ClusterCreateRequest) Descriptor() ([]byte, []int)
func (*ClusterCreateRequest) GetCluster ¶ added in v0.5.0
func (m *ClusterCreateRequest) GetCluster() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster
func (*ClusterCreateRequest) GetUpsert ¶ added in v0.6.0
func (m *ClusterCreateRequest) GetUpsert() bool
func (*ClusterCreateRequest) Marshal ¶ added in v0.5.0
func (m *ClusterCreateRequest) Marshal() (dAtA []byte, err error)
func (*ClusterCreateRequest) MarshalTo ¶ added in v0.5.0
func (m *ClusterCreateRequest) MarshalTo(dAtA []byte) (int, error)
func (*ClusterCreateRequest) ProtoMessage ¶ added in v0.5.0
func (*ClusterCreateRequest) ProtoMessage()
func (*ClusterCreateRequest) Reset ¶ added in v0.5.0
func (m *ClusterCreateRequest) Reset()
func (*ClusterCreateRequest) Size ¶ added in v0.5.0
func (m *ClusterCreateRequest) Size() (n int)
func (*ClusterCreateRequest) String ¶ added in v0.5.0
func (m *ClusterCreateRequest) String() string
func (*ClusterCreateRequest) Unmarshal ¶ added in v0.5.0
func (m *ClusterCreateRequest) Unmarshal(dAtA []byte) error
type ClusterQuery ¶
type ClusterQuery struct {
Server string `protobuf:"bytes,1,opt,name=server,proto3" 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) Marshal ¶ added in v0.3.1
func (m *ClusterQuery) Marshal() (dAtA []byte, err error)
func (*ClusterQuery) MarshalTo ¶ added in v0.3.1
func (m *ClusterQuery) MarshalTo(dAtA []byte) (int, error)
func (*ClusterQuery) ProtoMessage ¶
func (*ClusterQuery) ProtoMessage()
func (*ClusterQuery) Reset ¶
func (m *ClusterQuery) Reset()
func (*ClusterQuery) Size ¶ added in v0.3.1
func (m *ClusterQuery) Size() (n int)
func (*ClusterQuery) String ¶
func (m *ClusterQuery) String() string
func (*ClusterQuery) Unmarshal ¶ added in v0.3.1
func (m *ClusterQuery) Unmarshal(dAtA []byte) error
type ClusterResponse ¶
type ClusterResponse struct { }
func (*ClusterResponse) Descriptor ¶
func (*ClusterResponse) Descriptor() ([]byte, []int)
func (*ClusterResponse) Marshal ¶ added in v0.3.1
func (m *ClusterResponse) Marshal() (dAtA []byte, err error)
func (*ClusterResponse) MarshalTo ¶ added in v0.3.1
func (m *ClusterResponse) MarshalTo(dAtA []byte) (int, error)
func (*ClusterResponse) ProtoMessage ¶
func (*ClusterResponse) ProtoMessage()
func (*ClusterResponse) Reset ¶
func (m *ClusterResponse) Reset()
func (*ClusterResponse) Size ¶ added in v0.3.1
func (m *ClusterResponse) Size() (n int)
func (*ClusterResponse) String ¶
func (m *ClusterResponse) String() string
func (*ClusterResponse) Unmarshal ¶ added in v0.3.1
func (m *ClusterResponse) Unmarshal(dAtA []byte) error
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 *ClusterCreateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // CreateFromKubeConfig installs the argocd-manager service account into the cluster specified in the given kubeconfig and context CreateFromKubeConfig(ctx context.Context, in *ClusterCreateFromKubeConfigRequest, 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 *ClusterUpdateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Delete deletes a cluster Delete(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*ClusterResponse, 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, *ClusterCreateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // CreateFromKubeConfig installs the argocd-manager service account into the cluster specified in the given kubeconfig and context CreateFromKubeConfig(context.Context, *ClusterCreateFromKubeConfigRequest) (*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, *ClusterUpdateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster, error) // Delete deletes a cluster Delete(context.Context, *ClusterQuery) (*ClusterResponse, error) }
type ClusterUpdateRequest ¶
type ClusterUpdateRequest struct {
Cluster *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Cluster `protobuf:"bytes,1,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) Marshal ¶ added in v0.3.1
func (m *ClusterUpdateRequest) Marshal() (dAtA []byte, err error)
func (*ClusterUpdateRequest) MarshalTo ¶ added in v0.3.1
func (m *ClusterUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*ClusterUpdateRequest) ProtoMessage ¶
func (*ClusterUpdateRequest) ProtoMessage()
func (*ClusterUpdateRequest) Reset ¶
func (m *ClusterUpdateRequest) Reset()
func (*ClusterUpdateRequest) Size ¶ added in v0.3.1
func (m *ClusterUpdateRequest) Size() (n int)
func (*ClusterUpdateRequest) String ¶
func (m *ClusterUpdateRequest) String() string
func (*ClusterUpdateRequest) Unmarshal ¶ added in v0.3.1
func (m *ClusterUpdateRequest) Unmarshal(dAtA []byte) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Cluster service
func (*Server) CreateFromKubeConfig ¶ added in v0.8.0
func (s *Server) CreateFromKubeConfig(ctx context.Context, q *ClusterCreateFromKubeConfigRequest) (*appv1.Cluster, error)
Create creates a cluster
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