v1

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cluster_GetCluster_FullMethodName    = "/api.cluster.v1.Cluster/GetCluster"
	Cluster_ListClusters_FullMethodName  = "/api.cluster.v1.Cluster/ListClusters"
	Cluster_SaveCluster_FullMethodName   = "/api.cluster.v1.Cluster/SaveCluster"
	Cluster_DeleteCluster_FullMethodName = "/api.cluster.v1.Cluster/DeleteCluster"
)
View Source
const OperationClusterDeleteCluster = "/api.cluster.v1.Cluster/DeleteCluster"
View Source
const OperationClusterGetCluster = "/api.cluster.v1.Cluster/GetCluster"
View Source
const OperationClusterListClusters = "/api.cluster.v1.Cluster/ListClusters"
View Source
const OperationClusterSaveCluster = "/api.cluster.v1.Cluster/SaveCluster"

Variables

View Source
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)

View Source
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

Cause function returns cause value.

func (DeleteReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteReplyValidationError) ErrorName

func (e DeleteReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteReplyValidationError) Field

Field function returns field value.

func (DeleteReplyValidationError) Key

Key function returns key value.

func (DeleteReplyValidationError) Reason

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

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use GetReply.ProtoReflect.Descriptor instead.

func (*GetReply) GetApiServer added in v0.3.1

func (x *GetReply) GetApiServer() string

func (*GetReply) GetClusterKind added in v0.3.1

func (x *GetReply) GetClusterKind() string

func (*GetReply) GetClusterType added in v0.3.1

func (x *GetReply) GetClusterType() string

func (*GetReply) GetHostCluster added in v0.3.1

func (x *GetReply) GetHostCluster() string

func (*GetReply) GetName added in v0.3.1

func (x *GetReply) GetName() string

func (*GetReply) GetPrimaryDomain added in v0.3.1

func (x *GetReply) GetPrimaryDomain() string

func (*GetReply) GetUsage added in v0.3.1

func (x *GetReply) GetUsage() string

func (*GetReply) GetWorkerType added in v0.3.1

func (x *GetReply) GetWorkerType() string

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

func (*GetReply) Reset added in v0.3.1

func (x *GetReply) Reset()

func (*GetReply) String added in v0.3.1

func (x *GetReply) String() string

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.
	// eg: field_selector=cluster_type=physical,usage=worker,worker_type=pipeline
	// Field Support:
	// cluster_type: exact match
	// usage: exact match
	// worker_type: exact match
	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) Descriptor() ([]byte, []int)

Deprecated: Use SaveReply.ProtoReflect.Descriptor instead.

func (*SaveReply) GetMsg

func (x *SaveReply) GetMsg() string

func (*SaveReply) ProtoMessage

func (*SaveReply) ProtoMessage()

func (*SaveReply) ProtoReflect

func (x *SaveReply) ProtoReflect() protoreflect.Message

func (*SaveReply) Reset

func (x *SaveReply) Reset()

func (*SaveReply) String

func (x *SaveReply) String() string

func (*SaveReply) Validate

func (m *SaveReply) Validate() error

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

func (m *SaveReply) ValidateAll() error

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

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

Cause function returns cause value.

func (SaveRequestValidationError) Error

Error satisfies the builtin error interface

func (SaveRequestValidationError) ErrorName

func (e SaveRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SaveRequestValidationError) Field

Field function returns field value.

func (SaveRequestValidationError) Key

Key function returns key value.

func (SaveRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SaveRequest_BodyValidationError) Error

Error satisfies the builtin error interface

func (SaveRequest_BodyValidationError) ErrorName

ErrorName returns error name.

func (SaveRequest_BodyValidationError) Field

Field function returns field value.

func (SaveRequest_BodyValidationError) Key

Key function returns key value.

func (SaveRequest_BodyValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Traefik.ProtoReflect.Descriptor instead.

func (*Traefik) GetHttpNodePort

func (x *Traefik) GetHttpNodePort() string

func (*Traefik) GetHttpsNodePort

func (x *Traefik) GetHttpsNodePort() string

func (*Traefik) ProtoMessage

func (*Traefik) ProtoMessage()

func (*Traefik) ProtoReflect

func (x *Traefik) ProtoReflect() protoreflect.Message

func (*Traefik) Reset

func (x *Traefik) Reset()

func (*Traefik) String

func (x *Traefik) String() string

func (*Traefik) Validate

func (m *Traefik) Validate() error

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

func (m *Traefik) ValidateAll() error

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) GetCluster added in v0.3.1

func (UnimplementedClusterServer) ListClusters added in v0.3.1

func (UnimplementedClusterServer) SaveCluster

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) Descriptor() ([]byte, []int)

Deprecated: Use Vcluster.ProtoReflect.Descriptor instead.

func (*Vcluster) GetHttpsNodePort

func (x *Vcluster) GetHttpsNodePort() string

func (*Vcluster) ProtoMessage

func (*Vcluster) ProtoMessage()

func (*Vcluster) ProtoReflect

func (x *Vcluster) ProtoReflect() protoreflect.Message

func (*Vcluster) Reset

func (x *Vcluster) Reset()

func (*Vcluster) String

func (x *Vcluster) String() string

func (*Vcluster) Validate

func (m *Vcluster) Validate() error

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

func (m *Vcluster) ValidateAll() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL