Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterClusterHTTPServer(s *http.Server, srv ClusterHTTPServer)
- func RegisterClusterServer(s grpc.ServiceRegistrar, srv ClusterServer)
- type ClusterClient
- type ClusterHTTPClient
- type ClusterHTTPClientImpl
- func (c *ClusterHTTPClientImpl) DeleteCluster(ctx context.Context, in *DeleteRequest, opts ...http.CallOption) (*DeleteReply, error)
- func (c *ClusterHTTPClientImpl) GetCluster(ctx context.Context, in *GetRequest, opts ...http.CallOption) (*GetReply, error)
- func (c *ClusterHTTPClientImpl) ListClusters(ctx context.Context, in *ListsRequest, opts ...http.CallOption) (*ListsReply, error)
- func (c *ClusterHTTPClientImpl) SaveCluster(ctx context.Context, in *SaveRequest, opts ...http.CallOption) (*SaveReply, error)
- type ClusterHTTPServer
- type ClusterServer
- type DeleteReply
- func (*DeleteReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteReply) GetMsg() string
- func (*DeleteReply) ProtoMessage()
- func (x *DeleteReply) ProtoReflect() protoreflect.Message
- func (x *DeleteReply) Reset()
- func (x *DeleteReply) String() string
- func (m *DeleteReply) Validate() error
- func (m *DeleteReply) ValidateAll() error
- type DeleteReplyMultiError
- type DeleteReplyValidationError
- func (e DeleteReplyValidationError) Cause() error
- func (e DeleteReplyValidationError) Error() string
- func (e DeleteReplyValidationError) ErrorName() string
- func (e DeleteReplyValidationError) Field() string
- func (e DeleteReplyValidationError) Key() bool
- func (e DeleteReplyValidationError) Reason() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetClusterName() string
- func (x *DeleteRequest) GetInsecureSkipCheck() bool
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type GetReply
- func (*GetReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetReply) GetApiServer() string
- func (x *GetReply) GetClusterKind() string
- func (x *GetReply) GetClusterType() string
- func (x *GetReply) GetHostCluster() string
- func (x *GetReply) GetName() string
- func (x *GetReply) GetPrimaryDomain() string
- func (x *GetReply) GetUsage() string
- func (x *GetReply) GetWorkerType() string
- func (*GetReply) ProtoMessage()
- func (x *GetReply) ProtoReflect() protoreflect.Message
- func (x *GetReply) Reset()
- func (x *GetReply) String() string
- type GetRequest
- type ListsReply
- type ListsRequest
- type SaveReply
- func (*SaveReply) Descriptor() ([]byte, []int)deprecated
- func (x *SaveReply) GetMsg() string
- func (*SaveReply) ProtoMessage()
- func (x *SaveReply) ProtoReflect() protoreflect.Message
- func (x *SaveReply) Reset()
- func (x *SaveReply) String() string
- func (m *SaveReply) Validate() error
- func (m *SaveReply) ValidateAll() error
- type SaveReplyMultiError
- type SaveReplyValidationError
- type SaveRequest
- func (*SaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveRequest) GetBody() *SaveRequest_Body
- func (x *SaveRequest) GetClusterName() string
- func (x *SaveRequest) GetInsecureSkipCheck() bool
- func (*SaveRequest) ProtoMessage()
- func (x *SaveRequest) ProtoReflect() protoreflect.Message
- func (x *SaveRequest) Reset()
- func (x *SaveRequest) String() string
- func (m *SaveRequest) Validate() error
- func (m *SaveRequest) ValidateAll() error
- type SaveRequestMultiError
- type SaveRequestValidationError
- func (e SaveRequestValidationError) Cause() error
- func (e SaveRequestValidationError) Error() string
- func (e SaveRequestValidationError) ErrorName() string
- func (e SaveRequestValidationError) Field() string
- func (e SaveRequestValidationError) Key() bool
- func (e SaveRequestValidationError) Reason() string
- type SaveRequest_Body
- func (*SaveRequest_Body) Descriptor() ([]byte, []int)deprecated
- func (x *SaveRequest_Body) GetApiServer() string
- func (x *SaveRequest_Body) GetArgocdHost() string
- func (x *SaveRequest_Body) GetClusterKind() string
- func (x *SaveRequest_Body) GetClusterType() string
- func (x *SaveRequest_Body) GetHostCluster() string
- func (x *SaveRequest_Body) GetKubeconfig() string
- func (x *SaveRequest_Body) GetPrimaryDomain() string
- func (x *SaveRequest_Body) GetTektonHost() string
- func (x *SaveRequest_Body) GetTraefik() *Traefik
- func (x *SaveRequest_Body) GetUsage() string
- func (x *SaveRequest_Body) GetVcluster() *Vcluster
- func (x *SaveRequest_Body) GetWorkerType() string
- func (*SaveRequest_Body) ProtoMessage()
- func (x *SaveRequest_Body) ProtoReflect() protoreflect.Message
- func (x *SaveRequest_Body) Reset()
- func (x *SaveRequest_Body) String() string
- func (m *SaveRequest_Body) Validate() error
- func (m *SaveRequest_Body) ValidateAll() error
- type SaveRequest_BodyMultiError
- type SaveRequest_BodyValidationError
- func (e SaveRequest_BodyValidationError) Cause() error
- func (e SaveRequest_BodyValidationError) Error() string
- func (e SaveRequest_BodyValidationError) ErrorName() string
- func (e SaveRequest_BodyValidationError) Field() string
- func (e SaveRequest_BodyValidationError) Key() bool
- func (e SaveRequest_BodyValidationError) Reason() string
- type Traefik
- func (*Traefik) Descriptor() ([]byte, []int)deprecated
- func (x *Traefik) GetHttpNodePort() string
- func (x *Traefik) GetHttpsNodePort() string
- func (*Traefik) ProtoMessage()
- func (x *Traefik) ProtoReflect() protoreflect.Message
- func (x *Traefik) Reset()
- func (x *Traefik) String() string
- func (m *Traefik) Validate() error
- func (m *Traefik) ValidateAll() error
- type TraefikMultiError
- type TraefikValidationError
- type UnimplementedClusterServer
- func (UnimplementedClusterServer) DeleteCluster(context.Context, *DeleteRequest) (*DeleteReply, error)
- func (UnimplementedClusterServer) GetCluster(context.Context, *GetRequest) (*GetReply, error)
- func (UnimplementedClusterServer) ListClusters(context.Context, *ListsRequest) (*ListsReply, error)
- func (UnimplementedClusterServer) SaveCluster(context.Context, *SaveRequest) (*SaveReply, error)
- type UnsafeClusterServer
- type Vcluster
- func (*Vcluster) Descriptor() ([]byte, []int)deprecated
- func (x *Vcluster) GetHttpsNodePort() string
- func (*Vcluster) ProtoMessage()
- func (x *Vcluster) ProtoReflect() protoreflect.Message
- func (x *Vcluster) Reset()
- func (x *Vcluster) String() string
- func (m *Vcluster) Validate() error
- func (m *Vcluster) ValidateAll() error
- type VclusterMultiError
- type VclusterValidationError
Constants ¶
const OperationClusterDeleteCluster = "/api.cluster.v1.Cluster/DeleteCluster"
const OperationClusterGetCluster = "/api.cluster.v1.Cluster/GetCluster"
const OperationClusterListClusters = "/api.cluster.v1.Cluster/ListClusters"
const OperationClusterSaveCluster = "/api.cluster.v1.Cluster/SaveCluster"
Variables ¶
var Cluster_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.cluster.v1.Cluster", HandlerType: (*ClusterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCluster", Handler: _Cluster_GetCluster_Handler, }, { MethodName: "ListClusters", Handler: _Cluster_ListClusters_Handler, }, { MethodName: "SaveCluster", Handler: _Cluster_SaveCluster_Handler, }, { MethodName: "DeleteCluster", Handler: _Cluster_DeleteCluster_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cluster/v1/cluster.proto", }
Cluster_ServiceDesc is the grpc.ServiceDesc for Cluster service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cluster_v1_cluster_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClusterHTTPServer ¶
func RegisterClusterHTTPServer(s *http.Server, srv ClusterHTTPServer)
func RegisterClusterServer ¶
func RegisterClusterServer(s grpc.ServiceRegistrar, srv ClusterServer)
Types ¶
type ClusterClient ¶
type ClusterClient interface { GetCluster(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error) ListClusters(ctx context.Context, in *ListsRequest, opts ...grpc.CallOption) (*ListsReply, error) SaveCluster(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (*SaveReply, error) DeleteCluster(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteReply, error) }
ClusterClient is the client API for Cluster service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewClusterClient ¶
func NewClusterClient(cc grpc.ClientConnInterface) ClusterClient
type ClusterHTTPClient ¶
type ClusterHTTPClient interface { DeleteCluster(ctx context.Context, req *DeleteRequest, opts ...http.CallOption) (rsp *DeleteReply, err error) GetCluster(ctx context.Context, req *GetRequest, opts ...http.CallOption) (rsp *GetReply, err error) ListClusters(ctx context.Context, req *ListsRequest, opts ...http.CallOption) (rsp *ListsReply, err error) SaveCluster(ctx context.Context, req *SaveRequest, opts ...http.CallOption) (rsp *SaveReply, err error) }
func NewClusterHTTPClient ¶
func NewClusterHTTPClient(client *http.Client) ClusterHTTPClient
type ClusterHTTPClientImpl ¶
type ClusterHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ClusterHTTPClientImpl) DeleteCluster ¶
func (c *ClusterHTTPClientImpl) DeleteCluster(ctx context.Context, in *DeleteRequest, opts ...http.CallOption) (*DeleteReply, error)
func (*ClusterHTTPClientImpl) GetCluster ¶ added in v0.3.1
func (c *ClusterHTTPClientImpl) GetCluster(ctx context.Context, in *GetRequest, opts ...http.CallOption) (*GetReply, error)
func (*ClusterHTTPClientImpl) ListClusters ¶ added in v0.3.1
func (c *ClusterHTTPClientImpl) ListClusters(ctx context.Context, in *ListsRequest, opts ...http.CallOption) (*ListsReply, error)
func (*ClusterHTTPClientImpl) SaveCluster ¶
func (c *ClusterHTTPClientImpl) SaveCluster(ctx context.Context, in *SaveRequest, opts ...http.CallOption) (*SaveReply, error)
type ClusterHTTPServer ¶
type ClusterHTTPServer interface { DeleteCluster(context.Context, *DeleteRequest) (*DeleteReply, error) GetCluster(context.Context, *GetRequest) (*GetReply, error) ListClusters(context.Context, *ListsRequest) (*ListsReply, error) SaveCluster(context.Context, *SaveRequest) (*SaveReply, error) }
type ClusterServer ¶
type ClusterServer interface { GetCluster(context.Context, *GetRequest) (*GetReply, error) ListClusters(context.Context, *ListsRequest) (*ListsReply, error) SaveCluster(context.Context, *SaveRequest) (*SaveReply, error) DeleteCluster(context.Context, *DeleteRequest) (*DeleteReply, error) // contains filtered or unexported methods }
ClusterServer is the server API for Cluster service. All implementations must embed UnimplementedClusterServer for forward compatibility
type DeleteReply ¶
type DeleteReply struct { // msg specifies the message of the delete response. Msg string `protobuf:"bytes,1,opt,name=msg,json=message,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
DeleteReply represents a response to a delete request.
func (*DeleteReply) Descriptor
deprecated
func (*DeleteReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReply.ProtoReflect.Descriptor instead.
func (*DeleteReply) GetMsg ¶
func (x *DeleteReply) GetMsg() string
func (*DeleteReply) ProtoMessage ¶
func (*DeleteReply) ProtoMessage()
func (*DeleteReply) ProtoReflect ¶
func (x *DeleteReply) ProtoReflect() protoreflect.Message
func (*DeleteReply) Reset ¶
func (x *DeleteReply) Reset()
func (*DeleteReply) String ¶
func (x *DeleteReply) String() string
func (*DeleteReply) Validate ¶
func (m *DeleteReply) Validate() error
Validate checks the field values on DeleteReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteReply) ValidateAll ¶
func (m *DeleteReply) ValidateAll() error
ValidateAll checks the field values on DeleteReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteReplyMultiError, or nil if none found.
type DeleteReplyMultiError ¶
type DeleteReplyMultiError []error
DeleteReplyMultiError is an error wrapping multiple validation errors returned by DeleteReply.ValidateAll() if the designated constraints aren't met.
func (DeleteReplyMultiError) AllErrors ¶
func (m DeleteReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteReplyMultiError) Error ¶
func (m DeleteReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteReplyValidationError ¶
type DeleteReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteReplyValidationError is the validation error returned by DeleteReply.Validate if the designated constraints aren't met.
func (DeleteReplyValidationError) Cause ¶
func (e DeleteReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteReplyValidationError) Error ¶
func (e DeleteReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteReplyValidationError) ErrorName ¶
func (e DeleteReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteReplyValidationError) Field ¶
func (e DeleteReplyValidationError) Field() string
Field function returns field value.
func (DeleteReplyValidationError) Key ¶
func (e DeleteReplyValidationError) Key() bool
Key function returns key value.
func (DeleteReplyValidationError) Reason ¶
func (e DeleteReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteRequest ¶
type DeleteRequest struct { // ClusterName is the name of the cluster. ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,proto3" json:"cluster_name,omitempty"` // InsecureSkipCheck specifies whether to skip security checks. InsecureSkipCheck bool `protobuf:"varint,2,opt,name=insecure_skip_check,proto3" json:"insecure_skip_check,omitempty"` // contains filtered or unexported fields }
DeleteRequest represents a request to delete a cluster.
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetClusterName ¶
func (x *DeleteRequest) GetClusterName() string
func (*DeleteRequest) GetInsecureSkipCheck ¶
func (x *DeleteRequest) GetInsecureSkipCheck() bool
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRequest) ValidateAll ¶
func (m *DeleteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.
type DeleteRequestMultiError ¶
type DeleteRequestMultiError []error
DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRequestMultiError) AllErrors ¶
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type GetReply ¶ added in v0.3.1
type GetReply struct { // name is the name of the cluster. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // cluster_kind is the kind of the cluster. ClusterKind string `protobuf:"bytes,2,opt,name=cluster_kind,proto3" json:"cluster_kind,omitempty"` // cluster_type is the type of the cluster. ClusterType string `protobuf:"bytes,3,opt,name=cluster_type,proto3" json:"cluster_type,omitempty"` // usage is the usage of the cluster. Usage string `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"` // host_cluster specifies the host cluster name if the cluster is a virtual cluster. HostCluster string `protobuf:"bytes,5,opt,name=host_cluster,proto3" json:"host_cluster,omitempty"` // primary_domain is used to build the domain of components within the cluster. PrimaryDomain string `protobuf:"bytes,6,opt,name=primary_domain,proto3" json:"primary_domain,omitempty"` // worker_type maybe pipeline or deployment, when the cluster usage is 'worker', the WorkType is required. WorkerType string `protobuf:"bytes,7,opt,name=worker_type,proto3" json:"worker_type,omitempty"` // api_server specifies the API server address of the cluster. ApiServer string `protobuf:"bytes,8,opt,name=api_server,proto3" json:"api_server,omitempty"` // contains filtered or unexported fields }
GetReply represents a response to a get request.
func (*GetReply) Descriptor
deprecated
added in
v0.3.1
func (*GetReply) GetApiServer ¶ added in v0.3.1
func (*GetReply) GetClusterKind ¶ added in v0.3.1
func (*GetReply) GetClusterType ¶ added in v0.3.1
func (*GetReply) GetHostCluster ¶ added in v0.3.1
func (*GetReply) GetPrimaryDomain ¶ added in v0.3.1
func (*GetReply) GetWorkerType ¶ added in v0.3.1
func (*GetReply) ProtoMessage ¶ added in v0.3.1
func (*GetReply) ProtoMessage()
func (*GetReply) ProtoReflect ¶ added in v0.3.1
func (x *GetReply) ProtoReflect() protoreflect.Message
type GetRequest ¶ added in v0.3.1
type GetRequest struct { // cluster_name is the name of the cluster. ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,proto3" json:"cluster_name,omitempty"` // contains filtered or unexported fields }
GetRequest represents a request to get a cluster.
func (*GetRequest) Descriptor
deprecated
added in
v0.3.1
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetClusterName ¶ added in v0.3.1
func (x *GetRequest) GetClusterName() string
func (*GetRequest) ProtoMessage ¶ added in v0.3.1
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶ added in v0.3.1
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶ added in v0.3.1
func (x *GetRequest) Reset()
func (*GetRequest) String ¶ added in v0.3.1
func (x *GetRequest) String() string
type ListsReply ¶ added in v0.3.1
type ListsReply struct { Items []*GetReply `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
ListsReply represents a response to a list request.
func (*ListsReply) Descriptor
deprecated
added in
v0.3.1
func (*ListsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListsReply.ProtoReflect.Descriptor instead.
func (*ListsReply) GetItems ¶ added in v0.3.1
func (x *ListsReply) GetItems() []*GetReply
func (*ListsReply) ProtoMessage ¶ added in v0.3.1
func (*ListsReply) ProtoMessage()
func (*ListsReply) ProtoReflect ¶ added in v0.3.1
func (x *ListsReply) ProtoReflect() protoreflect.Message
func (*ListsReply) Reset ¶ added in v0.3.1
func (x *ListsReply) Reset()
func (*ListsReply) String ¶ added in v0.3.1
func (x *ListsReply) String() string
type ListsRequest ¶ added in v0.3.1
type ListsRequest struct { // Filter the list by field. FieldSelector string `protobuf:"bytes,1,opt,name=field_selector,proto3" json:"field_selector,omitempty"` // contains filtered or unexported fields }
ListsRequest represents a request to list clusters.
func (*ListsRequest) Descriptor
deprecated
added in
v0.3.1
func (*ListsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListsRequest.ProtoReflect.Descriptor instead.
func (*ListsRequest) GetFieldSelector ¶ added in v0.3.1
func (x *ListsRequest) GetFieldSelector() string
func (*ListsRequest) ProtoMessage ¶ added in v0.3.1
func (*ListsRequest) ProtoMessage()
func (*ListsRequest) ProtoReflect ¶ added in v0.3.1
func (x *ListsRequest) ProtoReflect() protoreflect.Message
func (*ListsRequest) Reset ¶ added in v0.3.1
func (x *ListsRequest) Reset()
func (*ListsRequest) String ¶ added in v0.3.1
func (x *ListsRequest) String() string
type SaveReply ¶
type SaveReply struct { // msg specifies the message of the save response. Msg string `protobuf:"bytes,1,opt,name=msg,json=message,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
SaveReply represents a response to a save request.
func (*SaveReply) Descriptor
deprecated
func (*SaveReply) ProtoMessage ¶
func (*SaveReply) ProtoMessage()
func (*SaveReply) ProtoReflect ¶
func (x *SaveReply) ProtoReflect() protoreflect.Message
func (*SaveReply) Validate ¶
Validate checks the field values on SaveReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SaveReply) ValidateAll ¶
ValidateAll checks the field values on SaveReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveReplyMultiError, or nil if none found.
type SaveReplyMultiError ¶
type SaveReplyMultiError []error
SaveReplyMultiError is an error wrapping multiple validation errors returned by SaveReply.ValidateAll() if the designated constraints aren't met.
func (SaveReplyMultiError) AllErrors ¶
func (m SaveReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveReplyMultiError) Error ¶
func (m SaveReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveReplyValidationError ¶
type SaveReplyValidationError struct {
// contains filtered or unexported fields
}
SaveReplyValidationError is the validation error returned by SaveReply.Validate if the designated constraints aren't met.
func (SaveReplyValidationError) Cause ¶
func (e SaveReplyValidationError) Cause() error
Cause function returns cause value.
func (SaveReplyValidationError) Error ¶
func (e SaveReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SaveReplyValidationError) ErrorName ¶
func (e SaveReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SaveReplyValidationError) Field ¶
func (e SaveReplyValidationError) Field() string
Field function returns field value.
func (SaveReplyValidationError) Key ¶
func (e SaveReplyValidationError) Key() bool
Key function returns key value.
func (SaveReplyValidationError) Reason ¶
func (e SaveReplyValidationError) Reason() string
Reason function returns reason value.
type SaveRequest ¶
type SaveRequest struct { // cluster_name specifies the name of the cluster. ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,proto3" json:"cluster_name,omitempty"` // insecureSkipCheck specifies whether to skip the certificate check when connecting to the API server. InsecureSkipCheck bool `protobuf:"varint,3,opt,name=insecure_skip_check,proto3" json:"insecure_skip_check,omitempty"` // body specifies the body of the save request. Body *SaveRequest_Body `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
SaveRequest represents a request to save a cluster.
func (*SaveRequest) Descriptor
deprecated
func (*SaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveRequest.ProtoReflect.Descriptor instead.
func (*SaveRequest) GetBody ¶
func (x *SaveRequest) GetBody() *SaveRequest_Body
func (*SaveRequest) GetClusterName ¶
func (x *SaveRequest) GetClusterName() string
func (*SaveRequest) GetInsecureSkipCheck ¶
func (x *SaveRequest) GetInsecureSkipCheck() bool
func (*SaveRequest) ProtoMessage ¶
func (*SaveRequest) ProtoMessage()
func (*SaveRequest) ProtoReflect ¶
func (x *SaveRequest) ProtoReflect() protoreflect.Message
func (*SaveRequest) Reset ¶
func (x *SaveRequest) Reset()
func (*SaveRequest) String ¶
func (x *SaveRequest) String() string
func (*SaveRequest) Validate ¶
func (m *SaveRequest) Validate() error
Validate checks the field values on SaveRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SaveRequest) ValidateAll ¶
func (m *SaveRequest) ValidateAll() error
ValidateAll checks the field values on SaveRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveRequestMultiError, or nil if none found.
type SaveRequestMultiError ¶
type SaveRequestMultiError []error
SaveRequestMultiError is an error wrapping multiple validation errors returned by SaveRequest.ValidateAll() if the designated constraints aren't met.
func (SaveRequestMultiError) AllErrors ¶
func (m SaveRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveRequestMultiError) Error ¶
func (m SaveRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveRequestValidationError ¶
type SaveRequestValidationError struct {
// contains filtered or unexported fields
}
SaveRequestValidationError is the validation error returned by SaveRequest.Validate if the designated constraints aren't met.
func (SaveRequestValidationError) Cause ¶
func (e SaveRequestValidationError) Cause() error
Cause function returns cause value.
func (SaveRequestValidationError) Error ¶
func (e SaveRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SaveRequestValidationError) ErrorName ¶
func (e SaveRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SaveRequestValidationError) Field ¶
func (e SaveRequestValidationError) Field() string
Field function returns field value.
func (SaveRequestValidationError) Key ¶
func (e SaveRequestValidationError) Key() bool
Key function returns key value.
func (SaveRequestValidationError) Reason ¶
func (e SaveRequestValidationError) Reason() string
Reason function returns reason value.
type SaveRequest_Body ¶
type SaveRequest_Body struct { // api_server specifies the API server address of the cluster. ApiServer string `protobuf:"bytes,1,opt,name=api_server,proto3" json:"api_server,omitempty"` // cluster_kind specifies the kind of the cluster. ClusterKind string `protobuf:"bytes,2,opt,name=cluster_kind,proto3" json:"cluster_kind,omitempty"` // cluster_type specifies the type of the cluster. It can be "physical" or "virtual". ClusterType string `protobuf:"bytes,3,opt,name=cluster_type,proto3" json:"cluster_type,omitempty"` // usage specifies the usage of the cluster. It can be "host" or "worker". Usage string `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"` // host_cluster specifies the host cluster name if the cluster is a virtual cluster. HostCluster string `protobuf:"bytes,5,opt,name=host_cluster,proto3" json:"host_cluster,omitempty"` // argocd_host specifies the ArgoCD host name. ArgocdHost string `protobuf:"bytes,6,opt,name=argocd_host,proto3" json:"argocd_host,omitempty"` // vcluster specifies the configuration of the virtual cluster. Vcluster *Vcluster `protobuf:"bytes,7,opt,name=vcluster,proto3" json:"vcluster,omitempty"` // traefik specifies the configuration of the Traefik ingress controller. Traefik *Traefik `protobuf:"bytes,9,opt,name=traefik,proto3" json:"traefik,omitempty"` // kubeconfig specifies the Kubeconfig file of the cluster. Kubeconfig string `protobuf:"bytes,10,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` // worker_type maybe pipeline or deployment, when the cluster usage is 'worker', the WorkType is required. WorkerType string `protobuf:"bytes,11,opt,name=worker_type,proto3" json:"worker_type,omitempty"` // primary_domain is used to build the domain of components within the cluster. PrimaryDomain string `protobuf:"bytes,12,opt,name=primary_domain,proto3" json:"primary_domain,omitempty"` // tekton_host is the domain for the tekton dashboard, and it must be a subdomain of the PrimaryDomain TektonHost string `protobuf:"bytes,13,opt,name=tekton_host,proto3" json:"tekton_host,omitempty"` // contains filtered or unexported fields }
Body represents the body of the save request.
func (*SaveRequest_Body) Descriptor
deprecated
func (*SaveRequest_Body) Descriptor() ([]byte, []int)
Deprecated: Use SaveRequest_Body.ProtoReflect.Descriptor instead.
func (*SaveRequest_Body) GetApiServer ¶
func (x *SaveRequest_Body) GetApiServer() string
func (*SaveRequest_Body) GetArgocdHost ¶
func (x *SaveRequest_Body) GetArgocdHost() string
func (*SaveRequest_Body) GetClusterKind ¶
func (x *SaveRequest_Body) GetClusterKind() string
func (*SaveRequest_Body) GetClusterType ¶
func (x *SaveRequest_Body) GetClusterType() string
func (*SaveRequest_Body) GetHostCluster ¶
func (x *SaveRequest_Body) GetHostCluster() string
func (*SaveRequest_Body) GetKubeconfig ¶
func (x *SaveRequest_Body) GetKubeconfig() string
func (*SaveRequest_Body) GetPrimaryDomain ¶ added in v0.3.0
func (x *SaveRequest_Body) GetPrimaryDomain() string
func (*SaveRequest_Body) GetTektonHost ¶ added in v0.3.0
func (x *SaveRequest_Body) GetTektonHost() string
func (*SaveRequest_Body) GetTraefik ¶
func (x *SaveRequest_Body) GetTraefik() *Traefik
func (*SaveRequest_Body) GetUsage ¶
func (x *SaveRequest_Body) GetUsage() string
func (*SaveRequest_Body) GetVcluster ¶
func (x *SaveRequest_Body) GetVcluster() *Vcluster
func (*SaveRequest_Body) GetWorkerType ¶ added in v0.3.0
func (x *SaveRequest_Body) GetWorkerType() string
func (*SaveRequest_Body) ProtoMessage ¶
func (*SaveRequest_Body) ProtoMessage()
func (*SaveRequest_Body) ProtoReflect ¶
func (x *SaveRequest_Body) ProtoReflect() protoreflect.Message
func (*SaveRequest_Body) Reset ¶
func (x *SaveRequest_Body) Reset()
func (*SaveRequest_Body) String ¶
func (x *SaveRequest_Body) String() string
func (*SaveRequest_Body) Validate ¶
func (m *SaveRequest_Body) Validate() error
Validate checks the field values on SaveRequest_Body with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SaveRequest_Body) ValidateAll ¶
func (m *SaveRequest_Body) ValidateAll() error
ValidateAll checks the field values on SaveRequest_Body with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveRequest_BodyMultiError, or nil if none found.
type SaveRequest_BodyMultiError ¶
type SaveRequest_BodyMultiError []error
SaveRequest_BodyMultiError is an error wrapping multiple validation errors returned by SaveRequest_Body.ValidateAll() if the designated constraints aren't met.
func (SaveRequest_BodyMultiError) AllErrors ¶
func (m SaveRequest_BodyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveRequest_BodyMultiError) Error ¶
func (m SaveRequest_BodyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveRequest_BodyValidationError ¶
type SaveRequest_BodyValidationError struct {
// contains filtered or unexported fields
}
SaveRequest_BodyValidationError is the validation error returned by SaveRequest_Body.Validate if the designated constraints aren't met.
func (SaveRequest_BodyValidationError) Cause ¶
func (e SaveRequest_BodyValidationError) Cause() error
Cause function returns cause value.
func (SaveRequest_BodyValidationError) Error ¶
func (e SaveRequest_BodyValidationError) Error() string
Error satisfies the builtin error interface
func (SaveRequest_BodyValidationError) ErrorName ¶
func (e SaveRequest_BodyValidationError) ErrorName() string
ErrorName returns error name.
func (SaveRequest_BodyValidationError) Field ¶
func (e SaveRequest_BodyValidationError) Field() string
Field function returns field value.
func (SaveRequest_BodyValidationError) Key ¶
func (e SaveRequest_BodyValidationError) Key() bool
Key function returns key value.
func (SaveRequest_BodyValidationError) Reason ¶
func (e SaveRequest_BodyValidationError) Reason() string
Reason function returns reason value.
type Traefik ¶
type Traefik struct { // httpNodePort specifies the NodePort for the HTTP port of the Traefik ingress controller. HttpNodePort string `protobuf:"bytes,1,opt,name=http_node_port,proto3" json:"http_node_port,omitempty"` // httpsNodePort specifies the NodePort for the HTTPS port of the Traefik ingress controller. HttpsNodePort string `protobuf:"bytes,2,opt,name=https_node_port,proto3" json:"https_node_port,omitempty"` // contains filtered or unexported fields }
Traefik represents the configuration for the Traefik ingress controller.
func (*Traefik) Descriptor
deprecated
func (*Traefik) GetHttpNodePort ¶
func (*Traefik) GetHttpsNodePort ¶
func (*Traefik) ProtoMessage ¶
func (*Traefik) ProtoMessage()
func (*Traefik) ProtoReflect ¶
func (x *Traefik) ProtoReflect() protoreflect.Message
func (*Traefik) Validate ¶
Validate checks the field values on Traefik with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Traefik) ValidateAll ¶
ValidateAll checks the field values on Traefik with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TraefikMultiError, or nil if none found.
type TraefikMultiError ¶
type TraefikMultiError []error
TraefikMultiError is an error wrapping multiple validation errors returned by Traefik.ValidateAll() if the designated constraints aren't met.
func (TraefikMultiError) AllErrors ¶
func (m TraefikMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TraefikMultiError) Error ¶
func (m TraefikMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TraefikValidationError ¶
type TraefikValidationError struct {
// contains filtered or unexported fields
}
TraefikValidationError is the validation error returned by Traefik.Validate if the designated constraints aren't met.
func (TraefikValidationError) Cause ¶
func (e TraefikValidationError) Cause() error
Cause function returns cause value.
func (TraefikValidationError) Error ¶
func (e TraefikValidationError) Error() string
Error satisfies the builtin error interface
func (TraefikValidationError) ErrorName ¶
func (e TraefikValidationError) ErrorName() string
ErrorName returns error name.
func (TraefikValidationError) Field ¶
func (e TraefikValidationError) Field() string
Field function returns field value.
func (TraefikValidationError) Key ¶
func (e TraefikValidationError) Key() bool
Key function returns key value.
func (TraefikValidationError) Reason ¶
func (e TraefikValidationError) Reason() string
Reason function returns reason value.
type UnimplementedClusterServer ¶
type UnimplementedClusterServer struct { }
UnimplementedClusterServer must be embedded to have forward compatible implementations.
func (UnimplementedClusterServer) DeleteCluster ¶
func (UnimplementedClusterServer) DeleteCluster(context.Context, *DeleteRequest) (*DeleteReply, error)
func (UnimplementedClusterServer) GetCluster ¶ added in v0.3.1
func (UnimplementedClusterServer) GetCluster(context.Context, *GetRequest) (*GetReply, error)
func (UnimplementedClusterServer) ListClusters ¶ added in v0.3.1
func (UnimplementedClusterServer) ListClusters(context.Context, *ListsRequest) (*ListsReply, error)
func (UnimplementedClusterServer) SaveCluster ¶
func (UnimplementedClusterServer) SaveCluster(context.Context, *SaveRequest) (*SaveReply, error)
type UnsafeClusterServer ¶
type UnsafeClusterServer interface {
// contains filtered or unexported methods
}
UnsafeClusterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClusterServer will result in compilation errors.
type Vcluster ¶
type Vcluster struct { // httpsNodePort specifies the NodePort for the HTTPS port of the virtual cluster. HttpsNodePort string `protobuf:"bytes,1,opt,name=https_node_port,proto3" json:"https_node_port,omitempty"` // contains filtered or unexported fields }
Vcluster represents the configuration for the virtual cluster.
func (*Vcluster) Descriptor
deprecated
func (*Vcluster) GetHttpsNodePort ¶
func (*Vcluster) ProtoMessage ¶
func (*Vcluster) ProtoMessage()
func (*Vcluster) ProtoReflect ¶
func (x *Vcluster) ProtoReflect() protoreflect.Message
func (*Vcluster) Validate ¶
Validate checks the field values on Vcluster with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Vcluster) ValidateAll ¶
ValidateAll checks the field values on Vcluster with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VclusterMultiError, or nil if none found.
type VclusterMultiError ¶
type VclusterMultiError []error
VclusterMultiError is an error wrapping multiple validation errors returned by Vcluster.ValidateAll() if the designated constraints aren't met.
func (VclusterMultiError) AllErrors ¶
func (m VclusterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VclusterMultiError) Error ¶
func (m VclusterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VclusterValidationError ¶
type VclusterValidationError struct {
// contains filtered or unexported fields
}
VclusterValidationError is the validation error returned by Vcluster.Validate if the designated constraints aren't met.
func (VclusterValidationError) Cause ¶
func (e VclusterValidationError) Cause() error
Cause function returns cause value.
func (VclusterValidationError) Error ¶
func (e VclusterValidationError) Error() string
Error satisfies the builtin error interface
func (VclusterValidationError) ErrorName ¶
func (e VclusterValidationError) ErrorName() string
ErrorName returns error name.
func (VclusterValidationError) Field ¶
func (e VclusterValidationError) Field() string
Field function returns field value.
func (VclusterValidationError) Key ¶
func (e VclusterValidationError) Key() bool
Key function returns key value.
func (VclusterValidationError) Reason ¶
func (e VclusterValidationError) Reason() string
Reason function returns reason value.