v1

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OperationClusterDeleteCluster = "/api.cluster.v1.Cluster/DeleteCluster"
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: "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 {
	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)
	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) 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)
	SaveCluster(context.Context, *SaveRequest) (*SaveReply, error)
}

type ClusterServer

type ClusterServer interface {
	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
}

Represents a response to a DeleteRequest message.

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 {

	// ProductName is the name of the product.
	ProductName string `protobuf:"bytes,1,opt,name=productName,json=product_name,proto3" json:"productName,omitempty"`
	// ClusterName is the name of the cluster.
	ClusterName string `protobuf:"bytes,2,opt,name=clusterName,json=cluster_name,proto3" json:"clusterName,omitempty"`
	// InsecureSkipCheck specifies whether to skip security checks.
	InsecureSkipCheck bool `protobuf:"varint,3,opt,name=insecureSkipCheck,json=insecure_skip_check,proto3" json:"insecureSkipCheck,omitempty"`
	// contains filtered or unexported fields
}

Represents a request to delete a deployment runtime manifest.

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) GetProductName

func (x *DeleteRequest) GetProductName() string

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 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 {

	// clusterName specifies the name of the cluster.
	ClusterName string `protobuf:"bytes,2,opt,name=clusterName,json=cluster_name,proto3" json:"clusterName,omitempty"`
	// insecureSkipCheck specifies whether to skip the certificate check when connecting to the API server.
	InsecureSkipCheck bool `protobuf:"varint,3,opt,name=insecureSkipCheck,json=insecure_skip_check,proto3" json:"insecureSkipCheck,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 {

	// apiServer specifies the API server address of the cluster.
	ApiServer string `protobuf:"bytes,1,opt,name=apiServer,json=api_server,proto3" json:"apiServer,omitempty"`
	// clusterKind specifies the kind of the cluster.
	ClusterKind string `protobuf:"bytes,2,opt,name=clusterKind,json=cluster_kind,proto3" json:"clusterKind,omitempty"`
	// clusterType specifies the type of the cluster. It can be "physical" or "virtual".
	ClusterType string `protobuf:"bytes,3,opt,name=clusterType,json=cluster_type,proto3" json:"clusterType,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"`
	// hostCluster specifies the host cluster name if the cluster is a virtual cluster.
	HostCluster string `protobuf:"bytes,5,opt,name=hostCluster,json=host_cluster,proto3" json:"hostCluster,omitempty"`
	// argocdHost specifies the ArgoCD host name.
	ArgocdHost string `protobuf:"bytes,6,opt,name=argocdHost,json=argocd_host,proto3" json:"argocdHost,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"`
	// pipeline or deployment, when the cluster usage is 'worker', the WorkType is required.
	WorkerType string `protobuf:"bytes,11,opt,name=workerType,json=worker_type,proto3" json:"workerType,omitempty"`
	// PrimaryDomain is used to build the domain of components within the cluster.
	PrimaryDomain string `protobuf:"bytes,12,opt,name=primaryDomain,json=primary_domain,proto3" json:"primaryDomain,omitempty"`
	// TektonHost is the domain for the tekton dashboard, and it must be a subdomain of the PrimaryDomain
	TektonHost string `protobuf:"bytes,13,opt,name=tektonHost,json=tekton_host,proto3" json:"tektonHost,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=httpNodePort,json=http_node_port,proto3" json:"httpNodePort,omitempty"`
	// httpsNodePort specifies the NodePort for the HTTPS port of the Traefik ingress controller.
	HttpsNodePort string `protobuf:"bytes,2,opt,name=httpsNodePort,json=https_node_port,proto3" json:"httpsNodePort,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) 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=httpsNodePort,json=https_node_port,proto3" json:"httpsNodePort,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