Documentation
¶
Index ¶
- Constants
- Variables
- func NewLoggablePutRequest(request *PutRequest) proto.Message
- func NewLoggableTxnRequest(request *TxnRequest) fmt.Stringer
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterClusterServer(s grpc.ServiceRegistrar, srv ClusterServer)
- func RegisterKVServer(s grpc.ServiceRegistrar, srv KVServer)
- func RegisterLeaseServer(s grpc.ServiceRegistrar, srv LeaseServer)
- func RegisterMaintenanceServer(s grpc.ServiceRegistrar, srv MaintenanceServer)
- func RegisterWatchServer(s grpc.ServiceRegistrar, srv WatchServer)
- type AlarmMember
- func (*AlarmMember) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmMember) GetAlarm() AlarmType
- func (x *AlarmMember) GetMemberID() uint64
- func (*AlarmMember) ProtoMessage()
- func (x *AlarmMember) ProtoReflect() protoreflect.Message
- func (x *AlarmMember) Reset()
- func (x *AlarmMember) String() string
- type AlarmRequest
- func (*AlarmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRequest) GetAction() AlarmRequest_AlarmAction
- func (x *AlarmRequest) GetAlarm() AlarmType
- func (x *AlarmRequest) GetMemberID() uint64
- func (*AlarmRequest) ProtoMessage()
- func (x *AlarmRequest) ProtoReflect() protoreflect.Message
- func (x *AlarmRequest) Reset()
- func (x *AlarmRequest) String() string
- type AlarmRequest_AlarmAction
- func (AlarmRequest_AlarmAction) Descriptor() protoreflect.EnumDescriptor
- func (x AlarmRequest_AlarmAction) Enum() *AlarmRequest_AlarmAction
- func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x AlarmRequest_AlarmAction) Number() protoreflect.EnumNumber
- func (x AlarmRequest_AlarmAction) String() string
- func (AlarmRequest_AlarmAction) Type() protoreflect.EnumType
- type AlarmResponse
- func (*AlarmResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmResponse) GetAlarms() []*AlarmMember
- func (x *AlarmResponse) GetHeader() *ResponseHeader
- func (*AlarmResponse) ProtoMessage()
- func (x *AlarmResponse) ProtoReflect() protoreflect.Message
- func (x *AlarmResponse) Reset()
- func (x *AlarmResponse) String() string
- type AlarmType
- type AuthClient
- type AuthDisableRequest
- type AuthDisableResponse
- func (*AuthDisableResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthDisableResponse) GetHeader() *ResponseHeader
- func (*AuthDisableResponse) ProtoMessage()
- func (x *AuthDisableResponse) ProtoReflect() protoreflect.Message
- func (x *AuthDisableResponse) Reset()
- func (x *AuthDisableResponse) String() string
- type AuthEnableRequest
- type AuthEnableResponse
- func (*AuthEnableResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthEnableResponse) GetHeader() *ResponseHeader
- func (*AuthEnableResponse) ProtoMessage()
- func (x *AuthEnableResponse) ProtoReflect() protoreflect.Message
- func (x *AuthEnableResponse) Reset()
- func (x *AuthEnableResponse) String() string
- type AuthRoleAddRequest
- func (*AuthRoleAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleAddRequest) GetName() string
- func (*AuthRoleAddRequest) ProtoMessage()
- func (x *AuthRoleAddRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRoleAddRequest) Reset()
- func (x *AuthRoleAddRequest) String() string
- type AuthRoleAddResponse
- func (*AuthRoleAddResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleAddResponse) GetHeader() *ResponseHeader
- func (*AuthRoleAddResponse) ProtoMessage()
- func (x *AuthRoleAddResponse) ProtoReflect() protoreflect.Message
- func (x *AuthRoleAddResponse) Reset()
- func (x *AuthRoleAddResponse) String() string
- type AuthRoleDeleteRequest
- func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleDeleteRequest) GetRole() string
- func (*AuthRoleDeleteRequest) ProtoMessage()
- func (x *AuthRoleDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRoleDeleteRequest) Reset()
- func (x *AuthRoleDeleteRequest) String() string
- type AuthRoleDeleteResponse
- func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleDeleteResponse) GetHeader() *ResponseHeader
- func (*AuthRoleDeleteResponse) ProtoMessage()
- func (x *AuthRoleDeleteResponse) ProtoReflect() protoreflect.Message
- func (x *AuthRoleDeleteResponse) Reset()
- func (x *AuthRoleDeleteResponse) String() string
- type AuthRoleGetRequest
- func (*AuthRoleGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleGetRequest) GetRole() string
- func (*AuthRoleGetRequest) ProtoMessage()
- func (x *AuthRoleGetRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRoleGetRequest) Reset()
- func (x *AuthRoleGetRequest) String() string
- type AuthRoleGetResponse
- func (*AuthRoleGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleGetResponse) GetHeader() *ResponseHeader
- func (x *AuthRoleGetResponse) GetPerm() []*authpb.Permission
- func (*AuthRoleGetResponse) ProtoMessage()
- func (x *AuthRoleGetResponse) ProtoReflect() protoreflect.Message
- func (x *AuthRoleGetResponse) Reset()
- func (x *AuthRoleGetResponse) String() string
- type AuthRoleGrantPermissionRequest
- func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleGrantPermissionRequest) GetName() string
- func (x *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission
- func (*AuthRoleGrantPermissionRequest) ProtoMessage()
- func (x *AuthRoleGrantPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRoleGrantPermissionRequest) Reset()
- func (x *AuthRoleGrantPermissionRequest) String() string
- type AuthRoleGrantPermissionResponse
- func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader
- func (*AuthRoleGrantPermissionResponse) ProtoMessage()
- func (x *AuthRoleGrantPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *AuthRoleGrantPermissionResponse) Reset()
- func (x *AuthRoleGrantPermissionResponse) String() string
- type AuthRoleListRequest
- type AuthRoleListResponse
- func (*AuthRoleListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleListResponse) GetHeader() *ResponseHeader
- func (x *AuthRoleListResponse) GetRoles() []string
- func (*AuthRoleListResponse) ProtoMessage()
- func (x *AuthRoleListResponse) ProtoReflect() protoreflect.Message
- func (x *AuthRoleListResponse) Reset()
- func (x *AuthRoleListResponse) String() string
- type AuthRoleRevokePermissionRequest
- func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleRevokePermissionRequest) GetKey() []byte
- func (x *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte
- func (x *AuthRoleRevokePermissionRequest) GetRole() string
- func (*AuthRoleRevokePermissionRequest) ProtoMessage()
- func (x *AuthRoleRevokePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRoleRevokePermissionRequest) Reset()
- func (x *AuthRoleRevokePermissionRequest) String() string
- type AuthRoleRevokePermissionResponse
- func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader
- func (*AuthRoleRevokePermissionResponse) ProtoMessage()
- func (x *AuthRoleRevokePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *AuthRoleRevokePermissionResponse) Reset()
- func (x *AuthRoleRevokePermissionResponse) String() string
- type AuthServer
- type AuthStatusRequest
- type AuthStatusResponse
- func (*AuthStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthStatusResponse) GetAuthRevision() uint64
- func (x *AuthStatusResponse) GetEnabled() bool
- func (x *AuthStatusResponse) GetHeader() *ResponseHeader
- func (*AuthStatusResponse) ProtoMessage()
- func (x *AuthStatusResponse) ProtoReflect() protoreflect.Message
- func (x *AuthStatusResponse) Reset()
- func (x *AuthStatusResponse) String() string
- type AuthUserAddRequest
- func (*AuthUserAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserAddRequest) GetHashedPassword() string
- func (x *AuthUserAddRequest) GetName() string
- func (x *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions
- func (x *AuthUserAddRequest) GetPassword() string
- func (*AuthUserAddRequest) ProtoMessage()
- func (x *AuthUserAddRequest) ProtoReflect() protoreflect.Message
- func (x *AuthUserAddRequest) Reset()
- func (x *AuthUserAddRequest) String() string
- type AuthUserAddResponse
- func (*AuthUserAddResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserAddResponse) GetHeader() *ResponseHeader
- func (*AuthUserAddResponse) ProtoMessage()
- func (x *AuthUserAddResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserAddResponse) Reset()
- func (x *AuthUserAddResponse) String() string
- type AuthUserChangePasswordRequest
- func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserChangePasswordRequest) GetHashedPassword() string
- func (x *AuthUserChangePasswordRequest) GetName() string
- func (x *AuthUserChangePasswordRequest) GetPassword() string
- func (*AuthUserChangePasswordRequest) ProtoMessage()
- func (x *AuthUserChangePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *AuthUserChangePasswordRequest) Reset()
- func (x *AuthUserChangePasswordRequest) String() string
- type AuthUserChangePasswordResponse
- func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader
- func (*AuthUserChangePasswordResponse) ProtoMessage()
- func (x *AuthUserChangePasswordResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserChangePasswordResponse) Reset()
- func (x *AuthUserChangePasswordResponse) String() string
- type AuthUserDeleteRequest
- func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserDeleteRequest) GetName() string
- func (*AuthUserDeleteRequest) ProtoMessage()
- func (x *AuthUserDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *AuthUserDeleteRequest) Reset()
- func (x *AuthUserDeleteRequest) String() string
- type AuthUserDeleteResponse
- func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserDeleteResponse) GetHeader() *ResponseHeader
- func (*AuthUserDeleteResponse) ProtoMessage()
- func (x *AuthUserDeleteResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserDeleteResponse) Reset()
- func (x *AuthUserDeleteResponse) String() string
- type AuthUserGetRequest
- func (*AuthUserGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserGetRequest) GetName() string
- func (*AuthUserGetRequest) ProtoMessage()
- func (x *AuthUserGetRequest) ProtoReflect() protoreflect.Message
- func (x *AuthUserGetRequest) Reset()
- func (x *AuthUserGetRequest) String() string
- type AuthUserGetResponse
- func (*AuthUserGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserGetResponse) GetHeader() *ResponseHeader
- func (x *AuthUserGetResponse) GetRoles() []string
- func (*AuthUserGetResponse) ProtoMessage()
- func (x *AuthUserGetResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserGetResponse) Reset()
- func (x *AuthUserGetResponse) String() string
- type AuthUserGrantRoleRequest
- func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserGrantRoleRequest) GetRole() string
- func (x *AuthUserGrantRoleRequest) GetUser() string
- func (*AuthUserGrantRoleRequest) ProtoMessage()
- func (x *AuthUserGrantRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AuthUserGrantRoleRequest) Reset()
- func (x *AuthUserGrantRoleRequest) String() string
- type AuthUserGrantRoleResponse
- func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader
- func (*AuthUserGrantRoleResponse) ProtoMessage()
- func (x *AuthUserGrantRoleResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserGrantRoleResponse) Reset()
- func (x *AuthUserGrantRoleResponse) String() string
- type AuthUserListRequest
- type AuthUserListResponse
- func (*AuthUserListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserListResponse) GetHeader() *ResponseHeader
- func (x *AuthUserListResponse) GetUsers() []string
- func (*AuthUserListResponse) ProtoMessage()
- func (x *AuthUserListResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserListResponse) Reset()
- func (x *AuthUserListResponse) String() string
- type AuthUserRevokeRoleRequest
- func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserRevokeRoleRequest) GetName() string
- func (x *AuthUserRevokeRoleRequest) GetRole() string
- func (*AuthUserRevokeRoleRequest) ProtoMessage()
- func (x *AuthUserRevokeRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AuthUserRevokeRoleRequest) Reset()
- func (x *AuthUserRevokeRoleRequest) String() string
- type AuthUserRevokeRoleResponse
- func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader
- func (*AuthUserRevokeRoleResponse) ProtoMessage()
- func (x *AuthUserRevokeRoleResponse) ProtoReflect() protoreflect.Message
- func (x *AuthUserRevokeRoleResponse) Reset()
- func (x *AuthUserRevokeRoleResponse) String() string
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetName() string
- func (x *AuthenticateRequest) GetPassword() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetHeader() *ResponseHeader
- func (x *AuthenticateResponse) GetToken() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type ClusterClient
- type ClusterServer
- type CompactionRequest
- func (*CompactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompactionRequest) GetPhysical() bool
- func (x *CompactionRequest) GetRevision() int64
- func (*CompactionRequest) ProtoMessage()
- func (x *CompactionRequest) ProtoReflect() protoreflect.Message
- func (x *CompactionRequest) Reset()
- func (x *CompactionRequest) String() string
- type CompactionResponse
- func (*CompactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompactionResponse) GetHeader() *ResponseHeader
- func (*CompactionResponse) ProtoMessage()
- func (x *CompactionResponse) ProtoReflect() protoreflect.Message
- func (x *CompactionResponse) Reset()
- func (x *CompactionResponse) String() string
- type Compare
- func (*Compare) Descriptor() ([]byte, []int)deprecated
- func (x *Compare) GetCreateRevision() int64
- func (x *Compare) GetKey() []byte
- func (x *Compare) GetLease() int64
- func (x *Compare) GetModRevision() int64
- func (x *Compare) GetRangeEnd() []byte
- func (x *Compare) GetResult() Compare_CompareResult
- func (x *Compare) GetTarget() Compare_CompareTarget
- func (x *Compare) GetTargetUnion() isCompare_TargetUnion
- func (x *Compare) GetValue() []byte
- func (x *Compare) GetVersion() int64
- func (*Compare) ProtoMessage()
- func (x *Compare) ProtoReflect() protoreflect.Message
- func (x *Compare) Reset()
- func (x *Compare) String() string
- type Compare_CompareResult
- func (Compare_CompareResult) Descriptor() protoreflect.EnumDescriptor
- func (x Compare_CompareResult) Enum() *Compare_CompareResult
- func (Compare_CompareResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x Compare_CompareResult) Number() protoreflect.EnumNumber
- func (x Compare_CompareResult) String() string
- func (Compare_CompareResult) Type() protoreflect.EnumType
- type Compare_CompareTarget
- func (Compare_CompareTarget) Descriptor() protoreflect.EnumDescriptor
- func (x Compare_CompareTarget) Enum() *Compare_CompareTarget
- func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int)deprecated
- func (x Compare_CompareTarget) Number() protoreflect.EnumNumber
- func (x Compare_CompareTarget) String() string
- func (Compare_CompareTarget) Type() protoreflect.EnumType
- type Compare_CreateRevision
- type Compare_Lease
- type Compare_ModRevision
- type Compare_Value
- type Compare_Version
- type DefragmentRequest
- type DefragmentResponse
- func (*DefragmentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DefragmentResponse) GetHeader() *ResponseHeader
- func (*DefragmentResponse) ProtoMessage()
- func (x *DefragmentResponse) ProtoReflect() protoreflect.Message
- func (x *DefragmentResponse) Reset()
- func (x *DefragmentResponse) String() string
- type DeleteRangeRequest
- func (*DeleteRangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRangeRequest) GetKey() []byte
- func (x *DeleteRangeRequest) GetPrevKv() bool
- func (x *DeleteRangeRequest) GetRangeEnd() []byte
- func (*DeleteRangeRequest) ProtoMessage()
- func (x *DeleteRangeRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRangeRequest) Reset()
- func (x *DeleteRangeRequest) String() string
- type DeleteRangeResponse
- func (*DeleteRangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRangeResponse) GetDeleted() int64
- func (x *DeleteRangeResponse) GetHeader() *ResponseHeader
- func (x *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue
- func (*DeleteRangeResponse) ProtoMessage()
- func (x *DeleteRangeResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRangeResponse) Reset()
- func (x *DeleteRangeResponse) String() string
- type DowngradeInfo
- func (*DowngradeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DowngradeInfo) GetEnabled() bool
- func (x *DowngradeInfo) GetTargetVersion() string
- func (*DowngradeInfo) ProtoMessage()
- func (x *DowngradeInfo) ProtoReflect() protoreflect.Message
- func (x *DowngradeInfo) Reset()
- func (x *DowngradeInfo) String() string
- type DowngradeRequest
- func (*DowngradeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DowngradeRequest) GetAction() DowngradeRequest_DowngradeAction
- func (x *DowngradeRequest) GetVersion() string
- func (*DowngradeRequest) ProtoMessage()
- func (x *DowngradeRequest) ProtoReflect() protoreflect.Message
- func (x *DowngradeRequest) Reset()
- func (x *DowngradeRequest) String() string
- type DowngradeRequest_DowngradeAction
- func (DowngradeRequest_DowngradeAction) Descriptor() protoreflect.EnumDescriptor
- func (x DowngradeRequest_DowngradeAction) Enum() *DowngradeRequest_DowngradeAction
- func (DowngradeRequest_DowngradeAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x DowngradeRequest_DowngradeAction) Number() protoreflect.EnumNumber
- func (x DowngradeRequest_DowngradeAction) String() string
- func (DowngradeRequest_DowngradeAction) Type() protoreflect.EnumType
- type DowngradeResponse
- func (*DowngradeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DowngradeResponse) GetHeader() *ResponseHeader
- func (x *DowngradeResponse) GetVersion() string
- func (*DowngradeResponse) ProtoMessage()
- func (x *DowngradeResponse) ProtoReflect() protoreflect.Message
- func (x *DowngradeResponse) Reset()
- func (x *DowngradeResponse) String() string
- type DowngradeVersionTestRequest
- func (*DowngradeVersionTestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DowngradeVersionTestRequest) GetVer() string
- func (*DowngradeVersionTestRequest) ProtoMessage()
- func (x *DowngradeVersionTestRequest) ProtoReflect() protoreflect.Message
- func (x *DowngradeVersionTestRequest) Reset()
- func (x *DowngradeVersionTestRequest) String() string
- type EmptyResponse
- type HashKVRequest
- type HashKVResponse
- func (*HashKVResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HashKVResponse) GetCompactRevision() int64
- func (x *HashKVResponse) GetHash() uint32
- func (x *HashKVResponse) GetHashRevision() int64
- func (x *HashKVResponse) GetHeader() *ResponseHeader
- func (*HashKVResponse) ProtoMessage()
- func (x *HashKVResponse) ProtoReflect() protoreflect.Message
- func (x *HashKVResponse) Reset()
- func (x *HashKVResponse) String() string
- type HashRequest
- type HashResponse
- func (*HashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HashResponse) GetHash() uint32
- func (x *HashResponse) GetHeader() *ResponseHeader
- func (*HashResponse) ProtoMessage()
- func (x *HashResponse) ProtoReflect() protoreflect.Message
- func (x *HashResponse) Reset()
- func (x *HashResponse) String() string
- type InternalAuthenticateRequest
- func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InternalAuthenticateRequest) GetName() string
- func (x *InternalAuthenticateRequest) GetPassword() string
- func (x *InternalAuthenticateRequest) GetSimpleToken() string
- func (*InternalAuthenticateRequest) ProtoMessage()
- func (x *InternalAuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *InternalAuthenticateRequest) Reset()
- func (x *InternalAuthenticateRequest) String() string
- type InternalRaftRequest
- func (*InternalRaftRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InternalRaftRequest) GetAlarm() *AlarmRequest
- func (x *InternalRaftRequest) GetAuthDisable() *AuthDisableRequest
- func (x *InternalRaftRequest) GetAuthEnable() *AuthEnableRequest
- func (x *InternalRaftRequest) GetAuthRoleAdd() *AuthRoleAddRequest
- func (x *InternalRaftRequest) GetAuthRoleDelete() *AuthRoleDeleteRequest
- func (x *InternalRaftRequest) GetAuthRoleGet() *AuthRoleGetRequest
- func (x *InternalRaftRequest) GetAuthRoleGrantPermission() *AuthRoleGrantPermissionRequest
- func (x *InternalRaftRequest) GetAuthRoleList() *AuthRoleListRequest
- func (x *InternalRaftRequest) GetAuthRoleRevokePermission() *AuthRoleRevokePermissionRequest
- func (x *InternalRaftRequest) GetAuthStatus() *AuthStatusRequest
- func (x *InternalRaftRequest) GetAuthUserAdd() *AuthUserAddRequest
- func (x *InternalRaftRequest) GetAuthUserChangePassword() *AuthUserChangePasswordRequest
- func (x *InternalRaftRequest) GetAuthUserDelete() *AuthUserDeleteRequest
- func (x *InternalRaftRequest) GetAuthUserGet() *AuthUserGetRequest
- func (x *InternalRaftRequest) GetAuthUserGrantRole() *AuthUserGrantRoleRequest
- func (x *InternalRaftRequest) GetAuthUserList() *AuthUserListRequest
- func (x *InternalRaftRequest) GetAuthUserRevokeRole() *AuthUserRevokeRoleRequest
- func (x *InternalRaftRequest) GetAuthenticate() *InternalAuthenticateRequest
- func (x *InternalRaftRequest) GetClusterMemberAttrSet() *membershippb.ClusterMemberAttrSetRequest
- func (x *InternalRaftRequest) GetClusterVersionSet() *membershippb.ClusterVersionSetRequest
- func (x *InternalRaftRequest) GetCompaction() *CompactionRequest
- func (x *InternalRaftRequest) GetDeleteRange() *DeleteRangeRequest
- func (x *InternalRaftRequest) GetDowngradeInfoSet() *membershippb.DowngradeInfoSetRequest
- func (x *InternalRaftRequest) GetDowngradeVersionTest() *DowngradeVersionTestRequest
- func (x *InternalRaftRequest) GetHeader() *RequestHeader
- func (x *InternalRaftRequest) GetID() uint64
- func (x *InternalRaftRequest) GetLeaseCheckpoint() *LeaseCheckpointRequest
- func (x *InternalRaftRequest) GetLeaseGrant() *LeaseGrantRequest
- func (x *InternalRaftRequest) GetLeaseRevoke() *LeaseRevokeRequest
- func (x *InternalRaftRequest) GetPut() *PutRequest
- func (x *InternalRaftRequest) GetRange() *RangeRequest
- func (x *InternalRaftRequest) GetTxn() *TxnRequest
- func (*InternalRaftRequest) ProtoMessage()
- func (x *InternalRaftRequest) ProtoReflect() protoreflect.Message
- func (x *InternalRaftRequest) Reset()
- func (x *InternalRaftRequest) String() string
- type InternalRaftStringer
- type KVClient
- type KVServer
- type KV_RangeStreamClient
- type KV_RangeStreamServer
- type LeaseCheckpoint
- func (*LeaseCheckpoint) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseCheckpoint) GetID() int64
- func (x *LeaseCheckpoint) GetRemaining_TTL() int64
- func (*LeaseCheckpoint) ProtoMessage()
- func (x *LeaseCheckpoint) ProtoReflect() protoreflect.Message
- func (x *LeaseCheckpoint) Reset()
- func (x *LeaseCheckpoint) String() string
- type LeaseCheckpointRequest
- func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint
- func (*LeaseCheckpointRequest) ProtoMessage()
- func (x *LeaseCheckpointRequest) ProtoReflect() protoreflect.Message
- func (x *LeaseCheckpointRequest) Reset()
- func (x *LeaseCheckpointRequest) String() string
- type LeaseCheckpointResponse
- func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseCheckpointResponse) GetHeader() *ResponseHeader
- func (*LeaseCheckpointResponse) ProtoMessage()
- func (x *LeaseCheckpointResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseCheckpointResponse) Reset()
- func (x *LeaseCheckpointResponse) String() string
- type LeaseClient
- type LeaseGrantRequest
- func (*LeaseGrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseGrantRequest) GetID() int64
- func (x *LeaseGrantRequest) GetTTL() int64
- func (*LeaseGrantRequest) ProtoMessage()
- func (x *LeaseGrantRequest) ProtoReflect() protoreflect.Message
- func (x *LeaseGrantRequest) Reset()
- func (x *LeaseGrantRequest) String() string
- type LeaseGrantResponse
- func (*LeaseGrantResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseGrantResponse) GetError() string
- func (x *LeaseGrantResponse) GetHeader() *ResponseHeader
- func (x *LeaseGrantResponse) GetID() int64
- func (x *LeaseGrantResponse) GetTTL() int64
- func (*LeaseGrantResponse) ProtoMessage()
- func (x *LeaseGrantResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseGrantResponse) Reset()
- func (x *LeaseGrantResponse) String() string
- type LeaseKeepAliveRequest
- func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseKeepAliveRequest) GetID() int64
- func (*LeaseKeepAliveRequest) ProtoMessage()
- func (x *LeaseKeepAliveRequest) ProtoReflect() protoreflect.Message
- func (x *LeaseKeepAliveRequest) Reset()
- func (x *LeaseKeepAliveRequest) String() string
- type LeaseKeepAliveResponse
- func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
- func (x *LeaseKeepAliveResponse) GetID() int64
- func (x *LeaseKeepAliveResponse) GetTTL() int64
- func (*LeaseKeepAliveResponse) ProtoMessage()
- func (x *LeaseKeepAliveResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseKeepAliveResponse) Reset()
- func (x *LeaseKeepAliveResponse) String() string
- type LeaseLeasesRequest
- type LeaseLeasesResponse
- func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseLeasesResponse) GetHeader() *ResponseHeader
- func (x *LeaseLeasesResponse) GetLeases() []*LeaseStatus
- func (*LeaseLeasesResponse) ProtoMessage()
- func (x *LeaseLeasesResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseLeasesResponse) Reset()
- func (x *LeaseLeasesResponse) String() string
- type LeaseRevokeRequest
- type LeaseRevokeResponse
- func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseRevokeResponse) GetHeader() *ResponseHeader
- func (*LeaseRevokeResponse) ProtoMessage()
- func (x *LeaseRevokeResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseRevokeResponse) Reset()
- func (x *LeaseRevokeResponse) String() string
- type LeaseServer
- type LeaseStatus
- type LeaseTimeToLiveRequest
- func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseTimeToLiveRequest) GetID() int64
- func (x *LeaseTimeToLiveRequest) GetKeys() bool
- func (*LeaseTimeToLiveRequest) ProtoMessage()
- func (x *LeaseTimeToLiveRequest) ProtoReflect() protoreflect.Message
- func (x *LeaseTimeToLiveRequest) Reset()
- func (x *LeaseTimeToLiveRequest) String() string
- type LeaseTimeToLiveResponse
- func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseTimeToLiveResponse) GetGrantedTTL() int64
- func (x *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader
- func (x *LeaseTimeToLiveResponse) GetID() int64
- func (x *LeaseTimeToLiveResponse) GetKeys() [][]byte
- func (x *LeaseTimeToLiveResponse) GetTTL() int64
- func (*LeaseTimeToLiveResponse) ProtoMessage()
- func (x *LeaseTimeToLiveResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseTimeToLiveResponse) Reset()
- func (x *LeaseTimeToLiveResponse) String() string
- type Lease_LeaseKeepAliveClient
- type Lease_LeaseKeepAliveServer
- type MaintenanceClient
- type MaintenanceServer
- type Maintenance_SnapshotClient
- type Maintenance_SnapshotServer
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetClientURLs() []string
- func (x *Member) GetID() uint64
- func (x *Member) GetIsLearner() bool
- func (x *Member) GetName() string
- func (x *Member) GetPeerURLs() []string
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- type MemberAddRequest
- func (*MemberAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MemberAddRequest) GetIsLearner() bool
- func (x *MemberAddRequest) GetPeerURLs() []string
- func (*MemberAddRequest) ProtoMessage()
- func (x *MemberAddRequest) ProtoReflect() protoreflect.Message
- func (x *MemberAddRequest) Reset()
- func (x *MemberAddRequest) String() string
- type MemberAddResponse
- func (*MemberAddResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MemberAddResponse) GetHeader() *ResponseHeader
- func (x *MemberAddResponse) GetMember() *Member
- func (x *MemberAddResponse) GetMembers() []*Member
- func (*MemberAddResponse) ProtoMessage()
- func (x *MemberAddResponse) ProtoReflect() protoreflect.Message
- func (x *MemberAddResponse) Reset()
- func (x *MemberAddResponse) String() string
- type MemberListRequest
- func (*MemberListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MemberListRequest) GetLinearizable() bool
- func (*MemberListRequest) ProtoMessage()
- func (x *MemberListRequest) ProtoReflect() protoreflect.Message
- func (x *MemberListRequest) Reset()
- func (x *MemberListRequest) String() string
- type MemberListResponse
- func (*MemberListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MemberListResponse) GetHeader() *ResponseHeader
- func (x *MemberListResponse) GetMembers() []*Member
- func (*MemberListResponse) ProtoMessage()
- func (x *MemberListResponse) ProtoReflect() protoreflect.Message
- func (x *MemberListResponse) Reset()
- func (x *MemberListResponse) String() string
- type MemberPromoteRequest
- func (*MemberPromoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MemberPromoteRequest) GetID() uint64
- func (*MemberPromoteRequest) ProtoMessage()
- func (x *MemberPromoteRequest) ProtoReflect() protoreflect.Message
- func (x *MemberPromoteRequest) Reset()
- func (x *MemberPromoteRequest) String() string
- type MemberPromoteResponse
- func (*MemberPromoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MemberPromoteResponse) GetHeader() *ResponseHeader
- func (x *MemberPromoteResponse) GetMembers() []*Member
- func (*MemberPromoteResponse) ProtoMessage()
- func (x *MemberPromoteResponse) ProtoReflect() protoreflect.Message
- func (x *MemberPromoteResponse) Reset()
- func (x *MemberPromoteResponse) String() string
- type MemberRemoveRequest
- func (*MemberRemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MemberRemoveRequest) GetID() uint64
- func (*MemberRemoveRequest) ProtoMessage()
- func (x *MemberRemoveRequest) ProtoReflect() protoreflect.Message
- func (x *MemberRemoveRequest) Reset()
- func (x *MemberRemoveRequest) String() string
- type MemberRemoveResponse
- func (*MemberRemoveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MemberRemoveResponse) GetHeader() *ResponseHeader
- func (x *MemberRemoveResponse) GetMembers() []*Member
- func (*MemberRemoveResponse) ProtoMessage()
- func (x *MemberRemoveResponse) ProtoReflect() protoreflect.Message
- func (x *MemberRemoveResponse) Reset()
- func (x *MemberRemoveResponse) String() string
- type MemberUpdateRequest
- func (*MemberUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MemberUpdateRequest) GetID() uint64
- func (x *MemberUpdateRequest) GetPeerURLs() []string
- func (*MemberUpdateRequest) ProtoMessage()
- func (x *MemberUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *MemberUpdateRequest) Reset()
- func (x *MemberUpdateRequest) String() string
- type MemberUpdateResponse
- func (*MemberUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MemberUpdateResponse) GetHeader() *ResponseHeader
- func (x *MemberUpdateResponse) GetMembers() []*Member
- func (*MemberUpdateResponse) ProtoMessage()
- func (x *MemberUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *MemberUpdateResponse) Reset()
- func (x *MemberUpdateResponse) String() string
- type Metadata
- type MoveLeaderRequest
- type MoveLeaderResponse
- func (*MoveLeaderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MoveLeaderResponse) GetHeader() *ResponseHeader
- func (*MoveLeaderResponse) ProtoMessage()
- func (x *MoveLeaderResponse) ProtoReflect() protoreflect.Message
- func (x *MoveLeaderResponse) Reset()
- func (x *MoveLeaderResponse) String() string
- type PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutRequest) GetIgnoreLease() bool
- func (x *PutRequest) GetIgnoreValue() bool
- func (x *PutRequest) GetKey() []byte
- func (x *PutRequest) GetLease() int64
- func (x *PutRequest) GetPrevKv() bool
- func (x *PutRequest) GetValue() []byte
- func (*PutRequest) ProtoMessage()
- func (x *PutRequest) ProtoReflect() protoreflect.Message
- func (x *PutRequest) Reset()
- func (x *PutRequest) String() string
- type PutResponse
- func (*PutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PutResponse) GetHeader() *ResponseHeader
- func (x *PutResponse) GetPrevKv() *mvccpb.KeyValue
- func (*PutResponse) ProtoMessage()
- func (x *PutResponse) ProtoReflect() protoreflect.Message
- func (x *PutResponse) Reset()
- func (x *PutResponse) String() string
- type RangeRequest
- func (*RangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RangeRequest) GetCountOnly() bool
- func (x *RangeRequest) GetKey() []byte
- func (x *RangeRequest) GetKeysOnly() bool
- func (x *RangeRequest) GetLimit() int64
- func (x *RangeRequest) GetMaxCreateRevision() int64
- func (x *RangeRequest) GetMaxModRevision() int64
- func (x *RangeRequest) GetMinCreateRevision() int64
- func (x *RangeRequest) GetMinModRevision() int64
- func (x *RangeRequest) GetRangeEnd() []byte
- func (x *RangeRequest) GetRevision() int64
- func (x *RangeRequest) GetSerializable() bool
- func (x *RangeRequest) GetSortOrder() RangeRequest_SortOrder
- func (x *RangeRequest) GetSortTarget() RangeRequest_SortTarget
- func (*RangeRequest) ProtoMessage()
- func (x *RangeRequest) ProtoReflect() protoreflect.Message
- func (x *RangeRequest) Reset()
- func (x *RangeRequest) String() string
- type RangeRequest_SortOrder
- func (RangeRequest_SortOrder) Descriptor() protoreflect.EnumDescriptor
- func (x RangeRequest_SortOrder) Enum() *RangeRequest_SortOrder
- func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int)deprecated
- func (x RangeRequest_SortOrder) Number() protoreflect.EnumNumber
- func (x RangeRequest_SortOrder) String() string
- func (RangeRequest_SortOrder) Type() protoreflect.EnumType
- type RangeRequest_SortTarget
- func (RangeRequest_SortTarget) Descriptor() protoreflect.EnumDescriptor
- func (x RangeRequest_SortTarget) Enum() *RangeRequest_SortTarget
- func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int)deprecated
- func (x RangeRequest_SortTarget) Number() protoreflect.EnumNumber
- func (x RangeRequest_SortTarget) String() string
- func (RangeRequest_SortTarget) Type() protoreflect.EnumType
- type RangeResponse
- func (*RangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RangeResponse) GetCount() int64
- func (x *RangeResponse) GetHeader() *ResponseHeader
- func (x *RangeResponse) GetKvs() []*mvccpb.KeyValue
- func (x *RangeResponse) GetMore() bool
- func (*RangeResponse) ProtoMessage()
- func (x *RangeResponse) ProtoReflect() protoreflect.Message
- func (x *RangeResponse) Reset()
- func (x *RangeResponse) String() string
- type RangeStreamResponse
- func (*RangeStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RangeStreamResponse) GetRangeResponse() *RangeResponse
- func (*RangeStreamResponse) ProtoMessage()
- func (x *RangeStreamResponse) ProtoReflect() protoreflect.Message
- func (x *RangeStreamResponse) Reset()
- func (x *RangeStreamResponse) String() string
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)deprecated
- func (x *RequestHeader) GetAuthRevision() uint64
- func (x *RequestHeader) GetID() uint64
- func (x *RequestHeader) GetUsername() string
- func (*RequestHeader) ProtoMessage()
- func (x *RequestHeader) ProtoReflect() protoreflect.Message
- func (x *RequestHeader) Reset()
- func (x *RequestHeader) String() string
- type RequestOp
- func (*RequestOp) Descriptor() ([]byte, []int)deprecated
- func (x *RequestOp) GetRequest() isRequestOp_Request
- func (x *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest
- func (x *RequestOp) GetRequestPut() *PutRequest
- func (x *RequestOp) GetRequestRange() *RangeRequest
- func (x *RequestOp) GetRequestTxn() *TxnRequest
- func (*RequestOp) ProtoMessage()
- func (x *RequestOp) ProtoReflect() protoreflect.Message
- func (x *RequestOp) Reset()
- func (x *RequestOp) String() string
- type RequestOp_RequestDeleteRange
- type RequestOp_RequestPut
- type RequestOp_RequestRange
- type RequestOp_RequestTxn
- type ResponseHeader
- func (h *ResponseHeader) Clone() *ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseHeader) GetClusterId() uint64
- func (x *ResponseHeader) GetMemberId() uint64
- func (x *ResponseHeader) GetRaftTerm() uint64
- func (x *ResponseHeader) GetRevision() int64
- func (*ResponseHeader) ProtoMessage()
- func (x *ResponseHeader) ProtoReflect() protoreflect.Message
- func (x *ResponseHeader) Reset()
- func (x *ResponseHeader) String() string
- type ResponseOp
- func (*ResponseOp) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseOp) GetResponse() isResponseOp_Response
- func (x *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse
- func (x *ResponseOp) GetResponsePut() *PutResponse
- func (x *ResponseOp) GetResponseRange() *RangeResponse
- func (x *ResponseOp) GetResponseTxn() *TxnResponse
- func (*ResponseOp) ProtoMessage()
- func (x *ResponseOp) ProtoReflect() protoreflect.Message
- func (x *ResponseOp) Reset()
- func (x *ResponseOp) String() string
- type ResponseOp_ResponseDeleteRange
- type ResponseOp_ResponsePut
- type ResponseOp_ResponseRange
- type ResponseOp_ResponseTxn
- type SnapshotRequest
- type SnapshotResponse
- func (*SnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotResponse) GetBlob() []byte
- func (x *SnapshotResponse) GetHeader() *ResponseHeader
- func (x *SnapshotResponse) GetRemainingBytes() uint64
- func (x *SnapshotResponse) GetVersion() string
- func (*SnapshotResponse) ProtoMessage()
- func (x *SnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *SnapshotResponse) Reset()
- func (x *SnapshotResponse) String() string
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetDbSize() int64
- func (x *StatusResponse) GetDbSizeInUse() int64
- func (x *StatusResponse) GetDbSizeQuota() int64
- func (x *StatusResponse) GetDowngradeInfo() *DowngradeInfo
- func (x *StatusResponse) GetErrors() []string
- func (x *StatusResponse) GetHeader() *ResponseHeader
- func (x *StatusResponse) GetIsLearner() bool
- func (x *StatusResponse) GetLeader() uint64
- func (x *StatusResponse) GetRaftAppliedIndex() uint64
- func (x *StatusResponse) GetRaftIndex() uint64
- func (x *StatusResponse) GetRaftTerm() uint64
- func (x *StatusResponse) GetStorageVersion() string
- func (x *StatusResponse) GetVersion() string
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type TxnRequest
- func (*TxnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TxnRequest) GetCompare() []*Compare
- func (x *TxnRequest) GetFailure() []*RequestOp
- func (x *TxnRequest) GetSuccess() []*RequestOp
- func (*TxnRequest) ProtoMessage()
- func (x *TxnRequest) ProtoReflect() protoreflect.Message
- func (x *TxnRequest) Reset()
- func (x *TxnRequest) String() string
- type TxnResponse
- func (*TxnResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TxnResponse) GetHeader() *ResponseHeader
- func (x *TxnResponse) GetResponses() []*ResponseOp
- func (x *TxnResponse) GetSucceeded() bool
- func (*TxnResponse) ProtoMessage()
- func (x *TxnResponse) ProtoReflect() protoreflect.Message
- func (x *TxnResponse) Reset()
- func (x *TxnResponse) String() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
- func (UnimplementedAuthServer) AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
- func (UnimplementedAuthServer) AuthStatus(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error)
- func (UnimplementedAuthServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (UnimplementedAuthServer) RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error)
- func (UnimplementedAuthServer) RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error)
- func (UnimplementedAuthServer) RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error)
- func (UnimplementedAuthServer) RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error)
- func (UnimplementedAuthServer) RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error)
- func (UnimplementedAuthServer) RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error)
- func (UnimplementedAuthServer) UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
- func (UnimplementedAuthServer) UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error)
- func (UnimplementedAuthServer) UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error)
- func (UnimplementedAuthServer) UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error)
- func (UnimplementedAuthServer) UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error)
- func (UnimplementedAuthServer) UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error)
- func (UnimplementedAuthServer) UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error)
- type UnimplementedClusterServer
- func (UnimplementedClusterServer) MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
- func (UnimplementedClusterServer) MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
- func (UnimplementedClusterServer) MemberPromote(context.Context, *MemberPromoteRequest) (*MemberPromoteResponse, error)
- func (UnimplementedClusterServer) MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
- func (UnimplementedClusterServer) MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
- type UnimplementedKVServer
- func (UnimplementedKVServer) Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
- func (UnimplementedKVServer) DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
- func (UnimplementedKVServer) Put(context.Context, *PutRequest) (*PutResponse, error)
- func (UnimplementedKVServer) Range(context.Context, *RangeRequest) (*RangeResponse, error)
- func (UnimplementedKVServer) RangeStream(*RangeRequest, grpc.ServerStreamingServer[RangeStreamResponse]) error
- func (UnimplementedKVServer) Txn(context.Context, *TxnRequest) (*TxnResponse, error)
- type UnimplementedLeaseServer
- func (UnimplementedLeaseServer) LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error)
- func (UnimplementedLeaseServer) LeaseKeepAlive(grpc.BidiStreamingServer[LeaseKeepAliveRequest, LeaseKeepAliveResponse]) error
- func (UnimplementedLeaseServer) LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error)
- func (UnimplementedLeaseServer) LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
- func (UnimplementedLeaseServer) LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error)
- type UnimplementedMaintenanceServer
- func (UnimplementedMaintenanceServer) Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
- func (UnimplementedMaintenanceServer) Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
- func (UnimplementedMaintenanceServer) Downgrade(context.Context, *DowngradeRequest) (*DowngradeResponse, error)
- func (UnimplementedMaintenanceServer) Hash(context.Context, *HashRequest) (*HashResponse, error)
- func (UnimplementedMaintenanceServer) HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error)
- func (UnimplementedMaintenanceServer) MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error)
- func (UnimplementedMaintenanceServer) Snapshot(*SnapshotRequest, grpc.ServerStreamingServer[SnapshotResponse]) error
- func (UnimplementedMaintenanceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
- type UnimplementedWatchServer
- type UnsafeAuthServer
- type UnsafeClusterServer
- type UnsafeKVServer
- type UnsafeLeaseServer
- type UnsafeMaintenanceServer
- type UnsafeWatchServer
- type WatchCancelRequest
- func (*WatchCancelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchCancelRequest) GetWatchId() int64
- func (*WatchCancelRequest) ProtoMessage()
- func (x *WatchCancelRequest) ProtoReflect() protoreflect.Message
- func (x *WatchCancelRequest) Reset()
- func (x *WatchCancelRequest) String() string
- type WatchClient
- type WatchCreateRequest
- func (*WatchCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType
- func (x *WatchCreateRequest) GetFragment() bool
- func (x *WatchCreateRequest) GetKey() []byte
- func (x *WatchCreateRequest) GetPrevKv() bool
- func (x *WatchCreateRequest) GetProgressNotify() bool
- func (x *WatchCreateRequest) GetRangeEnd() []byte
- func (x *WatchCreateRequest) GetStartRevision() int64
- func (x *WatchCreateRequest) GetWatchId() int64
- func (*WatchCreateRequest) ProtoMessage()
- func (x *WatchCreateRequest) ProtoReflect() protoreflect.Message
- func (x *WatchCreateRequest) Reset()
- func (x *WatchCreateRequest) String() string
- type WatchCreateRequest_FilterType
- func (WatchCreateRequest_FilterType) Descriptor() protoreflect.EnumDescriptor
- func (x WatchCreateRequest_FilterType) Enum() *WatchCreateRequest_FilterType
- func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x WatchCreateRequest_FilterType) Number() protoreflect.EnumNumber
- func (x WatchCreateRequest_FilterType) String() string
- func (WatchCreateRequest_FilterType) Type() protoreflect.EnumType
- type WatchProgressRequest
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetCancelRequest() *WatchCancelRequest
- func (x *WatchRequest) GetCreateRequest() *WatchCreateRequest
- func (x *WatchRequest) GetProgressRequest() *WatchProgressRequest
- func (x *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- type WatchRequest_CancelRequest
- type WatchRequest_CreateRequest
- type WatchRequest_ProgressRequest
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetCancelReason() string
- func (x *WatchResponse) GetCanceled() bool
- func (x *WatchResponse) GetCompactRevision() int64
- func (x *WatchResponse) GetCreated() bool
- func (x *WatchResponse) GetEvents() []*mvccpb.Event
- func (x *WatchResponse) GetFragment() bool
- func (x *WatchResponse) GetHeader() *ResponseHeader
- func (x *WatchResponse) GetWatchId() int64
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
- type WatchServer
- type Watch_WatchClient
- type Watch_WatchServer
Constants ¶
const ( KV_Range_FullMethodName = "/etcdserverpb.KV/Range" KV_RangeStream_FullMethodName = "/etcdserverpb.KV/RangeStream" KV_Put_FullMethodName = "/etcdserverpb.KV/Put" KV_DeleteRange_FullMethodName = "/etcdserverpb.KV/DeleteRange" KV_Txn_FullMethodName = "/etcdserverpb.KV/Txn" KV_Compact_FullMethodName = "/etcdserverpb.KV/Compact" )
const ( Lease_LeaseGrant_FullMethodName = "/etcdserverpb.Lease/LeaseGrant" Lease_LeaseRevoke_FullMethodName = "/etcdserverpb.Lease/LeaseRevoke" Lease_LeaseKeepAlive_FullMethodName = "/etcdserverpb.Lease/LeaseKeepAlive" Lease_LeaseTimeToLive_FullMethodName = "/etcdserverpb.Lease/LeaseTimeToLive" Lease_LeaseLeases_FullMethodName = "/etcdserverpb.Lease/LeaseLeases" )
const ( Cluster_MemberAdd_FullMethodName = "/etcdserverpb.Cluster/MemberAdd" Cluster_MemberRemove_FullMethodName = "/etcdserverpb.Cluster/MemberRemove" Cluster_MemberUpdate_FullMethodName = "/etcdserverpb.Cluster/MemberUpdate" Cluster_MemberList_FullMethodName = "/etcdserverpb.Cluster/MemberList" Cluster_MemberPromote_FullMethodName = "/etcdserverpb.Cluster/MemberPromote" )
const ( Maintenance_Alarm_FullMethodName = "/etcdserverpb.Maintenance/Alarm" Maintenance_Status_FullMethodName = "/etcdserverpb.Maintenance/Status" Maintenance_Defragment_FullMethodName = "/etcdserverpb.Maintenance/Defragment" Maintenance_Hash_FullMethodName = "/etcdserverpb.Maintenance/Hash" Maintenance_HashKV_FullMethodName = "/etcdserverpb.Maintenance/HashKV" Maintenance_Snapshot_FullMethodName = "/etcdserverpb.Maintenance/Snapshot" Maintenance_MoveLeader_FullMethodName = "/etcdserverpb.Maintenance/MoveLeader" Maintenance_Downgrade_FullMethodName = "/etcdserverpb.Maintenance/Downgrade" )
const ( Auth_AuthEnable_FullMethodName = "/etcdserverpb.Auth/AuthEnable" Auth_AuthDisable_FullMethodName = "/etcdserverpb.Auth/AuthDisable" Auth_AuthStatus_FullMethodName = "/etcdserverpb.Auth/AuthStatus" Auth_Authenticate_FullMethodName = "/etcdserverpb.Auth/Authenticate" Auth_UserAdd_FullMethodName = "/etcdserverpb.Auth/UserAdd" Auth_UserGet_FullMethodName = "/etcdserverpb.Auth/UserGet" Auth_UserList_FullMethodName = "/etcdserverpb.Auth/UserList" Auth_UserDelete_FullMethodName = "/etcdserverpb.Auth/UserDelete" Auth_UserChangePassword_FullMethodName = "/etcdserverpb.Auth/UserChangePassword" Auth_UserGrantRole_FullMethodName = "/etcdserverpb.Auth/UserGrantRole" Auth_UserRevokeRole_FullMethodName = "/etcdserverpb.Auth/UserRevokeRole" Auth_RoleAdd_FullMethodName = "/etcdserverpb.Auth/RoleAdd" Auth_RoleGet_FullMethodName = "/etcdserverpb.Auth/RoleGet" Auth_RoleList_FullMethodName = "/etcdserverpb.Auth/RoleList" Auth_RoleDelete_FullMethodName = "/etcdserverpb.Auth/RoleDelete" Auth_RoleGrantPermission_FullMethodName = "/etcdserverpb.Auth/RoleGrantPermission" Auth_RoleRevokePermission_FullMethodName = "/etcdserverpb.Auth/RoleRevokePermission" )
const (
Watch_Watch_FullMethodName = "/etcdserverpb.Watch/Watch"
)
Variables ¶
var ( AlarmType_name = map[int32]string{ 0: "NONE", 1: "NOSPACE", 2: "CORRUPT", } AlarmType_value = map[string]int32{ "NONE": 0, "NOSPACE": 1, "CORRUPT": 2, } )
Enum value maps for AlarmType.
var ( RangeRequest_SortOrder_name = map[int32]string{ 0: "NONE", 1: "ASCEND", 2: "DESCEND", } RangeRequest_SortOrder_value = map[string]int32{ "NONE": 0, "ASCEND": 1, "DESCEND": 2, } )
Enum value maps for RangeRequest_SortOrder.
var ( RangeRequest_SortTarget_name = map[int32]string{ 0: "KEY", 1: "VERSION", 2: "CREATE", 3: "MOD", 4: "VALUE", } RangeRequest_SortTarget_value = map[string]int32{ "KEY": 0, "VERSION": 1, "CREATE": 2, "MOD": 3, "VALUE": 4, } )
Enum value maps for RangeRequest_SortTarget.
var ( Compare_CompareResult_name = map[int32]string{ 0: "EQUAL", 1: "GREATER", 2: "LESS", 3: "NOT_EQUAL", } Compare_CompareResult_value = map[string]int32{ "EQUAL": 0, "GREATER": 1, "LESS": 2, "NOT_EQUAL": 3, } )
Enum value maps for Compare_CompareResult.
var ( Compare_CompareTarget_name = map[int32]string{ 0: "VERSION", 1: "CREATE", 2: "MOD", 3: "VALUE", 4: "LEASE", } Compare_CompareTarget_value = map[string]int32{ "VERSION": 0, "CREATE": 1, "MOD": 2, "VALUE": 3, "LEASE": 4, } )
Enum value maps for Compare_CompareTarget.
var ( WatchCreateRequest_FilterType_name = map[int32]string{ 0: "NOPUT", 1: "NODELETE", } WatchCreateRequest_FilterType_value = map[string]int32{ "NOPUT": 0, "NODELETE": 1, } )
Enum value maps for WatchCreateRequest_FilterType.
var ( AlarmRequest_AlarmAction_name = map[int32]string{ 0: "GET", 1: "ACTIVATE", 2: "DEACTIVATE", } AlarmRequest_AlarmAction_value = map[string]int32{ "GET": 0, "ACTIVATE": 1, "DEACTIVATE": 2, } )
Enum value maps for AlarmRequest_AlarmAction.
var ( DowngradeRequest_DowngradeAction_name = map[int32]string{ 0: "VALIDATE", 1: "ENABLE", 2: "CANCEL", } DowngradeRequest_DowngradeAction_value = map[string]int32{ "VALIDATE": 0, "ENABLE": 1, "CANCEL": 2, } )
Enum value maps for DowngradeRequest_DowngradeAction.
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AuthEnable", Handler: _Auth_AuthEnable_Handler, }, { MethodName: "AuthDisable", Handler: _Auth_AuthDisable_Handler, }, { MethodName: "AuthStatus", Handler: _Auth_AuthStatus_Handler, }, { MethodName: "Authenticate", Handler: _Auth_Authenticate_Handler, }, { MethodName: "UserAdd", Handler: _Auth_UserAdd_Handler, }, { MethodName: "UserGet", Handler: _Auth_UserGet_Handler, }, { MethodName: "UserList", Handler: _Auth_UserList_Handler, }, { MethodName: "UserDelete", Handler: _Auth_UserDelete_Handler, }, { MethodName: "UserChangePassword", Handler: _Auth_UserChangePassword_Handler, }, { MethodName: "UserGrantRole", Handler: _Auth_UserGrantRole_Handler, }, { MethodName: "UserRevokeRole", Handler: _Auth_UserRevokeRole_Handler, }, { MethodName: "RoleAdd", Handler: _Auth_RoleAdd_Handler, }, { MethodName: "RoleGet", Handler: _Auth_RoleGet_Handler, }, { MethodName: "RoleList", Handler: _Auth_RoleList_Handler, }, { MethodName: "RoleDelete", Handler: _Auth_RoleDelete_Handler, }, { MethodName: "RoleGrantPermission", Handler: _Auth_RoleGrantPermission_Handler, }, { MethodName: "RoleRevokePermission", Handler: _Auth_RoleRevokePermission_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Cluster_ServiceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.Cluster", HandlerType: (*ClusterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MemberAdd", Handler: _Cluster_MemberAdd_Handler, }, { MethodName: "MemberRemove", Handler: _Cluster_MemberRemove_Handler, }, { MethodName: "MemberUpdate", Handler: _Cluster_MemberUpdate_Handler, }, { MethodName: "MemberList", Handler: _Cluster_MemberList_Handler, }, { MethodName: "MemberPromote", Handler: _Cluster_MemberPromote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc.proto", }
Cluster_ServiceDesc is the grpc.ServiceDesc for Cluster service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_etcdserver_proto protoreflect.FileDescriptor
var File_raft_internal_proto protoreflect.FileDescriptor
var File_rpc_proto protoreflect.FileDescriptor
var KV_ServiceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.KV", HandlerType: (*KVServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Range", Handler: _KV_Range_Handler, }, { MethodName: "Put", Handler: _KV_Put_Handler, }, { MethodName: "DeleteRange", Handler: _KV_DeleteRange_Handler, }, { MethodName: "Txn", Handler: _KV_Txn_Handler, }, { MethodName: "Compact", Handler: _KV_Compact_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "RangeStream", Handler: _KV_RangeStream_Handler, ServerStreams: true, }, }, Metadata: "rpc.proto", }
KV_ServiceDesc is the grpc.ServiceDesc for KV service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Lease_ServiceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.Lease", HandlerType: (*LeaseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LeaseGrant", Handler: _Lease_LeaseGrant_Handler, }, { MethodName: "LeaseRevoke", Handler: _Lease_LeaseRevoke_Handler, }, { MethodName: "LeaseTimeToLive", Handler: _Lease_LeaseTimeToLive_Handler, }, { MethodName: "LeaseLeases", Handler: _Lease_LeaseLeases_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "LeaseKeepAlive", Handler: _Lease_LeaseKeepAlive_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "rpc.proto", }
Lease_ServiceDesc is the grpc.ServiceDesc for Lease service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Maintenance_ServiceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.Maintenance", HandlerType: (*MaintenanceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Alarm", Handler: _Maintenance_Alarm_Handler, }, { MethodName: "Status", Handler: _Maintenance_Status_Handler, }, { MethodName: "Defragment", Handler: _Maintenance_Defragment_Handler, }, { MethodName: "Hash", Handler: _Maintenance_Hash_Handler, }, { MethodName: "HashKV", Handler: _Maintenance_HashKV_Handler, }, { MethodName: "MoveLeader", Handler: _Maintenance_MoveLeader_Handler, }, { MethodName: "Downgrade", Handler: _Maintenance_Downgrade_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Snapshot", Handler: _Maintenance_Snapshot_Handler, ServerStreams: true, }, }, Metadata: "rpc.proto", }
Maintenance_ServiceDesc is the grpc.ServiceDesc for Maintenance service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Watch_ServiceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.Watch", HandlerType: (*WatchServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _Watch_Watch_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "rpc.proto", }
Watch_ServiceDesc is the grpc.ServiceDesc for Watch service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NewLoggablePutRequest ¶
func NewLoggablePutRequest(request *PutRequest) proto.Message
func NewLoggableTxnRequest ¶
func NewLoggableTxnRequest(request *TxnRequest) fmt.Stringer
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterClusterServer ¶
func RegisterClusterServer(s grpc.ServiceRegistrar, srv ClusterServer)
func RegisterKVServer ¶
func RegisterKVServer(s grpc.ServiceRegistrar, srv KVServer)
func RegisterLeaseServer ¶
func RegisterLeaseServer(s grpc.ServiceRegistrar, srv LeaseServer)
func RegisterMaintenanceServer ¶
func RegisterMaintenanceServer(s grpc.ServiceRegistrar, srv MaintenanceServer)
func RegisterWatchServer ¶
func RegisterWatchServer(s grpc.ServiceRegistrar, srv WatchServer)
Types ¶
type AlarmMember ¶
type AlarmMember struct {
// memberID is the ID of the member associated with the raised alarm.
MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"`
// alarm is the type of alarm which has been raised.
Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
// contains filtered or unexported fields
}
func (*AlarmMember) Descriptor
deprecated
func (*AlarmMember) Descriptor() ([]byte, []int)
Deprecated: Use AlarmMember.ProtoReflect.Descriptor instead.
func (*AlarmMember) GetAlarm ¶
func (x *AlarmMember) GetAlarm() AlarmType
func (*AlarmMember) GetMemberID ¶
func (x *AlarmMember) GetMemberID() uint64
func (*AlarmMember) ProtoMessage ¶
func (*AlarmMember) ProtoMessage()
func (*AlarmMember) ProtoReflect ¶ added in v3.7.0
func (x *AlarmMember) ProtoReflect() protoreflect.Message
func (*AlarmMember) Reset ¶
func (x *AlarmMember) Reset()
func (*AlarmMember) String ¶
func (x *AlarmMember) String() string
type AlarmRequest ¶
type AlarmRequest struct {
// action is the kind of alarm request to issue. The action
// may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
// raised alarm.
Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"`
// memberID is the ID of the member associated with the alarm. If memberID is 0, the
// alarm request covers all members.
MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"`
// alarm is the type of alarm to consider for this request.
Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
// contains filtered or unexported fields
}
func (*AlarmRequest) Descriptor
deprecated
func (*AlarmRequest) Descriptor() ([]byte, []int)
Deprecated: Use AlarmRequest.ProtoReflect.Descriptor instead.
func (*AlarmRequest) GetAction ¶
func (x *AlarmRequest) GetAction() AlarmRequest_AlarmAction
func (*AlarmRequest) GetAlarm ¶
func (x *AlarmRequest) GetAlarm() AlarmType
func (*AlarmRequest) GetMemberID ¶
func (x *AlarmRequest) GetMemberID() uint64
func (*AlarmRequest) ProtoMessage ¶
func (*AlarmRequest) ProtoMessage()
func (*AlarmRequest) ProtoReflect ¶ added in v3.7.0
func (x *AlarmRequest) ProtoReflect() protoreflect.Message
func (*AlarmRequest) Reset ¶
func (x *AlarmRequest) Reset()
func (*AlarmRequest) String ¶
func (x *AlarmRequest) String() string
type AlarmRequest_AlarmAction ¶
type AlarmRequest_AlarmAction int32
const ( AlarmRequest_GET AlarmRequest_AlarmAction = 0 AlarmRequest_ACTIVATE AlarmRequest_AlarmAction = 1 AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2 )
func (AlarmRequest_AlarmAction) Descriptor ¶ added in v3.7.0
func (AlarmRequest_AlarmAction) Descriptor() protoreflect.EnumDescriptor
func (AlarmRequest_AlarmAction) Enum ¶ added in v3.7.0
func (x AlarmRequest_AlarmAction) Enum() *AlarmRequest_AlarmAction
func (AlarmRequest_AlarmAction) EnumDescriptor
deprecated
func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use AlarmRequest_AlarmAction.Descriptor instead.
func (AlarmRequest_AlarmAction) Number ¶ added in v3.7.0
func (x AlarmRequest_AlarmAction) Number() protoreflect.EnumNumber
func (AlarmRequest_AlarmAction) String ¶
func (x AlarmRequest_AlarmAction) String() string
func (AlarmRequest_AlarmAction) Type ¶ added in v3.7.0
func (AlarmRequest_AlarmAction) Type() protoreflect.EnumType
type AlarmResponse ¶
type AlarmResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// alarms is a list of alarms associated with the alarm request.
Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms,proto3" json:"alarms,omitempty"`
// contains filtered or unexported fields
}
func (*AlarmResponse) Descriptor
deprecated
func (*AlarmResponse) Descriptor() ([]byte, []int)
Deprecated: Use AlarmResponse.ProtoReflect.Descriptor instead.
func (*AlarmResponse) GetAlarms ¶
func (x *AlarmResponse) GetAlarms() []*AlarmMember
func (*AlarmResponse) GetHeader ¶
func (x *AlarmResponse) GetHeader() *ResponseHeader
func (*AlarmResponse) ProtoMessage ¶
func (*AlarmResponse) ProtoMessage()
func (*AlarmResponse) ProtoReflect ¶ added in v3.7.0
func (x *AlarmResponse) ProtoReflect() protoreflect.Message
func (*AlarmResponse) Reset ¶
func (x *AlarmResponse) Reset()
func (*AlarmResponse) String ¶
func (x *AlarmResponse) String() string
type AlarmType ¶
type AlarmType int32
func (AlarmType) Descriptor ¶ added in v3.7.0
func (AlarmType) Descriptor() protoreflect.EnumDescriptor
func (AlarmType) EnumDescriptor
deprecated
func (AlarmType) Number ¶ added in v3.7.0
func (x AlarmType) Number() protoreflect.EnumNumber
func (AlarmType) Type ¶ added in v3.7.0
func (AlarmType) Type() protoreflect.EnumType
type AuthClient ¶
type AuthClient interface {
// AuthEnable enables authentication.
AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error)
// AuthDisable disables authentication.
AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error)
// AuthStatus displays authentication status.
AuthStatus(ctx context.Context, in *AuthStatusRequest, opts ...grpc.CallOption) (*AuthStatusResponse, error)
// Authenticate processes an authenticate request.
Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
// UserAdd adds a new user. User name cannot be empty.
UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error)
// UserGet gets detailed user information.
UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error)
// UserList gets a list of all users.
UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error)
// UserDelete deletes a specified user.
UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error)
// UserChangePassword changes the password of a specified user.
UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error)
// UserGrantRole grants a role to a specified user.
UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error)
// UserRevokeRole revokes a role of specified user.
UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error)
// RoleAdd adds a new role. Role name cannot be empty.
RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error)
// RoleGet gets detailed role information.
RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error)
// RoleList gets lists of all roles.
RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error)
// RoleDelete deletes a specified role.
RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error)
// RoleGrantPermission grants a permission of a specified key or range to a specified role.
RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error)
// RoleRevokePermission revokes a key or range permission of a specified role.
RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error)
}
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthDisableRequest ¶
type AuthDisableRequest struct {
// contains filtered or unexported fields
}
func (*AuthDisableRequest) Descriptor
deprecated
func (*AuthDisableRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthDisableRequest.ProtoReflect.Descriptor instead.
func (*AuthDisableRequest) ProtoMessage ¶
func (*AuthDisableRequest) ProtoMessage()
func (*AuthDisableRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthDisableRequest) ProtoReflect() protoreflect.Message
func (*AuthDisableRequest) Reset ¶
func (x *AuthDisableRequest) Reset()
func (*AuthDisableRequest) String ¶
func (x *AuthDisableRequest) String() string
type AuthDisableResponse ¶
type AuthDisableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthDisableResponse) Descriptor
deprecated
func (*AuthDisableResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthDisableResponse.ProtoReflect.Descriptor instead.
func (*AuthDisableResponse) GetHeader ¶
func (x *AuthDisableResponse) GetHeader() *ResponseHeader
func (*AuthDisableResponse) ProtoMessage ¶
func (*AuthDisableResponse) ProtoMessage()
func (*AuthDisableResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthDisableResponse) ProtoReflect() protoreflect.Message
func (*AuthDisableResponse) Reset ¶
func (x *AuthDisableResponse) Reset()
func (*AuthDisableResponse) String ¶
func (x *AuthDisableResponse) String() string
type AuthEnableRequest ¶
type AuthEnableRequest struct {
// contains filtered or unexported fields
}
func (*AuthEnableRequest) Descriptor
deprecated
func (*AuthEnableRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthEnableRequest.ProtoReflect.Descriptor instead.
func (*AuthEnableRequest) ProtoMessage ¶
func (*AuthEnableRequest) ProtoMessage()
func (*AuthEnableRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthEnableRequest) ProtoReflect() protoreflect.Message
func (*AuthEnableRequest) Reset ¶
func (x *AuthEnableRequest) Reset()
func (*AuthEnableRequest) String ¶
func (x *AuthEnableRequest) String() string
type AuthEnableResponse ¶
type AuthEnableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthEnableResponse) Descriptor
deprecated
func (*AuthEnableResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthEnableResponse.ProtoReflect.Descriptor instead.
func (*AuthEnableResponse) GetHeader ¶
func (x *AuthEnableResponse) GetHeader() *ResponseHeader
func (*AuthEnableResponse) ProtoMessage ¶
func (*AuthEnableResponse) ProtoMessage()
func (*AuthEnableResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthEnableResponse) ProtoReflect() protoreflect.Message
func (*AuthEnableResponse) Reset ¶
func (x *AuthEnableResponse) Reset()
func (*AuthEnableResponse) String ¶
func (x *AuthEnableResponse) String() string
type AuthRoleAddRequest ¶
type AuthRoleAddRequest struct {
// name is the name of the role to add to the authentication system.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleAddRequest) Descriptor
deprecated
func (*AuthRoleAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleAddRequest.ProtoReflect.Descriptor instead.
func (*AuthRoleAddRequest) GetName ¶
func (x *AuthRoleAddRequest) GetName() string
func (*AuthRoleAddRequest) ProtoMessage ¶
func (*AuthRoleAddRequest) ProtoMessage()
func (*AuthRoleAddRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleAddRequest) ProtoReflect() protoreflect.Message
func (*AuthRoleAddRequest) Reset ¶
func (x *AuthRoleAddRequest) Reset()
func (*AuthRoleAddRequest) String ¶
func (x *AuthRoleAddRequest) String() string
type AuthRoleAddResponse ¶
type AuthRoleAddResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleAddResponse) Descriptor
deprecated
func (*AuthRoleAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleAddResponse.ProtoReflect.Descriptor instead.
func (*AuthRoleAddResponse) GetHeader ¶
func (x *AuthRoleAddResponse) GetHeader() *ResponseHeader
func (*AuthRoleAddResponse) ProtoMessage ¶
func (*AuthRoleAddResponse) ProtoMessage()
func (*AuthRoleAddResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleAddResponse) ProtoReflect() protoreflect.Message
func (*AuthRoleAddResponse) Reset ¶
func (x *AuthRoleAddResponse) Reset()
func (*AuthRoleAddResponse) String ¶
func (x *AuthRoleAddResponse) String() string
type AuthRoleDeleteRequest ¶
type AuthRoleDeleteRequest struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleDeleteRequest) Descriptor
deprecated
func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleDeleteRequest.ProtoReflect.Descriptor instead.
func (*AuthRoleDeleteRequest) GetRole ¶
func (x *AuthRoleDeleteRequest) GetRole() string
func (*AuthRoleDeleteRequest) ProtoMessage ¶
func (*AuthRoleDeleteRequest) ProtoMessage()
func (*AuthRoleDeleteRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleDeleteRequest) ProtoReflect() protoreflect.Message
func (*AuthRoleDeleteRequest) Reset ¶
func (x *AuthRoleDeleteRequest) Reset()
func (*AuthRoleDeleteRequest) String ¶
func (x *AuthRoleDeleteRequest) String() string
type AuthRoleDeleteResponse ¶
type AuthRoleDeleteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleDeleteResponse) Descriptor
deprecated
func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleDeleteResponse.ProtoReflect.Descriptor instead.
func (*AuthRoleDeleteResponse) GetHeader ¶
func (x *AuthRoleDeleteResponse) GetHeader() *ResponseHeader
func (*AuthRoleDeleteResponse) ProtoMessage ¶
func (*AuthRoleDeleteResponse) ProtoMessage()
func (*AuthRoleDeleteResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleDeleteResponse) ProtoReflect() protoreflect.Message
func (*AuthRoleDeleteResponse) Reset ¶
func (x *AuthRoleDeleteResponse) Reset()
func (*AuthRoleDeleteResponse) String ¶
func (x *AuthRoleDeleteResponse) String() string
type AuthRoleGetRequest ¶
type AuthRoleGetRequest struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleGetRequest) Descriptor
deprecated
func (*AuthRoleGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleGetRequest.ProtoReflect.Descriptor instead.
func (*AuthRoleGetRequest) GetRole ¶
func (x *AuthRoleGetRequest) GetRole() string
func (*AuthRoleGetRequest) ProtoMessage ¶
func (*AuthRoleGetRequest) ProtoMessage()
func (*AuthRoleGetRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleGetRequest) ProtoReflect() protoreflect.Message
func (*AuthRoleGetRequest) Reset ¶
func (x *AuthRoleGetRequest) Reset()
func (*AuthRoleGetRequest) String ¶
func (x *AuthRoleGetRequest) String() string
type AuthRoleGetResponse ¶
type AuthRoleGetResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm,proto3" json:"perm,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleGetResponse) Descriptor
deprecated
func (*AuthRoleGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleGetResponse.ProtoReflect.Descriptor instead.
func (*AuthRoleGetResponse) GetHeader ¶
func (x *AuthRoleGetResponse) GetHeader() *ResponseHeader
func (*AuthRoleGetResponse) GetPerm ¶
func (x *AuthRoleGetResponse) GetPerm() []*authpb.Permission
func (*AuthRoleGetResponse) ProtoMessage ¶
func (*AuthRoleGetResponse) ProtoMessage()
func (*AuthRoleGetResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleGetResponse) ProtoReflect() protoreflect.Message
func (*AuthRoleGetResponse) Reset ¶
func (x *AuthRoleGetResponse) Reset()
func (*AuthRoleGetResponse) String ¶
func (x *AuthRoleGetResponse) String() string
type AuthRoleGrantPermissionRequest ¶
type AuthRoleGrantPermissionRequest struct {
// name is the name of the role which will be granted the permission.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// perm is the permission to grant to the role.
Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm,proto3" json:"perm,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleGrantPermissionRequest) Descriptor
deprecated
func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleGrantPermissionRequest.ProtoReflect.Descriptor instead.
func (*AuthRoleGrantPermissionRequest) GetName ¶
func (x *AuthRoleGrantPermissionRequest) GetName() string
func (*AuthRoleGrantPermissionRequest) GetPerm ¶
func (x *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission
func (*AuthRoleGrantPermissionRequest) ProtoMessage ¶
func (*AuthRoleGrantPermissionRequest) ProtoMessage()
func (*AuthRoleGrantPermissionRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleGrantPermissionRequest) ProtoReflect() protoreflect.Message
func (*AuthRoleGrantPermissionRequest) Reset ¶
func (x *AuthRoleGrantPermissionRequest) Reset()
func (*AuthRoleGrantPermissionRequest) String ¶
func (x *AuthRoleGrantPermissionRequest) String() string
type AuthRoleGrantPermissionResponse ¶
type AuthRoleGrantPermissionResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleGrantPermissionResponse) Descriptor
deprecated
func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleGrantPermissionResponse.ProtoReflect.Descriptor instead.
func (*AuthRoleGrantPermissionResponse) GetHeader ¶
func (x *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader
func (*AuthRoleGrantPermissionResponse) ProtoMessage ¶
func (*AuthRoleGrantPermissionResponse) ProtoMessage()
func (*AuthRoleGrantPermissionResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleGrantPermissionResponse) ProtoReflect() protoreflect.Message
func (*AuthRoleGrantPermissionResponse) Reset ¶
func (x *AuthRoleGrantPermissionResponse) Reset()
func (*AuthRoleGrantPermissionResponse) String ¶
func (x *AuthRoleGrantPermissionResponse) String() string
type AuthRoleListRequest ¶
type AuthRoleListRequest struct {
// contains filtered or unexported fields
}
func (*AuthRoleListRequest) Descriptor
deprecated
func (*AuthRoleListRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleListRequest.ProtoReflect.Descriptor instead.
func (*AuthRoleListRequest) ProtoMessage ¶
func (*AuthRoleListRequest) ProtoMessage()
func (*AuthRoleListRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleListRequest) ProtoReflect() protoreflect.Message
func (*AuthRoleListRequest) Reset ¶
func (x *AuthRoleListRequest) Reset()
func (*AuthRoleListRequest) String ¶
func (x *AuthRoleListRequest) String() string
type AuthRoleListResponse ¶
type AuthRoleListResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleListResponse) Descriptor
deprecated
func (*AuthRoleListResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleListResponse.ProtoReflect.Descriptor instead.
func (*AuthRoleListResponse) GetHeader ¶
func (x *AuthRoleListResponse) GetHeader() *ResponseHeader
func (*AuthRoleListResponse) GetRoles ¶
func (x *AuthRoleListResponse) GetRoles() []string
func (*AuthRoleListResponse) ProtoMessage ¶
func (*AuthRoleListResponse) ProtoMessage()
func (*AuthRoleListResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleListResponse) ProtoReflect() protoreflect.Message
func (*AuthRoleListResponse) Reset ¶
func (x *AuthRoleListResponse) Reset()
func (*AuthRoleListResponse) String ¶
func (x *AuthRoleListResponse) String() string
type AuthRoleRevokePermissionRequest ¶
type AuthRoleRevokePermissionRequest struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleRevokePermissionRequest) Descriptor
deprecated
func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleRevokePermissionRequest.ProtoReflect.Descriptor instead.
func (*AuthRoleRevokePermissionRequest) GetKey ¶
func (x *AuthRoleRevokePermissionRequest) GetKey() []byte
func (*AuthRoleRevokePermissionRequest) GetRangeEnd ¶
func (x *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte
func (*AuthRoleRevokePermissionRequest) GetRole ¶
func (x *AuthRoleRevokePermissionRequest) GetRole() string
func (*AuthRoleRevokePermissionRequest) ProtoMessage ¶
func (*AuthRoleRevokePermissionRequest) ProtoMessage()
func (*AuthRoleRevokePermissionRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleRevokePermissionRequest) ProtoReflect() protoreflect.Message
func (*AuthRoleRevokePermissionRequest) Reset ¶
func (x *AuthRoleRevokePermissionRequest) Reset()
func (*AuthRoleRevokePermissionRequest) String ¶
func (x *AuthRoleRevokePermissionRequest) String() string
type AuthRoleRevokePermissionResponse ¶
type AuthRoleRevokePermissionResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRoleRevokePermissionResponse) Descriptor
deprecated
func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRoleRevokePermissionResponse.ProtoReflect.Descriptor instead.
func (*AuthRoleRevokePermissionResponse) GetHeader ¶
func (x *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader
func (*AuthRoleRevokePermissionResponse) ProtoMessage ¶
func (*AuthRoleRevokePermissionResponse) ProtoMessage()
func (*AuthRoleRevokePermissionResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthRoleRevokePermissionResponse) ProtoReflect() protoreflect.Message
func (*AuthRoleRevokePermissionResponse) Reset ¶
func (x *AuthRoleRevokePermissionResponse) Reset()
func (*AuthRoleRevokePermissionResponse) String ¶
func (x *AuthRoleRevokePermissionResponse) String() string
type AuthServer ¶
type AuthServer interface {
// AuthEnable enables authentication.
AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
// AuthDisable disables authentication.
AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
// AuthStatus displays authentication status.
AuthStatus(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error)
// Authenticate processes an authenticate request.
Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
// UserAdd adds a new user. User name cannot be empty.
UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
// UserGet gets detailed user information.
UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error)
// UserList gets a list of all users.
UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error)
// UserDelete deletes a specified user.
UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error)
// UserChangePassword changes the password of a specified user.
UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error)
// UserGrantRole grants a role to a specified user.
UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error)
// UserRevokeRole revokes a role of specified user.
UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error)
// RoleAdd adds a new role. Role name cannot be empty.
RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error)
// RoleGet gets detailed role information.
RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error)
// RoleList gets lists of all roles.
RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error)
// RoleDelete deletes a specified role.
RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error)
// RoleGrantPermission grants a permission of a specified key or range to a specified role.
RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error)
// RoleRevokePermission revokes a key or range permission of a specified role.
RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error)
// contains filtered or unexported methods
}
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.
type AuthStatusRequest ¶
type AuthStatusRequest struct {
// contains filtered or unexported fields
}
func (*AuthStatusRequest) Descriptor
deprecated
func (*AuthStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthStatusRequest.ProtoReflect.Descriptor instead.
func (*AuthStatusRequest) ProtoMessage ¶
func (*AuthStatusRequest) ProtoMessage()
func (*AuthStatusRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthStatusRequest) ProtoReflect() protoreflect.Message
func (*AuthStatusRequest) Reset ¶
func (x *AuthStatusRequest) Reset()
func (*AuthStatusRequest) String ¶
func (x *AuthStatusRequest) String() string
type AuthStatusResponse ¶
type AuthStatusResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
// authRevision is the current revision of auth store
AuthRevision uint64 `protobuf:"varint,3,opt,name=authRevision,proto3" json:"authRevision,omitempty"`
// contains filtered or unexported fields
}
func (*AuthStatusResponse) Descriptor
deprecated
func (*AuthStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthStatusResponse.ProtoReflect.Descriptor instead.
func (*AuthStatusResponse) GetAuthRevision ¶
func (x *AuthStatusResponse) GetAuthRevision() uint64
func (*AuthStatusResponse) GetEnabled ¶
func (x *AuthStatusResponse) GetEnabled() bool
func (*AuthStatusResponse) GetHeader ¶
func (x *AuthStatusResponse) GetHeader() *ResponseHeader
func (*AuthStatusResponse) ProtoMessage ¶
func (*AuthStatusResponse) ProtoMessage()
func (*AuthStatusResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthStatusResponse) ProtoReflect() protoreflect.Message
func (*AuthStatusResponse) Reset ¶
func (x *AuthStatusResponse) Reset()
func (*AuthStatusResponse) String ¶
func (x *AuthStatusResponse) String() string
type AuthUserAddRequest ¶
type AuthUserAddRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Options *authpb.UserAddOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
HashedPassword string `protobuf:"bytes,4,opt,name=hashedPassword,proto3" json:"hashedPassword,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserAddRequest) Descriptor
deprecated
func (*AuthUserAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserAddRequest.ProtoReflect.Descriptor instead.
func (*AuthUserAddRequest) GetHashedPassword ¶
func (x *AuthUserAddRequest) GetHashedPassword() string
func (*AuthUserAddRequest) GetName ¶
func (x *AuthUserAddRequest) GetName() string
func (*AuthUserAddRequest) GetOptions ¶
func (x *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions
func (*AuthUserAddRequest) GetPassword ¶
func (x *AuthUserAddRequest) GetPassword() string
func (*AuthUserAddRequest) ProtoMessage ¶
func (*AuthUserAddRequest) ProtoMessage()
func (*AuthUserAddRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserAddRequest) ProtoReflect() protoreflect.Message
func (*AuthUserAddRequest) Reset ¶
func (x *AuthUserAddRequest) Reset()
func (*AuthUserAddRequest) String ¶
func (x *AuthUserAddRequest) String() string
type AuthUserAddResponse ¶
type AuthUserAddResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserAddResponse) Descriptor
deprecated
func (*AuthUserAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserAddResponse.ProtoReflect.Descriptor instead.
func (*AuthUserAddResponse) GetHeader ¶
func (x *AuthUserAddResponse) GetHeader() *ResponseHeader
func (*AuthUserAddResponse) ProtoMessage ¶
func (*AuthUserAddResponse) ProtoMessage()
func (*AuthUserAddResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserAddResponse) ProtoReflect() protoreflect.Message
func (*AuthUserAddResponse) Reset ¶
func (x *AuthUserAddResponse) Reset()
func (*AuthUserAddResponse) String ¶
func (x *AuthUserAddResponse) String() string
type AuthUserChangePasswordRequest ¶
type AuthUserChangePasswordRequest struct {
// name is the name of the user whose password is being changed.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// password is the new password for the user. Note that this field will be removed in the API layer.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// hashedPassword is the new password for the user. Note that this field will be initialized in the API layer.
HashedPassword string `protobuf:"bytes,3,opt,name=hashedPassword,proto3" json:"hashedPassword,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserChangePasswordRequest) Descriptor
deprecated
func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*AuthUserChangePasswordRequest) GetHashedPassword ¶
func (x *AuthUserChangePasswordRequest) GetHashedPassword() string
func (*AuthUserChangePasswordRequest) GetName ¶
func (x *AuthUserChangePasswordRequest) GetName() string
func (*AuthUserChangePasswordRequest) GetPassword ¶
func (x *AuthUserChangePasswordRequest) GetPassword() string
func (*AuthUserChangePasswordRequest) ProtoMessage ¶
func (*AuthUserChangePasswordRequest) ProtoMessage()
func (*AuthUserChangePasswordRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserChangePasswordRequest) ProtoReflect() protoreflect.Message
func (*AuthUserChangePasswordRequest) Reset ¶
func (x *AuthUserChangePasswordRequest) Reset()
func (*AuthUserChangePasswordRequest) String ¶
func (x *AuthUserChangePasswordRequest) String() string
type AuthUserChangePasswordResponse ¶
type AuthUserChangePasswordResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserChangePasswordResponse) Descriptor
deprecated
func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserChangePasswordResponse.ProtoReflect.Descriptor instead.
func (*AuthUserChangePasswordResponse) GetHeader ¶
func (x *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader
func (*AuthUserChangePasswordResponse) ProtoMessage ¶
func (*AuthUserChangePasswordResponse) ProtoMessage()
func (*AuthUserChangePasswordResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserChangePasswordResponse) ProtoReflect() protoreflect.Message
func (*AuthUserChangePasswordResponse) Reset ¶
func (x *AuthUserChangePasswordResponse) Reset()
func (*AuthUserChangePasswordResponse) String ¶
func (x *AuthUserChangePasswordResponse) String() string
type AuthUserDeleteRequest ¶
type AuthUserDeleteRequest struct {
// name is the name of the user to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserDeleteRequest) Descriptor
deprecated
func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserDeleteRequest.ProtoReflect.Descriptor instead.
func (*AuthUserDeleteRequest) GetName ¶
func (x *AuthUserDeleteRequest) GetName() string
func (*AuthUserDeleteRequest) ProtoMessage ¶
func (*AuthUserDeleteRequest) ProtoMessage()
func (*AuthUserDeleteRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserDeleteRequest) ProtoReflect() protoreflect.Message
func (*AuthUserDeleteRequest) Reset ¶
func (x *AuthUserDeleteRequest) Reset()
func (*AuthUserDeleteRequest) String ¶
func (x *AuthUserDeleteRequest) String() string
type AuthUserDeleteResponse ¶
type AuthUserDeleteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserDeleteResponse) Descriptor
deprecated
func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserDeleteResponse.ProtoReflect.Descriptor instead.
func (*AuthUserDeleteResponse) GetHeader ¶
func (x *AuthUserDeleteResponse) GetHeader() *ResponseHeader
func (*AuthUserDeleteResponse) ProtoMessage ¶
func (*AuthUserDeleteResponse) ProtoMessage()
func (*AuthUserDeleteResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserDeleteResponse) ProtoReflect() protoreflect.Message
func (*AuthUserDeleteResponse) Reset ¶
func (x *AuthUserDeleteResponse) Reset()
func (*AuthUserDeleteResponse) String ¶
func (x *AuthUserDeleteResponse) String() string
type AuthUserGetRequest ¶
type AuthUserGetRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserGetRequest) Descriptor
deprecated
func (*AuthUserGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserGetRequest.ProtoReflect.Descriptor instead.
func (*AuthUserGetRequest) GetName ¶
func (x *AuthUserGetRequest) GetName() string
func (*AuthUserGetRequest) ProtoMessage ¶
func (*AuthUserGetRequest) ProtoMessage()
func (*AuthUserGetRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserGetRequest) ProtoReflect() protoreflect.Message
func (*AuthUserGetRequest) Reset ¶
func (x *AuthUserGetRequest) Reset()
func (*AuthUserGetRequest) String ¶
func (x *AuthUserGetRequest) String() string
type AuthUserGetResponse ¶
type AuthUserGetResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserGetResponse) Descriptor
deprecated
func (*AuthUserGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserGetResponse.ProtoReflect.Descriptor instead.
func (*AuthUserGetResponse) GetHeader ¶
func (x *AuthUserGetResponse) GetHeader() *ResponseHeader
func (*AuthUserGetResponse) GetRoles ¶
func (x *AuthUserGetResponse) GetRoles() []string
func (*AuthUserGetResponse) ProtoMessage ¶
func (*AuthUserGetResponse) ProtoMessage()
func (*AuthUserGetResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserGetResponse) ProtoReflect() protoreflect.Message
func (*AuthUserGetResponse) Reset ¶
func (x *AuthUserGetResponse) Reset()
func (*AuthUserGetResponse) String ¶
func (x *AuthUserGetResponse) String() string
type AuthUserGrantRoleRequest ¶
type AuthUserGrantRoleRequest struct {
// user is the name of the user which should be granted a given role.
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// role is the name of the role to grant to the user.
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserGrantRoleRequest) Descriptor
deprecated
func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserGrantRoleRequest.ProtoReflect.Descriptor instead.
func (*AuthUserGrantRoleRequest) GetRole ¶
func (x *AuthUserGrantRoleRequest) GetRole() string
func (*AuthUserGrantRoleRequest) GetUser ¶
func (x *AuthUserGrantRoleRequest) GetUser() string
func (*AuthUserGrantRoleRequest) ProtoMessage ¶
func (*AuthUserGrantRoleRequest) ProtoMessage()
func (*AuthUserGrantRoleRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserGrantRoleRequest) ProtoReflect() protoreflect.Message
func (*AuthUserGrantRoleRequest) Reset ¶
func (x *AuthUserGrantRoleRequest) Reset()
func (*AuthUserGrantRoleRequest) String ¶
func (x *AuthUserGrantRoleRequest) String() string
type AuthUserGrantRoleResponse ¶
type AuthUserGrantRoleResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserGrantRoleResponse) Descriptor
deprecated
func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserGrantRoleResponse.ProtoReflect.Descriptor instead.
func (*AuthUserGrantRoleResponse) GetHeader ¶
func (x *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader
func (*AuthUserGrantRoleResponse) ProtoMessage ¶
func (*AuthUserGrantRoleResponse) ProtoMessage()
func (*AuthUserGrantRoleResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserGrantRoleResponse) ProtoReflect() protoreflect.Message
func (*AuthUserGrantRoleResponse) Reset ¶
func (x *AuthUserGrantRoleResponse) Reset()
func (*AuthUserGrantRoleResponse) String ¶
func (x *AuthUserGrantRoleResponse) String() string
type AuthUserListRequest ¶
type AuthUserListRequest struct {
// contains filtered or unexported fields
}
func (*AuthUserListRequest) Descriptor
deprecated
func (*AuthUserListRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserListRequest.ProtoReflect.Descriptor instead.
func (*AuthUserListRequest) ProtoMessage ¶
func (*AuthUserListRequest) ProtoMessage()
func (*AuthUserListRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserListRequest) ProtoReflect() protoreflect.Message
func (*AuthUserListRequest) Reset ¶
func (x *AuthUserListRequest) Reset()
func (*AuthUserListRequest) String ¶
func (x *AuthUserListRequest) String() string
type AuthUserListResponse ¶
type AuthUserListResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserListResponse) Descriptor
deprecated
func (*AuthUserListResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserListResponse.ProtoReflect.Descriptor instead.
func (*AuthUserListResponse) GetHeader ¶
func (x *AuthUserListResponse) GetHeader() *ResponseHeader
func (*AuthUserListResponse) GetUsers ¶
func (x *AuthUserListResponse) GetUsers() []string
func (*AuthUserListResponse) ProtoMessage ¶
func (*AuthUserListResponse) ProtoMessage()
func (*AuthUserListResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserListResponse) ProtoReflect() protoreflect.Message
func (*AuthUserListResponse) Reset ¶
func (x *AuthUserListResponse) Reset()
func (*AuthUserListResponse) String ¶
func (x *AuthUserListResponse) String() string
type AuthUserRevokeRoleRequest ¶
type AuthUserRevokeRoleRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserRevokeRoleRequest) Descriptor
deprecated
func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserRevokeRoleRequest.ProtoReflect.Descriptor instead.
func (*AuthUserRevokeRoleRequest) GetName ¶
func (x *AuthUserRevokeRoleRequest) GetName() string
func (*AuthUserRevokeRoleRequest) GetRole ¶
func (x *AuthUserRevokeRoleRequest) GetRole() string
func (*AuthUserRevokeRoleRequest) ProtoMessage ¶
func (*AuthUserRevokeRoleRequest) ProtoMessage()
func (*AuthUserRevokeRoleRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserRevokeRoleRequest) ProtoReflect() protoreflect.Message
func (*AuthUserRevokeRoleRequest) Reset ¶
func (x *AuthUserRevokeRoleRequest) Reset()
func (*AuthUserRevokeRoleRequest) String ¶
func (x *AuthUserRevokeRoleRequest) String() string
type AuthUserRevokeRoleResponse ¶
type AuthUserRevokeRoleResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*AuthUserRevokeRoleResponse) Descriptor
deprecated
func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthUserRevokeRoleResponse.ProtoReflect.Descriptor instead.
func (*AuthUserRevokeRoleResponse) GetHeader ¶
func (x *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader
func (*AuthUserRevokeRoleResponse) ProtoMessage ¶
func (*AuthUserRevokeRoleResponse) ProtoMessage()
func (*AuthUserRevokeRoleResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthUserRevokeRoleResponse) ProtoReflect() protoreflect.Message
func (*AuthUserRevokeRoleResponse) Reset ¶
func (x *AuthUserRevokeRoleResponse) Reset()
func (*AuthUserRevokeRoleResponse) String ¶
func (x *AuthUserRevokeRoleResponse) String() string
type AuthenticateRequest ¶
type AuthenticateRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetName ¶
func (x *AuthenticateRequest) GetName() string
func (*AuthenticateRequest) GetPassword ¶
func (x *AuthenticateRequest) GetPassword() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶ added in v3.7.0
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type AuthenticateResponse ¶
type AuthenticateResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// token is an authorized token that can be used in succeeding RPCs
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetHeader ¶
func (x *AuthenticateResponse) GetHeader() *ResponseHeader
func (*AuthenticateResponse) GetToken ¶
func (x *AuthenticateResponse) GetToken() string
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶ added in v3.7.0
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
type ClusterClient ¶
type ClusterClient interface {
// MemberAdd adds a member into the cluster.
MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error)
// MemberRemove removes an existing member from the cluster.
MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error)
// MemberUpdate updates the member configuration.
MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error)
// MemberList lists all the members in the cluster.
MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error)
// MemberPromote promotes a member from raft learner (non-voting) to raft voting member.
MemberPromote(ctx context.Context, in *MemberPromoteRequest, opts ...grpc.CallOption) (*MemberPromoteResponse, error)
}
ClusterClient is the client API for Cluster service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewClusterClient ¶
func NewClusterClient(cc grpc.ClientConnInterface) ClusterClient
type ClusterServer ¶
type ClusterServer interface {
// MemberAdd adds a member into the cluster.
MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
// MemberRemove removes an existing member from the cluster.
MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
// MemberUpdate updates the member configuration.
MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
// MemberList lists all the members in the cluster.
MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
// MemberPromote promotes a member from raft learner (non-voting) to raft voting member.
MemberPromote(context.Context, *MemberPromoteRequest) (*MemberPromoteResponse, error)
// contains filtered or unexported methods
}
ClusterServer is the server API for Cluster service. All implementations must embed UnimplementedClusterServer for forward compatibility.
type CompactionRequest ¶
type CompactionRequest struct {
// revision is the key-value store revision for the compaction operation.
Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
// physical is set so the RPC will wait until the compaction is physically
// applied to the local database such that compacted entries are totally
// removed from the backend database.
Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"`
// contains filtered or unexported fields
}
CompactionRequest compacts the key-value store up to a given revision. All superseded keys with a revision less than the compaction revision will be removed.
func (*CompactionRequest) Descriptor
deprecated
func (*CompactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompactionRequest.ProtoReflect.Descriptor instead.
func (*CompactionRequest) GetPhysical ¶
func (x *CompactionRequest) GetPhysical() bool
func (*CompactionRequest) GetRevision ¶
func (x *CompactionRequest) GetRevision() int64
func (*CompactionRequest) ProtoMessage ¶
func (*CompactionRequest) ProtoMessage()
func (*CompactionRequest) ProtoReflect ¶ added in v3.7.0
func (x *CompactionRequest) ProtoReflect() protoreflect.Message
func (*CompactionRequest) Reset ¶
func (x *CompactionRequest) Reset()
func (*CompactionRequest) String ¶
func (x *CompactionRequest) String() string
type CompactionResponse ¶
type CompactionResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*CompactionResponse) Descriptor
deprecated
func (*CompactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompactionResponse.ProtoReflect.Descriptor instead.
func (*CompactionResponse) GetHeader ¶
func (x *CompactionResponse) GetHeader() *ResponseHeader
func (*CompactionResponse) ProtoMessage ¶
func (*CompactionResponse) ProtoMessage()
func (*CompactionResponse) ProtoReflect ¶ added in v3.7.0
func (x *CompactionResponse) ProtoReflect() protoreflect.Message
func (*CompactionResponse) Reset ¶
func (x *CompactionResponse) Reset()
func (*CompactionResponse) String ¶
func (x *CompactionResponse) String() string
type Compare ¶
type Compare struct {
// result is logical comparison operation for this comparison.
Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"`
// target is the key-value field to inspect for the comparison.
Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"`
// key is the subject key for the comparison operation.
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// Types that are valid to be assigned to TargetUnion:
//
// *Compare_Version
// *Compare_CreateRevision
// *Compare_ModRevision
// *Compare_Value
// *Compare_Lease
TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"`
// range_end compares the given target to all keys in the range [key, range_end).
// See RangeRequest for more details on key ranges.
RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // TODO: fill out with most of the rest of RangeRequest fields when needed.
// contains filtered or unexported fields
}
func (*Compare) Descriptor
deprecated
func (*Compare) GetCreateRevision ¶
func (*Compare) GetModRevision ¶
func (*Compare) GetRangeEnd ¶
func (*Compare) GetResult ¶
func (x *Compare) GetResult() Compare_CompareResult
func (*Compare) GetTarget ¶
func (x *Compare) GetTarget() Compare_CompareTarget
func (*Compare) GetTargetUnion ¶
func (x *Compare) GetTargetUnion() isCompare_TargetUnion
func (*Compare) GetVersion ¶
func (*Compare) ProtoMessage ¶
func (*Compare) ProtoMessage()
func (*Compare) ProtoReflect ¶ added in v3.7.0
func (x *Compare) ProtoReflect() protoreflect.Message
type Compare_CompareResult ¶
type Compare_CompareResult int32
const ( Compare_EQUAL Compare_CompareResult = 0 Compare_GREATER Compare_CompareResult = 1 Compare_LESS Compare_CompareResult = 2 Compare_NOT_EQUAL Compare_CompareResult = 3 )
func (Compare_CompareResult) Descriptor ¶ added in v3.7.0
func (Compare_CompareResult) Descriptor() protoreflect.EnumDescriptor
func (Compare_CompareResult) Enum ¶ added in v3.7.0
func (x Compare_CompareResult) Enum() *Compare_CompareResult
func (Compare_CompareResult) EnumDescriptor
deprecated
func (Compare_CompareResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use Compare_CompareResult.Descriptor instead.
func (Compare_CompareResult) Number ¶ added in v3.7.0
func (x Compare_CompareResult) Number() protoreflect.EnumNumber
func (Compare_CompareResult) String ¶
func (x Compare_CompareResult) String() string
func (Compare_CompareResult) Type ¶ added in v3.7.0
func (Compare_CompareResult) Type() protoreflect.EnumType
type Compare_CompareTarget ¶
type Compare_CompareTarget int32
const ( Compare_VERSION Compare_CompareTarget = 0 Compare_CREATE Compare_CompareTarget = 1 Compare_MOD Compare_CompareTarget = 2 Compare_VALUE Compare_CompareTarget = 3 Compare_LEASE Compare_CompareTarget = 4 )
func (Compare_CompareTarget) Descriptor ¶ added in v3.7.0
func (Compare_CompareTarget) Descriptor() protoreflect.EnumDescriptor
func (Compare_CompareTarget) Enum ¶ added in v3.7.0
func (x Compare_CompareTarget) Enum() *Compare_CompareTarget
func (Compare_CompareTarget) EnumDescriptor
deprecated
func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int)
Deprecated: Use Compare_CompareTarget.Descriptor instead.
func (Compare_CompareTarget) Number ¶ added in v3.7.0
func (x Compare_CompareTarget) Number() protoreflect.EnumNumber
func (Compare_CompareTarget) String ¶
func (x Compare_CompareTarget) String() string
func (Compare_CompareTarget) Type ¶ added in v3.7.0
func (Compare_CompareTarget) Type() protoreflect.EnumType
type Compare_CreateRevision ¶
type Compare_CreateRevision struct {
// create_revision is the creation revision of the given key
CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"`
}
type Compare_Lease ¶
type Compare_Lease struct {
// lease is the lease id of the given key.
Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof"` // leave room for more target_union field tags, jump to 64
}
type Compare_ModRevision ¶
type Compare_ModRevision struct {
// mod_revision is the last modified revision of the given key.
ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"`
}
type Compare_Value ¶
type Compare_Value struct {
// value is the value of the given key, in bytes.
Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"`
}
type Compare_Version ¶
type Compare_Version struct {
// version is the version of the given key
Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"`
}
type DefragmentRequest ¶
type DefragmentRequest struct {
// contains filtered or unexported fields
}
func (*DefragmentRequest) Descriptor
deprecated
func (*DefragmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DefragmentRequest.ProtoReflect.Descriptor instead.
func (*DefragmentRequest) ProtoMessage ¶
func (*DefragmentRequest) ProtoMessage()
func (*DefragmentRequest) ProtoReflect ¶ added in v3.7.0
func (x *DefragmentRequest) ProtoReflect() protoreflect.Message
func (*DefragmentRequest) Reset ¶
func (x *DefragmentRequest) Reset()
func (*DefragmentRequest) String ¶
func (x *DefragmentRequest) String() string
type DefragmentResponse ¶
type DefragmentResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*DefragmentResponse) Descriptor
deprecated
func (*DefragmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DefragmentResponse.ProtoReflect.Descriptor instead.
func (*DefragmentResponse) GetHeader ¶
func (x *DefragmentResponse) GetHeader() *ResponseHeader
func (*DefragmentResponse) ProtoMessage ¶
func (*DefragmentResponse) ProtoMessage()
func (*DefragmentResponse) ProtoReflect ¶ added in v3.7.0
func (x *DefragmentResponse) ProtoReflect() protoreflect.Message
func (*DefragmentResponse) Reset ¶
func (x *DefragmentResponse) Reset()
func (*DefragmentResponse) String ¶
func (x *DefragmentResponse) String() string
type DeleteRangeRequest ¶
type DeleteRangeRequest struct {
// key is the first key to delete in the range.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// range_end is the key following the last key to delete for the range [key, range_end).
// If range_end is not given, the range is defined to contain only the key argument.
// If range_end is one bit larger than the given key, then the range is all the keys
// with the prefix (the given key).
// If range_end is '\0', the range is all keys greater than or equal to the key argument.
RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
// If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
// The previous key-value pairs will be returned in the delete response.
PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRangeRequest) Descriptor
deprecated
func (*DeleteRangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRangeRequest.ProtoReflect.Descriptor instead.
func (*DeleteRangeRequest) GetKey ¶
func (x *DeleteRangeRequest) GetKey() []byte
func (*DeleteRangeRequest) GetPrevKv ¶
func (x *DeleteRangeRequest) GetPrevKv() bool
func (*DeleteRangeRequest) GetRangeEnd ¶
func (x *DeleteRangeRequest) GetRangeEnd() []byte
func (*DeleteRangeRequest) ProtoMessage ¶
func (*DeleteRangeRequest) ProtoMessage()
func (*DeleteRangeRequest) ProtoReflect ¶ added in v3.7.0
func (x *DeleteRangeRequest) ProtoReflect() protoreflect.Message
func (*DeleteRangeRequest) Reset ¶
func (x *DeleteRangeRequest) Reset()
func (*DeleteRangeRequest) String ¶
func (x *DeleteRangeRequest) String() string
type DeleteRangeResponse ¶
type DeleteRangeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// deleted is the number of keys deleted by the delete range request.
Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
// if prev_kv is set in the request, the previous key-value pairs will be returned.
PrevKvs []*mvccpb.KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs,proto3" json:"prev_kvs,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRangeResponse) Descriptor
deprecated
func (*DeleteRangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRangeResponse.ProtoReflect.Descriptor instead.
func (*DeleteRangeResponse) GetDeleted ¶
func (x *DeleteRangeResponse) GetDeleted() int64
func (*DeleteRangeResponse) GetHeader ¶
func (x *DeleteRangeResponse) GetHeader() *ResponseHeader
func (*DeleteRangeResponse) GetPrevKvs ¶
func (x *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue
func (*DeleteRangeResponse) ProtoMessage ¶
func (*DeleteRangeResponse) ProtoMessage()
func (*DeleteRangeResponse) ProtoReflect ¶ added in v3.7.0
func (x *DeleteRangeResponse) ProtoReflect() protoreflect.Message
func (*DeleteRangeResponse) Reset ¶
func (x *DeleteRangeResponse) Reset()
func (*DeleteRangeResponse) String ¶
func (x *DeleteRangeResponse) String() string
type DowngradeInfo ¶ added in v3.6.0
type DowngradeInfo struct {
// enabled indicates whether the cluster is enabled to downgrade.
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// targetVersion is the target downgrade version.
TargetVersion string `protobuf:"bytes,2,opt,name=targetVersion,proto3" json:"targetVersion,omitempty"`
// contains filtered or unexported fields
}
func (*DowngradeInfo) Descriptor
deprecated
added in
v3.6.0
func (*DowngradeInfo) Descriptor() ([]byte, []int)
Deprecated: Use DowngradeInfo.ProtoReflect.Descriptor instead.
func (*DowngradeInfo) GetEnabled ¶ added in v3.6.0
func (x *DowngradeInfo) GetEnabled() bool
func (*DowngradeInfo) GetTargetVersion ¶ added in v3.6.0
func (x *DowngradeInfo) GetTargetVersion() string
func (*DowngradeInfo) ProtoMessage ¶ added in v3.6.0
func (*DowngradeInfo) ProtoMessage()
func (*DowngradeInfo) ProtoReflect ¶ added in v3.7.0
func (x *DowngradeInfo) ProtoReflect() protoreflect.Message
func (*DowngradeInfo) Reset ¶ added in v3.6.0
func (x *DowngradeInfo) Reset()
func (*DowngradeInfo) String ¶ added in v3.6.0
func (x *DowngradeInfo) String() string
type DowngradeRequest ¶
type DowngradeRequest struct {
// action is the kind of downgrade request to issue. The action may
// VALIDATE the target version, DOWNGRADE the cluster version,
// or CANCEL the current downgrading job.
Action DowngradeRequest_DowngradeAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.DowngradeRequest_DowngradeAction" json:"action,omitempty"`
// version is the target version to downgrade.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*DowngradeRequest) Descriptor
deprecated
func (*DowngradeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DowngradeRequest.ProtoReflect.Descriptor instead.
func (*DowngradeRequest) GetAction ¶
func (x *DowngradeRequest) GetAction() DowngradeRequest_DowngradeAction
func (*DowngradeRequest) GetVersion ¶
func (x *DowngradeRequest) GetVersion() string
func (*DowngradeRequest) ProtoMessage ¶
func (*DowngradeRequest) ProtoMessage()
func (*DowngradeRequest) ProtoReflect ¶ added in v3.7.0
func (x *DowngradeRequest) ProtoReflect() protoreflect.Message
func (*DowngradeRequest) Reset ¶
func (x *DowngradeRequest) Reset()
func (*DowngradeRequest) String ¶
func (x *DowngradeRequest) String() string
type DowngradeRequest_DowngradeAction ¶
type DowngradeRequest_DowngradeAction int32
const ( DowngradeRequest_VALIDATE DowngradeRequest_DowngradeAction = 0 DowngradeRequest_ENABLE DowngradeRequest_DowngradeAction = 1 DowngradeRequest_CANCEL DowngradeRequest_DowngradeAction = 2 )
func (DowngradeRequest_DowngradeAction) Descriptor ¶ added in v3.7.0
func (DowngradeRequest_DowngradeAction) Descriptor() protoreflect.EnumDescriptor
func (DowngradeRequest_DowngradeAction) Enum ¶ added in v3.7.0
func (x DowngradeRequest_DowngradeAction) Enum() *DowngradeRequest_DowngradeAction
func (DowngradeRequest_DowngradeAction) EnumDescriptor
deprecated
func (DowngradeRequest_DowngradeAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use DowngradeRequest_DowngradeAction.Descriptor instead.
func (DowngradeRequest_DowngradeAction) Number ¶ added in v3.7.0
func (x DowngradeRequest_DowngradeAction) Number() protoreflect.EnumNumber
func (DowngradeRequest_DowngradeAction) String ¶
func (x DowngradeRequest_DowngradeAction) String() string
func (DowngradeRequest_DowngradeAction) Type ¶ added in v3.7.0
func (DowngradeRequest_DowngradeAction) Type() protoreflect.EnumType
type DowngradeResponse ¶
type DowngradeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// version is the current cluster version.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*DowngradeResponse) Descriptor
deprecated
func (*DowngradeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DowngradeResponse.ProtoReflect.Descriptor instead.
func (*DowngradeResponse) GetHeader ¶
func (x *DowngradeResponse) GetHeader() *ResponseHeader
func (*DowngradeResponse) GetVersion ¶
func (x *DowngradeResponse) GetVersion() string
func (*DowngradeResponse) ProtoMessage ¶
func (*DowngradeResponse) ProtoMessage()
func (*DowngradeResponse) ProtoReflect ¶ added in v3.7.0
func (x *DowngradeResponse) ProtoReflect() protoreflect.Message
func (*DowngradeResponse) Reset ¶
func (x *DowngradeResponse) Reset()
func (*DowngradeResponse) String ¶
func (x *DowngradeResponse) String() string
type DowngradeVersionTestRequest ¶ added in v3.6.0
type DowngradeVersionTestRequest struct {
Ver string `protobuf:"bytes,1,opt,name=ver,proto3" json:"ver,omitempty"`
// contains filtered or unexported fields
}
DowngradeVersionTestRequest is used for test only. The version in this request will be read as the WAL record version.If the downgrade target version is less than this version, then the downgrade(online) or migration(offline) isn't safe, so shouldn't be allowed.
func (*DowngradeVersionTestRequest) Descriptor
deprecated
added in
v3.6.0
func (*DowngradeVersionTestRequest) Descriptor() ([]byte, []int)
Deprecated: Use DowngradeVersionTestRequest.ProtoReflect.Descriptor instead.
func (*DowngradeVersionTestRequest) GetVer ¶ added in v3.6.0
func (x *DowngradeVersionTestRequest) GetVer() string
func (*DowngradeVersionTestRequest) ProtoMessage ¶ added in v3.6.0
func (*DowngradeVersionTestRequest) ProtoMessage()
func (*DowngradeVersionTestRequest) ProtoReflect ¶ added in v3.7.0
func (x *DowngradeVersionTestRequest) ProtoReflect() protoreflect.Message
func (*DowngradeVersionTestRequest) Reset ¶ added in v3.6.0
func (x *DowngradeVersionTestRequest) Reset()
func (*DowngradeVersionTestRequest) String ¶ added in v3.6.0
func (x *DowngradeVersionTestRequest) String() string
type EmptyResponse ¶
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor
deprecated
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) ProtoReflect ¶ added in v3.7.0
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (*EmptyResponse) Reset ¶
func (x *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (x *EmptyResponse) String() string
type HashKVRequest ¶
type HashKVRequest struct {
// revision is the key-value store revision for the hash operation.
Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
// contains filtered or unexported fields
}
func (*HashKVRequest) Descriptor
deprecated
func (*HashKVRequest) Descriptor() ([]byte, []int)
Deprecated: Use HashKVRequest.ProtoReflect.Descriptor instead.
func (*HashKVRequest) GetRevision ¶
func (x *HashKVRequest) GetRevision() int64
func (*HashKVRequest) ProtoMessage ¶
func (*HashKVRequest) ProtoMessage()
func (*HashKVRequest) ProtoReflect ¶ added in v3.7.0
func (x *HashKVRequest) ProtoReflect() protoreflect.Message
func (*HashKVRequest) Reset ¶
func (x *HashKVRequest) Reset()
func (*HashKVRequest) String ¶
func (x *HashKVRequest) String() string
type HashKVResponse ¶
type HashKVResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// hash is the hash value computed from the responding member's MVCC keys up to a given revision.
Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
// compact_revision is the compacted revision of key-value store when hash begins.
CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
// hash_revision is the revision up to which the hash is calculated.
HashRevision int64 `protobuf:"varint,4,opt,name=hash_revision,json=hashRevision,proto3" json:"hash_revision,omitempty"`
// contains filtered or unexported fields
}
func (*HashKVResponse) Descriptor
deprecated
func (*HashKVResponse) Descriptor() ([]byte, []int)
Deprecated: Use HashKVResponse.ProtoReflect.Descriptor instead.
func (*HashKVResponse) GetCompactRevision ¶
func (x *HashKVResponse) GetCompactRevision() int64
func (*HashKVResponse) GetHash ¶
func (x *HashKVResponse) GetHash() uint32
func (*HashKVResponse) GetHashRevision ¶ added in v3.6.0
func (x *HashKVResponse) GetHashRevision() int64
func (*HashKVResponse) GetHeader ¶
func (x *HashKVResponse) GetHeader() *ResponseHeader
func (*HashKVResponse) ProtoMessage ¶
func (*HashKVResponse) ProtoMessage()
func (*HashKVResponse) ProtoReflect ¶ added in v3.7.0
func (x *HashKVResponse) ProtoReflect() protoreflect.Message
func (*HashKVResponse) Reset ¶
func (x *HashKVResponse) Reset()
func (*HashKVResponse) String ¶
func (x *HashKVResponse) String() string
type HashRequest ¶
type HashRequest struct {
// contains filtered or unexported fields
}
func (*HashRequest) Descriptor
deprecated
func (*HashRequest) Descriptor() ([]byte, []int)
Deprecated: Use HashRequest.ProtoReflect.Descriptor instead.
func (*HashRequest) ProtoMessage ¶
func (*HashRequest) ProtoMessage()
func (*HashRequest) ProtoReflect ¶ added in v3.7.0
func (x *HashRequest) ProtoReflect() protoreflect.Message
func (*HashRequest) Reset ¶
func (x *HashRequest) Reset()
func (*HashRequest) String ¶
func (x *HashRequest) String() string
type HashResponse ¶
type HashResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// hash is the hash value computed from the responding member's KV's backend.
Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*HashResponse) Descriptor
deprecated
func (*HashResponse) Descriptor() ([]byte, []int)
Deprecated: Use HashResponse.ProtoReflect.Descriptor instead.
func (*HashResponse) GetHash ¶
func (x *HashResponse) GetHash() uint32
func (*HashResponse) GetHeader ¶
func (x *HashResponse) GetHeader() *ResponseHeader
func (*HashResponse) ProtoMessage ¶
func (*HashResponse) ProtoMessage()
func (*HashResponse) ProtoReflect ¶ added in v3.7.0
func (x *HashResponse) ProtoReflect() protoreflect.Message
func (*HashResponse) Reset ¶
func (x *HashResponse) Reset()
func (*HashResponse) String ¶
func (x *HashResponse) String() string
type InternalAuthenticateRequest ¶
type InternalAuthenticateRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// simple_token is generated in API layer (etcdserver/v3_server.go)
SimpleToken string `protobuf:"bytes,3,opt,name=simple_token,json=simpleToken,proto3" json:"simple_token,omitempty"`
// contains filtered or unexported fields
}
What is the difference between AuthenticateRequest (defined in rpc.proto) and InternalAuthenticateRequest? InternalAuthenticateRequest has a member that is filled by etcdserver and shouldn't be user-facing. For avoiding misusage the field, we have an internal version of AuthenticateRequest.
func (*InternalAuthenticateRequest) Descriptor
deprecated
func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use InternalAuthenticateRequest.ProtoReflect.Descriptor instead.
func (*InternalAuthenticateRequest) GetName ¶ added in v3.7.0
func (x *InternalAuthenticateRequest) GetName() string
func (*InternalAuthenticateRequest) GetPassword ¶ added in v3.7.0
func (x *InternalAuthenticateRequest) GetPassword() string
func (*InternalAuthenticateRequest) GetSimpleToken ¶ added in v3.7.0
func (x *InternalAuthenticateRequest) GetSimpleToken() string
func (*InternalAuthenticateRequest) ProtoMessage ¶
func (*InternalAuthenticateRequest) ProtoMessage()
func (*InternalAuthenticateRequest) ProtoReflect ¶ added in v3.7.0
func (x *InternalAuthenticateRequest) ProtoReflect() protoreflect.Message
func (*InternalAuthenticateRequest) Reset ¶
func (x *InternalAuthenticateRequest) Reset()
func (*InternalAuthenticateRequest) String ¶
func (x *InternalAuthenticateRequest) String() string
type InternalRaftRequest ¶
type InternalRaftRequest struct {
Header *RequestHeader `protobuf:"bytes,100,opt,name=header,proto3" json:"header,omitempty"`
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
Range *RangeRequest `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`
Put *PutRequest `protobuf:"bytes,4,opt,name=put,proto3" json:"put,omitempty"`
DeleteRange *DeleteRangeRequest `protobuf:"bytes,5,opt,name=delete_range,json=deleteRange,proto3" json:"delete_range,omitempty"`
Txn *TxnRequest `protobuf:"bytes,6,opt,name=txn,proto3" json:"txn,omitempty"`
Compaction *CompactionRequest `protobuf:"bytes,7,opt,name=compaction,proto3" json:"compaction,omitempty"`
LeaseGrant *LeaseGrantRequest `protobuf:"bytes,8,opt,name=lease_grant,json=leaseGrant,proto3" json:"lease_grant,omitempty"`
LeaseRevoke *LeaseRevokeRequest `protobuf:"bytes,9,opt,name=lease_revoke,json=leaseRevoke,proto3" json:"lease_revoke,omitempty"`
Alarm *AlarmRequest `protobuf:"bytes,10,opt,name=alarm,proto3" json:"alarm,omitempty"`
LeaseCheckpoint *LeaseCheckpointRequest `protobuf:"bytes,11,opt,name=lease_checkpoint,json=leaseCheckpoint,proto3" json:"lease_checkpoint,omitempty"`
AuthEnable *AuthEnableRequest `protobuf:"bytes,1000,opt,name=auth_enable,json=authEnable,proto3" json:"auth_enable,omitempty"`
AuthDisable *AuthDisableRequest `protobuf:"bytes,1011,opt,name=auth_disable,json=authDisable,proto3" json:"auth_disable,omitempty"`
AuthStatus *AuthStatusRequest `protobuf:"bytes,1013,opt,name=auth_status,json=authStatus,proto3" json:"auth_status,omitempty"`
Authenticate *InternalAuthenticateRequest `protobuf:"bytes,1012,opt,name=authenticate,proto3" json:"authenticate,omitempty"`
AuthUserAdd *AuthUserAddRequest `protobuf:"bytes,1100,opt,name=auth_user_add,json=authUserAdd,proto3" json:"auth_user_add,omitempty"`
AuthUserDelete *AuthUserDeleteRequest `protobuf:"bytes,1101,opt,name=auth_user_delete,json=authUserDelete,proto3" json:"auth_user_delete,omitempty"`
AuthUserGet *AuthUserGetRequest `protobuf:"bytes,1102,opt,name=auth_user_get,json=authUserGet,proto3" json:"auth_user_get,omitempty"`
AuthUserChangePassword *AuthUserChangePasswordRequest `` /* 134-byte string literal not displayed */
AuthUserGrantRole *AuthUserGrantRoleRequest `protobuf:"bytes,1104,opt,name=auth_user_grant_role,json=authUserGrantRole,proto3" json:"auth_user_grant_role,omitempty"`
AuthUserRevokeRole *AuthUserRevokeRoleRequest `protobuf:"bytes,1105,opt,name=auth_user_revoke_role,json=authUserRevokeRole,proto3" json:"auth_user_revoke_role,omitempty"`
AuthUserList *AuthUserListRequest `protobuf:"bytes,1106,opt,name=auth_user_list,json=authUserList,proto3" json:"auth_user_list,omitempty"`
AuthRoleList *AuthRoleListRequest `protobuf:"bytes,1107,opt,name=auth_role_list,json=authRoleList,proto3" json:"auth_role_list,omitempty"`
AuthRoleAdd *AuthRoleAddRequest `protobuf:"bytes,1200,opt,name=auth_role_add,json=authRoleAdd,proto3" json:"auth_role_add,omitempty"`
AuthRoleDelete *AuthRoleDeleteRequest `protobuf:"bytes,1201,opt,name=auth_role_delete,json=authRoleDelete,proto3" json:"auth_role_delete,omitempty"`
AuthRoleGet *AuthRoleGetRequest `protobuf:"bytes,1202,opt,name=auth_role_get,json=authRoleGet,proto3" json:"auth_role_get,omitempty"`
AuthRoleGrantPermission *AuthRoleGrantPermissionRequest `` /* 137-byte string literal not displayed */
AuthRoleRevokePermission *AuthRoleRevokePermissionRequest `` /* 140-byte string literal not displayed */
ClusterVersionSet *membershippb.ClusterVersionSetRequest `protobuf:"bytes,1300,opt,name=cluster_version_set,json=clusterVersionSet,proto3" json:"cluster_version_set,omitempty"`
ClusterMemberAttrSet *membershippb.ClusterMemberAttrSetRequest `` /* 128-byte string literal not displayed */
DowngradeInfoSet *membershippb.DowngradeInfoSetRequest `protobuf:"bytes,1302,opt,name=downgrade_info_set,json=downgradeInfoSet,proto3" json:"downgrade_info_set,omitempty"`
DowngradeVersionTest *DowngradeVersionTestRequest `` /* 126-byte string literal not displayed */
// contains filtered or unexported fields
}
An InternalRaftRequest is the union of all requests which can be sent via raft.
func (*InternalRaftRequest) Descriptor
deprecated
func (*InternalRaftRequest) Descriptor() ([]byte, []int)
Deprecated: Use InternalRaftRequest.ProtoReflect.Descriptor instead.
func (*InternalRaftRequest) GetAlarm ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAlarm() *AlarmRequest
func (*InternalRaftRequest) GetAuthDisable ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthDisable() *AuthDisableRequest
func (*InternalRaftRequest) GetAuthEnable ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthEnable() *AuthEnableRequest
func (*InternalRaftRequest) GetAuthRoleAdd ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthRoleAdd() *AuthRoleAddRequest
func (*InternalRaftRequest) GetAuthRoleDelete ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthRoleDelete() *AuthRoleDeleteRequest
func (*InternalRaftRequest) GetAuthRoleGet ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthRoleGet() *AuthRoleGetRequest
func (*InternalRaftRequest) GetAuthRoleGrantPermission ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthRoleGrantPermission() *AuthRoleGrantPermissionRequest
func (*InternalRaftRequest) GetAuthRoleList ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthRoleList() *AuthRoleListRequest
func (*InternalRaftRequest) GetAuthRoleRevokePermission ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthRoleRevokePermission() *AuthRoleRevokePermissionRequest
func (*InternalRaftRequest) GetAuthStatus ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthStatus() *AuthStatusRequest
func (*InternalRaftRequest) GetAuthUserAdd ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserAdd() *AuthUserAddRequest
func (*InternalRaftRequest) GetAuthUserChangePassword ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserChangePassword() *AuthUserChangePasswordRequest
func (*InternalRaftRequest) GetAuthUserDelete ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserDelete() *AuthUserDeleteRequest
func (*InternalRaftRequest) GetAuthUserGet ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserGet() *AuthUserGetRequest
func (*InternalRaftRequest) GetAuthUserGrantRole ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserGrantRole() *AuthUserGrantRoleRequest
func (*InternalRaftRequest) GetAuthUserList ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserList() *AuthUserListRequest
func (*InternalRaftRequest) GetAuthUserRevokeRole ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthUserRevokeRole() *AuthUserRevokeRoleRequest
func (*InternalRaftRequest) GetAuthenticate ¶ added in v3.7.0
func (x *InternalRaftRequest) GetAuthenticate() *InternalAuthenticateRequest
func (*InternalRaftRequest) GetClusterMemberAttrSet ¶ added in v3.7.0
func (x *InternalRaftRequest) GetClusterMemberAttrSet() *membershippb.ClusterMemberAttrSetRequest
func (*InternalRaftRequest) GetClusterVersionSet ¶ added in v3.7.0
func (x *InternalRaftRequest) GetClusterVersionSet() *membershippb.ClusterVersionSetRequest
func (*InternalRaftRequest) GetCompaction ¶ added in v3.7.0
func (x *InternalRaftRequest) GetCompaction() *CompactionRequest
func (*InternalRaftRequest) GetDeleteRange ¶ added in v3.7.0
func (x *InternalRaftRequest) GetDeleteRange() *DeleteRangeRequest
func (*InternalRaftRequest) GetDowngradeInfoSet ¶ added in v3.7.0
func (x *InternalRaftRequest) GetDowngradeInfoSet() *membershippb.DowngradeInfoSetRequest
func (*InternalRaftRequest) GetDowngradeVersionTest ¶ added in v3.7.0
func (x *InternalRaftRequest) GetDowngradeVersionTest() *DowngradeVersionTestRequest
func (*InternalRaftRequest) GetHeader ¶ added in v3.7.0
func (x *InternalRaftRequest) GetHeader() *RequestHeader
func (*InternalRaftRequest) GetID ¶ added in v3.7.0
func (x *InternalRaftRequest) GetID() uint64
func (*InternalRaftRequest) GetLeaseCheckpoint ¶ added in v3.7.0
func (x *InternalRaftRequest) GetLeaseCheckpoint() *LeaseCheckpointRequest
func (*InternalRaftRequest) GetLeaseGrant ¶ added in v3.7.0
func (x *InternalRaftRequest) GetLeaseGrant() *LeaseGrantRequest
func (*InternalRaftRequest) GetLeaseRevoke ¶ added in v3.7.0
func (x *InternalRaftRequest) GetLeaseRevoke() *LeaseRevokeRequest
func (*InternalRaftRequest) GetPut ¶ added in v3.7.0
func (x *InternalRaftRequest) GetPut() *PutRequest
func (*InternalRaftRequest) GetRange ¶ added in v3.7.0
func (x *InternalRaftRequest) GetRange() *RangeRequest
func (*InternalRaftRequest) GetTxn ¶ added in v3.7.0
func (x *InternalRaftRequest) GetTxn() *TxnRequest
func (*InternalRaftRequest) ProtoMessage ¶
func (*InternalRaftRequest) ProtoMessage()
func (*InternalRaftRequest) ProtoReflect ¶ added in v3.7.0
func (x *InternalRaftRequest) ProtoReflect() protoreflect.Message
func (*InternalRaftRequest) Reset ¶
func (x *InternalRaftRequest) Reset()
func (*InternalRaftRequest) String ¶
func (x *InternalRaftRequest) String() string
type InternalRaftStringer ¶
type InternalRaftStringer struct {
Request *InternalRaftRequest
}
InternalRaftStringer implements custom proto Stringer: redact password, replace value fields with value_size fields.
func (*InternalRaftStringer) String ¶
func (as *InternalRaftStringer) String() string
type KVClient ¶
type KVClient interface {
// Range gets the keys in the range from the key-value store.
Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error)
// RangeStream gets the keys in the range from the key-value store.
//
// This RPC is intentionally gRPC-only and does not provide a
// grpc-gateway REST mapping, because streaming chunked responses
// are not a good fit for standard JSON/REST semantics.
RangeStream(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[RangeStreamResponse], error)
// Put puts the given key into the key-value store.
// A put request increments the revision of the key-value store
// and generates one event in the event history.
Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
// DeleteRange deletes the given range from the key-value store.
// A delete request increments the revision of the key-value store
// and generates a delete event in the event history for every deleted key.
DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error)
// Txn processes multiple requests in a single transaction.
// A txn request increments the revision of the key-value store
// and generates events with the same revision for every completed request.
// It is not allowed to modify the same key several times within one txn.
Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error)
// Compact compacts the event history in the etcd key-value store. The key-value
// store should be periodically compacted or the event history will continue to grow
// indefinitely.
Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error)
}
KVClient is the client API for KV service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKVClient ¶
func NewKVClient(cc grpc.ClientConnInterface) KVClient
type KVServer ¶
type KVServer interface {
// Range gets the keys in the range from the key-value store.
Range(context.Context, *RangeRequest) (*RangeResponse, error)
// RangeStream gets the keys in the range from the key-value store.
//
// This RPC is intentionally gRPC-only and does not provide a
// grpc-gateway REST mapping, because streaming chunked responses
// are not a good fit for standard JSON/REST semantics.
RangeStream(*RangeRequest, grpc.ServerStreamingServer[RangeStreamResponse]) error
// Put puts the given key into the key-value store.
// A put request increments the revision of the key-value store
// and generates one event in the event history.
Put(context.Context, *PutRequest) (*PutResponse, error)
// DeleteRange deletes the given range from the key-value store.
// A delete request increments the revision of the key-value store
// and generates a delete event in the event history for every deleted key.
DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
// Txn processes multiple requests in a single transaction.
// A txn request increments the revision of the key-value store
// and generates events with the same revision for every completed request.
// It is not allowed to modify the same key several times within one txn.
Txn(context.Context, *TxnRequest) (*TxnResponse, error)
// Compact compacts the event history in the etcd key-value store. The key-value
// store should be periodically compacted or the event history will continue to grow
// indefinitely.
Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
// contains filtered or unexported methods
}
KVServer is the server API for KV service. All implementations must embed UnimplementedKVServer for forward compatibility.
type KV_RangeStreamClient ¶ added in v3.7.0
type KV_RangeStreamClient = grpc.ServerStreamingClient[RangeStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type KV_RangeStreamServer ¶ added in v3.7.0
type KV_RangeStreamServer = grpc.ServerStreamingServer[RangeStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LeaseCheckpoint ¶
type LeaseCheckpoint struct {
// ID is the lease ID to checkpoint.
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// Remaining_TTL is the remaining time until expiry of the lease.
Remaining_TTL int64 `protobuf:"varint,2,opt,name=remaining_TTL,json=remainingTTL,proto3" json:"remaining_TTL,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseCheckpoint) Descriptor
deprecated
func (*LeaseCheckpoint) Descriptor() ([]byte, []int)
Deprecated: Use LeaseCheckpoint.ProtoReflect.Descriptor instead.
func (*LeaseCheckpoint) GetID ¶
func (x *LeaseCheckpoint) GetID() int64
func (*LeaseCheckpoint) GetRemaining_TTL ¶
func (x *LeaseCheckpoint) GetRemaining_TTL() int64
func (*LeaseCheckpoint) ProtoMessage ¶
func (*LeaseCheckpoint) ProtoMessage()
func (*LeaseCheckpoint) ProtoReflect ¶ added in v3.7.0
func (x *LeaseCheckpoint) ProtoReflect() protoreflect.Message
func (*LeaseCheckpoint) Reset ¶
func (x *LeaseCheckpoint) Reset()
func (*LeaseCheckpoint) String ¶
func (x *LeaseCheckpoint) String() string
type LeaseCheckpointRequest ¶
type LeaseCheckpointRequest struct {
Checkpoints []*LeaseCheckpoint `protobuf:"bytes,1,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseCheckpointRequest) Descriptor
deprecated
func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseCheckpointRequest.ProtoReflect.Descriptor instead.
func (*LeaseCheckpointRequest) GetCheckpoints ¶
func (x *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint
func (*LeaseCheckpointRequest) ProtoMessage ¶
func (*LeaseCheckpointRequest) ProtoMessage()
func (*LeaseCheckpointRequest) ProtoReflect ¶ added in v3.7.0
func (x *LeaseCheckpointRequest) ProtoReflect() protoreflect.Message
func (*LeaseCheckpointRequest) Reset ¶
func (x *LeaseCheckpointRequest) Reset()
func (*LeaseCheckpointRequest) String ¶
func (x *LeaseCheckpointRequest) String() string
type LeaseCheckpointResponse ¶
type LeaseCheckpointResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseCheckpointResponse) Descriptor
deprecated
func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseCheckpointResponse.ProtoReflect.Descriptor instead.
func (*LeaseCheckpointResponse) GetHeader ¶
func (x *LeaseCheckpointResponse) GetHeader() *ResponseHeader
func (*LeaseCheckpointResponse) ProtoMessage ¶
func (*LeaseCheckpointResponse) ProtoMessage()
func (*LeaseCheckpointResponse) ProtoReflect ¶ added in v3.7.0
func (x *LeaseCheckpointResponse) ProtoReflect() protoreflect.Message
func (*LeaseCheckpointResponse) Reset ¶
func (x *LeaseCheckpointResponse) Reset()
func (*LeaseCheckpointResponse) String ¶
func (x *LeaseCheckpointResponse) String() string
type LeaseClient ¶
type LeaseClient interface {
// LeaseGrant creates a lease which expires if the server does not receive a keepAlive
// within a given time to live period. All keys attached to the lease will be expired and
// deleted if the lease expires. Each expired key generates a delete event in the event history.
LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error)
// LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error)
// LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
// to the server and streaming keep alive responses from the server to the client.
LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[LeaseKeepAliveRequest, LeaseKeepAliveResponse], error)
// LeaseTimeToLive retrieves lease information.
LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error)
// LeaseLeases lists all existing leases.
LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error)
}
LeaseClient is the client API for Lease service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLeaseClient ¶
func NewLeaseClient(cc grpc.ClientConnInterface) LeaseClient
type LeaseGrantRequest ¶
type LeaseGrantRequest struct {
// TTL is the advisory time-to-live in seconds. Expired lease will return -1.
TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
// ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseGrantRequest) Descriptor
deprecated
func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseGrantRequest.ProtoReflect.Descriptor instead.
func (*LeaseGrantRequest) GetID ¶
func (x *LeaseGrantRequest) GetID() int64
func (*LeaseGrantRequest) GetTTL ¶
func (x *LeaseGrantRequest) GetTTL() int64
func (*LeaseGrantRequest) ProtoMessage ¶
func (*LeaseGrantRequest) ProtoMessage()
func (*LeaseGrantRequest) ProtoReflect ¶ added in v3.7.0
func (x *LeaseGrantRequest) ProtoReflect() protoreflect.Message
func (*LeaseGrantRequest) Reset ¶
func (x *LeaseGrantRequest) Reset()
func (*LeaseGrantRequest) String ¶
func (x *LeaseGrantRequest) String() string
type LeaseGrantResponse ¶
type LeaseGrantResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// ID is the lease ID for the granted lease.
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
// TTL is the server chosen lease time-to-live in seconds.
TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseGrantResponse) Descriptor
deprecated
func (*LeaseGrantResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseGrantResponse.ProtoReflect.Descriptor instead.
func (*LeaseGrantResponse) GetError ¶
func (x *LeaseGrantResponse) GetError() string
func (*LeaseGrantResponse) GetHeader ¶
func (x *LeaseGrantResponse) GetHeader() *ResponseHeader
func (*LeaseGrantResponse) GetID ¶
func (x *LeaseGrantResponse) GetID() int64
func (*LeaseGrantResponse) GetTTL ¶
func (x *LeaseGrantResponse) GetTTL() int64
func (*LeaseGrantResponse) ProtoMessage ¶
func (*LeaseGrantResponse) ProtoMessage()
func (*LeaseGrantResponse) ProtoReflect ¶ added in v3.7.0
func (x *LeaseGrantResponse) ProtoReflect() protoreflect.Message
func (*LeaseGrantResponse) Reset ¶
func (x *LeaseGrantResponse) Reset()
func (*LeaseGrantResponse) String ¶
func (x *LeaseGrantResponse) String() string
type LeaseKeepAliveRequest ¶
type LeaseKeepAliveRequest struct {
// ID is the lease ID for the lease to keep alive.
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseKeepAliveRequest) Descriptor
deprecated
func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseKeepAliveRequest.ProtoReflect.Descriptor instead.
func (*LeaseKeepAliveRequest) GetID ¶
func (x *LeaseKeepAliveRequest) GetID() int64
func (*LeaseKeepAliveRequest) ProtoMessage ¶
func (*LeaseKeepAliveRequest) ProtoMessage()
func (*LeaseKeepAliveRequest) ProtoReflect ¶ added in v3.7.0
func (x *LeaseKeepAliveRequest) ProtoReflect() protoreflect.Message
func (*LeaseKeepAliveRequest) Reset ¶
func (x *LeaseKeepAliveRequest) Reset()
func (*LeaseKeepAliveRequest) String ¶
func (x *LeaseKeepAliveRequest) String() string
type LeaseKeepAliveResponse ¶
type LeaseKeepAliveResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// ID is the lease ID from the keep alive request.
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
// TTL is the new time-to-live for the lease.
TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseKeepAliveResponse) Descriptor
deprecated
func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseKeepAliveResponse.ProtoReflect.Descriptor instead.
func (*LeaseKeepAliveResponse) GetHeader ¶
func (x *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
func (*LeaseKeepAliveResponse) GetID ¶
func (x *LeaseKeepAliveResponse) GetID() int64
func (*LeaseKeepAliveResponse) GetTTL ¶
func (x *LeaseKeepAliveResponse) GetTTL() int64
func (*LeaseKeepAliveResponse) ProtoMessage ¶
func (*LeaseKeepAliveResponse) ProtoMessage()
func (*LeaseKeepAliveResponse) ProtoReflect ¶ added in v3.7.0
func (x *LeaseKeepAliveResponse) ProtoReflect() protoreflect.Message
func (*LeaseKeepAliveResponse) Reset ¶
func (x *LeaseKeepAliveResponse) Reset()
func (*LeaseKeepAliveResponse) String ¶
func (x *LeaseKeepAliveResponse) String() string
type LeaseLeasesRequest ¶
type LeaseLeasesRequest struct {
// contains filtered or unexported fields
}
func (*LeaseLeasesRequest) Descriptor
deprecated
func (*LeaseLeasesRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseLeasesRequest.ProtoReflect.Descriptor instead.
func (*LeaseLeasesRequest) ProtoMessage ¶
func (*LeaseLeasesRequest) ProtoMessage()
func (*LeaseLeasesRequest) ProtoReflect ¶ added in v3.7.0
func (x *LeaseLeasesRequest) ProtoReflect() protoreflect.Message
func (*LeaseLeasesRequest) Reset ¶
func (x *LeaseLeasesRequest) Reset()
func (*LeaseLeasesRequest) String ¶
func (x *LeaseLeasesRequest) String() string
type LeaseLeasesResponse ¶
type LeaseLeasesResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases,proto3" json:"leases,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseLeasesResponse) Descriptor
deprecated
func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseLeasesResponse.ProtoReflect.Descriptor instead.
func (*LeaseLeasesResponse) GetHeader ¶
func (x *LeaseLeasesResponse) GetHeader() *ResponseHeader
func (*LeaseLeasesResponse) GetLeases ¶
func (x *LeaseLeasesResponse) GetLeases() []*LeaseStatus
func (*LeaseLeasesResponse) ProtoMessage ¶
func (*LeaseLeasesResponse) ProtoMessage()
func (*LeaseLeasesResponse) ProtoReflect ¶ added in v3.7.0
func (x *LeaseLeasesResponse) ProtoReflect() protoreflect.Message
func (*LeaseLeasesResponse) Reset ¶
func (x *LeaseLeasesResponse) Reset()
func (*LeaseLeasesResponse) String ¶
func (x *LeaseLeasesResponse) String() string
type LeaseRevokeRequest ¶
type LeaseRevokeRequest struct {
// ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseRevokeRequest) Descriptor
deprecated
func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseRevokeRequest.ProtoReflect.Descriptor instead.
func (*LeaseRevokeRequest) GetID ¶
func (x *LeaseRevokeRequest) GetID() int64
func (*LeaseRevokeRequest) ProtoMessage ¶
func (*LeaseRevokeRequest) ProtoMessage()
func (*LeaseRevokeRequest) ProtoReflect ¶ added in v3.7.0
func (x *LeaseRevokeRequest) ProtoReflect() protoreflect.Message
func (*LeaseRevokeRequest) Reset ¶
func (x *LeaseRevokeRequest) Reset()
func (*LeaseRevokeRequest) String ¶
func (x *LeaseRevokeRequest) String() string
type LeaseRevokeResponse ¶
type LeaseRevokeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseRevokeResponse) Descriptor
deprecated
func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseRevokeResponse.ProtoReflect.Descriptor instead.
func (*LeaseRevokeResponse) GetHeader ¶
func (x *LeaseRevokeResponse) GetHeader() *ResponseHeader
func (*LeaseRevokeResponse) ProtoMessage ¶
func (*LeaseRevokeResponse) ProtoMessage()
func (*LeaseRevokeResponse) ProtoReflect ¶ added in v3.7.0
func (x *LeaseRevokeResponse) ProtoReflect() protoreflect.Message
func (*LeaseRevokeResponse) Reset ¶
func (x *LeaseRevokeResponse) Reset()
func (*LeaseRevokeResponse) String ¶
func (x *LeaseRevokeResponse) String() string
type LeaseServer ¶
type LeaseServer interface {
// LeaseGrant creates a lease which expires if the server does not receive a keepAlive
// within a given time to live period. All keys attached to the lease will be expired and
// deleted if the lease expires. Each expired key generates a delete event in the event history.
LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error)
// LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
// LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
// to the server and streaming keep alive responses from the server to the client.
LeaseKeepAlive(grpc.BidiStreamingServer[LeaseKeepAliveRequest, LeaseKeepAliveResponse]) error
// LeaseTimeToLive retrieves lease information.
LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error)
// LeaseLeases lists all existing leases.
LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error)
// contains filtered or unexported methods
}
LeaseServer is the server API for Lease service. All implementations must embed UnimplementedLeaseServer for forward compatibility.
type LeaseStatus ¶
type LeaseStatus struct {
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // TODO: int64 TTL = 2;
// contains filtered or unexported fields
}
func (*LeaseStatus) Descriptor
deprecated
func (*LeaseStatus) Descriptor() ([]byte, []int)
Deprecated: Use LeaseStatus.ProtoReflect.Descriptor instead.
func (*LeaseStatus) GetID ¶
func (x *LeaseStatus) GetID() int64
func (*LeaseStatus) ProtoMessage ¶
func (*LeaseStatus) ProtoMessage()
func (*LeaseStatus) ProtoReflect ¶ added in v3.7.0
func (x *LeaseStatus) ProtoReflect() protoreflect.Message
func (*LeaseStatus) Reset ¶
func (x *LeaseStatus) Reset()
func (*LeaseStatus) String ¶
func (x *LeaseStatus) String() string
type LeaseTimeToLiveRequest ¶
type LeaseTimeToLiveRequest struct {
// ID is the lease ID for the lease.
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// keys is true to query all the keys attached to this lease.
Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseTimeToLiveRequest) Descriptor
deprecated
func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseTimeToLiveRequest.ProtoReflect.Descriptor instead.
func (*LeaseTimeToLiveRequest) GetID ¶
func (x *LeaseTimeToLiveRequest) GetID() int64
func (*LeaseTimeToLiveRequest) GetKeys ¶
func (x *LeaseTimeToLiveRequest) GetKeys() bool
func (*LeaseTimeToLiveRequest) ProtoMessage ¶
func (*LeaseTimeToLiveRequest) ProtoMessage()
func (*LeaseTimeToLiveRequest) ProtoReflect ¶ added in v3.7.0
func (x *LeaseTimeToLiveRequest) ProtoReflect() protoreflect.Message
func (*LeaseTimeToLiveRequest) Reset ¶
func (x *LeaseTimeToLiveRequest) Reset()
func (*LeaseTimeToLiveRequest) String ¶
func (x *LeaseTimeToLiveRequest) String() string
type LeaseTimeToLiveResponse ¶
type LeaseTimeToLiveResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// ID is the lease ID from the keep alive request.
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
// TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
// GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"`
// Keys is the list of keys attached to this lease.
Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
func (*LeaseTimeToLiveResponse) Descriptor
deprecated
func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseTimeToLiveResponse.ProtoReflect.Descriptor instead.
func (*LeaseTimeToLiveResponse) GetGrantedTTL ¶
func (x *LeaseTimeToLiveResponse) GetGrantedTTL() int64
func (*LeaseTimeToLiveResponse) GetHeader ¶
func (x *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader
func (*LeaseTimeToLiveResponse) GetID ¶
func (x *LeaseTimeToLiveResponse) GetID() int64
func (*LeaseTimeToLiveResponse) GetKeys ¶
func (x *LeaseTimeToLiveResponse) GetKeys() [][]byte
func (*LeaseTimeToLiveResponse) GetTTL ¶
func (x *LeaseTimeToLiveResponse) GetTTL() int64
func (*LeaseTimeToLiveResponse) ProtoMessage ¶
func (*LeaseTimeToLiveResponse) ProtoMessage()
func (*LeaseTimeToLiveResponse) ProtoReflect ¶ added in v3.7.0
func (x *LeaseTimeToLiveResponse) ProtoReflect() protoreflect.Message
func (*LeaseTimeToLiveResponse) Reset ¶
func (x *LeaseTimeToLiveResponse) Reset()
func (*LeaseTimeToLiveResponse) String ¶
func (x *LeaseTimeToLiveResponse) String() string
type Lease_LeaseKeepAliveClient ¶
type Lease_LeaseKeepAliveClient = grpc.BidiStreamingClient[LeaseKeepAliveRequest, LeaseKeepAliveResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Lease_LeaseKeepAliveServer ¶
type Lease_LeaseKeepAliveServer = grpc.BidiStreamingServer[LeaseKeepAliveRequest, LeaseKeepAliveResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type MaintenanceClient ¶
type MaintenanceClient interface {
// Alarm activates, deactivates, and queries alarms regarding cluster health.
Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error)
// Status gets the status of the member.
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
// Defragment defragments a member's backend database to recover storage space.
Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error)
// Hash computes the hash of whole backend keyspace,
// including key, lease, and other buckets in storage.
// This is designed for testing ONLY!
// Do not rely on this in production with ongoing transactions,
// since Hash operation does not hold MVCC locks.
// Use "HashKV" API instead for "key" bucket consistency checks.
Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
// HashKV computes the hash of all MVCC keys up to a given revision.
// It only iterates "key" bucket in backend storage.
HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error)
// Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SnapshotResponse], error)
// MoveLeader requests current leader node to transfer its leadership to transferee.
MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error)
// Downgrade requests downgrades, verifies feasibility or cancels downgrade
// on the cluster version.
// Supported since etcd 3.5.
Downgrade(ctx context.Context, in *DowngradeRequest, opts ...grpc.CallOption) (*DowngradeResponse, error)
}
MaintenanceClient is the client API for Maintenance service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMaintenanceClient ¶
func NewMaintenanceClient(cc grpc.ClientConnInterface) MaintenanceClient
type MaintenanceServer ¶
type MaintenanceServer interface {
// Alarm activates, deactivates, and queries alarms regarding cluster health.
Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
// Status gets the status of the member.
Status(context.Context, *StatusRequest) (*StatusResponse, error)
// Defragment defragments a member's backend database to recover storage space.
Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
// Hash computes the hash of whole backend keyspace,
// including key, lease, and other buckets in storage.
// This is designed for testing ONLY!
// Do not rely on this in production with ongoing transactions,
// since Hash operation does not hold MVCC locks.
// Use "HashKV" API instead for "key" bucket consistency checks.
Hash(context.Context, *HashRequest) (*HashResponse, error)
// HashKV computes the hash of all MVCC keys up to a given revision.
// It only iterates "key" bucket in backend storage.
HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error)
// Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
Snapshot(*SnapshotRequest, grpc.ServerStreamingServer[SnapshotResponse]) error
// MoveLeader requests current leader node to transfer its leadership to transferee.
MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error)
// Downgrade requests downgrades, verifies feasibility or cancels downgrade
// on the cluster version.
// Supported since etcd 3.5.
Downgrade(context.Context, *DowngradeRequest) (*DowngradeResponse, error)
// contains filtered or unexported methods
}
MaintenanceServer is the server API for Maintenance service. All implementations must embed UnimplementedMaintenanceServer for forward compatibility.
type Maintenance_SnapshotClient ¶
type Maintenance_SnapshotClient = grpc.ServerStreamingClient[SnapshotResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Maintenance_SnapshotServer ¶
type Maintenance_SnapshotServer = grpc.ServerStreamingServer[SnapshotResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Member ¶
type Member struct {
// ID is the member ID for this member.
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// name is the human-readable name of the member. If the member is not started, the name will be an empty string.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// peerURLs is the list of URLs the member exposes to the cluster for communication.
PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
// clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs,proto3" json:"clientURLs,omitempty"`
// isLearner indicates if the member is raft learner.
IsLearner bool `protobuf:"varint,5,opt,name=isLearner,proto3" json:"isLearner,omitempty"`
// contains filtered or unexported fields
}
func (*Member) Descriptor
deprecated
func (*Member) GetClientURLs ¶
func (*Member) GetIsLearner ¶
func (*Member) GetPeerURLs ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶ added in v3.7.0
func (x *Member) ProtoReflect() protoreflect.Message
type MemberAddRequest ¶
type MemberAddRequest struct {
// peerURLs is the list of URLs the added member will use to communicate with the cluster.
PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
// isLearner indicates if the added member is raft learner.
IsLearner bool `protobuf:"varint,2,opt,name=isLearner,proto3" json:"isLearner,omitempty"`
// contains filtered or unexported fields
}
func (*MemberAddRequest) Descriptor
deprecated
func (*MemberAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use MemberAddRequest.ProtoReflect.Descriptor instead.
func (*MemberAddRequest) GetIsLearner ¶
func (x *MemberAddRequest) GetIsLearner() bool
func (*MemberAddRequest) GetPeerURLs ¶
func (x *MemberAddRequest) GetPeerURLs() []string
func (*MemberAddRequest) ProtoMessage ¶
func (*MemberAddRequest) ProtoMessage()
func (*MemberAddRequest) ProtoReflect ¶ added in v3.7.0
func (x *MemberAddRequest) ProtoReflect() protoreflect.Message
func (*MemberAddRequest) Reset ¶
func (x *MemberAddRequest) Reset()
func (*MemberAddRequest) String ¶
func (x *MemberAddRequest) String() string
type MemberAddResponse ¶
type MemberAddResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// member is the member information for the added member.
Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
// members is a list of all members after adding the new member.
Members []*Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
// contains filtered or unexported fields
}
func (*MemberAddResponse) Descriptor
deprecated
func (*MemberAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use MemberAddResponse.ProtoReflect.Descriptor instead.
func (*MemberAddResponse) GetHeader ¶
func (x *MemberAddResponse) GetHeader() *ResponseHeader
func (*MemberAddResponse) GetMember ¶
func (x *MemberAddResponse) GetMember() *Member
func (*MemberAddResponse) GetMembers ¶
func (x *MemberAddResponse) GetMembers() []*Member
func (*MemberAddResponse) ProtoMessage ¶
func (*MemberAddResponse) ProtoMessage()
func (*MemberAddResponse) ProtoReflect ¶ added in v3.7.0
func (x *MemberAddResponse) ProtoReflect() protoreflect.Message
func (*MemberAddResponse) Reset ¶
func (x *MemberAddResponse) Reset()
func (*MemberAddResponse) String ¶
func (x *MemberAddResponse) String() string
type MemberListRequest ¶
type MemberListRequest struct {
Linearizable bool `protobuf:"varint,1,opt,name=linearizable,proto3" json:"linearizable,omitempty"`
// contains filtered or unexported fields
}
func (*MemberListRequest) Descriptor
deprecated
func (*MemberListRequest) Descriptor() ([]byte, []int)
Deprecated: Use MemberListRequest.ProtoReflect.Descriptor instead.
func (*MemberListRequest) GetLinearizable ¶
func (x *MemberListRequest) GetLinearizable() bool
func (*MemberListRequest) ProtoMessage ¶
func (*MemberListRequest) ProtoMessage()
func (*MemberListRequest) ProtoReflect ¶ added in v3.7.0
func (x *MemberListRequest) ProtoReflect() protoreflect.Message
func (*MemberListRequest) Reset ¶
func (x *MemberListRequest) Reset()
func (*MemberListRequest) String ¶
func (x *MemberListRequest) String() string
type MemberListResponse ¶
type MemberListResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// members is a list of all members associated with the cluster.
Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
// contains filtered or unexported fields
}
func (*MemberListResponse) Descriptor
deprecated
func (*MemberListResponse) Descriptor() ([]byte, []int)
Deprecated: Use MemberListResponse.ProtoReflect.Descriptor instead.
func (*MemberListResponse) GetHeader ¶
func (x *MemberListResponse) GetHeader() *ResponseHeader
func (*MemberListResponse) GetMembers ¶
func (x *MemberListResponse) GetMembers() []*Member
func (*MemberListResponse) ProtoMessage ¶
func (*MemberListResponse) ProtoMessage()
func (*MemberListResponse) ProtoReflect ¶ added in v3.7.0
func (x *MemberListResponse) ProtoReflect() protoreflect.Message
func (*MemberListResponse) Reset ¶
func (x *MemberListResponse) Reset()
func (*MemberListResponse) String ¶
func (x *MemberListResponse) String() string
type MemberPromoteRequest ¶
type MemberPromoteRequest struct {
// ID is the member ID of the member to promote.
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*MemberPromoteRequest) Descriptor
deprecated
func (*MemberPromoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use MemberPromoteRequest.ProtoReflect.Descriptor instead.
func (*MemberPromoteRequest) GetID ¶
func (x *MemberPromoteRequest) GetID() uint64
func (*MemberPromoteRequest) ProtoMessage ¶
func (*MemberPromoteRequest) ProtoMessage()
func (*MemberPromoteRequest) ProtoReflect ¶ added in v3.7.0
func (x *MemberPromoteRequest) ProtoReflect() protoreflect.Message
func (*MemberPromoteRequest) Reset ¶
func (x *MemberPromoteRequest) Reset()
func (*MemberPromoteRequest) String ¶
func (x *MemberPromoteRequest) String() string
type MemberPromoteResponse ¶
type MemberPromoteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// members is a list of all members after promoting the member.
Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
// contains filtered or unexported fields
}
func (*MemberPromoteResponse) Descriptor
deprecated
func (*MemberPromoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use MemberPromoteResponse.ProtoReflect.Descriptor instead.
func (*MemberPromoteResponse) GetHeader ¶
func (x *MemberPromoteResponse) GetHeader() *ResponseHeader
func (*MemberPromoteResponse) GetMembers ¶
func (x *MemberPromoteResponse) GetMembers() []*Member
func (*MemberPromoteResponse) ProtoMessage ¶
func (*MemberPromoteResponse) ProtoMessage()
func (*MemberPromoteResponse) ProtoReflect ¶ added in v3.7.0
func (x *MemberPromoteResponse) ProtoReflect() protoreflect.Message
func (*MemberPromoteResponse) Reset ¶
func (x *MemberPromoteResponse) Reset()
func (*MemberPromoteResponse) String ¶
func (x *MemberPromoteResponse) String() string
type MemberRemoveRequest ¶
type MemberRemoveRequest struct {
// ID is the member ID of the member to remove.
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*MemberRemoveRequest) Descriptor
deprecated
func (*MemberRemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use MemberRemoveRequest.ProtoReflect.Descriptor instead.
func (*MemberRemoveRequest) GetID ¶
func (x *MemberRemoveRequest) GetID() uint64
func (*MemberRemoveRequest) ProtoMessage ¶
func (*MemberRemoveRequest) ProtoMessage()
func (*MemberRemoveRequest) ProtoReflect ¶ added in v3.7.0
func (x *MemberRemoveRequest) ProtoReflect() protoreflect.Message
func (*MemberRemoveRequest) Reset ¶
func (x *MemberRemoveRequest) Reset()
func (*MemberRemoveRequest) String ¶
func (x *MemberRemoveRequest) String() string
type MemberRemoveResponse ¶
type MemberRemoveResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// members is a list of all members after removing the member.
Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
// contains filtered or unexported fields
}
func (*MemberRemoveResponse) Descriptor
deprecated
func (*MemberRemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use MemberRemoveResponse.ProtoReflect.Descriptor instead.
func (*MemberRemoveResponse) GetHeader ¶
func (x *MemberRemoveResponse) GetHeader() *ResponseHeader
func (*MemberRemoveResponse) GetMembers ¶
func (x *MemberRemoveResponse) GetMembers() []*Member
func (*MemberRemoveResponse) ProtoMessage ¶
func (*MemberRemoveResponse) ProtoMessage()
func (*MemberRemoveResponse) ProtoReflect ¶ added in v3.7.0
func (x *MemberRemoveResponse) ProtoReflect() protoreflect.Message
func (*MemberRemoveResponse) Reset ¶
func (x *MemberRemoveResponse) Reset()
func (*MemberRemoveResponse) String ¶
func (x *MemberRemoveResponse) String() string
type MemberUpdateRequest ¶
type MemberUpdateRequest struct {
// ID is the member ID of the member to update.
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// peerURLs is the new list of URLs the member will use to communicate with the cluster.
PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
// contains filtered or unexported fields
}
func (*MemberUpdateRequest) Descriptor
deprecated
func (*MemberUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use MemberUpdateRequest.ProtoReflect.Descriptor instead.
func (*MemberUpdateRequest) GetID ¶
func (x *MemberUpdateRequest) GetID() uint64
func (*MemberUpdateRequest) GetPeerURLs ¶
func (x *MemberUpdateRequest) GetPeerURLs() []string
func (*MemberUpdateRequest) ProtoMessage ¶
func (*MemberUpdateRequest) ProtoMessage()
func (*MemberUpdateRequest) ProtoReflect ¶ added in v3.7.0
func (x *MemberUpdateRequest) ProtoReflect() protoreflect.Message
func (*MemberUpdateRequest) Reset ¶
func (x *MemberUpdateRequest) Reset()
func (*MemberUpdateRequest) String ¶
func (x *MemberUpdateRequest) String() string
type MemberUpdateResponse ¶
type MemberUpdateResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// members is a list of all members after updating the member.
Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
// contains filtered or unexported fields
}
func (*MemberUpdateResponse) Descriptor
deprecated
func (*MemberUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use MemberUpdateResponse.ProtoReflect.Descriptor instead.
func (*MemberUpdateResponse) GetHeader ¶
func (x *MemberUpdateResponse) GetHeader() *ResponseHeader
func (*MemberUpdateResponse) GetMembers ¶
func (x *MemberUpdateResponse) GetMembers() []*Member
func (*MemberUpdateResponse) ProtoMessage ¶
func (*MemberUpdateResponse) ProtoMessage()
func (*MemberUpdateResponse) ProtoReflect ¶ added in v3.7.0
func (x *MemberUpdateResponse) ProtoReflect() protoreflect.Message
func (*MemberUpdateResponse) Reset ¶
func (x *MemberUpdateResponse) Reset()
func (*MemberUpdateResponse) String ¶
func (x *MemberUpdateResponse) String() string
type Metadata ¶
type Metadata struct {
NodeID *uint64 `protobuf:"varint,1,opt,name=NodeID" json:"NodeID,omitempty"`
ClusterID *uint64 `protobuf:"varint,2,opt,name=ClusterID" json:"ClusterID,omitempty"`
// contains filtered or unexported fields
}
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetClusterID ¶ added in v3.7.0
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v3.7.0
func (x *Metadata) ProtoReflect() protoreflect.Message
type MoveLeaderRequest ¶
type MoveLeaderRequest struct {
// targetID is the node ID for the new leader.
TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"`
// contains filtered or unexported fields
}
func (*MoveLeaderRequest) Descriptor
deprecated
func (*MoveLeaderRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveLeaderRequest.ProtoReflect.Descriptor instead.
func (*MoveLeaderRequest) GetTargetID ¶
func (x *MoveLeaderRequest) GetTargetID() uint64
func (*MoveLeaderRequest) ProtoMessage ¶
func (*MoveLeaderRequest) ProtoMessage()
func (*MoveLeaderRequest) ProtoReflect ¶ added in v3.7.0
func (x *MoveLeaderRequest) ProtoReflect() protoreflect.Message
func (*MoveLeaderRequest) Reset ¶
func (x *MoveLeaderRequest) Reset()
func (*MoveLeaderRequest) String ¶
func (x *MoveLeaderRequest) String() string
type MoveLeaderResponse ¶
type MoveLeaderResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*MoveLeaderResponse) Descriptor
deprecated
func (*MoveLeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveLeaderResponse.ProtoReflect.Descriptor instead.
func (*MoveLeaderResponse) GetHeader ¶
func (x *MoveLeaderResponse) GetHeader() *ResponseHeader
func (*MoveLeaderResponse) ProtoMessage ¶
func (*MoveLeaderResponse) ProtoMessage()
func (*MoveLeaderResponse) ProtoReflect ¶ added in v3.7.0
func (x *MoveLeaderResponse) ProtoReflect() protoreflect.Message
func (*MoveLeaderResponse) Reset ¶
func (x *MoveLeaderResponse) Reset()
func (*MoveLeaderResponse) String ¶
func (x *MoveLeaderResponse) String() string
type PutRequest ¶
type PutRequest struct {
// key is the key, in bytes, to put into the key-value store.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// value is the value, in bytes, to associate with the key in the key-value store.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// lease is the lease ID to associate with the key in the key-value store. A lease
// value of 0 indicates no lease.
Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"`
// If prev_kv is set, etcd gets the previous key-value pair before changing it.
// The previous key-value pair will be returned in the put response.
PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
// If ignore_value is set, etcd updates the key using its current value.
// Returns an error if the key does not exist.
IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"`
// If ignore_lease is set, etcd updates the key using its current lease.
// Returns an error if the key does not exist.
IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"`
// contains filtered or unexported fields
}
func (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetIgnoreLease ¶
func (x *PutRequest) GetIgnoreLease() bool
func (*PutRequest) GetIgnoreValue ¶
func (x *PutRequest) GetIgnoreValue() bool
func (*PutRequest) GetKey ¶
func (x *PutRequest) GetKey() []byte
func (*PutRequest) GetLease ¶
func (x *PutRequest) GetLease() int64
func (*PutRequest) GetPrevKv ¶
func (x *PutRequest) GetPrevKv() bool
func (*PutRequest) GetValue ¶
func (x *PutRequest) GetValue() []byte
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶ added in v3.7.0
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type PutResponse ¶
type PutResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// if prev_kv is set in the request, the previous key-value pair will be returned.
PrevKv *mvccpb.KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
// contains filtered or unexported fields
}
func (*PutResponse) Descriptor
deprecated
func (*PutResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
func (*PutResponse) GetHeader ¶
func (x *PutResponse) GetHeader() *ResponseHeader
func (*PutResponse) GetPrevKv ¶
func (x *PutResponse) GetPrevKv() *mvccpb.KeyValue
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) ProtoReflect ¶ added in v3.7.0
func (x *PutResponse) ProtoReflect() protoreflect.Message
func (*PutResponse) Reset ¶
func (x *PutResponse) Reset()
func (*PutResponse) String ¶
func (x *PutResponse) String() string
type RangeRequest ¶
type RangeRequest struct {
// key is the first key for the range. If range_end is not given, the request only looks up key.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// range_end is the upper bound on the requested range [key, range_end).
// If range_end is '\0', the range is all keys >= key.
// If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
// then the range request gets all keys prefixed with key.
// If both key and range_end are '\0', then the range request returns all keys.
RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
// limit is a limit on the number of keys returned for the request. When limit is set to 0,
// it is treated as no limit.
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// revision is the point-in-time of the key-value store to use for the range.
// If revision is less or equal to zero, the range is over the newest key-value store.
// If the revision has been compacted, ErrCompacted is returned as a response.
Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
// sort_order is the order for returned sorted results.
SortOrder RangeRequest_SortOrder `` /* 130-byte string literal not displayed */
// sort_target is the key-value field to use for sorting.
SortTarget RangeRequest_SortTarget `` /* 134-byte string literal not displayed */
// serializable sets the range request to use serializable member-local reads.
// Range requests are linearizable by default; linearizable requests have higher
// latency and lower throughput than serializable requests but reflect the current
// consensus of the cluster. For better performance, in exchange for possible stale reads,
// a serializable range request is served locally without needing to reach consensus
// with other nodes in the cluster.
Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"`
// keys_only when set returns only the keys and not the values.
KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"`
// count_only when set returns only the count of the keys in the range.
CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"`
// min_mod_revision is the lower bound for returned key mod revisions; all keys with
// lesser mod revisions will be filtered away.
MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"`
// max_mod_revision is the upper bound for returned key mod revisions; all keys with
// greater mod revisions will be filtered away.
MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"`
// min_create_revision is the lower bound for returned key create revisions; all keys with
// lesser create revisions will be filtered away.
MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"`
// max_create_revision is the upper bound for returned key create revisions; all keys with
// greater create revisions will be filtered away.
MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"`
// contains filtered or unexported fields
}
func (*RangeRequest) Descriptor
deprecated
func (*RangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RangeRequest.ProtoReflect.Descriptor instead.
func (*RangeRequest) GetCountOnly ¶
func (x *RangeRequest) GetCountOnly() bool
func (*RangeRequest) GetKey ¶
func (x *RangeRequest) GetKey() []byte
func (*RangeRequest) GetKeysOnly ¶
func (x *RangeRequest) GetKeysOnly() bool
func (*RangeRequest) GetLimit ¶
func (x *RangeRequest) GetLimit() int64
func (*RangeRequest) GetMaxCreateRevision ¶
func (x *RangeRequest) GetMaxCreateRevision() int64
func (*RangeRequest) GetMaxModRevision ¶
func (x *RangeRequest) GetMaxModRevision() int64
func (*RangeRequest) GetMinCreateRevision ¶
func (x *RangeRequest) GetMinCreateRevision() int64
func (*RangeRequest) GetMinModRevision ¶
func (x *RangeRequest) GetMinModRevision() int64
func (*RangeRequest) GetRangeEnd ¶
func (x *RangeRequest) GetRangeEnd() []byte
func (*RangeRequest) GetRevision ¶
func (x *RangeRequest) GetRevision() int64
func (*RangeRequest) GetSerializable ¶
func (x *RangeRequest) GetSerializable() bool
func (*RangeRequest) GetSortOrder ¶
func (x *RangeRequest) GetSortOrder() RangeRequest_SortOrder
func (*RangeRequest) GetSortTarget ¶
func (x *RangeRequest) GetSortTarget() RangeRequest_SortTarget
func (*RangeRequest) ProtoMessage ¶
func (*RangeRequest) ProtoMessage()
func (*RangeRequest) ProtoReflect ¶ added in v3.7.0
func (x *RangeRequest) ProtoReflect() protoreflect.Message
func (*RangeRequest) Reset ¶
func (x *RangeRequest) Reset()
func (*RangeRequest) String ¶
func (x *RangeRequest) String() string
type RangeRequest_SortOrder ¶
type RangeRequest_SortOrder int32
const ( RangeRequest_NONE RangeRequest_SortOrder = 0 // default, no sorting RangeRequest_ASCEND RangeRequest_SortOrder = 1 // lowest target value first RangeRequest_DESCEND RangeRequest_SortOrder = 2 // highest target value first )
func (RangeRequest_SortOrder) Descriptor ¶ added in v3.7.0
func (RangeRequest_SortOrder) Descriptor() protoreflect.EnumDescriptor
func (RangeRequest_SortOrder) Enum ¶ added in v3.7.0
func (x RangeRequest_SortOrder) Enum() *RangeRequest_SortOrder
func (RangeRequest_SortOrder) EnumDescriptor
deprecated
func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int)
Deprecated: Use RangeRequest_SortOrder.Descriptor instead.
func (RangeRequest_SortOrder) Number ¶ added in v3.7.0
func (x RangeRequest_SortOrder) Number() protoreflect.EnumNumber
func (RangeRequest_SortOrder) String ¶
func (x RangeRequest_SortOrder) String() string
func (RangeRequest_SortOrder) Type ¶ added in v3.7.0
func (RangeRequest_SortOrder) Type() protoreflect.EnumType
type RangeRequest_SortTarget ¶
type RangeRequest_SortTarget int32
const ( RangeRequest_KEY RangeRequest_SortTarget = 0 RangeRequest_VERSION RangeRequest_SortTarget = 1 RangeRequest_CREATE RangeRequest_SortTarget = 2 RangeRequest_MOD RangeRequest_SortTarget = 3 RangeRequest_VALUE RangeRequest_SortTarget = 4 )
func (RangeRequest_SortTarget) Descriptor ¶ added in v3.7.0
func (RangeRequest_SortTarget) Descriptor() protoreflect.EnumDescriptor
func (RangeRequest_SortTarget) Enum ¶ added in v3.7.0
func (x RangeRequest_SortTarget) Enum() *RangeRequest_SortTarget
func (RangeRequest_SortTarget) EnumDescriptor
deprecated
func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int)
Deprecated: Use RangeRequest_SortTarget.Descriptor instead.
func (RangeRequest_SortTarget) Number ¶ added in v3.7.0
func (x RangeRequest_SortTarget) Number() protoreflect.EnumNumber
func (RangeRequest_SortTarget) String ¶
func (x RangeRequest_SortTarget) String() string
func (RangeRequest_SortTarget) Type ¶ added in v3.7.0
func (RangeRequest_SortTarget) Type() protoreflect.EnumType
type RangeResponse ¶
type RangeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// kvs is the list of key-value pairs matched by the range request.
// kvs is empty when count is requested.
Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"`
// more indicates if there are more keys to return in the requested range.
More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
// count is set to the actual number of keys within the range when requested.
// Unlike Kvs, it is unaffected by limits and filters (e.g., Min/Max, Create/Modify, Revisions)
// and reflects the full count within the specified range.
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*RangeResponse) Descriptor
deprecated
func (*RangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RangeResponse.ProtoReflect.Descriptor instead.
func (*RangeResponse) GetCount ¶
func (x *RangeResponse) GetCount() int64
func (*RangeResponse) GetHeader ¶
func (x *RangeResponse) GetHeader() *ResponseHeader
func (*RangeResponse) GetKvs ¶
func (x *RangeResponse) GetKvs() []*mvccpb.KeyValue
func (*RangeResponse) GetMore ¶
func (x *RangeResponse) GetMore() bool
func (*RangeResponse) ProtoMessage ¶
func (*RangeResponse) ProtoMessage()
func (*RangeResponse) ProtoReflect ¶ added in v3.7.0
func (x *RangeResponse) ProtoReflect() protoreflect.Message
func (*RangeResponse) Reset ¶
func (x *RangeResponse) Reset()
func (*RangeResponse) String ¶
func (x *RangeResponse) String() string
type RangeStreamResponse ¶ added in v3.7.0
type RangeStreamResponse struct {
// range_response is a partial response for the KV.RangeStream RPC.
// The result of proto.Merge() applied on all responses should result in the
// same RangeResponse response as to the Range() method.
//
// Field population across chunks:
// - kvs: each chunk carries a disjoint slice of the result. Concatenating
// them in order yields the full key set.
// - header, more, count: set only on the final chunk. Non-merge clients
// can rely on io.EOF (end of stream) to detect completion. These
// fields are provided for clients that merge all responses into a
// single RangeResponse.
RangeResponse *RangeResponse `protobuf:"bytes,1,opt,name=range_response,json=rangeResponse,proto3" json:"range_response,omitempty"`
// contains filtered or unexported fields
}
RangeStreamResponse is the response for the RangeStream RPC.
func (*RangeStreamResponse) Descriptor
deprecated
added in
v3.7.0
func (*RangeStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use RangeStreamResponse.ProtoReflect.Descriptor instead.
func (*RangeStreamResponse) GetRangeResponse ¶ added in v3.7.0
func (x *RangeStreamResponse) GetRangeResponse() *RangeResponse
func (*RangeStreamResponse) ProtoMessage ¶ added in v3.7.0
func (*RangeStreamResponse) ProtoMessage()
func (*RangeStreamResponse) ProtoReflect ¶ added in v3.7.0
func (x *RangeStreamResponse) ProtoReflect() protoreflect.Message
func (*RangeStreamResponse) Reset ¶ added in v3.7.0
func (x *RangeStreamResponse) Reset()
func (*RangeStreamResponse) String ¶ added in v3.7.0
func (x *RangeStreamResponse) String() string
type RequestHeader ¶
type RequestHeader struct {
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// username is a username that is associated with an auth token of gRPC connection
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// auth_revision is a revision number of auth.authStore. It is not related to mvcc
AuthRevision uint64 `protobuf:"varint,3,opt,name=auth_revision,json=authRevision,proto3" json:"auth_revision,omitempty"`
// contains filtered or unexported fields
}
func (*RequestHeader) Descriptor
deprecated
func (*RequestHeader) Descriptor() ([]byte, []int)
Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.
func (*RequestHeader) GetAuthRevision ¶ added in v3.7.0
func (x *RequestHeader) GetAuthRevision() uint64
func (*RequestHeader) GetID ¶ added in v3.7.0
func (x *RequestHeader) GetID() uint64
func (*RequestHeader) GetUsername ¶ added in v3.7.0
func (x *RequestHeader) GetUsername() string
func (*RequestHeader) ProtoMessage ¶
func (*RequestHeader) ProtoMessage()
func (*RequestHeader) ProtoReflect ¶ added in v3.7.0
func (x *RequestHeader) ProtoReflect() protoreflect.Message
func (*RequestHeader) Reset ¶
func (x *RequestHeader) Reset()
func (*RequestHeader) String ¶
func (x *RequestHeader) String() string
type RequestOp ¶
type RequestOp struct {
// request is a union of request types accepted by a transaction.
//
// Types that are valid to be assigned to Request:
//
// *RequestOp_RequestRange
// *RequestOp_RequestPut
// *RequestOp_RequestDeleteRange
// *RequestOp_RequestTxn
Request isRequestOp_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*RequestOp) Descriptor
deprecated
func (*RequestOp) GetRequest ¶
func (x *RequestOp) GetRequest() isRequestOp_Request
func (*RequestOp) GetRequestDeleteRange ¶
func (x *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest
func (*RequestOp) GetRequestPut ¶
func (x *RequestOp) GetRequestPut() *PutRequest
func (*RequestOp) GetRequestRange ¶
func (x *RequestOp) GetRequestRange() *RangeRequest
func (*RequestOp) GetRequestTxn ¶
func (x *RequestOp) GetRequestTxn() *TxnRequest
func (*RequestOp) ProtoMessage ¶
func (*RequestOp) ProtoMessage()
func (*RequestOp) ProtoReflect ¶ added in v3.7.0
func (x *RequestOp) ProtoReflect() protoreflect.Message
type RequestOp_RequestDeleteRange ¶
type RequestOp_RequestDeleteRange struct {
RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,proto3,oneof"`
}
type RequestOp_RequestPut ¶
type RequestOp_RequestPut struct {
RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,proto3,oneof"`
}
type RequestOp_RequestRange ¶
type RequestOp_RequestRange struct {
RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,proto3,oneof"`
}
type RequestOp_RequestTxn ¶
type RequestOp_RequestTxn struct {
RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,proto3,oneof"`
}
type ResponseHeader ¶
type ResponseHeader struct {
// cluster_id is the ID of the cluster which sent the response.
ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
// member_id is the ID of the member which sent the response.
MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
// revision is the key-value store revision when the request was applied, and it's
// unset (so 0) in case of calls not interacting with key-value store.
// For watch progress responses, the header.revision indicates progress. All future events
// received in this stream are guaranteed to have a higher revision number than the
// header.revision number.
Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
// raft_term is the raft term when the request was applied.
RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"`
// contains filtered or unexported fields
}
func (*ResponseHeader) Clone ¶ added in v3.7.0
func (h *ResponseHeader) Clone() *ResponseHeader
Clone returns a deep copy of h, or an empty ResponseHeader if h is nil.
func (*ResponseHeader) Descriptor
deprecated
func (*ResponseHeader) Descriptor() ([]byte, []int)
Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.
func (*ResponseHeader) GetClusterId ¶
func (x *ResponseHeader) GetClusterId() uint64
func (*ResponseHeader) GetMemberId ¶
func (x *ResponseHeader) GetMemberId() uint64
func (*ResponseHeader) GetRaftTerm ¶
func (x *ResponseHeader) GetRaftTerm() uint64
func (*ResponseHeader) GetRevision ¶
func (x *ResponseHeader) GetRevision() int64
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) ProtoReflect ¶ added in v3.7.0
func (x *ResponseHeader) ProtoReflect() protoreflect.Message
func (*ResponseHeader) Reset ¶
func (x *ResponseHeader) Reset()
func (*ResponseHeader) String ¶
func (x *ResponseHeader) String() string
type ResponseOp ¶
type ResponseOp struct {
// response is a union of response types returned by a transaction.
//
// Types that are valid to be assigned to Response:
//
// *ResponseOp_ResponseRange
// *ResponseOp_ResponsePut
// *ResponseOp_ResponseDeleteRange
// *ResponseOp_ResponseTxn
Response isResponseOp_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*ResponseOp) Descriptor
deprecated
func (*ResponseOp) Descriptor() ([]byte, []int)
Deprecated: Use ResponseOp.ProtoReflect.Descriptor instead.
func (*ResponseOp) GetResponse ¶
func (x *ResponseOp) GetResponse() isResponseOp_Response
func (*ResponseOp) GetResponseDeleteRange ¶
func (x *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse
func (*ResponseOp) GetResponsePut ¶
func (x *ResponseOp) GetResponsePut() *PutResponse
func (*ResponseOp) GetResponseRange ¶
func (x *ResponseOp) GetResponseRange() *RangeResponse
func (*ResponseOp) GetResponseTxn ¶
func (x *ResponseOp) GetResponseTxn() *TxnResponse
func (*ResponseOp) ProtoMessage ¶
func (*ResponseOp) ProtoMessage()
func (*ResponseOp) ProtoReflect ¶ added in v3.7.0
func (x *ResponseOp) ProtoReflect() protoreflect.Message
func (*ResponseOp) Reset ¶
func (x *ResponseOp) Reset()
func (*ResponseOp) String ¶
func (x *ResponseOp) String() string
type ResponseOp_ResponseDeleteRange ¶
type ResponseOp_ResponseDeleteRange struct {
ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,proto3,oneof"`
}
type ResponseOp_ResponsePut ¶
type ResponseOp_ResponsePut struct {
ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,proto3,oneof"`
}
type ResponseOp_ResponseRange ¶
type ResponseOp_ResponseRange struct {
ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,proto3,oneof"`
}
type ResponseOp_ResponseTxn ¶
type ResponseOp_ResponseTxn struct {
ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,proto3,oneof"`
}
type SnapshotRequest ¶
type SnapshotRequest struct {
// contains filtered or unexported fields
}
func (*SnapshotRequest) Descriptor
deprecated
func (*SnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotRequest.ProtoReflect.Descriptor instead.
func (*SnapshotRequest) ProtoMessage ¶
func (*SnapshotRequest) ProtoMessage()
func (*SnapshotRequest) ProtoReflect ¶ added in v3.7.0
func (x *SnapshotRequest) ProtoReflect() protoreflect.Message
func (*SnapshotRequest) Reset ¶
func (x *SnapshotRequest) Reset()
func (*SnapshotRequest) String ¶
func (x *SnapshotRequest) String() string
type SnapshotResponse ¶
type SnapshotResponse struct {
// header has the current key-value store information. The first header in the snapshot
// stream indicates the point in time of the snapshot.
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// remaining_bytes is the number of blob bytes to be sent after this message
RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"`
// blob contains the next chunk of the snapshot in the snapshot stream.
Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"`
// local version of server that created the snapshot.
// In cluster with binaries with different version, each cluster can return different result.
// Informs which etcd server version should be used when restoring the snapshot.
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*SnapshotResponse) Descriptor
deprecated
func (*SnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotResponse.ProtoReflect.Descriptor instead.
func (*SnapshotResponse) GetBlob ¶
func (x *SnapshotResponse) GetBlob() []byte
func (*SnapshotResponse) GetHeader ¶
func (x *SnapshotResponse) GetHeader() *ResponseHeader
func (*SnapshotResponse) GetRemainingBytes ¶
func (x *SnapshotResponse) GetRemainingBytes() uint64
func (*SnapshotResponse) GetVersion ¶ added in v3.6.0
func (x *SnapshotResponse) GetVersion() string
func (*SnapshotResponse) ProtoMessage ¶
func (*SnapshotResponse) ProtoMessage()
func (*SnapshotResponse) ProtoReflect ¶ added in v3.7.0
func (x *SnapshotResponse) ProtoReflect() protoreflect.Message
func (*SnapshotResponse) Reset ¶
func (x *SnapshotResponse) Reset()
func (*SnapshotResponse) String ¶
func (x *SnapshotResponse) String() string
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶ added in v3.7.0
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// version is the cluster protocol version used by the responding member.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// dbSize is the size of the backend database physically allocated, in bytes, of the responding member.
DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"`
// leader is the member ID which the responding member believes is the current leader.
Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"`
// raftIndex is the current raft committed index of the responding member.
RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"`
// raftTerm is the current raft term of the responding member.
RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"`
// raftAppliedIndex is the current raft applied index of the responding member.
RaftAppliedIndex uint64 `protobuf:"varint,7,opt,name=raftAppliedIndex,proto3" json:"raftAppliedIndex,omitempty"`
// errors contains alarm/health information and status.
Errors []string `protobuf:"bytes,8,rep,name=errors,proto3" json:"errors,omitempty"`
// dbSizeInUse is the size of the backend database logically in use, in bytes, of the responding member.
DbSizeInUse int64 `protobuf:"varint,9,opt,name=dbSizeInUse,proto3" json:"dbSizeInUse,omitempty"`
// isLearner indicates if the member is raft learner.
IsLearner bool `protobuf:"varint,10,opt,name=isLearner,proto3" json:"isLearner,omitempty"`
// storageVersion is the version of the db file. It might be updated with delay in relationship to the target cluster version.
StorageVersion string `protobuf:"bytes,11,opt,name=storageVersion,proto3" json:"storageVersion,omitempty"`
// dbSizeQuota is the configured etcd storage quota in bytes (the value passed to etcd instance by flag --quota-backend-bytes)
DbSizeQuota int64 `protobuf:"varint,12,opt,name=dbSizeQuota,proto3" json:"dbSizeQuota,omitempty"`
// downgradeInfo indicates if there is downgrade process.
DowngradeInfo *DowngradeInfo `protobuf:"bytes,13,opt,name=downgradeInfo,proto3" json:"downgradeInfo,omitempty"`
// contains filtered or unexported fields
}
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetDbSize ¶
func (x *StatusResponse) GetDbSize() int64
func (*StatusResponse) GetDbSizeInUse ¶
func (x *StatusResponse) GetDbSizeInUse() int64
func (*StatusResponse) GetDbSizeQuota ¶ added in v3.6.0
func (x *StatusResponse) GetDbSizeQuota() int64
func (*StatusResponse) GetDowngradeInfo ¶ added in v3.6.0
func (x *StatusResponse) GetDowngradeInfo() *DowngradeInfo
func (*StatusResponse) GetErrors ¶
func (x *StatusResponse) GetErrors() []string
func (*StatusResponse) GetHeader ¶
func (x *StatusResponse) GetHeader() *ResponseHeader
func (*StatusResponse) GetIsLearner ¶
func (x *StatusResponse) GetIsLearner() bool
func (*StatusResponse) GetLeader ¶
func (x *StatusResponse) GetLeader() uint64
func (*StatusResponse) GetRaftAppliedIndex ¶
func (x *StatusResponse) GetRaftAppliedIndex() uint64
func (*StatusResponse) GetRaftIndex ¶
func (x *StatusResponse) GetRaftIndex() uint64
func (*StatusResponse) GetRaftTerm ¶
func (x *StatusResponse) GetRaftTerm() uint64
func (*StatusResponse) GetStorageVersion ¶ added in v3.6.0
func (x *StatusResponse) GetStorageVersion() string
func (*StatusResponse) GetVersion ¶
func (x *StatusResponse) GetVersion() string
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶ added in v3.7.0
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type TxnRequest ¶
type TxnRequest struct {
// compare is a list of predicates representing a conjunction of terms.
// If the comparisons succeed, then the success requests will be processed in order,
// and the response will contain their respective responses in order.
// If the comparisons fail, then the failure requests will be processed in order,
// and the response will contain their respective responses in order.
Compare []*Compare `protobuf:"bytes,1,rep,name=compare,proto3" json:"compare,omitempty"`
// success is a list of requests which will be applied when compare evaluates to true.
Success []*RequestOp `protobuf:"bytes,2,rep,name=success,proto3" json:"success,omitempty"`
// failure is a list of requests which will be applied when compare evaluates to false.
Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure,proto3" json:"failure,omitempty"`
// contains filtered or unexported fields
}
From google paxosdb paper: Our implementation hinges around a powerful primitive which we call MultiOp. All other database operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically and consists of three components: 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check for the absence or presence of a value, or compare with a given value. Two different tests in the guard may apply to the same or different entries in the database. All tests in the guard are applied and MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise it executes f op (see item 3 below). 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or lookup operation, and applies to a single database entry. Two different operations in the list may apply to the same or different entries in the database. These operations are executed if guard evaluates to true. 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
func (*TxnRequest) Descriptor
deprecated
func (*TxnRequest) Descriptor() ([]byte, []int)
Deprecated: Use TxnRequest.ProtoReflect.Descriptor instead.
func (*TxnRequest) GetCompare ¶
func (x *TxnRequest) GetCompare() []*Compare
func (*TxnRequest) GetFailure ¶
func (x *TxnRequest) GetFailure() []*RequestOp
func (*TxnRequest) GetSuccess ¶
func (x *TxnRequest) GetSuccess() []*RequestOp
func (*TxnRequest) ProtoMessage ¶
func (*TxnRequest) ProtoMessage()
func (*TxnRequest) ProtoReflect ¶ added in v3.7.0
func (x *TxnRequest) ProtoReflect() protoreflect.Message
func (*TxnRequest) Reset ¶
func (x *TxnRequest) Reset()
func (*TxnRequest) String ¶
func (x *TxnRequest) String() string
type TxnResponse ¶
type TxnResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// succeeded is set to true if the compare evaluated to true or false otherwise.
Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
// responses is a list of responses corresponding to the results from applying
// success if succeeded is true or failure if succeeded is false.
Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"`
// contains filtered or unexported fields
}
func (*TxnResponse) Descriptor
deprecated
func (*TxnResponse) Descriptor() ([]byte, []int)
Deprecated: Use TxnResponse.ProtoReflect.Descriptor instead.
func (*TxnResponse) GetHeader ¶
func (x *TxnResponse) GetHeader() *ResponseHeader
func (*TxnResponse) GetResponses ¶
func (x *TxnResponse) GetResponses() []*ResponseOp
func (*TxnResponse) GetSucceeded ¶
func (x *TxnResponse) GetSucceeded() bool
func (*TxnResponse) ProtoMessage ¶
func (*TxnResponse) ProtoMessage()
func (*TxnResponse) ProtoReflect ¶ added in v3.7.0
func (x *TxnResponse) ProtoReflect() protoreflect.Message
func (*TxnResponse) Reset ¶
func (x *TxnResponse) Reset()
func (*TxnResponse) String ¶
func (x *TxnResponse) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct{}
UnimplementedAuthServer 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 (UnimplementedAuthServer) AuthDisable ¶
func (UnimplementedAuthServer) AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
func (UnimplementedAuthServer) AuthEnable ¶
func (UnimplementedAuthServer) AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
func (UnimplementedAuthServer) AuthStatus ¶
func (UnimplementedAuthServer) AuthStatus(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error)
func (UnimplementedAuthServer) Authenticate ¶
func (UnimplementedAuthServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
func (UnimplementedAuthServer) RoleAdd ¶
func (UnimplementedAuthServer) RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error)
func (UnimplementedAuthServer) RoleDelete ¶
func (UnimplementedAuthServer) RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error)
func (UnimplementedAuthServer) RoleGet ¶
func (UnimplementedAuthServer) RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error)
func (UnimplementedAuthServer) RoleGrantPermission ¶
func (UnimplementedAuthServer) RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error)
func (UnimplementedAuthServer) RoleList ¶
func (UnimplementedAuthServer) RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error)
func (UnimplementedAuthServer) RoleRevokePermission ¶
func (UnimplementedAuthServer) RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error)
func (UnimplementedAuthServer) UserAdd ¶
func (UnimplementedAuthServer) UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
func (UnimplementedAuthServer) UserChangePassword ¶
func (UnimplementedAuthServer) UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error)
func (UnimplementedAuthServer) UserDelete ¶
func (UnimplementedAuthServer) UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error)
func (UnimplementedAuthServer) UserGet ¶
func (UnimplementedAuthServer) UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error)
func (UnimplementedAuthServer) UserGrantRole ¶
func (UnimplementedAuthServer) UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error)
func (UnimplementedAuthServer) UserList ¶
func (UnimplementedAuthServer) UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error)
func (UnimplementedAuthServer) UserRevokeRole ¶
func (UnimplementedAuthServer) UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error)
type UnimplementedClusterServer ¶
type UnimplementedClusterServer struct{}
UnimplementedClusterServer 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 (UnimplementedClusterServer) MemberAdd ¶
func (UnimplementedClusterServer) MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
func (UnimplementedClusterServer) MemberList ¶
func (UnimplementedClusterServer) MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
func (UnimplementedClusterServer) MemberPromote ¶
func (UnimplementedClusterServer) MemberPromote(context.Context, *MemberPromoteRequest) (*MemberPromoteResponse, error)
func (UnimplementedClusterServer) MemberRemove ¶
func (UnimplementedClusterServer) MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
func (UnimplementedClusterServer) MemberUpdate ¶
func (UnimplementedClusterServer) MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
type UnimplementedKVServer ¶
type UnimplementedKVServer struct{}
UnimplementedKVServer 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 (UnimplementedKVServer) Compact ¶
func (UnimplementedKVServer) Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
func (UnimplementedKVServer) DeleteRange ¶
func (UnimplementedKVServer) DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
func (UnimplementedKVServer) Put ¶
func (UnimplementedKVServer) Put(context.Context, *PutRequest) (*PutResponse, error)
func (UnimplementedKVServer) Range ¶
func (UnimplementedKVServer) Range(context.Context, *RangeRequest) (*RangeResponse, error)
func (UnimplementedKVServer) RangeStream ¶ added in v3.7.0
func (UnimplementedKVServer) RangeStream(*RangeRequest, grpc.ServerStreamingServer[RangeStreamResponse]) error
func (UnimplementedKVServer) Txn ¶
func (UnimplementedKVServer) Txn(context.Context, *TxnRequest) (*TxnResponse, error)
type UnimplementedLeaseServer ¶
type UnimplementedLeaseServer struct{}
UnimplementedLeaseServer 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 (UnimplementedLeaseServer) LeaseGrant ¶
func (UnimplementedLeaseServer) LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error)
func (UnimplementedLeaseServer) LeaseKeepAlive ¶
func (UnimplementedLeaseServer) LeaseKeepAlive(grpc.BidiStreamingServer[LeaseKeepAliveRequest, LeaseKeepAliveResponse]) error
func (UnimplementedLeaseServer) LeaseLeases ¶
func (UnimplementedLeaseServer) LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error)
func (UnimplementedLeaseServer) LeaseRevoke ¶
func (UnimplementedLeaseServer) LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
func (UnimplementedLeaseServer) LeaseTimeToLive ¶
func (UnimplementedLeaseServer) LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error)
type UnimplementedMaintenanceServer ¶
type UnimplementedMaintenanceServer struct{}
UnimplementedMaintenanceServer 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 (UnimplementedMaintenanceServer) Alarm ¶
func (UnimplementedMaintenanceServer) Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
func (UnimplementedMaintenanceServer) Defragment ¶
func (UnimplementedMaintenanceServer) Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
func (UnimplementedMaintenanceServer) Downgrade ¶
func (UnimplementedMaintenanceServer) Downgrade(context.Context, *DowngradeRequest) (*DowngradeResponse, error)
func (UnimplementedMaintenanceServer) Hash ¶
func (UnimplementedMaintenanceServer) Hash(context.Context, *HashRequest) (*HashResponse, error)
func (UnimplementedMaintenanceServer) HashKV ¶
func (UnimplementedMaintenanceServer) HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error)
func (UnimplementedMaintenanceServer) MoveLeader ¶
func (UnimplementedMaintenanceServer) MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error)
func (UnimplementedMaintenanceServer) Snapshot ¶
func (UnimplementedMaintenanceServer) Snapshot(*SnapshotRequest, grpc.ServerStreamingServer[SnapshotResponse]) error
func (UnimplementedMaintenanceServer) Status ¶
func (UnimplementedMaintenanceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
type UnimplementedWatchServer ¶
type UnimplementedWatchServer struct{}
UnimplementedWatchServer 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 (UnimplementedWatchServer) Watch ¶
func (UnimplementedWatchServer) Watch(grpc.BidiStreamingServer[WatchRequest, WatchResponse]) error
type UnsafeAuthServer ¶ added in v3.7.0
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafeClusterServer ¶ added in v3.7.0
type UnsafeClusterServer interface {
// contains filtered or unexported methods
}
UnsafeClusterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClusterServer will result in compilation errors.
type UnsafeKVServer ¶ added in v3.7.0
type UnsafeKVServer interface {
// contains filtered or unexported methods
}
UnsafeKVServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KVServer will result in compilation errors.
type UnsafeLeaseServer ¶ added in v3.7.0
type UnsafeLeaseServer interface {
// contains filtered or unexported methods
}
UnsafeLeaseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LeaseServer will result in compilation errors.
type UnsafeMaintenanceServer ¶ added in v3.7.0
type UnsafeMaintenanceServer interface {
// contains filtered or unexported methods
}
UnsafeMaintenanceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MaintenanceServer will result in compilation errors.
type UnsafeWatchServer ¶ added in v3.7.0
type UnsafeWatchServer interface {
// contains filtered or unexported methods
}
UnsafeWatchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WatchServer will result in compilation errors.
type WatchCancelRequest ¶
type WatchCancelRequest struct {
// watch_id is the watcher id to cancel so that no more events are transmitted.
WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
// contains filtered or unexported fields
}
func (*WatchCancelRequest) Descriptor
deprecated
func (*WatchCancelRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchCancelRequest.ProtoReflect.Descriptor instead.
func (*WatchCancelRequest) GetWatchId ¶
func (x *WatchCancelRequest) GetWatchId() int64
func (*WatchCancelRequest) ProtoMessage ¶
func (*WatchCancelRequest) ProtoMessage()
func (*WatchCancelRequest) ProtoReflect ¶ added in v3.7.0
func (x *WatchCancelRequest) ProtoReflect() protoreflect.Message
func (*WatchCancelRequest) Reset ¶
func (x *WatchCancelRequest) Reset()
func (*WatchCancelRequest) String ¶
func (x *WatchCancelRequest) String() string
type WatchClient ¶
type WatchClient interface {
// Watch watches for events happening or that have happened. Both input and output
// are streams; the input stream is for creating and canceling watchers and the output
// stream sends events. One watch RPC can watch on multiple key ranges, streaming events
// for several watches at once. The entire event history can be watched starting from the
// last compaction revision.
Watch(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WatchRequest, WatchResponse], error)
}
WatchClient is the client API for Watch service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWatchClient ¶
func NewWatchClient(cc grpc.ClientConnInterface) WatchClient
type WatchCreateRequest ¶
type WatchCreateRequest struct {
// key is the key to register for watching.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// range_end is the end of the range [key, range_end) to watch. If range_end is not given,
// only the key argument is watched. If range_end is equal to '\0', all keys greater than
// or equal to the key argument are watched.
// If the range_end is one bit larger than the given key,
// then all keys with the prefix (the given key) will be watched.
RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
// start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"`
// progress_notify is set so that the etcd server will periodically send a WatchResponse with
// no events to the new watcher if there are no recent events. It is useful when clients
// wish to recover a disconnected watcher starting from a recent known revision.
// The etcd server may decide how often it will send notifications based on current load.
ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"`
// filters filter the events at server side before it sends back to the watcher.
Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,proto3,enum=etcdserverpb.WatchCreateRequest_FilterType" json:"filters,omitempty"`
// If prev_kv is set, created watcher gets the previous KV before the event happens.
// If the previous KV is already compacted, nothing will be returned.
PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
// If watch_id is provided and non-zero, it will be assigned to this watcher.
// Since creating a watcher in etcd is not a synchronous operation,
// this can be used ensure that ordering is correct when creating multiple
// watchers on the same stream. Creating a watcher with an ID already in
// use on the stream will cause an error to be returned.
WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
// fragment enables splitting large revisions into multiple watch responses.
Fragment bool `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"`
// contains filtered or unexported fields
}
func (*WatchCreateRequest) Descriptor
deprecated
func (*WatchCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchCreateRequest.ProtoReflect.Descriptor instead.
func (*WatchCreateRequest) GetFilters ¶
func (x *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType
func (*WatchCreateRequest) GetFragment ¶
func (x *WatchCreateRequest) GetFragment() bool
func (*WatchCreateRequest) GetKey ¶
func (x *WatchCreateRequest) GetKey() []byte
func (*WatchCreateRequest) GetPrevKv ¶
func (x *WatchCreateRequest) GetPrevKv() bool
func (*WatchCreateRequest) GetProgressNotify ¶
func (x *WatchCreateRequest) GetProgressNotify() bool
func (*WatchCreateRequest) GetRangeEnd ¶
func (x *WatchCreateRequest) GetRangeEnd() []byte
func (*WatchCreateRequest) GetStartRevision ¶
func (x *WatchCreateRequest) GetStartRevision() int64
func (*WatchCreateRequest) GetWatchId ¶
func (x *WatchCreateRequest) GetWatchId() int64
func (*WatchCreateRequest) ProtoMessage ¶
func (*WatchCreateRequest) ProtoMessage()
func (*WatchCreateRequest) ProtoReflect ¶ added in v3.7.0
func (x *WatchCreateRequest) ProtoReflect() protoreflect.Message
func (*WatchCreateRequest) Reset ¶
func (x *WatchCreateRequest) Reset()
func (*WatchCreateRequest) String ¶
func (x *WatchCreateRequest) String() string
type WatchCreateRequest_FilterType ¶
type WatchCreateRequest_FilterType int32
const ( // filter out put event. WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0 // filter out delete event. WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1 )
func (WatchCreateRequest_FilterType) Descriptor ¶ added in v3.7.0
func (WatchCreateRequest_FilterType) Descriptor() protoreflect.EnumDescriptor
func (WatchCreateRequest_FilterType) Enum ¶ added in v3.7.0
func (x WatchCreateRequest_FilterType) Enum() *WatchCreateRequest_FilterType
func (WatchCreateRequest_FilterType) EnumDescriptor
deprecated
func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use WatchCreateRequest_FilterType.Descriptor instead.
func (WatchCreateRequest_FilterType) Number ¶ added in v3.7.0
func (x WatchCreateRequest_FilterType) Number() protoreflect.EnumNumber
func (WatchCreateRequest_FilterType) String ¶
func (x WatchCreateRequest_FilterType) String() string
func (WatchCreateRequest_FilterType) Type ¶ added in v3.7.0
func (WatchCreateRequest_FilterType) Type() protoreflect.EnumType
type WatchProgressRequest ¶
type WatchProgressRequest struct {
// contains filtered or unexported fields
}
Requests the a watch stream progress status be sent in the watch response stream as soon as possible.
func (*WatchProgressRequest) Descriptor
deprecated
func (*WatchProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchProgressRequest.ProtoReflect.Descriptor instead.
func (*WatchProgressRequest) ProtoMessage ¶
func (*WatchProgressRequest) ProtoMessage()
func (*WatchProgressRequest) ProtoReflect ¶ added in v3.7.0
func (x *WatchProgressRequest) ProtoReflect() protoreflect.Message
func (*WatchProgressRequest) Reset ¶
func (x *WatchProgressRequest) Reset()
func (*WatchProgressRequest) String ¶
func (x *WatchProgressRequest) String() string
type WatchRequest ¶
type WatchRequest struct {
// request_union is a request to either create a new watcher or cancel an existing watcher.
//
// Types that are valid to be assigned to RequestUnion:
//
// *WatchRequest_CreateRequest
// *WatchRequest_CancelRequest
// *WatchRequest_ProgressRequest
RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"`
// contains filtered or unexported fields
}
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetCancelRequest ¶
func (x *WatchRequest) GetCancelRequest() *WatchCancelRequest
func (*WatchRequest) GetCreateRequest ¶
func (x *WatchRequest) GetCreateRequest() *WatchCreateRequest
func (*WatchRequest) GetProgressRequest ¶
func (x *WatchRequest) GetProgressRequest() *WatchProgressRequest
func (*WatchRequest) GetRequestUnion ¶
func (x *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶ added in v3.7.0
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
type WatchRequest_CancelRequest ¶
type WatchRequest_CancelRequest struct {
CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3,oneof"`
}
type WatchRequest_CreateRequest ¶
type WatchRequest_CreateRequest struct {
CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,proto3,oneof"`
}
type WatchRequest_ProgressRequest ¶
type WatchRequest_ProgressRequest struct {
ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,proto3,oneof"`
}
type WatchResponse ¶
type WatchResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// watch_id is the ID of the watcher that corresponds to the response.
WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
// created is set to true if the response is for a create watch request.
// The client should record the watch_id and expect to receive events for
// the created watcher from the same stream.
// All events sent to the created watcher will attach with the same watch_id.
Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
// canceled is set to true if the response is for a cancel watch request
// or if the start_revision has already been compacted.
// No further events will be sent to the canceled watcher.
Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"`
// compact_revision is set to the minimum index if a watcher tries to watch
// at a compacted index.
//
// This happens when creating a watcher at a compacted revision or the watcher cannot
// catch up with the progress of the key-value store.
//
// The client should treat the watcher as canceled and should not try to create any
// watcher with the same start_revision again.
CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
// cancel_reason indicates the reason for canceling the watcher.
CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
// framgment is true if large watch response was split over multiple responses.
Fragment bool `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"`
Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
// contains filtered or unexported fields
}
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetCancelReason ¶
func (x *WatchResponse) GetCancelReason() string
func (*WatchResponse) GetCanceled ¶
func (x *WatchResponse) GetCanceled() bool
func (*WatchResponse) GetCompactRevision ¶
func (x *WatchResponse) GetCompactRevision() int64
func (*WatchResponse) GetCreated ¶
func (x *WatchResponse) GetCreated() bool
func (*WatchResponse) GetEvents ¶
func (x *WatchResponse) GetEvents() []*mvccpb.Event
func (*WatchResponse) GetFragment ¶
func (x *WatchResponse) GetFragment() bool
func (*WatchResponse) GetHeader ¶
func (x *WatchResponse) GetHeader() *ResponseHeader
func (*WatchResponse) GetWatchId ¶
func (x *WatchResponse) GetWatchId() int64
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶ added in v3.7.0
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string
type WatchServer ¶
type WatchServer interface {
// Watch watches for events happening or that have happened. Both input and output
// are streams; the input stream is for creating and canceling watchers and the output
// stream sends events. One watch RPC can watch on multiple key ranges, streaming events
// for several watches at once. The entire event history can be watched starting from the
// last compaction revision.
Watch(grpc.BidiStreamingServer[WatchRequest, WatchResponse]) error
// contains filtered or unexported methods
}
WatchServer is the server API for Watch service. All implementations must embed UnimplementedWatchServer for forward compatibility.
type Watch_WatchClient ¶
type Watch_WatchClient = grpc.BidiStreamingClient[WatchRequest, WatchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Watch_WatchServer ¶
type Watch_WatchServer = grpc.BidiStreamingServer[WatchRequest, WatchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.