Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorUserAlreadyExists(format string, args ...interface{}) *errors.Error
- func ErrorUserCreateFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func IsUserAlreadyExists(err error) bool
- func IsUserCreateFailed(err error) bool
- func IsUserLoginFailed(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterGatewayHTTPServer(s *http.Server, srv GatewayHTTPServer)
- func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
- type CreateMinerRequest
- func (*CreateMinerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMinerRequest) GetChainName() string
- func (x *CreateMinerRequest) GetDataDir() string
- func (x *CreateMinerRequest) GetDisplayName() string
- func (x *CreateMinerRequest) GetMinerType() string
- func (*CreateMinerRequest) ProtoMessage()
- func (x *CreateMinerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMinerRequest) Reset()
- func (x *CreateMinerRequest) String() string
- func (m *CreateMinerRequest) Validate() error
- func (m *CreateMinerRequest) ValidateAll() error
- type CreateMinerRequestMultiError
- type CreateMinerRequestValidationError
- func (e CreateMinerRequestValidationError) Cause() error
- func (e CreateMinerRequestValidationError) Error() string
- func (e CreateMinerRequestValidationError) ErrorName() string
- func (e CreateMinerRequestValidationError) Field() string
- func (e CreateMinerRequestValidationError) Key() bool
- func (e CreateMinerRequestValidationError) Reason() string
- type CreateMinerSetRequest
- func (*CreateMinerSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMinerSetRequest) GetDeletePolicy() string
- func (x *CreateMinerSetRequest) GetDisplayName() string
- func (x *CreateMinerSetRequest) GetMinerTemplate() *MinerTemplate
- func (x *CreateMinerSetRequest) GetReplicas() int32
- func (*CreateMinerSetRequest) ProtoMessage()
- func (x *CreateMinerSetRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMinerSetRequest) Reset()
- func (x *CreateMinerSetRequest) String() string
- func (m *CreateMinerSetRequest) Validate() error
- func (m *CreateMinerSetRequest) ValidateAll() error
- type CreateMinerSetRequestMultiError
- type CreateMinerSetRequestValidationError
- func (e CreateMinerSetRequestValidationError) Cause() error
- func (e CreateMinerSetRequestValidationError) Error() string
- func (e CreateMinerSetRequestValidationError) ErrorName() string
- func (e CreateMinerSetRequestValidationError) Field() string
- func (e CreateMinerSetRequestValidationError) Key() bool
- func (e CreateMinerSetRequestValidationError) Reason() string
- type DeleteMinerRequest
- func (*DeleteMinerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMinerRequest) GetName() string
- func (*DeleteMinerRequest) ProtoMessage()
- func (x *DeleteMinerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMinerRequest) Reset()
- func (x *DeleteMinerRequest) String() string
- func (m *DeleteMinerRequest) Validate() error
- func (m *DeleteMinerRequest) ValidateAll() error
- type DeleteMinerRequestMultiError
- type DeleteMinerRequestValidationError
- func (e DeleteMinerRequestValidationError) Cause() error
- func (e DeleteMinerRequestValidationError) Error() string
- func (e DeleteMinerRequestValidationError) ErrorName() string
- func (e DeleteMinerRequestValidationError) Field() string
- func (e DeleteMinerRequestValidationError) Key() bool
- func (e DeleteMinerRequestValidationError) Reason() string
- type DeleteMinerSetRequest
- func (*DeleteMinerSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMinerSetRequest) GetName() string
- func (*DeleteMinerSetRequest) ProtoMessage()
- func (x *DeleteMinerSetRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMinerSetRequest) Reset()
- func (x *DeleteMinerSetRequest) String() string
- func (m *DeleteMinerSetRequest) Validate() error
- func (m *DeleteMinerSetRequest) ValidateAll() error
- type DeleteMinerSetRequestMultiError
- type DeleteMinerSetRequestValidationError
- func (e DeleteMinerSetRequestValidationError) Cause() error
- func (e DeleteMinerSetRequestValidationError) Error() string
- func (e DeleteMinerSetRequestValidationError) ErrorName() string
- func (e DeleteMinerSetRequestValidationError) Field() string
- func (e DeleteMinerSetRequestValidationError) Key() bool
- func (e DeleteMinerSetRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GatewayClient
- type GatewayHTTPClient
- type GatewayHTTPClientImpl
- func (c *GatewayHTTPClientImpl) CreateMiner(ctx context.Context, in *v1beta1.Miner, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *GatewayHTTPClientImpl) CreateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *GatewayHTTPClientImpl) DeleteMiner(ctx context.Context, in *DeleteMinerRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *GatewayHTTPClientImpl) DeleteMinerSet(ctx context.Context, in *DeleteMinerSetRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *GatewayHTTPClientImpl) GetIdempotentToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*IdempotentResponse, error)
- func (c *GatewayHTTPClientImpl) GetMiner(ctx context.Context, in *GetMinerRequest, opts ...http.CallOption) (*v1beta1.Miner, error)
- func (c *GatewayHTTPClientImpl) GetMinerSet(ctx context.Context, in *GetMinerSetRequest, opts ...http.CallOption) (*v1beta1.MinerSet, error)
- func (c *GatewayHTTPClientImpl) GetVersion(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetVersionResponse, error)
- func (c *GatewayHTTPClientImpl) ListMiner(ctx context.Context, in *ListMinerRequest, opts ...http.CallOption) (*ListMinerResponse, error)
- func (c *GatewayHTTPClientImpl) ListMinerSet(ctx context.Context, in *ListMinerSetRequest, opts ...http.CallOption) (*ListMinerSetResponse, error)
- func (c *GatewayHTTPClientImpl) ScaleMinerSet(ctx context.Context, in *ScaleMinerSetRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *GatewayHTTPClientImpl) UpdateMiner(ctx context.Context, in *v1beta1.Miner, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *GatewayHTTPClientImpl) UpdateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...http.CallOption) (*emptypb.Empty, error)
- type GatewayHTTPServer
- type GatewayServer
- type GetMinerRequest
- func (*GetMinerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMinerRequest) GetName() string
- func (*GetMinerRequest) ProtoMessage()
- func (x *GetMinerRequest) ProtoReflect() protoreflect.Message
- func (x *GetMinerRequest) Reset()
- func (x *GetMinerRequest) String() string
- func (m *GetMinerRequest) Validate() error
- func (m *GetMinerRequest) ValidateAll() error
- type GetMinerRequestMultiError
- type GetMinerRequestValidationError
- func (e GetMinerRequestValidationError) Cause() error
- func (e GetMinerRequestValidationError) Error() string
- func (e GetMinerRequestValidationError) ErrorName() string
- func (e GetMinerRequestValidationError) Field() string
- func (e GetMinerRequestValidationError) Key() bool
- func (e GetMinerRequestValidationError) Reason() string
- type GetMinerSetRequest
- func (*GetMinerSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMinerSetRequest) GetName() string
- func (*GetMinerSetRequest) ProtoMessage()
- func (x *GetMinerSetRequest) ProtoReflect() protoreflect.Message
- func (x *GetMinerSetRequest) Reset()
- func (x *GetMinerSetRequest) String() string
- func (m *GetMinerSetRequest) Validate() error
- func (m *GetMinerSetRequest) ValidateAll() error
- type GetMinerSetRequestMultiError
- type GetMinerSetRequestValidationError
- func (e GetMinerSetRequestValidationError) Cause() error
- func (e GetMinerSetRequestValidationError) Error() string
- func (e GetMinerSetRequestValidationError) ErrorName() string
- func (e GetMinerSetRequestValidationError) Field() string
- func (e GetMinerSetRequestValidationError) Key() bool
- func (e GetMinerSetRequestValidationError) Reason() string
- type GetVersionResponse
- func (*GetVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionResponse) GetBuildDate() string
- func (x *GetVersionResponse) GetCompiler() string
- func (x *GetVersionResponse) GetGitCommit() string
- func (x *GetVersionResponse) GetGitTreeState() string
- func (x *GetVersionResponse) GetGitVersion() string
- func (x *GetVersionResponse) GetGoVersion() string
- func (x *GetVersionResponse) GetPlatform() string
- func (*GetVersionResponse) ProtoMessage()
- func (x *GetVersionResponse) ProtoReflect() protoreflect.Message
- func (x *GetVersionResponse) Reset()
- func (x *GetVersionResponse) String() string
- func (m *GetVersionResponse) Validate() error
- func (m *GetVersionResponse) ValidateAll() error
- type GetVersionResponseMultiError
- type GetVersionResponseValidationError
- func (e GetVersionResponseValidationError) Cause() error
- func (e GetVersionResponseValidationError) Error() string
- func (e GetVersionResponseValidationError) ErrorName() string
- func (e GetVersionResponseValidationError) Field() string
- func (e GetVersionResponseValidationError) Key() bool
- func (e GetVersionResponseValidationError) Reason() string
- type IdempotentResponse
- func (*IdempotentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IdempotentResponse) GetToken() string
- func (*IdempotentResponse) ProtoMessage()
- func (x *IdempotentResponse) ProtoReflect() protoreflect.Message
- func (x *IdempotentResponse) Reset()
- func (x *IdempotentResponse) String() string
- func (m *IdempotentResponse) Validate() error
- func (m *IdempotentResponse) ValidateAll() error
- type IdempotentResponseMultiError
- type IdempotentResponseValidationError
- func (e IdempotentResponseValidationError) Cause() error
- func (e IdempotentResponseValidationError) Error() string
- func (e IdempotentResponseValidationError) ErrorName() string
- func (e IdempotentResponseValidationError) Field() string
- func (e IdempotentResponseValidationError) Key() bool
- func (e IdempotentResponseValidationError) Reason() string
- type ListMinerRequest
- func (*ListMinerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMinerRequest) GetLimit() int64
- func (x *ListMinerRequest) GetOffset() int64
- func (*ListMinerRequest) ProtoMessage()
- func (x *ListMinerRequest) ProtoReflect() protoreflect.Message
- func (x *ListMinerRequest) Reset()
- func (x *ListMinerRequest) String() string
- func (m *ListMinerRequest) Validate() error
- func (m *ListMinerRequest) ValidateAll() error
- type ListMinerRequestMultiError
- type ListMinerRequestValidationError
- func (e ListMinerRequestValidationError) Cause() error
- func (e ListMinerRequestValidationError) Error() string
- func (e ListMinerRequestValidationError) ErrorName() string
- func (e ListMinerRequestValidationError) Field() string
- func (e ListMinerRequestValidationError) Key() bool
- func (e ListMinerRequestValidationError) Reason() string
- type ListMinerResponse
- func (*ListMinerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMinerResponse) GetMiners() []*Miner
- func (x *ListMinerResponse) GetTotalCount() int64
- func (*ListMinerResponse) ProtoMessage()
- func (x *ListMinerResponse) ProtoReflect() protoreflect.Message
- func (x *ListMinerResponse) Reset()
- func (x *ListMinerResponse) String() string
- func (m *ListMinerResponse) Validate() error
- func (m *ListMinerResponse) ValidateAll() error
- type ListMinerResponseMultiError
- type ListMinerResponseValidationError
- func (e ListMinerResponseValidationError) Cause() error
- func (e ListMinerResponseValidationError) Error() string
- func (e ListMinerResponseValidationError) ErrorName() string
- func (e ListMinerResponseValidationError) Field() string
- func (e ListMinerResponseValidationError) Key() bool
- func (e ListMinerResponseValidationError) Reason() string
- type ListMinerSetRequest
- func (*ListMinerSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMinerSetRequest) GetLimit() int64
- func (x *ListMinerSetRequest) GetOffset() int64
- func (*ListMinerSetRequest) ProtoMessage()
- func (x *ListMinerSetRequest) ProtoReflect() protoreflect.Message
- func (x *ListMinerSetRequest) Reset()
- func (x *ListMinerSetRequest) String() string
- func (m *ListMinerSetRequest) Validate() error
- func (m *ListMinerSetRequest) ValidateAll() error
- type ListMinerSetRequestMultiError
- type ListMinerSetRequestValidationError
- func (e ListMinerSetRequestValidationError) Cause() error
- func (e ListMinerSetRequestValidationError) Error() string
- func (e ListMinerSetRequestValidationError) ErrorName() string
- func (e ListMinerSetRequestValidationError) Field() string
- func (e ListMinerSetRequestValidationError) Key() bool
- func (e ListMinerSetRequestValidationError) Reason() string
- type ListMinerSetResponse
- func (*ListMinerSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMinerSetResponse) GetMinerSets() []*MinerSet
- func (x *ListMinerSetResponse) GetTotalCount() int64
- func (*ListMinerSetResponse) ProtoMessage()
- func (x *ListMinerSetResponse) ProtoReflect() protoreflect.Message
- func (x *ListMinerSetResponse) Reset()
- func (x *ListMinerSetResponse) String() string
- func (m *ListMinerSetResponse) Validate() error
- func (m *ListMinerSetResponse) ValidateAll() error
- type ListMinerSetResponseMultiError
- type ListMinerSetResponseValidationError
- func (e ListMinerSetResponseValidationError) Cause() error
- func (e ListMinerSetResponseValidationError) Error() string
- func (e ListMinerSetResponseValidationError) ErrorName() string
- func (e ListMinerSetResponseValidationError) Field() string
- func (e ListMinerSetResponseValidationError) Key() bool
- func (e ListMinerSetResponseValidationError) Reason() string
- type Miner
- func (*Miner) Descriptor() ([]byte, []int)deprecated
- func (x *Miner) GetChainName() string
- func (x *Miner) GetCreatedAt() *timestamppb.Timestamp
- func (x *Miner) GetDataDir() string
- func (x *Miner) GetDisplayName() string
- func (x *Miner) GetMinerType() string
- func (x *Miner) GetName() string
- func (x *Miner) GetStatus() string
- func (x *Miner) GetUpdatedAt() *timestamppb.Timestamp
- func (*Miner) ProtoMessage()
- func (x *Miner) ProtoReflect() protoreflect.Message
- func (x *Miner) Reset()
- func (x *Miner) String() string
- func (m *Miner) Validate() error
- func (m *Miner) ValidateAll() error
- type MinerMultiError
- type MinerSet
- func (*MinerSet) Descriptor() ([]byte, []int)deprecated
- func (x *MinerSet) GetCreatedAt() *timestamppb.Timestamp
- func (x *MinerSet) GetDeletePolicy() string
- func (x *MinerSet) GetDisplayName() string
- func (x *MinerSet) GetMinerTemplate() *MinerTemplate
- func (x *MinerSet) GetName() string
- func (x *MinerSet) GetReplicas() int32
- func (x *MinerSet) GetUpdatedAt() *timestamppb.Timestamp
- func (*MinerSet) ProtoMessage()
- func (x *MinerSet) ProtoReflect() protoreflect.Message
- func (x *MinerSet) Reset()
- func (x *MinerSet) String() string
- func (m *MinerSet) Validate() error
- func (m *MinerSet) ValidateAll() error
- type MinerSetMultiError
- type MinerSetValidationError
- type MinerTemplate
- func (*MinerTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *MinerTemplate) GetChainName() string
- func (x *MinerTemplate) GetDataDir() string
- func (x *MinerTemplate) GetMinerType() string
- func (*MinerTemplate) ProtoMessage()
- func (x *MinerTemplate) ProtoReflect() protoreflect.Message
- func (x *MinerTemplate) Reset()
- func (x *MinerTemplate) String() string
- func (m *MinerTemplate) Validate() error
- func (m *MinerTemplate) ValidateAll() error
- type MinerTemplateMultiError
- type MinerTemplateValidationError
- func (e MinerTemplateValidationError) Cause() error
- func (e MinerTemplateValidationError) Error() string
- func (e MinerTemplateValidationError) ErrorName() string
- func (e MinerTemplateValidationError) Field() string
- func (e MinerTemplateValidationError) Key() bool
- func (e MinerTemplateValidationError) Reason() string
- type MinerValidationError
- type ScaleMinerSetRequest
- func (*ScaleMinerSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScaleMinerSetRequest) GetName() string
- func (x *ScaleMinerSetRequest) GetReplicas() int32
- func (*ScaleMinerSetRequest) ProtoMessage()
- func (x *ScaleMinerSetRequest) ProtoReflect() protoreflect.Message
- func (x *ScaleMinerSetRequest) Reset()
- func (x *ScaleMinerSetRequest) String() string
- func (m *ScaleMinerSetRequest) Validate() error
- func (m *ScaleMinerSetRequest) ValidateAll() error
- type ScaleMinerSetRequestMultiError
- type ScaleMinerSetRequestValidationError
- func (e ScaleMinerSetRequestValidationError) Cause() error
- func (e ScaleMinerSetRequestValidationError) Error() string
- func (e ScaleMinerSetRequestValidationError) ErrorName() string
- func (e ScaleMinerSetRequestValidationError) Field() string
- func (e ScaleMinerSetRequestValidationError) Key() bool
- func (e ScaleMinerSetRequestValidationError) Reason() string
- type UnimplementedGatewayServer
- func (UnimplementedGatewayServer) CreateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error)
- func (UnimplementedGatewayServer) CreateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error)
- func (UnimplementedGatewayServer) DeleteMiner(context.Context, *DeleteMinerRequest) (*emptypb.Empty, error)
- func (UnimplementedGatewayServer) DeleteMinerSet(context.Context, *DeleteMinerSetRequest) (*emptypb.Empty, error)
- func (UnimplementedGatewayServer) GetIdempotentToken(context.Context, *emptypb.Empty) (*IdempotentResponse, error)
- func (UnimplementedGatewayServer) GetMiner(context.Context, *GetMinerRequest) (*v1beta1.Miner, error)
- func (UnimplementedGatewayServer) GetMinerSet(context.Context, *GetMinerSetRequest) (*v1beta1.MinerSet, error)
- func (UnimplementedGatewayServer) GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error)
- func (UnimplementedGatewayServer) ListMiner(context.Context, *ListMinerRequest) (*ListMinerResponse, error)
- func (UnimplementedGatewayServer) ListMinerSet(context.Context, *ListMinerSetRequest) (*ListMinerSetResponse, error)
- func (UnimplementedGatewayServer) ScaleMinerSet(context.Context, *ScaleMinerSetRequest) (*emptypb.Empty, error)
- func (UnimplementedGatewayServer) UpdateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error)
- func (UnimplementedGatewayServer) UpdateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error)
- type UnsafeGatewayServer
- type UpdateMinerRequest
- func (*UpdateMinerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMinerRequest) GetDeletePolicy() string
- func (x *UpdateMinerRequest) GetDisplayName() string
- func (x *UpdateMinerRequest) GetName() string
- func (*UpdateMinerRequest) ProtoMessage()
- func (x *UpdateMinerRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMinerRequest) Reset()
- func (x *UpdateMinerRequest) String() string
- func (m *UpdateMinerRequest) Validate() error
- func (m *UpdateMinerRequest) ValidateAll() error
- type UpdateMinerRequestMultiError
- type UpdateMinerRequestValidationError
- func (e UpdateMinerRequestValidationError) Cause() error
- func (e UpdateMinerRequestValidationError) Error() string
- func (e UpdateMinerRequestValidationError) ErrorName() string
- func (e UpdateMinerRequestValidationError) Field() string
- func (e UpdateMinerRequestValidationError) Key() bool
- func (e UpdateMinerRequestValidationError) Reason() string
- type UpdateMinerSetRequest
- func (*UpdateMinerSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMinerSetRequest) GetDeletePolicy() string
- func (x *UpdateMinerSetRequest) GetDisplayName() string
- func (x *UpdateMinerSetRequest) GetName() string
- func (*UpdateMinerSetRequest) ProtoMessage()
- func (x *UpdateMinerSetRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMinerSetRequest) Reset()
- func (x *UpdateMinerSetRequest) String() string
- func (m *UpdateMinerSetRequest) Validate() error
- func (m *UpdateMinerSetRequest) ValidateAll() error
- type UpdateMinerSetRequestMultiError
- type UpdateMinerSetRequestValidationError
- func (e UpdateMinerSetRequestValidationError) Cause() error
- func (e UpdateMinerSetRequestValidationError) Error() string
- func (e UpdateMinerSetRequestValidationError) ErrorName() string
- func (e UpdateMinerSetRequestValidationError) Field() string
- func (e UpdateMinerSetRequestValidationError) Key() bool
- func (e UpdateMinerSetRequestValidationError) Reason() string
Constants ¶
const ( Gateway_GetVersion_FullMethodName = "/gateway.v1.Gateway/GetVersion" Gateway_GetIdempotentToken_FullMethodName = "/gateway.v1.Gateway/GetIdempotentToken" Gateway_CreateMinerSet_FullMethodName = "/gateway.v1.Gateway/CreateMinerSet" Gateway_ListMinerSet_FullMethodName = "/gateway.v1.Gateway/ListMinerSet" Gateway_GetMinerSet_FullMethodName = "/gateway.v1.Gateway/GetMinerSet" Gateway_UpdateMinerSet_FullMethodName = "/gateway.v1.Gateway/UpdateMinerSet" Gateway_DeleteMinerSet_FullMethodName = "/gateway.v1.Gateway/DeleteMinerSet" Gateway_ScaleMinerSet_FullMethodName = "/gateway.v1.Gateway/ScaleMinerSet" Gateway_CreateMiner_FullMethodName = "/gateway.v1.Gateway/CreateMiner" Gateway_ListMiner_FullMethodName = "/gateway.v1.Gateway/ListMiner" Gateway_GetMiner_FullMethodName = "/gateway.v1.Gateway/GetMiner" Gateway_UpdateMiner_FullMethodName = "/gateway.v1.Gateway/UpdateMiner" Gateway_DeleteMiner_FullMethodName = "/gateway.v1.Gateway/DeleteMiner" )
const OperationGatewayCreateMiner = "/gateway.v1.Gateway/CreateMiner"
const OperationGatewayCreateMinerSet = "/gateway.v1.Gateway/CreateMinerSet"
const OperationGatewayDeleteMiner = "/gateway.v1.Gateway/DeleteMiner"
const OperationGatewayDeleteMinerSet = "/gateway.v1.Gateway/DeleteMinerSet"
const OperationGatewayGetIdempotentToken = "/gateway.v1.Gateway/GetIdempotentToken"
const OperationGatewayGetMiner = "/gateway.v1.Gateway/GetMiner"
const OperationGatewayGetMinerSet = "/gateway.v1.Gateway/GetMinerSet"
const OperationGatewayGetVersion = "/gateway.v1.Gateway/GetVersion"
const OperationGatewayListMiner = "/gateway.v1.Gateway/ListMiner"
const OperationGatewayListMinerSet = "/gateway.v1.Gateway/ListMinerSet"
const OperationGatewayScaleMinerSet = "/gateway.v1.Gateway/ScaleMinerSet"
const OperationGatewayUpdateMiner = "/gateway.v1.Gateway/UpdateMiner"
const OperationGatewayUpdateMinerSet = "/gateway.v1.Gateway/UpdateMinerSet"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "UserLoginFailed", 1: "UserAlreadyExists", 2: "UserNotFound", 3: "UserCreateFailed", } ErrorReason_value = map[string]int32{ "UserLoginFailed": 0, "UserAlreadyExists": 1, "UserNotFound": 2, "UserCreateFailed": 3, } )
Enum value maps for ErrorReason.
var File_gateway_v1_errors_proto protoreflect.FileDescriptor
var File_gateway_v1_gateway_proto protoreflect.FileDescriptor
var Gateway_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.v1.Gateway", HandlerType: (*GatewayServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _Gateway_GetVersion_Handler, }, { MethodName: "GetIdempotentToken", Handler: _Gateway_GetIdempotentToken_Handler, }, { MethodName: "CreateMinerSet", Handler: _Gateway_CreateMinerSet_Handler, }, { MethodName: "ListMinerSet", Handler: _Gateway_ListMinerSet_Handler, }, { MethodName: "GetMinerSet", Handler: _Gateway_GetMinerSet_Handler, }, { MethodName: "UpdateMinerSet", Handler: _Gateway_UpdateMinerSet_Handler, }, { MethodName: "DeleteMinerSet", Handler: _Gateway_DeleteMinerSet_Handler, }, { MethodName: "ScaleMinerSet", Handler: _Gateway_ScaleMinerSet_Handler, }, { MethodName: "CreateMiner", Handler: _Gateway_CreateMiner_Handler, }, { MethodName: "ListMiner", Handler: _Gateway_ListMiner_Handler, }, { MethodName: "GetMiner", Handler: _Gateway_GetMiner_Handler, }, { MethodName: "UpdateMiner", Handler: _Gateway_UpdateMiner_Handler, }, { MethodName: "DeleteMiner", Handler: _Gateway_DeleteMiner_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gateway/v1/gateway.proto", }
Gateway_ServiceDesc is the grpc.ServiceDesc for Gateway service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorUserAlreadyExists ¶
用户已存在错误
func ErrorUserCreateFailed ¶
创建用户失败错误
func ErrorUserLoginFailed ¶
用户登录失败,可能是用户名或密码不对
func ErrorUserNotFound ¶
用户未找到错误
func RegisterGatewayHTTPServer ¶
func RegisterGatewayHTTPServer(s *http.Server, srv GatewayHTTPServer)
func RegisterGatewayServer ¶
func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
Types ¶
type CreateMinerRequest ¶
type CreateMinerRequest struct { DisplayName string `protobuf:"bytes,1,opt,name=displayName,proto3" json:"displayName,omitempty"` MinerType string `protobuf:"bytes,2,opt,name=minerType,proto3" json:"minerType,omitempty"` ChainName string `protobuf:"bytes,3,opt,name=chainName,proto3" json:"chainName,omitempty"` DataDir string `protobuf:"bytes,4,opt,name=dataDir,proto3" json:"dataDir,omitempty"` // contains filtered or unexported fields }
func (*CreateMinerRequest) Descriptor
deprecated
func (*CreateMinerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMinerRequest.ProtoReflect.Descriptor instead.
func (*CreateMinerRequest) GetChainName ¶
func (x *CreateMinerRequest) GetChainName() string
func (*CreateMinerRequest) GetDataDir ¶
func (x *CreateMinerRequest) GetDataDir() string
func (*CreateMinerRequest) GetDisplayName ¶
func (x *CreateMinerRequest) GetDisplayName() string
func (*CreateMinerRequest) GetMinerType ¶
func (x *CreateMinerRequest) GetMinerType() string
func (*CreateMinerRequest) ProtoMessage ¶
func (*CreateMinerRequest) ProtoMessage()
func (*CreateMinerRequest) ProtoReflect ¶
func (x *CreateMinerRequest) ProtoReflect() protoreflect.Message
func (*CreateMinerRequest) Reset ¶
func (x *CreateMinerRequest) Reset()
func (*CreateMinerRequest) String ¶
func (x *CreateMinerRequest) String() string
func (*CreateMinerRequest) Validate ¶
func (m *CreateMinerRequest) Validate() error
Validate checks the field values on CreateMinerRequest 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 (*CreateMinerRequest) ValidateAll ¶
func (m *CreateMinerRequest) ValidateAll() error
ValidateAll checks the field values on CreateMinerRequest 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 CreateMinerRequestMultiError, or nil if none found.
type CreateMinerRequestMultiError ¶
type CreateMinerRequestMultiError []error
CreateMinerRequestMultiError is an error wrapping multiple validation errors returned by CreateMinerRequest.ValidateAll() if the designated constraints aren't met.
func (CreateMinerRequestMultiError) AllErrors ¶
func (m CreateMinerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMinerRequestMultiError) Error ¶
func (m CreateMinerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMinerRequestValidationError ¶
type CreateMinerRequestValidationError struct {
// contains filtered or unexported fields
}
CreateMinerRequestValidationError is the validation error returned by CreateMinerRequest.Validate if the designated constraints aren't met.
func (CreateMinerRequestValidationError) Cause ¶
func (e CreateMinerRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateMinerRequestValidationError) Error ¶
func (e CreateMinerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMinerRequestValidationError) ErrorName ¶
func (e CreateMinerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMinerRequestValidationError) Field ¶
func (e CreateMinerRequestValidationError) Field() string
Field function returns field value.
func (CreateMinerRequestValidationError) Key ¶
func (e CreateMinerRequestValidationError) Key() bool
Key function returns key value.
func (CreateMinerRequestValidationError) Reason ¶
func (e CreateMinerRequestValidationError) Reason() string
Reason function returns reason value.
type CreateMinerSetRequest ¶
type CreateMinerSetRequest struct { Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` DeletePolicy string `protobuf:"bytes,3,opt,name=deletePolicy,proto3" json:"deletePolicy,omitempty"` MinerTemplate *MinerTemplate `protobuf:"bytes,4,opt,name=MinerTemplate,proto3" json:"MinerTemplate,omitempty"` // contains filtered or unexported fields }
func (*CreateMinerSetRequest) Descriptor
deprecated
func (*CreateMinerSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMinerSetRequest.ProtoReflect.Descriptor instead.
func (*CreateMinerSetRequest) GetDeletePolicy ¶
func (x *CreateMinerSetRequest) GetDeletePolicy() string
func (*CreateMinerSetRequest) GetDisplayName ¶
func (x *CreateMinerSetRequest) GetDisplayName() string
func (*CreateMinerSetRequest) GetMinerTemplate ¶
func (x *CreateMinerSetRequest) GetMinerTemplate() *MinerTemplate
func (*CreateMinerSetRequest) GetReplicas ¶
func (x *CreateMinerSetRequest) GetReplicas() int32
func (*CreateMinerSetRequest) ProtoMessage ¶
func (*CreateMinerSetRequest) ProtoMessage()
func (*CreateMinerSetRequest) ProtoReflect ¶
func (x *CreateMinerSetRequest) ProtoReflect() protoreflect.Message
func (*CreateMinerSetRequest) Reset ¶
func (x *CreateMinerSetRequest) Reset()
func (*CreateMinerSetRequest) String ¶
func (x *CreateMinerSetRequest) String() string
func (*CreateMinerSetRequest) Validate ¶
func (m *CreateMinerSetRequest) Validate() error
Validate checks the field values on CreateMinerSetRequest 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 (*CreateMinerSetRequest) ValidateAll ¶
func (m *CreateMinerSetRequest) ValidateAll() error
ValidateAll checks the field values on CreateMinerSetRequest 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 CreateMinerSetRequestMultiError, or nil if none found.
type CreateMinerSetRequestMultiError ¶
type CreateMinerSetRequestMultiError []error
CreateMinerSetRequestMultiError is an error wrapping multiple validation errors returned by CreateMinerSetRequest.ValidateAll() if the designated constraints aren't met.
func (CreateMinerSetRequestMultiError) AllErrors ¶
func (m CreateMinerSetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMinerSetRequestMultiError) Error ¶
func (m CreateMinerSetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMinerSetRequestValidationError ¶
type CreateMinerSetRequestValidationError struct {
// contains filtered or unexported fields
}
CreateMinerSetRequestValidationError is the validation error returned by CreateMinerSetRequest.Validate if the designated constraints aren't met.
func (CreateMinerSetRequestValidationError) Cause ¶
func (e CreateMinerSetRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateMinerSetRequestValidationError) Error ¶
func (e CreateMinerSetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMinerSetRequestValidationError) ErrorName ¶
func (e CreateMinerSetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMinerSetRequestValidationError) Field ¶
func (e CreateMinerSetRequestValidationError) Field() string
Field function returns field value.
func (CreateMinerSetRequestValidationError) Key ¶
func (e CreateMinerSetRequestValidationError) Key() bool
Key function returns key value.
func (CreateMinerSetRequestValidationError) Reason ¶
func (e CreateMinerSetRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMinerRequest ¶
type DeleteMinerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteMinerRequest) Descriptor
deprecated
func (*DeleteMinerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMinerRequest.ProtoReflect.Descriptor instead.
func (*DeleteMinerRequest) GetName ¶
func (x *DeleteMinerRequest) GetName() string
func (*DeleteMinerRequest) ProtoMessage ¶
func (*DeleteMinerRequest) ProtoMessage()
func (*DeleteMinerRequest) ProtoReflect ¶
func (x *DeleteMinerRequest) ProtoReflect() protoreflect.Message
func (*DeleteMinerRequest) Reset ¶
func (x *DeleteMinerRequest) Reset()
func (*DeleteMinerRequest) String ¶
func (x *DeleteMinerRequest) String() string
func (*DeleteMinerRequest) Validate ¶
func (m *DeleteMinerRequest) Validate() error
Validate checks the field values on DeleteMinerRequest 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 (*DeleteMinerRequest) ValidateAll ¶
func (m *DeleteMinerRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMinerRequest 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 DeleteMinerRequestMultiError, or nil if none found.
type DeleteMinerRequestMultiError ¶
type DeleteMinerRequestMultiError []error
DeleteMinerRequestMultiError is an error wrapping multiple validation errors returned by DeleteMinerRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMinerRequestMultiError) AllErrors ¶
func (m DeleteMinerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMinerRequestMultiError) Error ¶
func (m DeleteMinerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMinerRequestValidationError ¶
type DeleteMinerRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMinerRequestValidationError is the validation error returned by DeleteMinerRequest.Validate if the designated constraints aren't met.
func (DeleteMinerRequestValidationError) Cause ¶
func (e DeleteMinerRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMinerRequestValidationError) Error ¶
func (e DeleteMinerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMinerRequestValidationError) ErrorName ¶
func (e DeleteMinerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMinerRequestValidationError) Field ¶
func (e DeleteMinerRequestValidationError) Field() string
Field function returns field value.
func (DeleteMinerRequestValidationError) Key ¶
func (e DeleteMinerRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMinerRequestValidationError) Reason ¶
func (e DeleteMinerRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMinerSetRequest ¶
type DeleteMinerSetRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteMinerSetRequest) Descriptor
deprecated
func (*DeleteMinerSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMinerSetRequest.ProtoReflect.Descriptor instead.
func (*DeleteMinerSetRequest) GetName ¶
func (x *DeleteMinerSetRequest) GetName() string
func (*DeleteMinerSetRequest) ProtoMessage ¶
func (*DeleteMinerSetRequest) ProtoMessage()
func (*DeleteMinerSetRequest) ProtoReflect ¶
func (x *DeleteMinerSetRequest) ProtoReflect() protoreflect.Message
func (*DeleteMinerSetRequest) Reset ¶
func (x *DeleteMinerSetRequest) Reset()
func (*DeleteMinerSetRequest) String ¶
func (x *DeleteMinerSetRequest) String() string
func (*DeleteMinerSetRequest) Validate ¶
func (m *DeleteMinerSetRequest) Validate() error
Validate checks the field values on DeleteMinerSetRequest 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 (*DeleteMinerSetRequest) ValidateAll ¶
func (m *DeleteMinerSetRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMinerSetRequest 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 DeleteMinerSetRequestMultiError, or nil if none found.
type DeleteMinerSetRequestMultiError ¶
type DeleteMinerSetRequestMultiError []error
DeleteMinerSetRequestMultiError is an error wrapping multiple validation errors returned by DeleteMinerSetRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMinerSetRequestMultiError) AllErrors ¶
func (m DeleteMinerSetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMinerSetRequestMultiError) Error ¶
func (m DeleteMinerSetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMinerSetRequestValidationError ¶
type DeleteMinerSetRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMinerSetRequestValidationError is the validation error returned by DeleteMinerSetRequest.Validate if the designated constraints aren't met.
func (DeleteMinerSetRequestValidationError) Cause ¶
func (e DeleteMinerSetRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMinerSetRequestValidationError) Error ¶
func (e DeleteMinerSetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMinerSetRequestValidationError) ErrorName ¶
func (e DeleteMinerSetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMinerSetRequestValidationError) Field ¶
func (e DeleteMinerSetRequestValidationError) Field() string
Field function returns field value.
func (DeleteMinerSetRequestValidationError) Key ¶
func (e DeleteMinerSetRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMinerSetRequestValidationError) Reason ¶
func (e DeleteMinerSetRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( // 用户登录失败,可能是用户名或密码不对 ErrorReason_UserLoginFailed ErrorReason = 0 // 用户已存在错误 ErrorReason_UserAlreadyExists ErrorReason = 1 // 用户未找到错误 ErrorReason_UserNotFound ErrorReason = 2 // 创建用户失败错误 ErrorReason_UserCreateFailed ErrorReason = 3 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GatewayClient ¶
type GatewayClient interface { // GetVersion GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionResponse, error) // GetIdempotentToken GetIdempotentToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IdempotentResponse, error) // CreateMinerSet CreateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...grpc.CallOption) (*emptypb.Empty, error) // ListMinerSet ListMinerSet(ctx context.Context, in *ListMinerSetRequest, opts ...grpc.CallOption) (*ListMinerSetResponse, error) // GetMinerSet GetMinerSet(ctx context.Context, in *GetMinerSetRequest, opts ...grpc.CallOption) (*v1beta1.MinerSet, error) // UpdateMinerSet UpdateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteMinerSet DeleteMinerSet(ctx context.Context, in *DeleteMinerSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // ScaleMinerSet ScaleMinerSet(ctx context.Context, in *ScaleMinerSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // CreateMiner CreateMiner(ctx context.Context, in *v1beta1.Miner, opts ...grpc.CallOption) (*emptypb.Empty, error) // ListMiner ListMiner(ctx context.Context, in *ListMinerRequest, opts ...grpc.CallOption) (*ListMinerResponse, error) // GetMiner GetMiner(ctx context.Context, in *GetMinerRequest, opts ...grpc.CallOption) (*v1beta1.Miner, error) // UpdateMiner UpdateMiner(ctx context.Context, in *v1beta1.Miner, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteMiner DeleteMiner(ctx context.Context, in *DeleteMinerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
GatewayClient is the client API for Gateway 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.
Peer lists hubble peers and notifies of changes.
func NewGatewayClient ¶
func NewGatewayClient(cc grpc.ClientConnInterface) GatewayClient
type GatewayHTTPClient ¶
type GatewayHTTPClient interface { CreateMiner(ctx context.Context, req *v1beta1.Miner, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CreateMinerSet(ctx context.Context, req *v1beta1.MinerSet, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteMiner(ctx context.Context, req *DeleteMinerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteMinerSet(ctx context.Context, req *DeleteMinerSetRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetIdempotentToken(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *IdempotentResponse, err error) GetMiner(ctx context.Context, req *GetMinerRequest, opts ...http.CallOption) (rsp *v1beta1.Miner, err error) GetMinerSet(ctx context.Context, req *GetMinerSetRequest, opts ...http.CallOption) (rsp *v1beta1.MinerSet, err error) GetVersion(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetVersionResponse, err error) ListMiner(ctx context.Context, req *ListMinerRequest, opts ...http.CallOption) (rsp *ListMinerResponse, err error) ListMinerSet(ctx context.Context, req *ListMinerSetRequest, opts ...http.CallOption) (rsp *ListMinerSetResponse, err error) ScaleMinerSet(ctx context.Context, req *ScaleMinerSetRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateMiner(ctx context.Context, req *v1beta1.Miner, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateMinerSet(ctx context.Context, req *v1beta1.MinerSet, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewGatewayHTTPClient ¶
func NewGatewayHTTPClient(client *http.Client) GatewayHTTPClient
type GatewayHTTPClientImpl ¶
type GatewayHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*GatewayHTTPClientImpl) CreateMiner ¶
func (c *GatewayHTTPClientImpl) CreateMiner(ctx context.Context, in *v1beta1.Miner, opts ...http.CallOption) (*emptypb.Empty, error)
func (*GatewayHTTPClientImpl) CreateMinerSet ¶
func (c *GatewayHTTPClientImpl) CreateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...http.CallOption) (*emptypb.Empty, error)
func (*GatewayHTTPClientImpl) DeleteMiner ¶
func (c *GatewayHTTPClientImpl) DeleteMiner(ctx context.Context, in *DeleteMinerRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*GatewayHTTPClientImpl) DeleteMinerSet ¶
func (c *GatewayHTTPClientImpl) DeleteMinerSet(ctx context.Context, in *DeleteMinerSetRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*GatewayHTTPClientImpl) GetIdempotentToken ¶
func (c *GatewayHTTPClientImpl) GetIdempotentToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*IdempotentResponse, error)
func (*GatewayHTTPClientImpl) GetMiner ¶
func (c *GatewayHTTPClientImpl) GetMiner(ctx context.Context, in *GetMinerRequest, opts ...http.CallOption) (*v1beta1.Miner, error)
func (*GatewayHTTPClientImpl) GetMinerSet ¶
func (c *GatewayHTTPClientImpl) GetMinerSet(ctx context.Context, in *GetMinerSetRequest, opts ...http.CallOption) (*v1beta1.MinerSet, error)
func (*GatewayHTTPClientImpl) GetVersion ¶
func (c *GatewayHTTPClientImpl) GetVersion(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetVersionResponse, error)
func (*GatewayHTTPClientImpl) ListMiner ¶
func (c *GatewayHTTPClientImpl) ListMiner(ctx context.Context, in *ListMinerRequest, opts ...http.CallOption) (*ListMinerResponse, error)
func (*GatewayHTTPClientImpl) ListMinerSet ¶
func (c *GatewayHTTPClientImpl) ListMinerSet(ctx context.Context, in *ListMinerSetRequest, opts ...http.CallOption) (*ListMinerSetResponse, error)
func (*GatewayHTTPClientImpl) ScaleMinerSet ¶
func (c *GatewayHTTPClientImpl) ScaleMinerSet(ctx context.Context, in *ScaleMinerSetRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*GatewayHTTPClientImpl) UpdateMiner ¶
func (c *GatewayHTTPClientImpl) UpdateMiner(ctx context.Context, in *v1beta1.Miner, opts ...http.CallOption) (*emptypb.Empty, error)
func (*GatewayHTTPClientImpl) UpdateMinerSet ¶
func (c *GatewayHTTPClientImpl) UpdateMinerSet(ctx context.Context, in *v1beta1.MinerSet, opts ...http.CallOption) (*emptypb.Empty, error)
type GatewayHTTPServer ¶
type GatewayHTTPServer interface { // CreateMiner CreateMiner CreateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error) // CreateMinerSet CreateMinerSet CreateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error) // DeleteMiner DeleteMiner DeleteMiner(context.Context, *DeleteMinerRequest) (*emptypb.Empty, error) // DeleteMinerSet DeleteMinerSet DeleteMinerSet(context.Context, *DeleteMinerSetRequest) (*emptypb.Empty, error) // GetIdempotentToken GetIdempotentToken GetIdempotentToken(context.Context, *emptypb.Empty) (*IdempotentResponse, error) // GetMiner GetMiner GetMiner(context.Context, *GetMinerRequest) (*v1beta1.Miner, error) // GetMinerSet GetMinerSet GetMinerSet(context.Context, *GetMinerSetRequest) (*v1beta1.MinerSet, error) // GetVersion GetVersion GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error) // ListMiner ListMiner ListMiner(context.Context, *ListMinerRequest) (*ListMinerResponse, error) // ListMinerSet ListMinerSet ListMinerSet(context.Context, *ListMinerSetRequest) (*ListMinerSetResponse, error) // ScaleMinerSet ScaleMinerSet ScaleMinerSet(context.Context, *ScaleMinerSetRequest) (*emptypb.Empty, error) // UpdateMiner UpdateMiner UpdateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error) // UpdateMinerSet UpdateMinerSet UpdateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error) }
type GatewayServer ¶
type GatewayServer interface { // GetVersion GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error) // GetIdempotentToken GetIdempotentToken(context.Context, *emptypb.Empty) (*IdempotentResponse, error) // CreateMinerSet CreateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error) // ListMinerSet ListMinerSet(context.Context, *ListMinerSetRequest) (*ListMinerSetResponse, error) // GetMinerSet GetMinerSet(context.Context, *GetMinerSetRequest) (*v1beta1.MinerSet, error) // UpdateMinerSet UpdateMinerSet(context.Context, *v1beta1.MinerSet) (*emptypb.Empty, error) // DeleteMinerSet DeleteMinerSet(context.Context, *DeleteMinerSetRequest) (*emptypb.Empty, error) // ScaleMinerSet ScaleMinerSet(context.Context, *ScaleMinerSetRequest) (*emptypb.Empty, error) // CreateMiner CreateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error) // ListMiner ListMiner(context.Context, *ListMinerRequest) (*ListMinerResponse, error) // GetMiner GetMiner(context.Context, *GetMinerRequest) (*v1beta1.Miner, error) // UpdateMiner UpdateMiner(context.Context, *v1beta1.Miner) (*emptypb.Empty, error) // DeleteMiner DeleteMiner(context.Context, *DeleteMinerRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
GatewayServer is the server API for Gateway service. All implementations must embed UnimplementedGatewayServer for forward compatibility.
Peer lists hubble peers and notifies of changes.
type GetMinerRequest ¶
type GetMinerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetMinerRequest) Descriptor
deprecated
func (*GetMinerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMinerRequest.ProtoReflect.Descriptor instead.
func (*GetMinerRequest) GetName ¶
func (x *GetMinerRequest) GetName() string
func (*GetMinerRequest) ProtoMessage ¶
func (*GetMinerRequest) ProtoMessage()
func (*GetMinerRequest) ProtoReflect ¶
func (x *GetMinerRequest) ProtoReflect() protoreflect.Message
func (*GetMinerRequest) Reset ¶
func (x *GetMinerRequest) Reset()
func (*GetMinerRequest) String ¶
func (x *GetMinerRequest) String() string
func (*GetMinerRequest) Validate ¶
func (m *GetMinerRequest) Validate() error
Validate checks the field values on GetMinerRequest 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 (*GetMinerRequest) ValidateAll ¶
func (m *GetMinerRequest) ValidateAll() error
ValidateAll checks the field values on GetMinerRequest 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 GetMinerRequestMultiError, or nil if none found.
type GetMinerRequestMultiError ¶
type GetMinerRequestMultiError []error
GetMinerRequestMultiError is an error wrapping multiple validation errors returned by GetMinerRequest.ValidateAll() if the designated constraints aren't met.
func (GetMinerRequestMultiError) AllErrors ¶
func (m GetMinerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMinerRequestMultiError) Error ¶
func (m GetMinerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMinerRequestValidationError ¶
type GetMinerRequestValidationError struct {
// contains filtered or unexported fields
}
GetMinerRequestValidationError is the validation error returned by GetMinerRequest.Validate if the designated constraints aren't met.
func (GetMinerRequestValidationError) Cause ¶
func (e GetMinerRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMinerRequestValidationError) Error ¶
func (e GetMinerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMinerRequestValidationError) ErrorName ¶
func (e GetMinerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMinerRequestValidationError) Field ¶
func (e GetMinerRequestValidationError) Field() string
Field function returns field value.
func (GetMinerRequestValidationError) Key ¶
func (e GetMinerRequestValidationError) Key() bool
Key function returns key value.
func (GetMinerRequestValidationError) Reason ¶
func (e GetMinerRequestValidationError) Reason() string
Reason function returns reason value.
type GetMinerSetRequest ¶
type GetMinerSetRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetMinerSetRequest) Descriptor
deprecated
func (*GetMinerSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMinerSetRequest.ProtoReflect.Descriptor instead.
func (*GetMinerSetRequest) GetName ¶
func (x *GetMinerSetRequest) GetName() string
func (*GetMinerSetRequest) ProtoMessage ¶
func (*GetMinerSetRequest) ProtoMessage()
func (*GetMinerSetRequest) ProtoReflect ¶
func (x *GetMinerSetRequest) ProtoReflect() protoreflect.Message
func (*GetMinerSetRequest) Reset ¶
func (x *GetMinerSetRequest) Reset()
func (*GetMinerSetRequest) String ¶
func (x *GetMinerSetRequest) String() string
func (*GetMinerSetRequest) Validate ¶
func (m *GetMinerSetRequest) Validate() error
Validate checks the field values on GetMinerSetRequest 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 (*GetMinerSetRequest) ValidateAll ¶
func (m *GetMinerSetRequest) ValidateAll() error
ValidateAll checks the field values on GetMinerSetRequest 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 GetMinerSetRequestMultiError, or nil if none found.
type GetMinerSetRequestMultiError ¶
type GetMinerSetRequestMultiError []error
GetMinerSetRequestMultiError is an error wrapping multiple validation errors returned by GetMinerSetRequest.ValidateAll() if the designated constraints aren't met.
func (GetMinerSetRequestMultiError) AllErrors ¶
func (m GetMinerSetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMinerSetRequestMultiError) Error ¶
func (m GetMinerSetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMinerSetRequestValidationError ¶
type GetMinerSetRequestValidationError struct {
// contains filtered or unexported fields
}
GetMinerSetRequestValidationError is the validation error returned by GetMinerSetRequest.Validate if the designated constraints aren't met.
func (GetMinerSetRequestValidationError) Cause ¶
func (e GetMinerSetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMinerSetRequestValidationError) Error ¶
func (e GetMinerSetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMinerSetRequestValidationError) ErrorName ¶
func (e GetMinerSetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMinerSetRequestValidationError) Field ¶
func (e GetMinerSetRequestValidationError) Field() string
Field function returns field value.
func (GetMinerSetRequestValidationError) Key ¶
func (e GetMinerSetRequestValidationError) Key() bool
Key function returns key value.
func (GetMinerSetRequestValidationError) Reason ¶
func (e GetMinerSetRequestValidationError) Reason() string
Reason function returns reason value.
type GetVersionResponse ¶
type GetVersionResponse struct { GitVersion string `protobuf:"bytes,1,opt,name=GitVersion,proto3" json:"GitVersion,omitempty"` GitCommit string `protobuf:"bytes,2,opt,name=GitCommit,proto3" json:"GitCommit,omitempty"` GitTreeState string `protobuf:"bytes,3,opt,name=GitTreeState,proto3" json:"GitTreeState,omitempty"` BuildDate string `protobuf:"bytes,4,opt,name=BuildDate,proto3" json:"BuildDate,omitempty"` GoVersion string `protobuf:"bytes,5,opt,name=GoVersion,proto3" json:"GoVersion,omitempty"` Compiler string `protobuf:"bytes,6,opt,name=Compiler,proto3" json:"Compiler,omitempty"` Platform string `protobuf:"bytes,7,opt,name=Platform,proto3" json:"Platform,omitempty"` // contains filtered or unexported fields }
func (*GetVersionResponse) Descriptor
deprecated
func (*GetVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.
func (*GetVersionResponse) GetBuildDate ¶
func (x *GetVersionResponse) GetBuildDate() string
func (*GetVersionResponse) GetCompiler ¶
func (x *GetVersionResponse) GetCompiler() string
func (*GetVersionResponse) GetGitCommit ¶
func (x *GetVersionResponse) GetGitCommit() string
func (*GetVersionResponse) GetGitTreeState ¶
func (x *GetVersionResponse) GetGitTreeState() string
func (*GetVersionResponse) GetGitVersion ¶
func (x *GetVersionResponse) GetGitVersion() string
func (*GetVersionResponse) GetGoVersion ¶
func (x *GetVersionResponse) GetGoVersion() string
func (*GetVersionResponse) GetPlatform ¶
func (x *GetVersionResponse) GetPlatform() string
func (*GetVersionResponse) ProtoMessage ¶
func (*GetVersionResponse) ProtoMessage()
func (*GetVersionResponse) ProtoReflect ¶
func (x *GetVersionResponse) ProtoReflect() protoreflect.Message
func (*GetVersionResponse) Reset ¶
func (x *GetVersionResponse) Reset()
func (*GetVersionResponse) String ¶
func (x *GetVersionResponse) String() string
func (*GetVersionResponse) Validate ¶
func (m *GetVersionResponse) Validate() error
Validate checks the field values on GetVersionResponse 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 (*GetVersionResponse) ValidateAll ¶
func (m *GetVersionResponse) ValidateAll() error
ValidateAll checks the field values on GetVersionResponse 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 GetVersionResponseMultiError, or nil if none found.
type GetVersionResponseMultiError ¶
type GetVersionResponseMultiError []error
GetVersionResponseMultiError is an error wrapping multiple validation errors returned by GetVersionResponse.ValidateAll() if the designated constraints aren't met.
func (GetVersionResponseMultiError) AllErrors ¶
func (m GetVersionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetVersionResponseMultiError) Error ¶
func (m GetVersionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetVersionResponseValidationError ¶
type GetVersionResponseValidationError struct {
// contains filtered or unexported fields
}
GetVersionResponseValidationError is the validation error returned by GetVersionResponse.Validate if the designated constraints aren't met.
func (GetVersionResponseValidationError) Cause ¶
func (e GetVersionResponseValidationError) Cause() error
Cause function returns cause value.
func (GetVersionResponseValidationError) Error ¶
func (e GetVersionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetVersionResponseValidationError) ErrorName ¶
func (e GetVersionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetVersionResponseValidationError) Field ¶
func (e GetVersionResponseValidationError) Field() string
Field function returns field value.
func (GetVersionResponseValidationError) Key ¶
func (e GetVersionResponseValidationError) Key() bool
Key function returns key value.
func (GetVersionResponseValidationError) Reason ¶
func (e GetVersionResponseValidationError) Reason() string
Reason function returns reason value.
type IdempotentResponse ¶
type IdempotentResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*IdempotentResponse) Descriptor
deprecated
func (*IdempotentResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdempotentResponse.ProtoReflect.Descriptor instead.
func (*IdempotentResponse) GetToken ¶
func (x *IdempotentResponse) GetToken() string
func (*IdempotentResponse) ProtoMessage ¶
func (*IdempotentResponse) ProtoMessage()
func (*IdempotentResponse) ProtoReflect ¶
func (x *IdempotentResponse) ProtoReflect() protoreflect.Message
func (*IdempotentResponse) Reset ¶
func (x *IdempotentResponse) Reset()
func (*IdempotentResponse) String ¶
func (x *IdempotentResponse) String() string
func (*IdempotentResponse) Validate ¶
func (m *IdempotentResponse) Validate() error
Validate checks the field values on IdempotentResponse 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 (*IdempotentResponse) ValidateAll ¶
func (m *IdempotentResponse) ValidateAll() error
ValidateAll checks the field values on IdempotentResponse 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 IdempotentResponseMultiError, or nil if none found.
type IdempotentResponseMultiError ¶
type IdempotentResponseMultiError []error
IdempotentResponseMultiError is an error wrapping multiple validation errors returned by IdempotentResponse.ValidateAll() if the designated constraints aren't met.
func (IdempotentResponseMultiError) AllErrors ¶
func (m IdempotentResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdempotentResponseMultiError) Error ¶
func (m IdempotentResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdempotentResponseValidationError ¶
type IdempotentResponseValidationError struct {
// contains filtered or unexported fields
}
IdempotentResponseValidationError is the validation error returned by IdempotentResponse.Validate if the designated constraints aren't met.
func (IdempotentResponseValidationError) Cause ¶
func (e IdempotentResponseValidationError) Cause() error
Cause function returns cause value.
func (IdempotentResponseValidationError) Error ¶
func (e IdempotentResponseValidationError) Error() string
Error satisfies the builtin error interface
func (IdempotentResponseValidationError) ErrorName ¶
func (e IdempotentResponseValidationError) ErrorName() string
ErrorName returns error name.
func (IdempotentResponseValidationError) Field ¶
func (e IdempotentResponseValidationError) Field() string
Field function returns field value.
func (IdempotentResponseValidationError) Key ¶
func (e IdempotentResponseValidationError) Key() bool
Key function returns key value.
func (IdempotentResponseValidationError) Reason ¶
func (e IdempotentResponseValidationError) Reason() string
Reason function returns reason value.
type ListMinerRequest ¶
type ListMinerRequest struct { Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListMinerRequest) Descriptor
deprecated
func (*ListMinerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMinerRequest.ProtoReflect.Descriptor instead.
func (*ListMinerRequest) GetLimit ¶
func (x *ListMinerRequest) GetLimit() int64
func (*ListMinerRequest) GetOffset ¶
func (x *ListMinerRequest) GetOffset() int64
func (*ListMinerRequest) ProtoMessage ¶
func (*ListMinerRequest) ProtoMessage()
func (*ListMinerRequest) ProtoReflect ¶
func (x *ListMinerRequest) ProtoReflect() protoreflect.Message
func (*ListMinerRequest) Reset ¶
func (x *ListMinerRequest) Reset()
func (*ListMinerRequest) String ¶
func (x *ListMinerRequest) String() string
func (*ListMinerRequest) Validate ¶
func (m *ListMinerRequest) Validate() error
Validate checks the field values on ListMinerRequest 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 (*ListMinerRequest) ValidateAll ¶
func (m *ListMinerRequest) ValidateAll() error
ValidateAll checks the field values on ListMinerRequest 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 ListMinerRequestMultiError, or nil if none found.
type ListMinerRequestMultiError ¶
type ListMinerRequestMultiError []error
ListMinerRequestMultiError is an error wrapping multiple validation errors returned by ListMinerRequest.ValidateAll() if the designated constraints aren't met.
func (ListMinerRequestMultiError) AllErrors ¶
func (m ListMinerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMinerRequestMultiError) Error ¶
func (m ListMinerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMinerRequestValidationError ¶
type ListMinerRequestValidationError struct {
// contains filtered or unexported fields
}
ListMinerRequestValidationError is the validation error returned by ListMinerRequest.Validate if the designated constraints aren't met.
func (ListMinerRequestValidationError) Cause ¶
func (e ListMinerRequestValidationError) Cause() error
Cause function returns cause value.
func (ListMinerRequestValidationError) Error ¶
func (e ListMinerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListMinerRequestValidationError) ErrorName ¶
func (e ListMinerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListMinerRequestValidationError) Field ¶
func (e ListMinerRequestValidationError) Field() string
Field function returns field value.
func (ListMinerRequestValidationError) Key ¶
func (e ListMinerRequestValidationError) Key() bool
Key function returns key value.
func (ListMinerRequestValidationError) Reason ¶
func (e ListMinerRequestValidationError) Reason() string
Reason function returns reason value.
type ListMinerResponse ¶
type ListMinerResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` Miners []*Miner `protobuf:"bytes,2,rep,name=Miners,proto3" json:"Miners,omitempty"` // contains filtered or unexported fields }
func (*ListMinerResponse) Descriptor
deprecated
func (*ListMinerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMinerResponse.ProtoReflect.Descriptor instead.
func (*ListMinerResponse) GetMiners ¶
func (x *ListMinerResponse) GetMiners() []*Miner
func (*ListMinerResponse) GetTotalCount ¶
func (x *ListMinerResponse) GetTotalCount() int64
func (*ListMinerResponse) ProtoMessage ¶
func (*ListMinerResponse) ProtoMessage()
func (*ListMinerResponse) ProtoReflect ¶
func (x *ListMinerResponse) ProtoReflect() protoreflect.Message
func (*ListMinerResponse) Reset ¶
func (x *ListMinerResponse) Reset()
func (*ListMinerResponse) String ¶
func (x *ListMinerResponse) String() string
func (*ListMinerResponse) Validate ¶
func (m *ListMinerResponse) Validate() error
Validate checks the field values on ListMinerResponse 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 (*ListMinerResponse) ValidateAll ¶
func (m *ListMinerResponse) ValidateAll() error
ValidateAll checks the field values on ListMinerResponse 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 ListMinerResponseMultiError, or nil if none found.
type ListMinerResponseMultiError ¶
type ListMinerResponseMultiError []error
ListMinerResponseMultiError is an error wrapping multiple validation errors returned by ListMinerResponse.ValidateAll() if the designated constraints aren't met.
func (ListMinerResponseMultiError) AllErrors ¶
func (m ListMinerResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMinerResponseMultiError) Error ¶
func (m ListMinerResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMinerResponseValidationError ¶
type ListMinerResponseValidationError struct {
// contains filtered or unexported fields
}
ListMinerResponseValidationError is the validation error returned by ListMinerResponse.Validate if the designated constraints aren't met.
func (ListMinerResponseValidationError) Cause ¶
func (e ListMinerResponseValidationError) Cause() error
Cause function returns cause value.
func (ListMinerResponseValidationError) Error ¶
func (e ListMinerResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListMinerResponseValidationError) ErrorName ¶
func (e ListMinerResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListMinerResponseValidationError) Field ¶
func (e ListMinerResponseValidationError) Field() string
Field function returns field value.
func (ListMinerResponseValidationError) Key ¶
func (e ListMinerResponseValidationError) Key() bool
Key function returns key value.
func (ListMinerResponseValidationError) Reason ¶
func (e ListMinerResponseValidationError) Reason() string
Reason function returns reason value.
type ListMinerSetRequest ¶
type ListMinerSetRequest struct { Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListMinerSetRequest) Descriptor
deprecated
func (*ListMinerSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMinerSetRequest.ProtoReflect.Descriptor instead.
func (*ListMinerSetRequest) GetLimit ¶
func (x *ListMinerSetRequest) GetLimit() int64
func (*ListMinerSetRequest) GetOffset ¶
func (x *ListMinerSetRequest) GetOffset() int64
func (*ListMinerSetRequest) ProtoMessage ¶
func (*ListMinerSetRequest) ProtoMessage()
func (*ListMinerSetRequest) ProtoReflect ¶
func (x *ListMinerSetRequest) ProtoReflect() protoreflect.Message
func (*ListMinerSetRequest) Reset ¶
func (x *ListMinerSetRequest) Reset()
func (*ListMinerSetRequest) String ¶
func (x *ListMinerSetRequest) String() string
func (*ListMinerSetRequest) Validate ¶
func (m *ListMinerSetRequest) Validate() error
Validate checks the field values on ListMinerSetRequest 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 (*ListMinerSetRequest) ValidateAll ¶
func (m *ListMinerSetRequest) ValidateAll() error
ValidateAll checks the field values on ListMinerSetRequest 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 ListMinerSetRequestMultiError, or nil if none found.
type ListMinerSetRequestMultiError ¶
type ListMinerSetRequestMultiError []error
ListMinerSetRequestMultiError is an error wrapping multiple validation errors returned by ListMinerSetRequest.ValidateAll() if the designated constraints aren't met.
func (ListMinerSetRequestMultiError) AllErrors ¶
func (m ListMinerSetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMinerSetRequestMultiError) Error ¶
func (m ListMinerSetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMinerSetRequestValidationError ¶
type ListMinerSetRequestValidationError struct {
// contains filtered or unexported fields
}
ListMinerSetRequestValidationError is the validation error returned by ListMinerSetRequest.Validate if the designated constraints aren't met.
func (ListMinerSetRequestValidationError) Cause ¶
func (e ListMinerSetRequestValidationError) Cause() error
Cause function returns cause value.
func (ListMinerSetRequestValidationError) Error ¶
func (e ListMinerSetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListMinerSetRequestValidationError) ErrorName ¶
func (e ListMinerSetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListMinerSetRequestValidationError) Field ¶
func (e ListMinerSetRequestValidationError) Field() string
Field function returns field value.
func (ListMinerSetRequestValidationError) Key ¶
func (e ListMinerSetRequestValidationError) Key() bool
Key function returns key value.
func (ListMinerSetRequestValidationError) Reason ¶
func (e ListMinerSetRequestValidationError) Reason() string
Reason function returns reason value.
type ListMinerSetResponse ¶
type ListMinerSetResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` MinerSets []*MinerSet `protobuf:"bytes,2,rep,name=MinerSets,proto3" json:"MinerSets,omitempty"` // contains filtered or unexported fields }
func (*ListMinerSetResponse) Descriptor
deprecated
func (*ListMinerSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMinerSetResponse.ProtoReflect.Descriptor instead.
func (*ListMinerSetResponse) GetMinerSets ¶
func (x *ListMinerSetResponse) GetMinerSets() []*MinerSet
func (*ListMinerSetResponse) GetTotalCount ¶
func (x *ListMinerSetResponse) GetTotalCount() int64
func (*ListMinerSetResponse) ProtoMessage ¶
func (*ListMinerSetResponse) ProtoMessage()
func (*ListMinerSetResponse) ProtoReflect ¶
func (x *ListMinerSetResponse) ProtoReflect() protoreflect.Message
func (*ListMinerSetResponse) Reset ¶
func (x *ListMinerSetResponse) Reset()
func (*ListMinerSetResponse) String ¶
func (x *ListMinerSetResponse) String() string
func (*ListMinerSetResponse) Validate ¶
func (m *ListMinerSetResponse) Validate() error
Validate checks the field values on ListMinerSetResponse 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 (*ListMinerSetResponse) ValidateAll ¶
func (m *ListMinerSetResponse) ValidateAll() error
ValidateAll checks the field values on ListMinerSetResponse 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 ListMinerSetResponseMultiError, or nil if none found.
type ListMinerSetResponseMultiError ¶
type ListMinerSetResponseMultiError []error
ListMinerSetResponseMultiError is an error wrapping multiple validation errors returned by ListMinerSetResponse.ValidateAll() if the designated constraints aren't met.
func (ListMinerSetResponseMultiError) AllErrors ¶
func (m ListMinerSetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMinerSetResponseMultiError) Error ¶
func (m ListMinerSetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMinerSetResponseValidationError ¶
type ListMinerSetResponseValidationError struct {
// contains filtered or unexported fields
}
ListMinerSetResponseValidationError is the validation error returned by ListMinerSetResponse.Validate if the designated constraints aren't met.
func (ListMinerSetResponseValidationError) Cause ¶
func (e ListMinerSetResponseValidationError) Cause() error
Cause function returns cause value.
func (ListMinerSetResponseValidationError) Error ¶
func (e ListMinerSetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListMinerSetResponseValidationError) ErrorName ¶
func (e ListMinerSetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListMinerSetResponseValidationError) Field ¶
func (e ListMinerSetResponseValidationError) Field() string
Field function returns field value.
func (ListMinerSetResponseValidationError) Key ¶
func (e ListMinerSetResponseValidationError) Key() bool
Key function returns key value.
func (ListMinerSetResponseValidationError) Reason ¶
func (e ListMinerSetResponseValidationError) Reason() string
Reason function returns reason value.
type Miner ¶
type Miner struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` MinerType string `protobuf:"bytes,3,opt,name=minerType,proto3" json:"minerType,omitempty"` ChainName string `protobuf:"bytes,4,opt,name=chainName,proto3" json:"chainName,omitempty"` DataDir string `protobuf:"bytes,5,opt,name=dataDir,proto3" json:"dataDir,omitempty"` Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*Miner) Descriptor
deprecated
func (*Miner) GetChainName ¶
func (*Miner) GetCreatedAt ¶
func (x *Miner) GetCreatedAt() *timestamppb.Timestamp
func (*Miner) GetDataDir ¶
func (*Miner) GetDisplayName ¶
func (*Miner) GetMinerType ¶
func (*Miner) GetUpdatedAt ¶
func (x *Miner) GetUpdatedAt() *timestamppb.Timestamp
func (*Miner) ProtoMessage ¶
func (*Miner) ProtoMessage()
func (*Miner) ProtoReflect ¶
func (x *Miner) ProtoReflect() protoreflect.Message
func (*Miner) Validate ¶
Validate checks the field values on Miner 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 (*Miner) ValidateAll ¶
ValidateAll checks the field values on Miner 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 MinerMultiError, or nil if none found.
type MinerMultiError ¶
type MinerMultiError []error
MinerMultiError is an error wrapping multiple validation errors returned by Miner.ValidateAll() if the designated constraints aren't met.
func (MinerMultiError) AllErrors ¶
func (m MinerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MinerMultiError) Error ¶
func (m MinerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MinerSet ¶
type MinerSet struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=displayName,proto3" json:"displayName,omitempty"` DeletePolicy string `protobuf:"bytes,4,opt,name=deletePolicy,proto3" json:"deletePolicy,omitempty"` MinerTemplate *MinerTemplate `protobuf:"bytes,5,opt,name=MinerTemplate,proto3" json:"MinerTemplate,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*MinerSet) Descriptor
deprecated
func (*MinerSet) GetCreatedAt ¶
func (x *MinerSet) GetCreatedAt() *timestamppb.Timestamp
func (*MinerSet) GetDeletePolicy ¶
func (*MinerSet) GetDisplayName ¶
func (*MinerSet) GetMinerTemplate ¶
func (x *MinerSet) GetMinerTemplate() *MinerTemplate
func (*MinerSet) GetReplicas ¶
func (*MinerSet) GetUpdatedAt ¶
func (x *MinerSet) GetUpdatedAt() *timestamppb.Timestamp
func (*MinerSet) ProtoMessage ¶
func (*MinerSet) ProtoMessage()
func (*MinerSet) ProtoReflect ¶
func (x *MinerSet) ProtoReflect() protoreflect.Message
func (*MinerSet) Validate ¶
Validate checks the field values on MinerSet 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 (*MinerSet) ValidateAll ¶
ValidateAll checks the field values on MinerSet 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 MinerSetMultiError, or nil if none found.
type MinerSetMultiError ¶
type MinerSetMultiError []error
MinerSetMultiError is an error wrapping multiple validation errors returned by MinerSet.ValidateAll() if the designated constraints aren't met.
func (MinerSetMultiError) AllErrors ¶
func (m MinerSetMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MinerSetMultiError) Error ¶
func (m MinerSetMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MinerSetValidationError ¶
type MinerSetValidationError struct {
// contains filtered or unexported fields
}
MinerSetValidationError is the validation error returned by MinerSet.Validate if the designated constraints aren't met.
func (MinerSetValidationError) Cause ¶
func (e MinerSetValidationError) Cause() error
Cause function returns cause value.
func (MinerSetValidationError) Error ¶
func (e MinerSetValidationError) Error() string
Error satisfies the builtin error interface
func (MinerSetValidationError) ErrorName ¶
func (e MinerSetValidationError) ErrorName() string
ErrorName returns error name.
func (MinerSetValidationError) Field ¶
func (e MinerSetValidationError) Field() string
Field function returns field value.
func (MinerSetValidationError) Key ¶
func (e MinerSetValidationError) Key() bool
Key function returns key value.
func (MinerSetValidationError) Reason ¶
func (e MinerSetValidationError) Reason() string
Reason function returns reason value.
type MinerTemplate ¶
type MinerTemplate struct { MinerType string `protobuf:"bytes,1,opt,name=minerType,proto3" json:"minerType,omitempty"` ChainName string `protobuf:"bytes,2,opt,name=chainName,proto3" json:"chainName,omitempty"` DataDir string `protobuf:"bytes,3,opt,name=dataDir,proto3" json:"dataDir,omitempty"` // contains filtered or unexported fields }
func (*MinerTemplate) Descriptor
deprecated
func (*MinerTemplate) Descriptor() ([]byte, []int)
Deprecated: Use MinerTemplate.ProtoReflect.Descriptor instead.
func (*MinerTemplate) GetChainName ¶
func (x *MinerTemplate) GetChainName() string
func (*MinerTemplate) GetDataDir ¶
func (x *MinerTemplate) GetDataDir() string
func (*MinerTemplate) GetMinerType ¶
func (x *MinerTemplate) GetMinerType() string
func (*MinerTemplate) ProtoMessage ¶
func (*MinerTemplate) ProtoMessage()
func (*MinerTemplate) ProtoReflect ¶
func (x *MinerTemplate) ProtoReflect() protoreflect.Message
func (*MinerTemplate) Reset ¶
func (x *MinerTemplate) Reset()
func (*MinerTemplate) String ¶
func (x *MinerTemplate) String() string
func (*MinerTemplate) Validate ¶
func (m *MinerTemplate) Validate() error
Validate checks the field values on MinerTemplate 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 (*MinerTemplate) ValidateAll ¶
func (m *MinerTemplate) ValidateAll() error
ValidateAll checks the field values on MinerTemplate 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 MinerTemplateMultiError, or nil if none found.
type MinerTemplateMultiError ¶
type MinerTemplateMultiError []error
MinerTemplateMultiError is an error wrapping multiple validation errors returned by MinerTemplate.ValidateAll() if the designated constraints aren't met.
func (MinerTemplateMultiError) AllErrors ¶
func (m MinerTemplateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MinerTemplateMultiError) Error ¶
func (m MinerTemplateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MinerTemplateValidationError ¶
type MinerTemplateValidationError struct {
// contains filtered or unexported fields
}
MinerTemplateValidationError is the validation error returned by MinerTemplate.Validate if the designated constraints aren't met.
func (MinerTemplateValidationError) Cause ¶
func (e MinerTemplateValidationError) Cause() error
Cause function returns cause value.
func (MinerTemplateValidationError) Error ¶
func (e MinerTemplateValidationError) Error() string
Error satisfies the builtin error interface
func (MinerTemplateValidationError) ErrorName ¶
func (e MinerTemplateValidationError) ErrorName() string
ErrorName returns error name.
func (MinerTemplateValidationError) Field ¶
func (e MinerTemplateValidationError) Field() string
Field function returns field value.
func (MinerTemplateValidationError) Key ¶
func (e MinerTemplateValidationError) Key() bool
Key function returns key value.
func (MinerTemplateValidationError) Reason ¶
func (e MinerTemplateValidationError) Reason() string
Reason function returns reason value.
type MinerValidationError ¶
type MinerValidationError struct {
// contains filtered or unexported fields
}
MinerValidationError is the validation error returned by Miner.Validate if the designated constraints aren't met.
func (MinerValidationError) Cause ¶
func (e MinerValidationError) Cause() error
Cause function returns cause value.
func (MinerValidationError) Error ¶
func (e MinerValidationError) Error() string
Error satisfies the builtin error interface
func (MinerValidationError) ErrorName ¶
func (e MinerValidationError) ErrorName() string
ErrorName returns error name.
func (MinerValidationError) Field ¶
func (e MinerValidationError) Field() string
Field function returns field value.
func (MinerValidationError) Key ¶
func (e MinerValidationError) Key() bool
Key function returns key value.
func (MinerValidationError) Reason ¶
func (e MinerValidationError) Reason() string
Reason function returns reason value.
type ScaleMinerSetRequest ¶
type ScaleMinerSetRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` // contains filtered or unexported fields }
func (*ScaleMinerSetRequest) Descriptor
deprecated
func (*ScaleMinerSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScaleMinerSetRequest.ProtoReflect.Descriptor instead.
func (*ScaleMinerSetRequest) GetName ¶
func (x *ScaleMinerSetRequest) GetName() string
func (*ScaleMinerSetRequest) GetReplicas ¶
func (x *ScaleMinerSetRequest) GetReplicas() int32
func (*ScaleMinerSetRequest) ProtoMessage ¶
func (*ScaleMinerSetRequest) ProtoMessage()
func (*ScaleMinerSetRequest) ProtoReflect ¶
func (x *ScaleMinerSetRequest) ProtoReflect() protoreflect.Message
func (*ScaleMinerSetRequest) Reset ¶
func (x *ScaleMinerSetRequest) Reset()
func (*ScaleMinerSetRequest) String ¶
func (x *ScaleMinerSetRequest) String() string
func (*ScaleMinerSetRequest) Validate ¶
func (m *ScaleMinerSetRequest) Validate() error
Validate checks the field values on ScaleMinerSetRequest 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 (*ScaleMinerSetRequest) ValidateAll ¶
func (m *ScaleMinerSetRequest) ValidateAll() error
ValidateAll checks the field values on ScaleMinerSetRequest 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 ScaleMinerSetRequestMultiError, or nil if none found.
type ScaleMinerSetRequestMultiError ¶
type ScaleMinerSetRequestMultiError []error
ScaleMinerSetRequestMultiError is an error wrapping multiple validation errors returned by ScaleMinerSetRequest.ValidateAll() if the designated constraints aren't met.
func (ScaleMinerSetRequestMultiError) AllErrors ¶
func (m ScaleMinerSetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ScaleMinerSetRequestMultiError) Error ¶
func (m ScaleMinerSetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ScaleMinerSetRequestValidationError ¶
type ScaleMinerSetRequestValidationError struct {
// contains filtered or unexported fields
}
ScaleMinerSetRequestValidationError is the validation error returned by ScaleMinerSetRequest.Validate if the designated constraints aren't met.
func (ScaleMinerSetRequestValidationError) Cause ¶
func (e ScaleMinerSetRequestValidationError) Cause() error
Cause function returns cause value.
func (ScaleMinerSetRequestValidationError) Error ¶
func (e ScaleMinerSetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ScaleMinerSetRequestValidationError) ErrorName ¶
func (e ScaleMinerSetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ScaleMinerSetRequestValidationError) Field ¶
func (e ScaleMinerSetRequestValidationError) Field() string
Field function returns field value.
func (ScaleMinerSetRequestValidationError) Key ¶
func (e ScaleMinerSetRequestValidationError) Key() bool
Key function returns key value.
func (ScaleMinerSetRequestValidationError) Reason ¶
func (e ScaleMinerSetRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedGatewayServer ¶
type UnimplementedGatewayServer struct{}
UnimplementedGatewayServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGatewayServer) CreateMiner ¶
func (UnimplementedGatewayServer) CreateMinerSet ¶
func (UnimplementedGatewayServer) DeleteMiner ¶
func (UnimplementedGatewayServer) DeleteMiner(context.Context, *DeleteMinerRequest) (*emptypb.Empty, error)
func (UnimplementedGatewayServer) DeleteMinerSet ¶
func (UnimplementedGatewayServer) DeleteMinerSet(context.Context, *DeleteMinerSetRequest) (*emptypb.Empty, error)
func (UnimplementedGatewayServer) GetIdempotentToken ¶
func (UnimplementedGatewayServer) GetIdempotentToken(context.Context, *emptypb.Empty) (*IdempotentResponse, error)
func (UnimplementedGatewayServer) GetMiner ¶
func (UnimplementedGatewayServer) GetMiner(context.Context, *GetMinerRequest) (*v1beta1.Miner, error)
func (UnimplementedGatewayServer) GetMinerSet ¶
func (UnimplementedGatewayServer) GetMinerSet(context.Context, *GetMinerSetRequest) (*v1beta1.MinerSet, error)
func (UnimplementedGatewayServer) GetVersion ¶
func (UnimplementedGatewayServer) GetVersion(context.Context, *emptypb.Empty) (*GetVersionResponse, error)
func (UnimplementedGatewayServer) ListMiner ¶
func (UnimplementedGatewayServer) ListMiner(context.Context, *ListMinerRequest) (*ListMinerResponse, error)
func (UnimplementedGatewayServer) ListMinerSet ¶
func (UnimplementedGatewayServer) ListMinerSet(context.Context, *ListMinerSetRequest) (*ListMinerSetResponse, error)
func (UnimplementedGatewayServer) ScaleMinerSet ¶
func (UnimplementedGatewayServer) ScaleMinerSet(context.Context, *ScaleMinerSetRequest) (*emptypb.Empty, error)
func (UnimplementedGatewayServer) UpdateMiner ¶
func (UnimplementedGatewayServer) UpdateMinerSet ¶
type UnsafeGatewayServer ¶
type UnsafeGatewayServer interface {
// contains filtered or unexported methods
}
UnsafeGatewayServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GatewayServer will result in compilation errors.
type UpdateMinerRequest ¶
type UpdateMinerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DisplayName *string `protobuf:"bytes,2,opt,name=displayName,proto3,oneof" json:"displayName,omitempty"` DeletePolicy *string `protobuf:"bytes,3,opt,name=deletePolicy,proto3,oneof" json:"deletePolicy,omitempty"` // contains filtered or unexported fields }
func (*UpdateMinerRequest) Descriptor
deprecated
func (*UpdateMinerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMinerRequest.ProtoReflect.Descriptor instead.
func (*UpdateMinerRequest) GetDeletePolicy ¶
func (x *UpdateMinerRequest) GetDeletePolicy() string
func (*UpdateMinerRequest) GetDisplayName ¶
func (x *UpdateMinerRequest) GetDisplayName() string
func (*UpdateMinerRequest) GetName ¶
func (x *UpdateMinerRequest) GetName() string
func (*UpdateMinerRequest) ProtoMessage ¶
func (*UpdateMinerRequest) ProtoMessage()
func (*UpdateMinerRequest) ProtoReflect ¶
func (x *UpdateMinerRequest) ProtoReflect() protoreflect.Message
func (*UpdateMinerRequest) Reset ¶
func (x *UpdateMinerRequest) Reset()
func (*UpdateMinerRequest) String ¶
func (x *UpdateMinerRequest) String() string
func (*UpdateMinerRequest) Validate ¶
func (m *UpdateMinerRequest) Validate() error
Validate checks the field values on UpdateMinerRequest 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 (*UpdateMinerRequest) ValidateAll ¶
func (m *UpdateMinerRequest) ValidateAll() error
ValidateAll checks the field values on UpdateMinerRequest 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 UpdateMinerRequestMultiError, or nil if none found.
type UpdateMinerRequestMultiError ¶
type UpdateMinerRequestMultiError []error
UpdateMinerRequestMultiError is an error wrapping multiple validation errors returned by UpdateMinerRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateMinerRequestMultiError) AllErrors ¶
func (m UpdateMinerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMinerRequestMultiError) Error ¶
func (m UpdateMinerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMinerRequestValidationError ¶
type UpdateMinerRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateMinerRequestValidationError is the validation error returned by UpdateMinerRequest.Validate if the designated constraints aren't met.
func (UpdateMinerRequestValidationError) Cause ¶
func (e UpdateMinerRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateMinerRequestValidationError) Error ¶
func (e UpdateMinerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMinerRequestValidationError) ErrorName ¶
func (e UpdateMinerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMinerRequestValidationError) Field ¶
func (e UpdateMinerRequestValidationError) Field() string
Field function returns field value.
func (UpdateMinerRequestValidationError) Key ¶
func (e UpdateMinerRequestValidationError) Key() bool
Key function returns key value.
func (UpdateMinerRequestValidationError) Reason ¶
func (e UpdateMinerRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateMinerSetRequest ¶
type UpdateMinerSetRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DisplayName *string `protobuf:"bytes,2,opt,name=displayName,proto3,oneof" json:"displayName,omitempty"` DeletePolicy *string `protobuf:"bytes,3,opt,name=deletePolicy,proto3,oneof" json:"deletePolicy,omitempty"` // contains filtered or unexported fields }
func (*UpdateMinerSetRequest) Descriptor
deprecated
func (*UpdateMinerSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMinerSetRequest.ProtoReflect.Descriptor instead.
func (*UpdateMinerSetRequest) GetDeletePolicy ¶
func (x *UpdateMinerSetRequest) GetDeletePolicy() string
func (*UpdateMinerSetRequest) GetDisplayName ¶
func (x *UpdateMinerSetRequest) GetDisplayName() string
func (*UpdateMinerSetRequest) GetName ¶
func (x *UpdateMinerSetRequest) GetName() string
func (*UpdateMinerSetRequest) ProtoMessage ¶
func (*UpdateMinerSetRequest) ProtoMessage()
func (*UpdateMinerSetRequest) ProtoReflect ¶
func (x *UpdateMinerSetRequest) ProtoReflect() protoreflect.Message
func (*UpdateMinerSetRequest) Reset ¶
func (x *UpdateMinerSetRequest) Reset()
func (*UpdateMinerSetRequest) String ¶
func (x *UpdateMinerSetRequest) String() string
func (*UpdateMinerSetRequest) Validate ¶
func (m *UpdateMinerSetRequest) Validate() error
Validate checks the field values on UpdateMinerSetRequest 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 (*UpdateMinerSetRequest) ValidateAll ¶
func (m *UpdateMinerSetRequest) ValidateAll() error
ValidateAll checks the field values on UpdateMinerSetRequest 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 UpdateMinerSetRequestMultiError, or nil if none found.
type UpdateMinerSetRequestMultiError ¶
type UpdateMinerSetRequestMultiError []error
UpdateMinerSetRequestMultiError is an error wrapping multiple validation errors returned by UpdateMinerSetRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateMinerSetRequestMultiError) AllErrors ¶
func (m UpdateMinerSetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMinerSetRequestMultiError) Error ¶
func (m UpdateMinerSetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMinerSetRequestValidationError ¶
type UpdateMinerSetRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateMinerSetRequestValidationError is the validation error returned by UpdateMinerSetRequest.Validate if the designated constraints aren't met.
func (UpdateMinerSetRequestValidationError) Cause ¶
func (e UpdateMinerSetRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateMinerSetRequestValidationError) Error ¶
func (e UpdateMinerSetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMinerSetRequestValidationError) ErrorName ¶
func (e UpdateMinerSetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMinerSetRequestValidationError) Field ¶
func (e UpdateMinerSetRequestValidationError) Field() string
Field function returns field value.
func (UpdateMinerSetRequestValidationError) Key ¶
func (e UpdateMinerSetRequestValidationError) Key() bool
Key function returns key value.
func (UpdateMinerSetRequestValidationError) Reason ¶
func (e UpdateMinerSetRequestValidationError) Reason() string
Reason function returns reason value.