Documentation ¶
Overview ¶
Package etcdserverpb is a generated protocol buffer package.
It is generated from these files:
etcdserver.proto raft_internal.proto rpc.proto
It has these top-level messages:
Request Metadata RequestHeader InternalRaftRequest EmptyResponse InternalAuthenticateRequest ResponseHeader RangeRequest RangeResponse PutRequest PutResponse DeleteRangeRequest DeleteRangeResponse RequestOp ResponseOp Compare TxnRequest TxnResponse CompactionRequest CompactionResponse HashRequest HashKVRequest HashKVResponse HashResponse SnapshotRequest SnapshotResponse WatchRequest WatchCreateRequest WatchCancelRequest WatchProgressRequest WatchResponse LeaseGrantRequest LeaseGrantResponse LeaseRevokeRequest LeaseRevokeResponse LeaseCheckpoint LeaseCheckpointRequest LeaseCheckpointResponse LeaseKeepAliveRequest LeaseKeepAliveResponse LeaseTimeToLiveRequest LeaseTimeToLiveResponse LeaseLeasesRequest LeaseStatus LeaseLeasesResponse Member MemberAddRequest MemberAddResponse MemberRemoveRequest MemberRemoveResponse MemberUpdateRequest MemberUpdateResponse MemberListRequest MemberListResponse MemberPromoteRequest MemberPromoteResponse DefragmentRequest DefragmentResponse MoveLeaderRequest MoveLeaderResponse AlarmRequest AlarmMember AlarmResponse StatusRequest StatusResponse AuthEnableRequest AuthDisableRequest AuthenticateRequest AuthUserAddRequest AuthUserGetRequest AuthUserDeleteRequest AuthUserChangePasswordRequest AuthUserGrantRoleRequest AuthUserRevokeRoleRequest AuthRoleAddRequest AuthRoleGetRequest AuthUserListRequest AuthRoleListRequest AuthRoleDeleteRequest AuthRoleGrantPermissionRequest AuthRoleRevokePermissionRequest AuthEnableResponse AuthDisableResponse AuthenticateResponse AuthUserAddResponse AuthUserGetResponse AuthUserDeleteResponse AuthUserChangePasswordResponse AuthUserGrantRoleResponse AuthUserRevokeRoleResponse AuthRoleAddResponse AuthRoleGetResponse AuthRoleListResponse AuthUserListResponse AuthRoleDeleteResponse AuthRoleGrantPermissionResponse AuthRoleRevokePermissionResponse
Index ¶
- Variables
- func NewLoggablePutRequest(request *PutRequest) *loggablePutRequest
- func NewLoggableTxnRequest(request *TxnRequest) *txnRequestStringer
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterClusterServer(s *grpc.Server, srv ClusterServer)
- func RegisterKVServer(s *grpc.Server, srv KVServer)
- func RegisterLeaseServer(s *grpc.Server, srv LeaseServer)
- func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer)
- func RegisterWatchServer(s *grpc.Server, srv WatchServer)
- type AlarmMember
- func (*AlarmMember) Descriptor() ([]byte, []int)
- func (m *AlarmMember) GetAlarm() AlarmType
- func (m *AlarmMember) GetMemberID() uint64
- func (m *AlarmMember) Marshal() (dAtA []byte, err error)
- func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error)
- func (*AlarmMember) ProtoMessage()
- func (m *AlarmMember) Reset()
- func (m *AlarmMember) Size() (n int)
- func (m *AlarmMember) String() string
- func (m *AlarmMember) Unmarshal(dAtA []byte) error
- type AlarmRequest
- func (*AlarmRequest) Descriptor() ([]byte, []int)
- func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction
- func (m *AlarmRequest) GetAlarm() AlarmType
- func (m *AlarmRequest) GetMemberID() uint64
- func (m *AlarmRequest) Marshal() (dAtA []byte, err error)
- func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AlarmRequest) ProtoMessage()
- func (m *AlarmRequest) Reset()
- func (m *AlarmRequest) Size() (n int)
- func (m *AlarmRequest) String() string
- func (m *AlarmRequest) Unmarshal(dAtA []byte) error
- type AlarmRequest_AlarmAction
- type AlarmResponse
- func (*AlarmResponse) Descriptor() ([]byte, []int)
- func (m *AlarmResponse) GetAlarms() []*AlarmMember
- func (m *AlarmResponse) GetHeader() *ResponseHeader
- func (m *AlarmResponse) Marshal() (dAtA []byte, err error)
- func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AlarmResponse) ProtoMessage()
- func (m *AlarmResponse) Reset()
- func (m *AlarmResponse) Size() (n int)
- func (m *AlarmResponse) String() string
- func (m *AlarmResponse) Unmarshal(dAtA []byte) error
- type AlarmType
- type AuthClient
- type AuthDisableRequest
- func (*AuthDisableRequest) Descriptor() ([]byte, []int)
- func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthDisableRequest) ProtoMessage()
- func (m *AuthDisableRequest) Reset()
- func (m *AuthDisableRequest) Size() (n int)
- func (m *AuthDisableRequest) String() string
- func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error
- type AuthDisableResponse
- func (*AuthDisableResponse) Descriptor() ([]byte, []int)
- func (m *AuthDisableResponse) GetHeader() *ResponseHeader
- func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthDisableResponse) ProtoMessage()
- func (m *AuthDisableResponse) Reset()
- func (m *AuthDisableResponse) Size() (n int)
- func (m *AuthDisableResponse) String() string
- func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error
- type AuthEnableRequest
- func (*AuthEnableRequest) Descriptor() ([]byte, []int)
- func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthEnableRequest) ProtoMessage()
- func (m *AuthEnableRequest) Reset()
- func (m *AuthEnableRequest) Size() (n int)
- func (m *AuthEnableRequest) String() string
- func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error
- type AuthEnableResponse
- func (*AuthEnableResponse) Descriptor() ([]byte, []int)
- func (m *AuthEnableResponse) GetHeader() *ResponseHeader
- func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthEnableResponse) ProtoMessage()
- func (m *AuthEnableResponse) Reset()
- func (m *AuthEnableResponse) Size() (n int)
- func (m *AuthEnableResponse) String() string
- func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error
- type AuthRoleAddRequest
- func (*AuthRoleAddRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleAddRequest) GetName() string
- func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleAddRequest) ProtoMessage()
- func (m *AuthRoleAddRequest) Reset()
- func (m *AuthRoleAddRequest) Size() (n int)
- func (m *AuthRoleAddRequest) String() string
- func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error
- type AuthRoleAddResponse
- func (*AuthRoleAddResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleAddResponse) ProtoMessage()
- func (m *AuthRoleAddResponse) Reset()
- func (m *AuthRoleAddResponse) Size() (n int)
- func (m *AuthRoleAddResponse) String() string
- func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error
- type AuthRoleDeleteRequest
- func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleDeleteRequest) GetRole() string
- func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleDeleteRequest) ProtoMessage()
- func (m *AuthRoleDeleteRequest) Reset()
- func (m *AuthRoleDeleteRequest) Size() (n int)
- func (m *AuthRoleDeleteRequest) String() string
- func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error
- type AuthRoleDeleteResponse
- func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleDeleteResponse) ProtoMessage()
- func (m *AuthRoleDeleteResponse) Reset()
- func (m *AuthRoleDeleteResponse) Size() (n int)
- func (m *AuthRoleDeleteResponse) String() string
- func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error
- type AuthRoleGetRequest
- func (*AuthRoleGetRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleGetRequest) GetRole() string
- func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleGetRequest) ProtoMessage()
- func (m *AuthRoleGetRequest) Reset()
- func (m *AuthRoleGetRequest) Size() (n int)
- func (m *AuthRoleGetRequest) String() string
- func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error
- type AuthRoleGetResponse
- func (*AuthRoleGetResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission
- func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleGetResponse) ProtoMessage()
- func (m *AuthRoleGetResponse) Reset()
- func (m *AuthRoleGetResponse) Size() (n int)
- func (m *AuthRoleGetResponse) String() string
- func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error
- type AuthRoleGrantPermissionRequest
- func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleGrantPermissionRequest) GetName() string
- func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission
- func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleGrantPermissionRequest) ProtoMessage()
- func (m *AuthRoleGrantPermissionRequest) Reset()
- func (m *AuthRoleGrantPermissionRequest) Size() (n int)
- func (m *AuthRoleGrantPermissionRequest) String() string
- func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error
- type AuthRoleGrantPermissionResponse
- func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleGrantPermissionResponse) ProtoMessage()
- func (m *AuthRoleGrantPermissionResponse) Reset()
- func (m *AuthRoleGrantPermissionResponse) Size() (n int)
- func (m *AuthRoleGrantPermissionResponse) String() string
- func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error
- type AuthRoleListRequest
- func (*AuthRoleListRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleListRequest) ProtoMessage()
- func (m *AuthRoleListRequest) Reset()
- func (m *AuthRoleListRequest) Size() (n int)
- func (m *AuthRoleListRequest) String() string
- func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error
- type AuthRoleListResponse
- func (*AuthRoleListResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleListResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleListResponse) GetRoles() []string
- func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleListResponse) ProtoMessage()
- func (m *AuthRoleListResponse) Reset()
- func (m *AuthRoleListResponse) Size() (n int)
- func (m *AuthRoleListResponse) String() string
- func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error
- type AuthRoleRevokePermissionRequest
- func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleRevokePermissionRequest) GetKey() []byte
- func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte
- func (m *AuthRoleRevokePermissionRequest) GetRole() string
- func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleRevokePermissionRequest) ProtoMessage()
- func (m *AuthRoleRevokePermissionRequest) Reset()
- func (m *AuthRoleRevokePermissionRequest) Size() (n int)
- func (m *AuthRoleRevokePermissionRequest) String() string
- func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error
- type AuthRoleRevokePermissionResponse
- func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthRoleRevokePermissionResponse) ProtoMessage()
- func (m *AuthRoleRevokePermissionResponse) Reset()
- func (m *AuthRoleRevokePermissionResponse) Size() (n int)
- func (m *AuthRoleRevokePermissionResponse) String() string
- func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error
- type AuthServer
- type AuthUserAddRequest
- func (*AuthUserAddRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserAddRequest) GetName() string
- func (m *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions
- func (m *AuthUserAddRequest) GetPassword() string
- func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserAddRequest) ProtoMessage()
- func (m *AuthUserAddRequest) Reset()
- func (m *AuthUserAddRequest) Size() (n int)
- func (m *AuthUserAddRequest) String() string
- func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error
- type AuthUserAddResponse
- func (*AuthUserAddResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserAddResponse) GetHeader() *ResponseHeader
- func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserAddResponse) ProtoMessage()
- func (m *AuthUserAddResponse) Reset()
- func (m *AuthUserAddResponse) Size() (n int)
- func (m *AuthUserAddResponse) String() string
- func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error
- type AuthUserChangePasswordRequest
- func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserChangePasswordRequest) GetName() string
- func (m *AuthUserChangePasswordRequest) GetPassword() string
- func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserChangePasswordRequest) ProtoMessage()
- func (m *AuthUserChangePasswordRequest) Reset()
- func (m *AuthUserChangePasswordRequest) Size() (n int)
- func (m *AuthUserChangePasswordRequest) String() string
- func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error
- type AuthUserChangePasswordResponse
- func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader
- func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserChangePasswordResponse) ProtoMessage()
- func (m *AuthUserChangePasswordResponse) Reset()
- func (m *AuthUserChangePasswordResponse) Size() (n int)
- func (m *AuthUserChangePasswordResponse) String() string
- func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error
- type AuthUserDeleteRequest
- func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserDeleteRequest) GetName() string
- func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserDeleteRequest) ProtoMessage()
- func (m *AuthUserDeleteRequest) Reset()
- func (m *AuthUserDeleteRequest) Size() (n int)
- func (m *AuthUserDeleteRequest) String() string
- func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error
- type AuthUserDeleteResponse
- func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader
- func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserDeleteResponse) ProtoMessage()
- func (m *AuthUserDeleteResponse) Reset()
- func (m *AuthUserDeleteResponse) Size() (n int)
- func (m *AuthUserDeleteResponse) String() string
- func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error
- type AuthUserGetRequest
- func (*AuthUserGetRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserGetRequest) GetName() string
- func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserGetRequest) ProtoMessage()
- func (m *AuthUserGetRequest) Reset()
- func (m *AuthUserGetRequest) Size() (n int)
- func (m *AuthUserGetRequest) String() string
- func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error
- type AuthUserGetResponse
- func (*AuthUserGetResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserGetResponse) GetHeader() *ResponseHeader
- func (m *AuthUserGetResponse) GetRoles() []string
- func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserGetResponse) ProtoMessage()
- func (m *AuthUserGetResponse) Reset()
- func (m *AuthUserGetResponse) Size() (n int)
- func (m *AuthUserGetResponse) String() string
- func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error
- type AuthUserGrantRoleRequest
- func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserGrantRoleRequest) GetRole() string
- func (m *AuthUserGrantRoleRequest) GetUser() string
- func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserGrantRoleRequest) ProtoMessage()
- func (m *AuthUserGrantRoleRequest) Reset()
- func (m *AuthUserGrantRoleRequest) Size() (n int)
- func (m *AuthUserGrantRoleRequest) String() string
- func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error
- type AuthUserGrantRoleResponse
- func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader
- func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserGrantRoleResponse) ProtoMessage()
- func (m *AuthUserGrantRoleResponse) Reset()
- func (m *AuthUserGrantRoleResponse) Size() (n int)
- func (m *AuthUserGrantRoleResponse) String() string
- func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error
- type AuthUserListRequest
- func (*AuthUserListRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserListRequest) ProtoMessage()
- func (m *AuthUserListRequest) Reset()
- func (m *AuthUserListRequest) Size() (n int)
- func (m *AuthUserListRequest) String() string
- func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error
- type AuthUserListResponse
- func (*AuthUserListResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserListResponse) GetHeader() *ResponseHeader
- func (m *AuthUserListResponse) GetUsers() []string
- func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserListResponse) ProtoMessage()
- func (m *AuthUserListResponse) Reset()
- func (m *AuthUserListResponse) Size() (n int)
- func (m *AuthUserListResponse) String() string
- func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error
- type AuthUserRevokeRoleRequest
- func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserRevokeRoleRequest) GetName() string
- func (m *AuthUserRevokeRoleRequest) GetRole() string
- func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserRevokeRoleRequest) ProtoMessage()
- func (m *AuthUserRevokeRoleRequest) Reset()
- func (m *AuthUserRevokeRoleRequest) Size() (n int)
- func (m *AuthUserRevokeRoleRequest) String() string
- func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error
- type AuthUserRevokeRoleResponse
- func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader
- func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthUserRevokeRoleResponse) ProtoMessage()
- func (m *AuthUserRevokeRoleResponse) Reset()
- func (m *AuthUserRevokeRoleResponse) Size() (n int)
- func (m *AuthUserRevokeRoleResponse) String() string
- func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)
- func (m *AuthenticateRequest) GetName() string
- func (m *AuthenticateRequest) GetPassword() string
- func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthenticateRequest) ProtoMessage()
- func (m *AuthenticateRequest) Reset()
- func (m *AuthenticateRequest) Size() (n int)
- func (m *AuthenticateRequest) String() string
- func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)
- func (m *AuthenticateResponse) GetHeader() *ResponseHeader
- func (m *AuthenticateResponse) GetToken() string
- func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthenticateResponse) ProtoMessage()
- func (m *AuthenticateResponse) Reset()
- func (m *AuthenticateResponse) Size() (n int)
- func (m *AuthenticateResponse) String() string
- func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error
- type ClusterClient
- type ClusterServer
- type CompactionRequest
- func (*CompactionRequest) Descriptor() ([]byte, []int)
- func (m *CompactionRequest) GetPhysical() bool
- func (m *CompactionRequest) GetRevision() int64
- func (m *CompactionRequest) Marshal() (dAtA []byte, err error)
- func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CompactionRequest) ProtoMessage()
- func (m *CompactionRequest) Reset()
- func (m *CompactionRequest) Size() (n int)
- func (m *CompactionRequest) String() string
- func (m *CompactionRequest) Unmarshal(dAtA []byte) error
- type CompactionResponse
- func (*CompactionResponse) Descriptor() ([]byte, []int)
- func (m *CompactionResponse) GetHeader() *ResponseHeader
- func (m *CompactionResponse) Marshal() (dAtA []byte, err error)
- func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CompactionResponse) ProtoMessage()
- func (m *CompactionResponse) Reset()
- func (m *CompactionResponse) Size() (n int)
- func (m *CompactionResponse) String() string
- func (m *CompactionResponse) Unmarshal(dAtA []byte) error
- type Compare
- func (*Compare) Descriptor() ([]byte, []int)
- func (m *Compare) GetCreateRevision() int64
- func (m *Compare) GetKey() []byte
- func (m *Compare) GetLease() int64
- func (m *Compare) GetModRevision() int64
- func (m *Compare) GetRangeEnd() []byte
- func (m *Compare) GetResult() Compare_CompareResult
- func (m *Compare) GetTarget() Compare_CompareTarget
- func (m *Compare) GetTargetUnion() isCompare_TargetUnion
- func (m *Compare) GetValue() []byte
- func (m *Compare) GetVersion() int64
- func (m *Compare) Marshal() (dAtA []byte, err error)
- func (m *Compare) MarshalTo(dAtA []byte) (int, error)
- func (*Compare) ProtoMessage()
- func (m *Compare) Reset()
- func (m *Compare) Size() (n int)
- func (m *Compare) String() string
- func (m *Compare) Unmarshal(dAtA []byte) error
- func (*Compare) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Compare_CompareResult
- type Compare_CompareTarget
- type Compare_CreateRevision
- type Compare_Lease
- type Compare_ModRevision
- type Compare_Value
- type Compare_Version
- type DefragmentRequest
- func (*DefragmentRequest) Descriptor() ([]byte, []int)
- func (m *DefragmentRequest) Marshal() (dAtA []byte, err error)
- func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DefragmentRequest) ProtoMessage()
- func (m *DefragmentRequest) Reset()
- func (m *DefragmentRequest) Size() (n int)
- func (m *DefragmentRequest) String() string
- func (m *DefragmentRequest) Unmarshal(dAtA []byte) error
- type DefragmentResponse
- func (*DefragmentResponse) Descriptor() ([]byte, []int)
- func (m *DefragmentResponse) GetHeader() *ResponseHeader
- func (m *DefragmentResponse) Marshal() (dAtA []byte, err error)
- func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error)
- func (*DefragmentResponse) ProtoMessage()
- func (m *DefragmentResponse) Reset()
- func (m *DefragmentResponse) Size() (n int)
- func (m *DefragmentResponse) String() string
- func (m *DefragmentResponse) Unmarshal(dAtA []byte) error
- type DeleteRangeRequest
- func (*DeleteRangeRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRangeRequest) GetKey() []byte
- func (m *DeleteRangeRequest) GetPrevKv() bool
- func (m *DeleteRangeRequest) GetRangeEnd() []byte
- func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteRangeRequest) ProtoMessage()
- func (m *DeleteRangeRequest) Reset()
- func (m *DeleteRangeRequest) Size() (n int)
- func (m *DeleteRangeRequest) String() string
- func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error
- type DeleteRangeResponse
- func (*DeleteRangeResponse) Descriptor() ([]byte, []int)
- func (m *DeleteRangeResponse) GetDeleted() int64
- func (m *DeleteRangeResponse) GetHeader() *ResponseHeader
- func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue
- func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error)
- func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteRangeResponse) ProtoMessage()
- func (m *DeleteRangeResponse) Reset()
- func (m *DeleteRangeResponse) Size() (n int)
- func (m *DeleteRangeResponse) String() string
- func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error
- type EmptyResponse
- func (*EmptyResponse) Descriptor() ([]byte, []int)
- func (m *EmptyResponse) Marshal() (dAtA []byte, err error)
- func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)
- func (*EmptyResponse) ProtoMessage()
- func (m *EmptyResponse) Reset()
- func (m *EmptyResponse) Size() (n int)
- func (m *EmptyResponse) String() string
- func (m *EmptyResponse) Unmarshal(dAtA []byte) error
- type HashKVRequest
- func (*HashKVRequest) Descriptor() ([]byte, []int)
- func (m *HashKVRequest) GetRevision() int64
- func (m *HashKVRequest) Marshal() (dAtA []byte, err error)
- func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error)
- func (*HashKVRequest) ProtoMessage()
- func (m *HashKVRequest) Reset()
- func (m *HashKVRequest) Size() (n int)
- func (m *HashKVRequest) String() string
- func (m *HashKVRequest) Unmarshal(dAtA []byte) error
- type HashKVResponse
- func (*HashKVResponse) Descriptor() ([]byte, []int)
- func (m *HashKVResponse) GetCompactRevision() int64
- func (m *HashKVResponse) GetHash() uint32
- func (m *HashKVResponse) GetHeader() *ResponseHeader
- func (m *HashKVResponse) Marshal() (dAtA []byte, err error)
- func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error)
- func (*HashKVResponse) ProtoMessage()
- func (m *HashKVResponse) Reset()
- func (m *HashKVResponse) Size() (n int)
- func (m *HashKVResponse) String() string
- func (m *HashKVResponse) Unmarshal(dAtA []byte) error
- type HashRequest
- func (*HashRequest) Descriptor() ([]byte, []int)
- func (m *HashRequest) Marshal() (dAtA []byte, err error)
- func (m *HashRequest) MarshalTo(dAtA []byte) (int, error)
- func (*HashRequest) ProtoMessage()
- func (m *HashRequest) Reset()
- func (m *HashRequest) Size() (n int)
- func (m *HashRequest) String() string
- func (m *HashRequest) Unmarshal(dAtA []byte) error
- type HashResponse
- func (*HashResponse) Descriptor() ([]byte, []int)
- func (m *HashResponse) GetHash() uint32
- func (m *HashResponse) GetHeader() *ResponseHeader
- func (m *HashResponse) Marshal() (dAtA []byte, err error)
- func (m *HashResponse) MarshalTo(dAtA []byte) (int, error)
- func (*HashResponse) ProtoMessage()
- func (m *HashResponse) Reset()
- func (m *HashResponse) Size() (n int)
- func (m *HashResponse) String() string
- func (m *HashResponse) Unmarshal(dAtA []byte) error
- type InternalAuthenticateRequest
- func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int)
- func (m *InternalAuthenticateRequest) Marshal() (dAtA []byte, err error)
- func (m *InternalAuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*InternalAuthenticateRequest) ProtoMessage()
- func (m *InternalAuthenticateRequest) Reset()
- func (m *InternalAuthenticateRequest) Size() (n int)
- func (m *InternalAuthenticateRequest) String() string
- func (m *InternalAuthenticateRequest) Unmarshal(dAtA []byte) error
- type InternalRaftRequest
- func (*InternalRaftRequest) Descriptor() ([]byte, []int)
- func (m *InternalRaftRequest) Marshal() (dAtA []byte, err error)
- func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error)
- func (*InternalRaftRequest) ProtoMessage()
- func (m *InternalRaftRequest) Reset()
- func (m *InternalRaftRequest) Size() (n int)
- func (m *InternalRaftRequest) String() string
- func (m *InternalRaftRequest) Unmarshal(dAtA []byte) error
- type InternalRaftStringer
- type KVClient
- type KVServer
- type LeaseCheckpoint
- func (*LeaseCheckpoint) Descriptor() ([]byte, []int)
- func (m *LeaseCheckpoint) GetID() int64
- func (m *LeaseCheckpoint) GetRemaining_TTL() int64
- func (m *LeaseCheckpoint) Marshal() (dAtA []byte, err error)
- func (m *LeaseCheckpoint) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseCheckpoint) ProtoMessage()
- func (m *LeaseCheckpoint) Reset()
- func (m *LeaseCheckpoint) Size() (n int)
- func (m *LeaseCheckpoint) String() string
- func (m *LeaseCheckpoint) Unmarshal(dAtA []byte) error
- type LeaseCheckpointRequest
- func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int)
- func (m *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint
- func (m *LeaseCheckpointRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseCheckpointRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseCheckpointRequest) ProtoMessage()
- func (m *LeaseCheckpointRequest) Reset()
- func (m *LeaseCheckpointRequest) Size() (n int)
- func (m *LeaseCheckpointRequest) String() string
- func (m *LeaseCheckpointRequest) Unmarshal(dAtA []byte) error
- type LeaseCheckpointResponse
- func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int)
- func (m *LeaseCheckpointResponse) GetHeader() *ResponseHeader
- func (m *LeaseCheckpointResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseCheckpointResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseCheckpointResponse) ProtoMessage()
- func (m *LeaseCheckpointResponse) Reset()
- func (m *LeaseCheckpointResponse) Size() (n int)
- func (m *LeaseCheckpointResponse) String() string
- func (m *LeaseCheckpointResponse) Unmarshal(dAtA []byte) error
- type LeaseClient
- type LeaseGrantRequest
- func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
- func (m *LeaseGrantRequest) GetID() int64
- func (m *LeaseGrantRequest) GetTTL() int64
- func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseGrantRequest) ProtoMessage()
- func (m *LeaseGrantRequest) Reset()
- func (m *LeaseGrantRequest) Size() (n int)
- func (m *LeaseGrantRequest) String() string
- func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error
- type LeaseGrantResponse
- func (*LeaseGrantResponse) Descriptor() ([]byte, []int)
- func (m *LeaseGrantResponse) GetError() string
- func (m *LeaseGrantResponse) GetHeader() *ResponseHeader
- func (m *LeaseGrantResponse) GetID() int64
- func (m *LeaseGrantResponse) GetTTL() int64
- func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseGrantResponse) ProtoMessage()
- func (m *LeaseGrantResponse) Reset()
- func (m *LeaseGrantResponse) Size() (n int)
- func (m *LeaseGrantResponse) String() string
- func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error
- type LeaseKeepAliveRequest
- func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)
- func (m *LeaseKeepAliveRequest) GetID() int64
- func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseKeepAliveRequest) ProtoMessage()
- func (m *LeaseKeepAliveRequest) Reset()
- func (m *LeaseKeepAliveRequest) Size() (n int)
- func (m *LeaseKeepAliveRequest) String() string
- func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error
- type LeaseKeepAliveResponse
- func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)
- func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
- func (m *LeaseKeepAliveResponse) GetID() int64
- func (m *LeaseKeepAliveResponse) GetTTL() int64
- func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseKeepAliveResponse) ProtoMessage()
- func (m *LeaseKeepAliveResponse) Reset()
- func (m *LeaseKeepAliveResponse) Size() (n int)
- func (m *LeaseKeepAliveResponse) String() string
- func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error
- type LeaseLeasesRequest
- func (*LeaseLeasesRequest) Descriptor() ([]byte, []int)
- func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseLeasesRequest) ProtoMessage()
- func (m *LeaseLeasesRequest) Reset()
- func (m *LeaseLeasesRequest) Size() (n int)
- func (m *LeaseLeasesRequest) String() string
- func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error
- type LeaseLeasesResponse
- func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)
- func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader
- func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus
- func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseLeasesResponse) ProtoMessage()
- func (m *LeaseLeasesResponse) Reset()
- func (m *LeaseLeasesResponse) Size() (n int)
- func (m *LeaseLeasesResponse) String() string
- func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error
- type LeaseRevokeRequest
- func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
- func (m *LeaseRevokeRequest) GetID() int64
- func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseRevokeRequest) ProtoMessage()
- func (m *LeaseRevokeRequest) Reset()
- func (m *LeaseRevokeRequest) Size() (n int)
- func (m *LeaseRevokeRequest) String() string
- func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error
- type LeaseRevokeResponse
- func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)
- func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader
- func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseRevokeResponse) ProtoMessage()
- func (m *LeaseRevokeResponse) Reset()
- func (m *LeaseRevokeResponse) Size() (n int)
- func (m *LeaseRevokeResponse) String() string
- func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error
- type LeaseServer
- type LeaseStatus
- func (*LeaseStatus) Descriptor() ([]byte, []int)
- func (m *LeaseStatus) GetID() int64
- func (m *LeaseStatus) Marshal() (dAtA []byte, err error)
- func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseStatus) ProtoMessage()
- func (m *LeaseStatus) Reset()
- func (m *LeaseStatus) Size() (n int)
- func (m *LeaseStatus) String() string
- func (m *LeaseStatus) Unmarshal(dAtA []byte) error
- type LeaseTimeToLiveRequest
- func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)
- func (m *LeaseTimeToLiveRequest) GetID() int64
- func (m *LeaseTimeToLiveRequest) GetKeys() bool
- func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseTimeToLiveRequest) ProtoMessage()
- func (m *LeaseTimeToLiveRequest) Reset()
- func (m *LeaseTimeToLiveRequest) Size() (n int)
- func (m *LeaseTimeToLiveRequest) String() string
- func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error
- type LeaseTimeToLiveResponse
- func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)
- func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64
- func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader
- func (m *LeaseTimeToLiveResponse) GetID() int64
- func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte
- func (m *LeaseTimeToLiveResponse) GetTTL() int64
- func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaseTimeToLiveResponse) ProtoMessage()
- func (m *LeaseTimeToLiveResponse) Reset()
- func (m *LeaseTimeToLiveResponse) Size() (n int)
- func (m *LeaseTimeToLiveResponse) String() string
- func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error
- type Lease_LeaseKeepAliveClient
- type Lease_LeaseKeepAliveServer
- type MaintenanceClient
- type MaintenanceServer
- type Maintenance_SnapshotClient
- type Maintenance_SnapshotServer
- type Member
- func (*Member) Descriptor() ([]byte, []int)
- func (m *Member) GetClientURLs() []string
- func (m *Member) GetID() uint64
- func (m *Member) GetIsLearner() bool
- func (m *Member) GetName() string
- func (m *Member) GetPeerURLs() []string
- func (m *Member) Marshal() (dAtA []byte, err error)
- func (m *Member) MarshalTo(dAtA []byte) (int, error)
- func (*Member) ProtoMessage()
- func (m *Member) Reset()
- func (m *Member) Size() (n int)
- func (m *Member) String() string
- func (m *Member) Unmarshal(dAtA []byte) error
- type MemberAddRequest
- func (*MemberAddRequest) Descriptor() ([]byte, []int)
- func (m *MemberAddRequest) GetIsLearner() bool
- func (m *MemberAddRequest) GetPeerURLs() []string
- func (m *MemberAddRequest) Marshal() (dAtA []byte, err error)
- func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MemberAddRequest) ProtoMessage()
- func (m *MemberAddRequest) Reset()
- func (m *MemberAddRequest) Size() (n int)
- func (m *MemberAddRequest) String() string
- func (m *MemberAddRequest) Unmarshal(dAtA []byte) error
- type MemberAddResponse
- func (*MemberAddResponse) Descriptor() ([]byte, []int)
- func (m *MemberAddResponse) GetHeader() *ResponseHeader
- func (m *MemberAddResponse) GetMember() *Member
- func (m *MemberAddResponse) GetMembers() []*Member
- func (m *MemberAddResponse) Marshal() (dAtA []byte, err error)
- func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MemberAddResponse) ProtoMessage()
- func (m *MemberAddResponse) Reset()
- func (m *MemberAddResponse) Size() (n int)
- func (m *MemberAddResponse) String() string
- func (m *MemberAddResponse) Unmarshal(dAtA []byte) error
- type MemberListRequest
- func (*MemberListRequest) Descriptor() ([]byte, []int)
- func (m *MemberListRequest) Marshal() (dAtA []byte, err error)
- func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MemberListRequest) ProtoMessage()
- func (m *MemberListRequest) Reset()
- func (m *MemberListRequest) Size() (n int)
- func (m *MemberListRequest) String() string
- func (m *MemberListRequest) Unmarshal(dAtA []byte) error
- type MemberListResponse
- func (*MemberListResponse) Descriptor() ([]byte, []int)
- func (m *MemberListResponse) GetHeader() *ResponseHeader
- func (m *MemberListResponse) GetMembers() []*Member
- func (m *MemberListResponse) Marshal() (dAtA []byte, err error)
- func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MemberListResponse) ProtoMessage()
- func (m *MemberListResponse) Reset()
- func (m *MemberListResponse) Size() (n int)
- func (m *MemberListResponse) String() string
- func (m *MemberListResponse) Unmarshal(dAtA []byte) error
- type MemberPromoteRequest
- func (*MemberPromoteRequest) Descriptor() ([]byte, []int)
- func (m *MemberPromoteRequest) GetID() uint64
- func (m *MemberPromoteRequest) Marshal() (dAtA []byte, err error)
- func (m *MemberPromoteRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MemberPromoteRequest) ProtoMessage()
- func (m *MemberPromoteRequest) Reset()
- func (m *MemberPromoteRequest) Size() (n int)
- func (m *MemberPromoteRequest) String() string
- func (m *MemberPromoteRequest) Unmarshal(dAtA []byte) error
- type MemberPromoteResponse
- func (*MemberPromoteResponse) Descriptor() ([]byte, []int)
- func (m *MemberPromoteResponse) GetHeader() *ResponseHeader
- func (m *MemberPromoteResponse) GetMembers() []*Member
- func (m *MemberPromoteResponse) Marshal() (dAtA []byte, err error)
- func (m *MemberPromoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MemberPromoteResponse) ProtoMessage()
- func (m *MemberPromoteResponse) Reset()
- func (m *MemberPromoteResponse) Size() (n int)
- func (m *MemberPromoteResponse) String() string
- func (m *MemberPromoteResponse) Unmarshal(dAtA []byte) error
- type MemberRemoveRequest
- func (*MemberRemoveRequest) Descriptor() ([]byte, []int)
- func (m *MemberRemoveRequest) GetID() uint64
- func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error)
- func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MemberRemoveRequest) ProtoMessage()
- func (m *MemberRemoveRequest) Reset()
- func (m *MemberRemoveRequest) Size() (n int)
- func (m *MemberRemoveRequest) String() string
- func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error
- type MemberRemoveResponse
- func (*MemberRemoveResponse) Descriptor() ([]byte, []int)
- func (m *MemberRemoveResponse) GetHeader() *ResponseHeader
- func (m *MemberRemoveResponse) GetMembers() []*Member
- func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error)
- func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MemberRemoveResponse) ProtoMessage()
- func (m *MemberRemoveResponse) Reset()
- func (m *MemberRemoveResponse) Size() (n int)
- func (m *MemberRemoveResponse) String() string
- func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error
- type MemberUpdateRequest
- func (*MemberUpdateRequest) Descriptor() ([]byte, []int)
- func (m *MemberUpdateRequest) GetID() uint64
- func (m *MemberUpdateRequest) GetPeerURLs() []string
- func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MemberUpdateRequest) ProtoMessage()
- func (m *MemberUpdateRequest) Reset()
- func (m *MemberUpdateRequest) Size() (n int)
- func (m *MemberUpdateRequest) String() string
- func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error
- type MemberUpdateResponse
- func (*MemberUpdateResponse) Descriptor() ([]byte, []int)
- func (m *MemberUpdateResponse) GetHeader() *ResponseHeader
- func (m *MemberUpdateResponse) GetMembers() []*Member
- func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MemberUpdateResponse) ProtoMessage()
- func (m *MemberUpdateResponse) Reset()
- func (m *MemberUpdateResponse) Size() (n int)
- func (m *MemberUpdateResponse) String() string
- func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- type MoveLeaderRequest
- func (*MoveLeaderRequest) Descriptor() ([]byte, []int)
- func (m *MoveLeaderRequest) GetTargetID() uint64
- func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error)
- func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MoveLeaderRequest) ProtoMessage()
- func (m *MoveLeaderRequest) Reset()
- func (m *MoveLeaderRequest) Size() (n int)
- func (m *MoveLeaderRequest) String() string
- func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error
- type MoveLeaderResponse
- func (*MoveLeaderResponse) Descriptor() ([]byte, []int)
- func (m *MoveLeaderResponse) GetHeader() *ResponseHeader
- func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error)
- func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MoveLeaderResponse) ProtoMessage()
- func (m *MoveLeaderResponse) Reset()
- func (m *MoveLeaderResponse) Size() (n int)
- func (m *MoveLeaderResponse) String() string
- func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error
- type PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)
- func (m *PutRequest) GetIgnoreLease() bool
- func (m *PutRequest) GetIgnoreValue() bool
- func (m *PutRequest) GetKey() []byte
- func (m *PutRequest) GetLease() int64
- func (m *PutRequest) GetPrevKv() bool
- func (m *PutRequest) GetValue() []byte
- func (m *PutRequest) Marshal() (dAtA []byte, err error)
- func (m *PutRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PutRequest) ProtoMessage()
- func (m *PutRequest) Reset()
- func (m *PutRequest) Size() (n int)
- func (m *PutRequest) String() string
- func (m *PutRequest) Unmarshal(dAtA []byte) error
- type PutResponse
- func (*PutResponse) Descriptor() ([]byte, []int)
- func (m *PutResponse) GetHeader() *ResponseHeader
- func (m *PutResponse) GetPrevKv() *mvccpb.KeyValue
- func (m *PutResponse) Marshal() (dAtA []byte, err error)
- func (m *PutResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PutResponse) ProtoMessage()
- func (m *PutResponse) Reset()
- func (m *PutResponse) Size() (n int)
- func (m *PutResponse) String() string
- func (m *PutResponse) Unmarshal(dAtA []byte) error
- type RangeRequest
- func (*RangeRequest) Descriptor() ([]byte, []int)
- func (m *RangeRequest) GetCountOnly() bool
- func (m *RangeRequest) GetKey() []byte
- func (m *RangeRequest) GetKeysOnly() bool
- func (m *RangeRequest) GetLimit() int64
- func (m *RangeRequest) GetMaxCreateRevision() int64
- func (m *RangeRequest) GetMaxModRevision() int64
- func (m *RangeRequest) GetMinCreateRevision() int64
- func (m *RangeRequest) GetMinModRevision() int64
- func (m *RangeRequest) GetRangeEnd() []byte
- func (m *RangeRequest) GetRevision() int64
- func (m *RangeRequest) GetSerializable() bool
- func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder
- func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget
- func (m *RangeRequest) Marshal() (dAtA []byte, err error)
- func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RangeRequest) ProtoMessage()
- func (m *RangeRequest) Reset()
- func (m *RangeRequest) Size() (n int)
- func (m *RangeRequest) String() string
- func (m *RangeRequest) Unmarshal(dAtA []byte) error
- type RangeRequest_SortOrder
- type RangeRequest_SortTarget
- type RangeResponse
- func (*RangeResponse) Descriptor() ([]byte, []int)
- func (m *RangeResponse) GetCount() int64
- func (m *RangeResponse) GetHeader() *ResponseHeader
- func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue
- func (m *RangeResponse) GetMore() bool
- func (m *RangeResponse) Marshal() (dAtA []byte, err error)
- func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RangeResponse) ProtoMessage()
- func (m *RangeResponse) Reset()
- func (m *RangeResponse) Size() (n int)
- func (m *RangeResponse) String() string
- func (m *RangeResponse) Unmarshal(dAtA []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)
- func (m *RequestHeader) Marshal() (dAtA []byte, err error)
- func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error)
- func (*RequestHeader) ProtoMessage()
- func (m *RequestHeader) Reset()
- func (m *RequestHeader) Size() (n int)
- func (m *RequestHeader) String() string
- func (m *RequestHeader) Unmarshal(dAtA []byte) error
- type RequestOp
- func (*RequestOp) Descriptor() ([]byte, []int)
- func (m *RequestOp) GetRequest() isRequestOp_Request
- func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest
- func (m *RequestOp) GetRequestPut() *PutRequest
- func (m *RequestOp) GetRequestRange() *RangeRequest
- func (m *RequestOp) GetRequestTxn() *TxnRequest
- func (m *RequestOp) Marshal() (dAtA []byte, err error)
- func (m *RequestOp) MarshalTo(dAtA []byte) (int, error)
- func (*RequestOp) ProtoMessage()
- func (m *RequestOp) Reset()
- func (m *RequestOp) Size() (n int)
- func (m *RequestOp) String() string
- func (m *RequestOp) Unmarshal(dAtA []byte) error
- func (*RequestOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type RequestOp_RequestDeleteRange
- type RequestOp_RequestPut
- type RequestOp_RequestRange
- type RequestOp_RequestTxn
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)
- func (m *ResponseHeader) GetClusterId() uint64
- func (m *ResponseHeader) GetMemberId() uint64
- func (m *ResponseHeader) GetRaftTerm() uint64
- func (m *ResponseHeader) GetRevision() int64
- func (m *ResponseHeader) Marshal() (dAtA []byte, err error)
- func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error)
- func (*ResponseHeader) ProtoMessage()
- func (m *ResponseHeader) Reset()
- func (m *ResponseHeader) Size() (n int)
- func (m *ResponseHeader) String() string
- func (m *ResponseHeader) Unmarshal(dAtA []byte) error
- type ResponseOp
- func (*ResponseOp) Descriptor() ([]byte, []int)
- func (m *ResponseOp) GetResponse() isResponseOp_Response
- func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse
- func (m *ResponseOp) GetResponsePut() *PutResponse
- func (m *ResponseOp) GetResponseRange() *RangeResponse
- func (m *ResponseOp) GetResponseTxn() *TxnResponse
- func (m *ResponseOp) Marshal() (dAtA []byte, err error)
- func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error)
- func (*ResponseOp) ProtoMessage()
- func (m *ResponseOp) Reset()
- func (m *ResponseOp) Size() (n int)
- func (m *ResponseOp) String() string
- func (m *ResponseOp) Unmarshal(dAtA []byte) error
- func (*ResponseOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ResponseOp_ResponseDeleteRange
- type ResponseOp_ResponsePut
- type ResponseOp_ResponseRange
- type ResponseOp_ResponseTxn
- type SnapshotRequest
- func (*SnapshotRequest) Descriptor() ([]byte, []int)
- func (m *SnapshotRequest) Marshal() (dAtA []byte, err error)
- func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SnapshotRequest) ProtoMessage()
- func (m *SnapshotRequest) Reset()
- func (m *SnapshotRequest) Size() (n int)
- func (m *SnapshotRequest) String() string
- func (m *SnapshotRequest) Unmarshal(dAtA []byte) error
- type SnapshotResponse
- func (*SnapshotResponse) Descriptor() ([]byte, []int)
- func (m *SnapshotResponse) GetBlob() []byte
- func (m *SnapshotResponse) GetHeader() *ResponseHeader
- func (m *SnapshotResponse) GetRemainingBytes() uint64
- func (m *SnapshotResponse) Marshal() (dAtA []byte, err error)
- func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error)
- func (*SnapshotResponse) ProtoMessage()
- func (m *SnapshotResponse) Reset()
- func (m *SnapshotResponse) Size() (n int)
- func (m *SnapshotResponse) String() string
- func (m *SnapshotResponse) Unmarshal(dAtA []byte) error
- type StatusRequest
- func (*StatusRequest) Descriptor() ([]byte, []int)
- func (m *StatusRequest) Marshal() (dAtA []byte, err error)
- func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error)
- func (*StatusRequest) ProtoMessage()
- func (m *StatusRequest) Reset()
- func (m *StatusRequest) Size() (n int)
- func (m *StatusRequest) String() string
- func (m *StatusRequest) Unmarshal(dAtA []byte) error
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)
- func (m *StatusResponse) GetDbSize() int64
- func (m *StatusResponse) GetDbSizeInUse() int64
- func (m *StatusResponse) GetErrors() []string
- func (m *StatusResponse) GetHeader() *ResponseHeader
- func (m *StatusResponse) GetIsLearner() bool
- func (m *StatusResponse) GetLeader() uint64
- func (m *StatusResponse) GetRaftAppliedIndex() uint64
- func (m *StatusResponse) GetRaftIndex() uint64
- func (m *StatusResponse) GetRaftTerm() uint64
- func (m *StatusResponse) GetVersion() string
- func (m *StatusResponse) Marshal() (dAtA []byte, err error)
- func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (*StatusResponse) ProtoMessage()
- func (m *StatusResponse) Reset()
- func (m *StatusResponse) Size() (n int)
- func (m *StatusResponse) String() string
- func (m *StatusResponse) Unmarshal(dAtA []byte) error
- type TxnRequest
- func (*TxnRequest) Descriptor() ([]byte, []int)
- func (m *TxnRequest) GetCompare() []*Compare
- func (m *TxnRequest) GetFailure() []*RequestOp
- func (m *TxnRequest) GetSuccess() []*RequestOp
- func (m *TxnRequest) Marshal() (dAtA []byte, err error)
- func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error)
- func (*TxnRequest) ProtoMessage()
- func (m *TxnRequest) Reset()
- func (m *TxnRequest) Size() (n int)
- func (m *TxnRequest) String() string
- func (m *TxnRequest) Unmarshal(dAtA []byte) error
- type TxnResponse
- func (*TxnResponse) Descriptor() ([]byte, []int)
- func (m *TxnResponse) GetHeader() *ResponseHeader
- func (m *TxnResponse) GetResponses() []*ResponseOp
- func (m *TxnResponse) GetSucceeded() bool
- func (m *TxnResponse) Marshal() (dAtA []byte, err error)
- func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error)
- func (*TxnResponse) ProtoMessage()
- func (m *TxnResponse) Reset()
- func (m *TxnResponse) Size() (n int)
- func (m *TxnResponse) String() string
- func (m *TxnResponse) Unmarshal(dAtA []byte) error
- type WatchCancelRequest
- func (*WatchCancelRequest) Descriptor() ([]byte, []int)
- func (m *WatchCancelRequest) GetWatchId() int64
- func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error)
- func (*WatchCancelRequest) ProtoMessage()
- func (m *WatchCancelRequest) Reset()
- func (m *WatchCancelRequest) Size() (n int)
- func (m *WatchCancelRequest) String() string
- func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error
- type WatchClient
- type WatchCreateRequest
- func (*WatchCreateRequest) Descriptor() ([]byte, []int)
- func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType
- func (m *WatchCreateRequest) GetFragment() bool
- func (m *WatchCreateRequest) GetKey() []byte
- func (m *WatchCreateRequest) GetPrevKv() bool
- func (m *WatchCreateRequest) GetProgressNotify() bool
- func (m *WatchCreateRequest) GetRangeEnd() []byte
- func (m *WatchCreateRequest) GetStartRevision() int64
- func (m *WatchCreateRequest) GetWatchId() int64
- func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*WatchCreateRequest) ProtoMessage()
- func (m *WatchCreateRequest) Reset()
- func (m *WatchCreateRequest) Size() (n int)
- func (m *WatchCreateRequest) String() string
- func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error
- type WatchCreateRequest_FilterType
- type WatchProgressRequest
- func (*WatchProgressRequest) Descriptor() ([]byte, []int)
- func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error)
- func (*WatchProgressRequest) ProtoMessage()
- func (m *WatchProgressRequest) Reset()
- func (m *WatchProgressRequest) Size() (n int)
- func (m *WatchProgressRequest) String() string
- func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)
- func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest
- func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest
- func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest
- func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion
- func (m *WatchRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error)
- func (*WatchRequest) ProtoMessage()
- func (m *WatchRequest) Reset()
- func (m *WatchRequest) Size() (n int)
- func (m *WatchRequest) String() string
- func (m *WatchRequest) Unmarshal(dAtA []byte) error
- func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type WatchRequest_CancelRequest
- type WatchRequest_CreateRequest
- type WatchRequest_ProgressRequest
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)
- func (m *WatchResponse) GetCancelReason() string
- func (m *WatchResponse) GetCanceled() bool
- func (m *WatchResponse) GetCompactRevision() int64
- func (m *WatchResponse) GetCreated() bool
- func (m *WatchResponse) GetEvents() []*mvccpb.Event
- func (m *WatchResponse) GetFragment() bool
- func (m *WatchResponse) GetHeader() *ResponseHeader
- func (m *WatchResponse) GetWatchId() int64
- func (m *WatchResponse) Marshal() (dAtA []byte, err error)
- func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error)
- func (*WatchResponse) ProtoMessage()
- func (m *WatchResponse) Reset()
- func (m *WatchResponse) Size() (n int)
- func (m *WatchResponse) String() string
- func (m *WatchResponse) Unmarshal(dAtA []byte) error
- type WatchServer
- type Watch_WatchClient
- type Watch_WatchServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthEtcdserver = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEtcdserver = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthRaftInternal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRaftInternal = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") )
var AlarmRequest_AlarmAction_name = map[int32]string{
0: "GET",
1: "ACTIVATE",
2: "DEACTIVATE",
}
var AlarmRequest_AlarmAction_value = map[string]int32{
"GET": 0,
"ACTIVATE": 1,
"DEACTIVATE": 2,
}
var Compare_CompareResult_name = map[int32]string{
0: "EQUAL",
1: "GREATER",
2: "LESS",
3: "NOT_EQUAL",
}
var Compare_CompareResult_value = map[string]int32{
"EQUAL": 0,
"GREATER": 1,
"LESS": 2,
"NOT_EQUAL": 3,
}
var Compare_CompareTarget_name = map[int32]string{
0: "VERSION",
1: "CREATE",
2: "MOD",
3: "VALUE",
4: "LEASE",
}
var Compare_CompareTarget_value = map[string]int32{
"VERSION": 0,
"CREATE": 1,
"MOD": 2,
"VALUE": 3,
"LEASE": 4,
}
var RangeRequest_SortOrder_name = map[int32]string{
0: "NONE",
1: "ASCEND",
2: "DESCEND",
}
var RangeRequest_SortOrder_value = map[string]int32{
"NONE": 0,
"ASCEND": 1,
"DESCEND": 2,
}
var RangeRequest_SortTarget_name = map[int32]string{
0: "KEY",
1: "VERSION",
2: "CREATE",
3: "MOD",
4: "VALUE",
}
Functions ¶
func NewLoggablePutRequest ¶
func NewLoggablePutRequest(request *PutRequest) *loggablePutRequest
func NewLoggableTxnRequest ¶
func NewLoggableTxnRequest(request *TxnRequest) *txnRequestStringer
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterClusterServer ¶
func RegisterClusterServer(s *grpc.Server, srv ClusterServer)
func RegisterLeaseServer ¶
func RegisterLeaseServer(s *grpc.Server, srv LeaseServer)
func RegisterMaintenanceServer ¶
func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer)
func RegisterWatchServer ¶
func RegisterWatchServer(s *grpc.Server, 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"` }
func (*AlarmMember) Descriptor ¶
func (*AlarmMember) Descriptor() ([]byte, []int)
func (*AlarmMember) GetAlarm ¶
func (m *AlarmMember) GetAlarm() AlarmType
func (*AlarmMember) GetMemberID ¶
func (m *AlarmMember) GetMemberID() uint64
func (*AlarmMember) Marshal ¶
func (m *AlarmMember) Marshal() (dAtA []byte, err error)
func (*AlarmMember) MarshalTo ¶
func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error)
func (*AlarmMember) ProtoMessage ¶
func (*AlarmMember) ProtoMessage()
func (*AlarmMember) Reset ¶
func (m *AlarmMember) Reset()
func (*AlarmMember) Size ¶
func (m *AlarmMember) Size() (n int)
func (*AlarmMember) String ¶
func (m *AlarmMember) String() string
func (*AlarmMember) Unmarshal ¶
func (m *AlarmMember) Unmarshal(dAtA []byte) error
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"` }
func (*AlarmRequest) Descriptor ¶
func (*AlarmRequest) Descriptor() ([]byte, []int)
func (*AlarmRequest) GetAction ¶
func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction
func (*AlarmRequest) GetAlarm ¶
func (m *AlarmRequest) GetAlarm() AlarmType
func (*AlarmRequest) GetMemberID ¶
func (m *AlarmRequest) GetMemberID() uint64
func (*AlarmRequest) Marshal ¶
func (m *AlarmRequest) Marshal() (dAtA []byte, err error)
func (*AlarmRequest) MarshalTo ¶
func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error)
func (*AlarmRequest) ProtoMessage ¶
func (*AlarmRequest) ProtoMessage()
func (*AlarmRequest) Reset ¶
func (m *AlarmRequest) Reset()
func (*AlarmRequest) Size ¶
func (m *AlarmRequest) Size() (n int)
func (*AlarmRequest) String ¶
func (m *AlarmRequest) String() string
func (*AlarmRequest) Unmarshal ¶
func (m *AlarmRequest) Unmarshal(dAtA []byte) error
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) EnumDescriptor ¶
func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int)
func (AlarmRequest_AlarmAction) String ¶
func (x AlarmRequest_AlarmAction) String() string
type AlarmResponse ¶
type AlarmResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // alarms is a list of alarms associated with the alarm request. Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms" json:"alarms,omitempty"` }
func (*AlarmResponse) Descriptor ¶
func (*AlarmResponse) Descriptor() ([]byte, []int)
func (*AlarmResponse) GetAlarms ¶
func (m *AlarmResponse) GetAlarms() []*AlarmMember
func (*AlarmResponse) GetHeader ¶
func (m *AlarmResponse) GetHeader() *ResponseHeader
func (*AlarmResponse) Marshal ¶
func (m *AlarmResponse) Marshal() (dAtA []byte, err error)
func (*AlarmResponse) MarshalTo ¶
func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error)
func (*AlarmResponse) ProtoMessage ¶
func (*AlarmResponse) ProtoMessage()
func (*AlarmResponse) Reset ¶
func (m *AlarmResponse) Reset()
func (*AlarmResponse) Size ¶
func (m *AlarmResponse) Size() (n int)
func (*AlarmResponse) String ¶
func (m *AlarmResponse) String() string
func (*AlarmResponse) Unmarshal ¶
func (m *AlarmResponse) Unmarshal(dAtA []byte) error
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) // 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) // UserGrant 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) }
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthDisableRequest ¶
type AuthDisableRequest struct { }
func (*AuthDisableRequest) Descriptor ¶
func (*AuthDisableRequest) Descriptor() ([]byte, []int)
func (*AuthDisableRequest) Marshal ¶
func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error)
func (*AuthDisableRequest) MarshalTo ¶
func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthDisableRequest) ProtoMessage ¶
func (*AuthDisableRequest) ProtoMessage()
func (*AuthDisableRequest) Reset ¶
func (m *AuthDisableRequest) Reset()
func (*AuthDisableRequest) Size ¶
func (m *AuthDisableRequest) Size() (n int)
func (*AuthDisableRequest) String ¶
func (m *AuthDisableRequest) String() string
func (*AuthDisableRequest) Unmarshal ¶
func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error
type AuthDisableResponse ¶
type AuthDisableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthDisableResponse) Descriptor ¶
func (*AuthDisableResponse) Descriptor() ([]byte, []int)
func (*AuthDisableResponse) GetHeader ¶
func (m *AuthDisableResponse) GetHeader() *ResponseHeader
func (*AuthDisableResponse) Marshal ¶
func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error)
func (*AuthDisableResponse) MarshalTo ¶
func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthDisableResponse) ProtoMessage ¶
func (*AuthDisableResponse) ProtoMessage()
func (*AuthDisableResponse) Reset ¶
func (m *AuthDisableResponse) Reset()
func (*AuthDisableResponse) Size ¶
func (m *AuthDisableResponse) Size() (n int)
func (*AuthDisableResponse) String ¶
func (m *AuthDisableResponse) String() string
func (*AuthDisableResponse) Unmarshal ¶
func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error
type AuthEnableRequest ¶
type AuthEnableRequest struct { }
func (*AuthEnableRequest) Descriptor ¶
func (*AuthEnableRequest) Descriptor() ([]byte, []int)
func (*AuthEnableRequest) Marshal ¶
func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error)
func (*AuthEnableRequest) MarshalTo ¶
func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthEnableRequest) ProtoMessage ¶
func (*AuthEnableRequest) ProtoMessage()
func (*AuthEnableRequest) Reset ¶
func (m *AuthEnableRequest) Reset()
func (*AuthEnableRequest) Size ¶
func (m *AuthEnableRequest) Size() (n int)
func (*AuthEnableRequest) String ¶
func (m *AuthEnableRequest) String() string
func (*AuthEnableRequest) Unmarshal ¶
func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error
type AuthEnableResponse ¶
type AuthEnableResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthEnableResponse) Descriptor ¶
func (*AuthEnableResponse) Descriptor() ([]byte, []int)
func (*AuthEnableResponse) GetHeader ¶
func (m *AuthEnableResponse) GetHeader() *ResponseHeader
func (*AuthEnableResponse) Marshal ¶
func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error)
func (*AuthEnableResponse) MarshalTo ¶
func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthEnableResponse) ProtoMessage ¶
func (*AuthEnableResponse) ProtoMessage()
func (*AuthEnableResponse) Reset ¶
func (m *AuthEnableResponse) Reset()
func (*AuthEnableResponse) Size ¶
func (m *AuthEnableResponse) Size() (n int)
func (*AuthEnableResponse) String ¶
func (m *AuthEnableResponse) String() string
func (*AuthEnableResponse) Unmarshal ¶
func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AuthRoleAddRequest) Descriptor ¶
func (*AuthRoleAddRequest) Descriptor() ([]byte, []int)
func (*AuthRoleAddRequest) GetName ¶
func (m *AuthRoleAddRequest) GetName() string
func (*AuthRoleAddRequest) Marshal ¶
func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error)
func (*AuthRoleAddRequest) MarshalTo ¶
func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleAddRequest) ProtoMessage ¶
func (*AuthRoleAddRequest) ProtoMessage()
func (*AuthRoleAddRequest) Reset ¶
func (m *AuthRoleAddRequest) Reset()
func (*AuthRoleAddRequest) Size ¶
func (m *AuthRoleAddRequest) Size() (n int)
func (*AuthRoleAddRequest) String ¶
func (m *AuthRoleAddRequest) String() string
func (*AuthRoleAddRequest) Unmarshal ¶
func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error
type AuthRoleAddResponse ¶
type AuthRoleAddResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthRoleAddResponse) Descriptor ¶
func (*AuthRoleAddResponse) Descriptor() ([]byte, []int)
func (*AuthRoleAddResponse) GetHeader ¶
func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader
func (*AuthRoleAddResponse) Marshal ¶
func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error)
func (*AuthRoleAddResponse) MarshalTo ¶
func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleAddResponse) ProtoMessage ¶
func (*AuthRoleAddResponse) ProtoMessage()
func (*AuthRoleAddResponse) Reset ¶
func (m *AuthRoleAddResponse) Reset()
func (*AuthRoleAddResponse) Size ¶
func (m *AuthRoleAddResponse) Size() (n int)
func (*AuthRoleAddResponse) String ¶
func (m *AuthRoleAddResponse) String() string
func (*AuthRoleAddResponse) Unmarshal ¶
func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error
type AuthRoleDeleteRequest ¶
type AuthRoleDeleteRequest struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
}
func (*AuthRoleDeleteRequest) Descriptor ¶
func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int)
func (*AuthRoleDeleteRequest) GetRole ¶
func (m *AuthRoleDeleteRequest) GetRole() string
func (*AuthRoleDeleteRequest) Marshal ¶
func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error)
func (*AuthRoleDeleteRequest) MarshalTo ¶
func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleDeleteRequest) ProtoMessage ¶
func (*AuthRoleDeleteRequest) ProtoMessage()
func (*AuthRoleDeleteRequest) Reset ¶
func (m *AuthRoleDeleteRequest) Reset()
func (*AuthRoleDeleteRequest) Size ¶
func (m *AuthRoleDeleteRequest) Size() (n int)
func (*AuthRoleDeleteRequest) String ¶
func (m *AuthRoleDeleteRequest) String() string
func (*AuthRoleDeleteRequest) Unmarshal ¶
func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error
type AuthRoleDeleteResponse ¶
type AuthRoleDeleteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthRoleDeleteResponse) Descriptor ¶
func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int)
func (*AuthRoleDeleteResponse) GetHeader ¶
func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader
func (*AuthRoleDeleteResponse) Marshal ¶
func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error)
func (*AuthRoleDeleteResponse) MarshalTo ¶
func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleDeleteResponse) ProtoMessage ¶
func (*AuthRoleDeleteResponse) ProtoMessage()
func (*AuthRoleDeleteResponse) Reset ¶
func (m *AuthRoleDeleteResponse) Reset()
func (*AuthRoleDeleteResponse) Size ¶
func (m *AuthRoleDeleteResponse) Size() (n int)
func (*AuthRoleDeleteResponse) String ¶
func (m *AuthRoleDeleteResponse) String() string
func (*AuthRoleDeleteResponse) Unmarshal ¶
func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error
type AuthRoleGetRequest ¶
type AuthRoleGetRequest struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
}
func (*AuthRoleGetRequest) Descriptor ¶
func (*AuthRoleGetRequest) Descriptor() ([]byte, []int)
func (*AuthRoleGetRequest) GetRole ¶
func (m *AuthRoleGetRequest) GetRole() string
func (*AuthRoleGetRequest) Marshal ¶
func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error)
func (*AuthRoleGetRequest) MarshalTo ¶
func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleGetRequest) ProtoMessage ¶
func (*AuthRoleGetRequest) ProtoMessage()
func (*AuthRoleGetRequest) Reset ¶
func (m *AuthRoleGetRequest) Reset()
func (*AuthRoleGetRequest) Size ¶
func (m *AuthRoleGetRequest) Size() (n int)
func (*AuthRoleGetRequest) String ¶
func (m *AuthRoleGetRequest) String() string
func (*AuthRoleGetRequest) Unmarshal ¶
func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error
type AuthRoleGetResponse ¶
type AuthRoleGetResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm" json:"perm,omitempty"` }
func (*AuthRoleGetResponse) Descriptor ¶
func (*AuthRoleGetResponse) Descriptor() ([]byte, []int)
func (*AuthRoleGetResponse) GetHeader ¶
func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader
func (*AuthRoleGetResponse) GetPerm ¶
func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission
func (*AuthRoleGetResponse) Marshal ¶
func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error)
func (*AuthRoleGetResponse) MarshalTo ¶
func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleGetResponse) ProtoMessage ¶
func (*AuthRoleGetResponse) ProtoMessage()
func (*AuthRoleGetResponse) Reset ¶
func (m *AuthRoleGetResponse) Reset()
func (*AuthRoleGetResponse) Size ¶
func (m *AuthRoleGetResponse) Size() (n int)
func (*AuthRoleGetResponse) String ¶
func (m *AuthRoleGetResponse) String() string
func (*AuthRoleGetResponse) Unmarshal ¶
func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error
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" json:"perm,omitempty"` }
func (*AuthRoleGrantPermissionRequest) Descriptor ¶
func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int)
func (*AuthRoleGrantPermissionRequest) GetName ¶
func (m *AuthRoleGrantPermissionRequest) GetName() string
func (*AuthRoleGrantPermissionRequest) GetPerm ¶
func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission
func (*AuthRoleGrantPermissionRequest) Marshal ¶
func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error)
func (*AuthRoleGrantPermissionRequest) MarshalTo ¶
func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleGrantPermissionRequest) ProtoMessage ¶
func (*AuthRoleGrantPermissionRequest) ProtoMessage()
func (*AuthRoleGrantPermissionRequest) Reset ¶
func (m *AuthRoleGrantPermissionRequest) Reset()
func (*AuthRoleGrantPermissionRequest) Size ¶
func (m *AuthRoleGrantPermissionRequest) Size() (n int)
func (*AuthRoleGrantPermissionRequest) String ¶
func (m *AuthRoleGrantPermissionRequest) String() string
func (*AuthRoleGrantPermissionRequest) Unmarshal ¶
func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error
type AuthRoleGrantPermissionResponse ¶
type AuthRoleGrantPermissionResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthRoleGrantPermissionResponse) Descriptor ¶
func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int)
func (*AuthRoleGrantPermissionResponse) GetHeader ¶
func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader
func (*AuthRoleGrantPermissionResponse) Marshal ¶
func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error)
func (*AuthRoleGrantPermissionResponse) MarshalTo ¶
func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleGrantPermissionResponse) ProtoMessage ¶
func (*AuthRoleGrantPermissionResponse) ProtoMessage()
func (*AuthRoleGrantPermissionResponse) Reset ¶
func (m *AuthRoleGrantPermissionResponse) Reset()
func (*AuthRoleGrantPermissionResponse) Size ¶
func (m *AuthRoleGrantPermissionResponse) Size() (n int)
func (*AuthRoleGrantPermissionResponse) String ¶
func (m *AuthRoleGrantPermissionResponse) String() string
func (*AuthRoleGrantPermissionResponse) Unmarshal ¶
func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error
type AuthRoleListRequest ¶
type AuthRoleListRequest struct { }
func (*AuthRoleListRequest) Descriptor ¶
func (*AuthRoleListRequest) Descriptor() ([]byte, []int)
func (*AuthRoleListRequest) Marshal ¶
func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error)
func (*AuthRoleListRequest) MarshalTo ¶
func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleListRequest) ProtoMessage ¶
func (*AuthRoleListRequest) ProtoMessage()
func (*AuthRoleListRequest) Reset ¶
func (m *AuthRoleListRequest) Reset()
func (*AuthRoleListRequest) Size ¶
func (m *AuthRoleListRequest) Size() (n int)
func (*AuthRoleListRequest) String ¶
func (m *AuthRoleListRequest) String() string
func (*AuthRoleListRequest) Unmarshal ¶
func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error
type AuthRoleListResponse ¶
type AuthRoleListResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` }
func (*AuthRoleListResponse) Descriptor ¶
func (*AuthRoleListResponse) Descriptor() ([]byte, []int)
func (*AuthRoleListResponse) GetHeader ¶
func (m *AuthRoleListResponse) GetHeader() *ResponseHeader
func (*AuthRoleListResponse) GetRoles ¶
func (m *AuthRoleListResponse) GetRoles() []string
func (*AuthRoleListResponse) Marshal ¶
func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error)
func (*AuthRoleListResponse) MarshalTo ¶
func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleListResponse) ProtoMessage ¶
func (*AuthRoleListResponse) ProtoMessage()
func (*AuthRoleListResponse) Reset ¶
func (m *AuthRoleListResponse) Reset()
func (*AuthRoleListResponse) Size ¶
func (m *AuthRoleListResponse) Size() (n int)
func (*AuthRoleListResponse) String ¶
func (m *AuthRoleListResponse) String() string
func (*AuthRoleListResponse) Unmarshal ¶
func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AuthRoleRevokePermissionRequest) Descriptor ¶
func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int)
func (*AuthRoleRevokePermissionRequest) GetKey ¶
func (m *AuthRoleRevokePermissionRequest) GetKey() []byte
func (*AuthRoleRevokePermissionRequest) GetRangeEnd ¶
func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte
func (*AuthRoleRevokePermissionRequest) GetRole ¶
func (m *AuthRoleRevokePermissionRequest) GetRole() string
func (*AuthRoleRevokePermissionRequest) Marshal ¶
func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error)
func (*AuthRoleRevokePermissionRequest) MarshalTo ¶
func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleRevokePermissionRequest) ProtoMessage ¶
func (*AuthRoleRevokePermissionRequest) ProtoMessage()
func (*AuthRoleRevokePermissionRequest) Reset ¶
func (m *AuthRoleRevokePermissionRequest) Reset()
func (*AuthRoleRevokePermissionRequest) Size ¶
func (m *AuthRoleRevokePermissionRequest) Size() (n int)
func (*AuthRoleRevokePermissionRequest) String ¶
func (m *AuthRoleRevokePermissionRequest) String() string
func (*AuthRoleRevokePermissionRequest) Unmarshal ¶
func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error
type AuthRoleRevokePermissionResponse ¶
type AuthRoleRevokePermissionResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthRoleRevokePermissionResponse) Descriptor ¶
func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int)
func (*AuthRoleRevokePermissionResponse) GetHeader ¶
func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader
func (*AuthRoleRevokePermissionResponse) Marshal ¶
func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error)
func (*AuthRoleRevokePermissionResponse) MarshalTo ¶
func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthRoleRevokePermissionResponse) ProtoMessage ¶
func (*AuthRoleRevokePermissionResponse) ProtoMessage()
func (*AuthRoleRevokePermissionResponse) Reset ¶
func (m *AuthRoleRevokePermissionResponse) Reset()
func (*AuthRoleRevokePermissionResponse) Size ¶
func (m *AuthRoleRevokePermissionResponse) Size() (n int)
func (*AuthRoleRevokePermissionResponse) String ¶
func (m *AuthRoleRevokePermissionResponse) String() string
func (*AuthRoleRevokePermissionResponse) Unmarshal ¶
func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error
type AuthServer ¶
type AuthServer interface { // AuthEnable enables authentication. AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error) // AuthDisable disables authentication. AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, 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) // UserGrant 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) }
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" json:"options,omitempty"` }
func (*AuthUserAddRequest) Descriptor ¶
func (*AuthUserAddRequest) Descriptor() ([]byte, []int)
func (*AuthUserAddRequest) GetName ¶
func (m *AuthUserAddRequest) GetName() string
func (*AuthUserAddRequest) GetOptions ¶
func (m *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions
func (*AuthUserAddRequest) GetPassword ¶
func (m *AuthUserAddRequest) GetPassword() string
func (*AuthUserAddRequest) Marshal ¶
func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserAddRequest) MarshalTo ¶
func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserAddRequest) ProtoMessage ¶
func (*AuthUserAddRequest) ProtoMessage()
func (*AuthUserAddRequest) Reset ¶
func (m *AuthUserAddRequest) Reset()
func (*AuthUserAddRequest) Size ¶
func (m *AuthUserAddRequest) Size() (n int)
func (*AuthUserAddRequest) String ¶
func (m *AuthUserAddRequest) String() string
func (*AuthUserAddRequest) Unmarshal ¶
func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error
type AuthUserAddResponse ¶
type AuthUserAddResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserAddResponse) Descriptor ¶
func (*AuthUserAddResponse) Descriptor() ([]byte, []int)
func (*AuthUserAddResponse) GetHeader ¶
func (m *AuthUserAddResponse) GetHeader() *ResponseHeader
func (*AuthUserAddResponse) Marshal ¶
func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserAddResponse) MarshalTo ¶
func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserAddResponse) ProtoMessage ¶
func (*AuthUserAddResponse) ProtoMessage()
func (*AuthUserAddResponse) Reset ¶
func (m *AuthUserAddResponse) Reset()
func (*AuthUserAddResponse) Size ¶
func (m *AuthUserAddResponse) Size() (n int)
func (*AuthUserAddResponse) String ¶
func (m *AuthUserAddResponse) String() string
func (*AuthUserAddResponse) Unmarshal ¶
func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error
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. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` }
func (*AuthUserChangePasswordRequest) Descriptor ¶
func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int)
func (*AuthUserChangePasswordRequest) GetName ¶
func (m *AuthUserChangePasswordRequest) GetName() string
func (*AuthUserChangePasswordRequest) GetPassword ¶
func (m *AuthUserChangePasswordRequest) GetPassword() string
func (*AuthUserChangePasswordRequest) Marshal ¶
func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserChangePasswordRequest) MarshalTo ¶
func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserChangePasswordRequest) ProtoMessage ¶
func (*AuthUserChangePasswordRequest) ProtoMessage()
func (*AuthUserChangePasswordRequest) Reset ¶
func (m *AuthUserChangePasswordRequest) Reset()
func (*AuthUserChangePasswordRequest) Size ¶
func (m *AuthUserChangePasswordRequest) Size() (n int)
func (*AuthUserChangePasswordRequest) String ¶
func (m *AuthUserChangePasswordRequest) String() string
func (*AuthUserChangePasswordRequest) Unmarshal ¶
func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error
type AuthUserChangePasswordResponse ¶
type AuthUserChangePasswordResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserChangePasswordResponse) Descriptor ¶
func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int)
func (*AuthUserChangePasswordResponse) GetHeader ¶
func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader
func (*AuthUserChangePasswordResponse) Marshal ¶
func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserChangePasswordResponse) MarshalTo ¶
func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserChangePasswordResponse) ProtoMessage ¶
func (*AuthUserChangePasswordResponse) ProtoMessage()
func (*AuthUserChangePasswordResponse) Reset ¶
func (m *AuthUserChangePasswordResponse) Reset()
func (*AuthUserChangePasswordResponse) Size ¶
func (m *AuthUserChangePasswordResponse) Size() (n int)
func (*AuthUserChangePasswordResponse) String ¶
func (m *AuthUserChangePasswordResponse) String() string
func (*AuthUserChangePasswordResponse) Unmarshal ¶
func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AuthUserDeleteRequest) Descriptor ¶
func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int)
func (*AuthUserDeleteRequest) GetName ¶
func (m *AuthUserDeleteRequest) GetName() string
func (*AuthUserDeleteRequest) Marshal ¶
func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserDeleteRequest) MarshalTo ¶
func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserDeleteRequest) ProtoMessage ¶
func (*AuthUserDeleteRequest) ProtoMessage()
func (*AuthUserDeleteRequest) Reset ¶
func (m *AuthUserDeleteRequest) Reset()
func (*AuthUserDeleteRequest) Size ¶
func (m *AuthUserDeleteRequest) Size() (n int)
func (*AuthUserDeleteRequest) String ¶
func (m *AuthUserDeleteRequest) String() string
func (*AuthUserDeleteRequest) Unmarshal ¶
func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error
type AuthUserDeleteResponse ¶
type AuthUserDeleteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserDeleteResponse) Descriptor ¶
func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int)
func (*AuthUserDeleteResponse) GetHeader ¶
func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader
func (*AuthUserDeleteResponse) Marshal ¶
func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserDeleteResponse) MarshalTo ¶
func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserDeleteResponse) ProtoMessage ¶
func (*AuthUserDeleteResponse) ProtoMessage()
func (*AuthUserDeleteResponse) Reset ¶
func (m *AuthUserDeleteResponse) Reset()
func (*AuthUserDeleteResponse) Size ¶
func (m *AuthUserDeleteResponse) Size() (n int)
func (*AuthUserDeleteResponse) String ¶
func (m *AuthUserDeleteResponse) String() string
func (*AuthUserDeleteResponse) Unmarshal ¶
func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error
type AuthUserGetRequest ¶
type AuthUserGetRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*AuthUserGetRequest) Descriptor ¶
func (*AuthUserGetRequest) Descriptor() ([]byte, []int)
func (*AuthUserGetRequest) GetName ¶
func (m *AuthUserGetRequest) GetName() string
func (*AuthUserGetRequest) Marshal ¶
func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserGetRequest) MarshalTo ¶
func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserGetRequest) ProtoMessage ¶
func (*AuthUserGetRequest) ProtoMessage()
func (*AuthUserGetRequest) Reset ¶
func (m *AuthUserGetRequest) Reset()
func (*AuthUserGetRequest) Size ¶
func (m *AuthUserGetRequest) Size() (n int)
func (*AuthUserGetRequest) String ¶
func (m *AuthUserGetRequest) String() string
func (*AuthUserGetRequest) Unmarshal ¶
func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error
type AuthUserGetResponse ¶
type AuthUserGetResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` }
func (*AuthUserGetResponse) Descriptor ¶
func (*AuthUserGetResponse) Descriptor() ([]byte, []int)
func (*AuthUserGetResponse) GetHeader ¶
func (m *AuthUserGetResponse) GetHeader() *ResponseHeader
func (*AuthUserGetResponse) GetRoles ¶
func (m *AuthUserGetResponse) GetRoles() []string
func (*AuthUserGetResponse) Marshal ¶
func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserGetResponse) MarshalTo ¶
func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserGetResponse) ProtoMessage ¶
func (*AuthUserGetResponse) ProtoMessage()
func (*AuthUserGetResponse) Reset ¶
func (m *AuthUserGetResponse) Reset()
func (*AuthUserGetResponse) Size ¶
func (m *AuthUserGetResponse) Size() (n int)
func (*AuthUserGetResponse) String ¶
func (m *AuthUserGetResponse) String() string
func (*AuthUserGetResponse) Unmarshal ¶
func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AuthUserGrantRoleRequest) Descriptor ¶
func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int)
func (*AuthUserGrantRoleRequest) GetRole ¶
func (m *AuthUserGrantRoleRequest) GetRole() string
func (*AuthUserGrantRoleRequest) GetUser ¶
func (m *AuthUserGrantRoleRequest) GetUser() string
func (*AuthUserGrantRoleRequest) Marshal ¶
func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserGrantRoleRequest) MarshalTo ¶
func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserGrantRoleRequest) ProtoMessage ¶
func (*AuthUserGrantRoleRequest) ProtoMessage()
func (*AuthUserGrantRoleRequest) Reset ¶
func (m *AuthUserGrantRoleRequest) Reset()
func (*AuthUserGrantRoleRequest) Size ¶
func (m *AuthUserGrantRoleRequest) Size() (n int)
func (*AuthUserGrantRoleRequest) String ¶
func (m *AuthUserGrantRoleRequest) String() string
func (*AuthUserGrantRoleRequest) Unmarshal ¶
func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error
type AuthUserGrantRoleResponse ¶
type AuthUserGrantRoleResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserGrantRoleResponse) Descriptor ¶
func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int)
func (*AuthUserGrantRoleResponse) GetHeader ¶
func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader
func (*AuthUserGrantRoleResponse) Marshal ¶
func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserGrantRoleResponse) MarshalTo ¶
func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserGrantRoleResponse) ProtoMessage ¶
func (*AuthUserGrantRoleResponse) ProtoMessage()
func (*AuthUserGrantRoleResponse) Reset ¶
func (m *AuthUserGrantRoleResponse) Reset()
func (*AuthUserGrantRoleResponse) Size ¶
func (m *AuthUserGrantRoleResponse) Size() (n int)
func (*AuthUserGrantRoleResponse) String ¶
func (m *AuthUserGrantRoleResponse) String() string
func (*AuthUserGrantRoleResponse) Unmarshal ¶
func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error
type AuthUserListRequest ¶
type AuthUserListRequest struct { }
func (*AuthUserListRequest) Descriptor ¶
func (*AuthUserListRequest) Descriptor() ([]byte, []int)
func (*AuthUserListRequest) Marshal ¶
func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserListRequest) MarshalTo ¶
func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserListRequest) ProtoMessage ¶
func (*AuthUserListRequest) ProtoMessage()
func (*AuthUserListRequest) Reset ¶
func (m *AuthUserListRequest) Reset()
func (*AuthUserListRequest) Size ¶
func (m *AuthUserListRequest) Size() (n int)
func (*AuthUserListRequest) String ¶
func (m *AuthUserListRequest) String() string
func (*AuthUserListRequest) Unmarshal ¶
func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error
type AuthUserListResponse ¶
type AuthUserListResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Users []string `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"` }
func (*AuthUserListResponse) Descriptor ¶
func (*AuthUserListResponse) Descriptor() ([]byte, []int)
func (*AuthUserListResponse) GetHeader ¶
func (m *AuthUserListResponse) GetHeader() *ResponseHeader
func (*AuthUserListResponse) GetUsers ¶
func (m *AuthUserListResponse) GetUsers() []string
func (*AuthUserListResponse) Marshal ¶
func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserListResponse) MarshalTo ¶
func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserListResponse) ProtoMessage ¶
func (*AuthUserListResponse) ProtoMessage()
func (*AuthUserListResponse) Reset ¶
func (m *AuthUserListResponse) Reset()
func (*AuthUserListResponse) Size ¶
func (m *AuthUserListResponse) Size() (n int)
func (*AuthUserListResponse) String ¶
func (m *AuthUserListResponse) String() string
func (*AuthUserListResponse) Unmarshal ¶
func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AuthUserRevokeRoleRequest) Descriptor ¶
func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int)
func (*AuthUserRevokeRoleRequest) GetName ¶
func (m *AuthUserRevokeRoleRequest) GetName() string
func (*AuthUserRevokeRoleRequest) GetRole ¶
func (m *AuthUserRevokeRoleRequest) GetRole() string
func (*AuthUserRevokeRoleRequest) Marshal ¶
func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error)
func (*AuthUserRevokeRoleRequest) MarshalTo ¶
func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserRevokeRoleRequest) ProtoMessage ¶
func (*AuthUserRevokeRoleRequest) ProtoMessage()
func (*AuthUserRevokeRoleRequest) Reset ¶
func (m *AuthUserRevokeRoleRequest) Reset()
func (*AuthUserRevokeRoleRequest) Size ¶
func (m *AuthUserRevokeRoleRequest) Size() (n int)
func (*AuthUserRevokeRoleRequest) String ¶
func (m *AuthUserRevokeRoleRequest) String() string
func (*AuthUserRevokeRoleRequest) Unmarshal ¶
func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error
type AuthUserRevokeRoleResponse ¶
type AuthUserRevokeRoleResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserRevokeRoleResponse) Descriptor ¶
func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int)
func (*AuthUserRevokeRoleResponse) GetHeader ¶
func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader
func (*AuthUserRevokeRoleResponse) Marshal ¶
func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error)
func (*AuthUserRevokeRoleResponse) MarshalTo ¶
func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthUserRevokeRoleResponse) ProtoMessage ¶
func (*AuthUserRevokeRoleResponse) ProtoMessage()
func (*AuthUserRevokeRoleResponse) Reset ¶
func (m *AuthUserRevokeRoleResponse) Reset()
func (*AuthUserRevokeRoleResponse) Size ¶
func (m *AuthUserRevokeRoleResponse) Size() (n int)
func (*AuthUserRevokeRoleResponse) String ¶
func (m *AuthUserRevokeRoleResponse) String() string
func (*AuthUserRevokeRoleResponse) Unmarshal ¶
func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AuthenticateRequest) Descriptor ¶
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
func (*AuthenticateRequest) GetName ¶
func (m *AuthenticateRequest) GetName() string
func (*AuthenticateRequest) GetPassword ¶
func (m *AuthenticateRequest) GetPassword() string
func (*AuthenticateRequest) Marshal ¶
func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)
func (*AuthenticateRequest) MarshalTo ¶
func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) Reset ¶
func (m *AuthenticateRequest) Reset()
func (*AuthenticateRequest) Size ¶
func (m *AuthenticateRequest) Size() (n int)
func (*AuthenticateRequest) String ¶
func (m *AuthenticateRequest) String() string
func (*AuthenticateRequest) Unmarshal ¶
func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error
type AuthenticateResponse ¶
type AuthenticateResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` }
func (*AuthenticateResponse) Descriptor ¶
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
func (*AuthenticateResponse) GetHeader ¶
func (m *AuthenticateResponse) GetHeader() *ResponseHeader
func (*AuthenticateResponse) GetToken ¶
func (m *AuthenticateResponse) GetToken() string
func (*AuthenticateResponse) Marshal ¶
func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)
func (*AuthenticateResponse) MarshalTo ¶
func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) Reset ¶
func (m *AuthenticateResponse) Reset()
func (*AuthenticateResponse) Size ¶
func (m *AuthenticateResponse) Size() (n int)
func (*AuthenticateResponse) String ¶
func (m *AuthenticateResponse) String() string
func (*AuthenticateResponse) Unmarshal ¶
func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error
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) }
func NewClusterClient ¶
func NewClusterClient(cc *grpc.ClientConn) 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) }
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"` }
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 ¶
func (*CompactionRequest) Descriptor() ([]byte, []int)
func (*CompactionRequest) GetPhysical ¶
func (m *CompactionRequest) GetPhysical() bool
func (*CompactionRequest) GetRevision ¶
func (m *CompactionRequest) GetRevision() int64
func (*CompactionRequest) Marshal ¶
func (m *CompactionRequest) Marshal() (dAtA []byte, err error)
func (*CompactionRequest) MarshalTo ¶
func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error)
func (*CompactionRequest) ProtoMessage ¶
func (*CompactionRequest) ProtoMessage()
func (*CompactionRequest) Reset ¶
func (m *CompactionRequest) Reset()
func (*CompactionRequest) Size ¶
func (m *CompactionRequest) Size() (n int)
func (*CompactionRequest) String ¶
func (m *CompactionRequest) String() string
func (*CompactionRequest) Unmarshal ¶
func (m *CompactionRequest) Unmarshal(dAtA []byte) error
type CompactionResponse ¶
type CompactionResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*CompactionResponse) Descriptor ¶
func (*CompactionResponse) Descriptor() ([]byte, []int)
func (*CompactionResponse) GetHeader ¶
func (m *CompactionResponse) GetHeader() *ResponseHeader
func (*CompactionResponse) Marshal ¶
func (m *CompactionResponse) Marshal() (dAtA []byte, err error)
func (*CompactionResponse) MarshalTo ¶
func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error)
func (*CompactionResponse) ProtoMessage ¶
func (*CompactionResponse) ProtoMessage()
func (*CompactionResponse) Reset ¶
func (m *CompactionResponse) Reset()
func (*CompactionResponse) Size ¶
func (m *CompactionResponse) Size() (n int)
func (*CompactionResponse) String ¶
func (m *CompactionResponse) String() string
func (*CompactionResponse) Unmarshal ¶
func (m *CompactionResponse) Unmarshal(dAtA []byte) error
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"` }
func (*Compare) GetResult ¶
func (m *Compare) GetResult() Compare_CompareResult
func (*Compare) GetTarget ¶
func (m *Compare) GetTarget() Compare_CompareTarget
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) EnumDescriptor ¶
func (Compare_CompareResult) EnumDescriptor() ([]byte, []int)
func (Compare_CompareResult) String ¶
func (x Compare_CompareResult) String() string
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) EnumDescriptor ¶
func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int)
func (Compare_CompareTarget) String ¶
func (x Compare_CompareTarget) String() string
type Compare_CreateRevision ¶
type Compare_CreateRevision struct {
CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"`
}
func (*Compare_CreateRevision) MarshalTo ¶
func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error)
func (*Compare_CreateRevision) Size ¶
func (m *Compare_CreateRevision) Size() (n int)
type Compare_Lease ¶
type Compare_Lease struct {
Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof"`
}
func (*Compare_Lease) MarshalTo ¶
func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error)
func (*Compare_Lease) Size ¶
func (m *Compare_Lease) Size() (n int)
type Compare_ModRevision ¶
type Compare_ModRevision struct {
ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"`
}
func (*Compare_ModRevision) MarshalTo ¶
func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error)
func (*Compare_ModRevision) Size ¶
func (m *Compare_ModRevision) Size() (n int)
type Compare_Value ¶
type Compare_Value struct {
Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"`
}
func (*Compare_Value) MarshalTo ¶
func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error)
func (*Compare_Value) Size ¶
func (m *Compare_Value) Size() (n int)
type Compare_Version ¶
type Compare_Version struct {
Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"`
}
func (*Compare_Version) MarshalTo ¶
func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error)
func (*Compare_Version) Size ¶
func (m *Compare_Version) Size() (n int)
type DefragmentRequest ¶
type DefragmentRequest struct { }
func (*DefragmentRequest) Descriptor ¶
func (*DefragmentRequest) Descriptor() ([]byte, []int)
func (*DefragmentRequest) Marshal ¶
func (m *DefragmentRequest) Marshal() (dAtA []byte, err error)
func (*DefragmentRequest) MarshalTo ¶
func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error)
func (*DefragmentRequest) ProtoMessage ¶
func (*DefragmentRequest) ProtoMessage()
func (*DefragmentRequest) Reset ¶
func (m *DefragmentRequest) Reset()
func (*DefragmentRequest) Size ¶
func (m *DefragmentRequest) Size() (n int)
func (*DefragmentRequest) String ¶
func (m *DefragmentRequest) String() string
func (*DefragmentRequest) Unmarshal ¶
func (m *DefragmentRequest) Unmarshal(dAtA []byte) error
type DefragmentResponse ¶
type DefragmentResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*DefragmentResponse) Descriptor ¶
func (*DefragmentResponse) Descriptor() ([]byte, []int)
func (*DefragmentResponse) GetHeader ¶
func (m *DefragmentResponse) GetHeader() *ResponseHeader
func (*DefragmentResponse) Marshal ¶
func (m *DefragmentResponse) Marshal() (dAtA []byte, err error)
func (*DefragmentResponse) MarshalTo ¶
func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error)
func (*DefragmentResponse) ProtoMessage ¶
func (*DefragmentResponse) ProtoMessage()
func (*DefragmentResponse) Reset ¶
func (m *DefragmentResponse) Reset()
func (*DefragmentResponse) Size ¶
func (m *DefragmentResponse) Size() (n int)
func (*DefragmentResponse) String ¶
func (m *DefragmentResponse) String() string
func (*DefragmentResponse) Unmarshal ¶
func (m *DefragmentResponse) Unmarshal(dAtA []byte) error
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"` }
func (*DeleteRangeRequest) Descriptor ¶
func (*DeleteRangeRequest) Descriptor() ([]byte, []int)
func (*DeleteRangeRequest) GetKey ¶
func (m *DeleteRangeRequest) GetKey() []byte
func (*DeleteRangeRequest) GetPrevKv ¶
func (m *DeleteRangeRequest) GetPrevKv() bool
func (*DeleteRangeRequest) GetRangeEnd ¶
func (m *DeleteRangeRequest) GetRangeEnd() []byte
func (*DeleteRangeRequest) Marshal ¶
func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error)
func (*DeleteRangeRequest) MarshalTo ¶
func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteRangeRequest) ProtoMessage ¶
func (*DeleteRangeRequest) ProtoMessage()
func (*DeleteRangeRequest) Reset ¶
func (m *DeleteRangeRequest) Reset()
func (*DeleteRangeRequest) Size ¶
func (m *DeleteRangeRequest) Size() (n int)
func (*DeleteRangeRequest) String ¶
func (m *DeleteRangeRequest) String() string
func (*DeleteRangeRequest) Unmarshal ¶
func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error
type DeleteRangeResponse ¶
type DeleteRangeResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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" json:"prev_kvs,omitempty"` }
func (*DeleteRangeResponse) Descriptor ¶
func (*DeleteRangeResponse) Descriptor() ([]byte, []int)
func (*DeleteRangeResponse) GetDeleted ¶
func (m *DeleteRangeResponse) GetDeleted() int64
func (*DeleteRangeResponse) GetHeader ¶
func (m *DeleteRangeResponse) GetHeader() *ResponseHeader
func (*DeleteRangeResponse) GetPrevKvs ¶
func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue
func (*DeleteRangeResponse) Marshal ¶
func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error)
func (*DeleteRangeResponse) MarshalTo ¶
func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error)
func (*DeleteRangeResponse) ProtoMessage ¶
func (*DeleteRangeResponse) ProtoMessage()
func (*DeleteRangeResponse) Reset ¶
func (m *DeleteRangeResponse) Reset()
func (*DeleteRangeResponse) Size ¶
func (m *DeleteRangeResponse) Size() (n int)
func (*DeleteRangeResponse) String ¶
func (m *DeleteRangeResponse) String() string
func (*DeleteRangeResponse) Unmarshal ¶
func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error
type EmptyResponse ¶
type EmptyResponse struct { }
func (*EmptyResponse) Descriptor ¶
func (*EmptyResponse) Descriptor() ([]byte, []int)
func (*EmptyResponse) Marshal ¶
func (m *EmptyResponse) Marshal() (dAtA []byte, err error)
func (*EmptyResponse) MarshalTo ¶
func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) Reset ¶
func (m *EmptyResponse) Reset()
func (*EmptyResponse) Size ¶
func (m *EmptyResponse) Size() (n int)
func (*EmptyResponse) String ¶
func (m *EmptyResponse) String() string
func (*EmptyResponse) Unmarshal ¶
func (m *EmptyResponse) Unmarshal(dAtA []byte) error
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"` }
func (*HashKVRequest) Descriptor ¶
func (*HashKVRequest) Descriptor() ([]byte, []int)
func (*HashKVRequest) GetRevision ¶
func (m *HashKVRequest) GetRevision() int64
func (*HashKVRequest) Marshal ¶
func (m *HashKVRequest) Marshal() (dAtA []byte, err error)
func (*HashKVRequest) MarshalTo ¶
func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error)
func (*HashKVRequest) ProtoMessage ¶
func (*HashKVRequest) ProtoMessage()
func (*HashKVRequest) Reset ¶
func (m *HashKVRequest) Reset()
func (*HashKVRequest) Size ¶
func (m *HashKVRequest) Size() (n int)
func (*HashKVRequest) String ¶
func (m *HashKVRequest) String() string
func (*HashKVRequest) Unmarshal ¶
func (m *HashKVRequest) Unmarshal(dAtA []byte) error
type HashKVResponse ¶
type HashKVResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` }
func (*HashKVResponse) Descriptor ¶
func (*HashKVResponse) Descriptor() ([]byte, []int)
func (*HashKVResponse) GetCompactRevision ¶
func (m *HashKVResponse) GetCompactRevision() int64
func (*HashKVResponse) GetHash ¶
func (m *HashKVResponse) GetHash() uint32
func (*HashKVResponse) GetHeader ¶
func (m *HashKVResponse) GetHeader() *ResponseHeader
func (*HashKVResponse) Marshal ¶
func (m *HashKVResponse) Marshal() (dAtA []byte, err error)
func (*HashKVResponse) MarshalTo ¶
func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error)
func (*HashKVResponse) ProtoMessage ¶
func (*HashKVResponse) ProtoMessage()
func (*HashKVResponse) Reset ¶
func (m *HashKVResponse) Reset()
func (*HashKVResponse) Size ¶
func (m *HashKVResponse) Size() (n int)
func (*HashKVResponse) String ¶
func (m *HashKVResponse) String() string
func (*HashKVResponse) Unmarshal ¶
func (m *HashKVResponse) Unmarshal(dAtA []byte) error
type HashRequest ¶
type HashRequest struct { }
func (*HashRequest) Descriptor ¶
func (*HashRequest) Descriptor() ([]byte, []int)
func (*HashRequest) Marshal ¶
func (m *HashRequest) Marshal() (dAtA []byte, err error)
func (*HashRequest) MarshalTo ¶
func (m *HashRequest) MarshalTo(dAtA []byte) (int, error)
func (*HashRequest) ProtoMessage ¶
func (*HashRequest) ProtoMessage()
func (*HashRequest) Reset ¶
func (m *HashRequest) Reset()
func (*HashRequest) Size ¶
func (m *HashRequest) Size() (n int)
func (*HashRequest) String ¶
func (m *HashRequest) String() string
func (*HashRequest) Unmarshal ¶
func (m *HashRequest) Unmarshal(dAtA []byte) error
type HashResponse ¶
type HashResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` }
func (*HashResponse) Descriptor ¶
func (*HashResponse) Descriptor() ([]byte, []int)
func (*HashResponse) GetHash ¶
func (m *HashResponse) GetHash() uint32
func (*HashResponse) GetHeader ¶
func (m *HashResponse) GetHeader() *ResponseHeader
func (*HashResponse) Marshal ¶
func (m *HashResponse) Marshal() (dAtA []byte, err error)
func (*HashResponse) MarshalTo ¶
func (m *HashResponse) MarshalTo(dAtA []byte) (int, error)
func (*HashResponse) ProtoMessage ¶
func (*HashResponse) ProtoMessage()
func (*HashResponse) Reset ¶
func (m *HashResponse) Reset()
func (*HashResponse) Size ¶
func (m *HashResponse) Size() (n int)
func (*HashResponse) String ¶
func (m *HashResponse) String() string
func (*HashResponse) Unmarshal ¶
func (m *HashResponse) Unmarshal(dAtA []byte) error
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"` }
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 ¶
func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int)
func (*InternalAuthenticateRequest) Marshal ¶
func (m *InternalAuthenticateRequest) Marshal() (dAtA []byte, err error)
func (*InternalAuthenticateRequest) MarshalTo ¶
func (m *InternalAuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
func (*InternalAuthenticateRequest) ProtoMessage ¶
func (*InternalAuthenticateRequest) ProtoMessage()
func (*InternalAuthenticateRequest) Reset ¶
func (m *InternalAuthenticateRequest) Reset()
func (*InternalAuthenticateRequest) Size ¶
func (m *InternalAuthenticateRequest) Size() (n int)
func (*InternalAuthenticateRequest) String ¶
func (m *InternalAuthenticateRequest) String() string
func (*InternalAuthenticateRequest) Unmarshal ¶
func (m *InternalAuthenticateRequest) Unmarshal(dAtA []byte) error
type InternalRaftRequest ¶
type InternalRaftRequest struct { Header *RequestHeader `protobuf:"bytes,100,opt,name=header" json:"header,omitempty"` ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` V2 *Request `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"` Range *RangeRequest `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"` Put *PutRequest `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` DeleteRange *DeleteRangeRequest `protobuf:"bytes,5,opt,name=delete_range,json=deleteRange" json:"delete_range,omitempty"` Txn *TxnRequest `protobuf:"bytes,6,opt,name=txn" json:"txn,omitempty"` Compaction *CompactionRequest `protobuf:"bytes,7,opt,name=compaction" json:"compaction,omitempty"` LeaseGrant *LeaseGrantRequest `protobuf:"bytes,8,opt,name=lease_grant,json=leaseGrant" json:"lease_grant,omitempty"` LeaseRevoke *LeaseRevokeRequest `protobuf:"bytes,9,opt,name=lease_revoke,json=leaseRevoke" json:"lease_revoke,omitempty"` Alarm *AlarmRequest `protobuf:"bytes,10,opt,name=alarm" json:"alarm,omitempty"` LeaseCheckpoint *LeaseCheckpointRequest `protobuf:"bytes,11,opt,name=lease_checkpoint,json=leaseCheckpoint" json:"lease_checkpoint,omitempty"` AuthEnable *AuthEnableRequest `protobuf:"bytes,1000,opt,name=auth_enable,json=authEnable" json:"auth_enable,omitempty"` AuthDisable *AuthDisableRequest `protobuf:"bytes,1011,opt,name=auth_disable,json=authDisable" json:"auth_disable,omitempty"` Authenticate *InternalAuthenticateRequest `protobuf:"bytes,1012,opt,name=authenticate" json:"authenticate,omitempty"` AuthUserAdd *AuthUserAddRequest `protobuf:"bytes,1100,opt,name=auth_user_add,json=authUserAdd" json:"auth_user_add,omitempty"` AuthUserDelete *AuthUserDeleteRequest `protobuf:"bytes,1101,opt,name=auth_user_delete,json=authUserDelete" json:"auth_user_delete,omitempty"` AuthUserGet *AuthUserGetRequest `protobuf:"bytes,1102,opt,name=auth_user_get,json=authUserGet" json:"auth_user_get,omitempty"` AuthUserChangePassword *AuthUserChangePasswordRequest `` /* 127-byte string literal not displayed */ AuthUserGrantRole *AuthUserGrantRoleRequest `protobuf:"bytes,1104,opt,name=auth_user_grant_role,json=authUserGrantRole" json:"auth_user_grant_role,omitempty"` AuthUserRevokeRole *AuthUserRevokeRoleRequest `protobuf:"bytes,1105,opt,name=auth_user_revoke_role,json=authUserRevokeRole" json:"auth_user_revoke_role,omitempty"` AuthUserList *AuthUserListRequest `protobuf:"bytes,1106,opt,name=auth_user_list,json=authUserList" json:"auth_user_list,omitempty"` AuthRoleList *AuthRoleListRequest `protobuf:"bytes,1107,opt,name=auth_role_list,json=authRoleList" json:"auth_role_list,omitempty"` AuthRoleAdd *AuthRoleAddRequest `protobuf:"bytes,1200,opt,name=auth_role_add,json=authRoleAdd" json:"auth_role_add,omitempty"` AuthRoleDelete *AuthRoleDeleteRequest `protobuf:"bytes,1201,opt,name=auth_role_delete,json=authRoleDelete" json:"auth_role_delete,omitempty"` AuthRoleGet *AuthRoleGetRequest `protobuf:"bytes,1202,opt,name=auth_role_get,json=authRoleGet" json:"auth_role_get,omitempty"` AuthRoleGrantPermission *AuthRoleGrantPermissionRequest `` /* 130-byte string literal not displayed */ AuthRoleRevokePermission *AuthRoleRevokePermissionRequest `` /* 133-byte string literal not displayed */ }
An InternalRaftRequest is the union of all requests which can be sent via raft.
func (*InternalRaftRequest) Descriptor ¶
func (*InternalRaftRequest) Descriptor() ([]byte, []int)
func (*InternalRaftRequest) Marshal ¶
func (m *InternalRaftRequest) Marshal() (dAtA []byte, err error)
func (*InternalRaftRequest) MarshalTo ¶
func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error)
func (*InternalRaftRequest) ProtoMessage ¶
func (*InternalRaftRequest) ProtoMessage()
func (*InternalRaftRequest) Reset ¶
func (m *InternalRaftRequest) Reset()
func (*InternalRaftRequest) Size ¶
func (m *InternalRaftRequest) Size() (n int)
func (*InternalRaftRequest) String ¶
func (m *InternalRaftRequest) String() string
func (*InternalRaftRequest) Unmarshal ¶
func (m *InternalRaftRequest) Unmarshal(dAtA []byte) error
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) // 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) }
func NewKVClient ¶
func NewKVClient(cc *grpc.ClientConn) KVClient
type KVServer ¶
type KVServer interface { // Range gets the keys in the range from the key-value store. Range(context.Context, *RangeRequest) (*RangeResponse, 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) }
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"` }
func (*LeaseCheckpoint) Descriptor ¶
func (*LeaseCheckpoint) Descriptor() ([]byte, []int)
func (*LeaseCheckpoint) GetID ¶
func (m *LeaseCheckpoint) GetID() int64
func (*LeaseCheckpoint) GetRemaining_TTL ¶
func (m *LeaseCheckpoint) GetRemaining_TTL() int64
func (*LeaseCheckpoint) Marshal ¶
func (m *LeaseCheckpoint) Marshal() (dAtA []byte, err error)
func (*LeaseCheckpoint) MarshalTo ¶
func (m *LeaseCheckpoint) MarshalTo(dAtA []byte) (int, error)
func (*LeaseCheckpoint) ProtoMessage ¶
func (*LeaseCheckpoint) ProtoMessage()
func (*LeaseCheckpoint) Reset ¶
func (m *LeaseCheckpoint) Reset()
func (*LeaseCheckpoint) Size ¶
func (m *LeaseCheckpoint) Size() (n int)
func (*LeaseCheckpoint) String ¶
func (m *LeaseCheckpoint) String() string
func (*LeaseCheckpoint) Unmarshal ¶
func (m *LeaseCheckpoint) Unmarshal(dAtA []byte) error
type LeaseCheckpointRequest ¶
type LeaseCheckpointRequest struct {
Checkpoints []*LeaseCheckpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"`
}
func (*LeaseCheckpointRequest) Descriptor ¶
func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int)
func (*LeaseCheckpointRequest) GetCheckpoints ¶
func (m *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint
func (*LeaseCheckpointRequest) Marshal ¶
func (m *LeaseCheckpointRequest) Marshal() (dAtA []byte, err error)
func (*LeaseCheckpointRequest) MarshalTo ¶
func (m *LeaseCheckpointRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseCheckpointRequest) ProtoMessage ¶
func (*LeaseCheckpointRequest) ProtoMessage()
func (*LeaseCheckpointRequest) Reset ¶
func (m *LeaseCheckpointRequest) Reset()
func (*LeaseCheckpointRequest) Size ¶
func (m *LeaseCheckpointRequest) Size() (n int)
func (*LeaseCheckpointRequest) String ¶
func (m *LeaseCheckpointRequest) String() string
func (*LeaseCheckpointRequest) Unmarshal ¶
func (m *LeaseCheckpointRequest) Unmarshal(dAtA []byte) error
type LeaseCheckpointResponse ¶
type LeaseCheckpointResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*LeaseCheckpointResponse) Descriptor ¶
func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int)
func (*LeaseCheckpointResponse) GetHeader ¶
func (m *LeaseCheckpointResponse) GetHeader() *ResponseHeader
func (*LeaseCheckpointResponse) Marshal ¶
func (m *LeaseCheckpointResponse) Marshal() (dAtA []byte, err error)
func (*LeaseCheckpointResponse) MarshalTo ¶
func (m *LeaseCheckpointResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseCheckpointResponse) ProtoMessage ¶
func (*LeaseCheckpointResponse) ProtoMessage()
func (*LeaseCheckpointResponse) Reset ¶
func (m *LeaseCheckpointResponse) Reset()
func (*LeaseCheckpointResponse) Size ¶
func (m *LeaseCheckpointResponse) Size() (n int)
func (*LeaseCheckpointResponse) String ¶
func (m *LeaseCheckpointResponse) String() string
func (*LeaseCheckpointResponse) Unmarshal ¶
func (m *LeaseCheckpointResponse) Unmarshal(dAtA []byte) error
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) (Lease_LeaseKeepAliveClient, 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) }
func NewLeaseClient ¶
func NewLeaseClient(cc *grpc.ClientConn) 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"` }
func (*LeaseGrantRequest) Descriptor ¶
func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
func (*LeaseGrantRequest) GetID ¶
func (m *LeaseGrantRequest) GetID() int64
func (*LeaseGrantRequest) GetTTL ¶
func (m *LeaseGrantRequest) GetTTL() int64
func (*LeaseGrantRequest) Marshal ¶
func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error)
func (*LeaseGrantRequest) MarshalTo ¶
func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseGrantRequest) ProtoMessage ¶
func (*LeaseGrantRequest) ProtoMessage()
func (*LeaseGrantRequest) Reset ¶
func (m *LeaseGrantRequest) Reset()
func (*LeaseGrantRequest) Size ¶
func (m *LeaseGrantRequest) Size() (n int)
func (*LeaseGrantRequest) String ¶
func (m *LeaseGrantRequest) String() string
func (*LeaseGrantRequest) Unmarshal ¶
func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error
type LeaseGrantResponse ¶
type LeaseGrantResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` }
func (*LeaseGrantResponse) Descriptor ¶
func (*LeaseGrantResponse) Descriptor() ([]byte, []int)
func (*LeaseGrantResponse) GetError ¶
func (m *LeaseGrantResponse) GetError() string
func (*LeaseGrantResponse) GetHeader ¶
func (m *LeaseGrantResponse) GetHeader() *ResponseHeader
func (*LeaseGrantResponse) GetID ¶
func (m *LeaseGrantResponse) GetID() int64
func (*LeaseGrantResponse) GetTTL ¶
func (m *LeaseGrantResponse) GetTTL() int64
func (*LeaseGrantResponse) Marshal ¶
func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error)
func (*LeaseGrantResponse) MarshalTo ¶
func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseGrantResponse) ProtoMessage ¶
func (*LeaseGrantResponse) ProtoMessage()
func (*LeaseGrantResponse) Reset ¶
func (m *LeaseGrantResponse) Reset()
func (*LeaseGrantResponse) Size ¶
func (m *LeaseGrantResponse) Size() (n int)
func (*LeaseGrantResponse) String ¶
func (m *LeaseGrantResponse) String() string
func (*LeaseGrantResponse) Unmarshal ¶
func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error
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"` }
func (*LeaseKeepAliveRequest) Descriptor ¶
func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)
func (*LeaseKeepAliveRequest) GetID ¶
func (m *LeaseKeepAliveRequest) GetID() int64
func (*LeaseKeepAliveRequest) Marshal ¶
func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error)
func (*LeaseKeepAliveRequest) MarshalTo ¶
func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseKeepAliveRequest) ProtoMessage ¶
func (*LeaseKeepAliveRequest) ProtoMessage()
func (*LeaseKeepAliveRequest) Reset ¶
func (m *LeaseKeepAliveRequest) Reset()
func (*LeaseKeepAliveRequest) Size ¶
func (m *LeaseKeepAliveRequest) Size() (n int)
func (*LeaseKeepAliveRequest) String ¶
func (m *LeaseKeepAliveRequest) String() string
func (*LeaseKeepAliveRequest) Unmarshal ¶
func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error
type LeaseKeepAliveResponse ¶
type LeaseKeepAliveResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` }
func (*LeaseKeepAliveResponse) Descriptor ¶
func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)
func (*LeaseKeepAliveResponse) GetHeader ¶
func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
func (*LeaseKeepAliveResponse) GetID ¶
func (m *LeaseKeepAliveResponse) GetID() int64
func (*LeaseKeepAliveResponse) GetTTL ¶
func (m *LeaseKeepAliveResponse) GetTTL() int64
func (*LeaseKeepAliveResponse) Marshal ¶
func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error)
func (*LeaseKeepAliveResponse) MarshalTo ¶
func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseKeepAliveResponse) ProtoMessage ¶
func (*LeaseKeepAliveResponse) ProtoMessage()
func (*LeaseKeepAliveResponse) Reset ¶
func (m *LeaseKeepAliveResponse) Reset()
func (*LeaseKeepAliveResponse) Size ¶
func (m *LeaseKeepAliveResponse) Size() (n int)
func (*LeaseKeepAliveResponse) String ¶
func (m *LeaseKeepAliveResponse) String() string
func (*LeaseKeepAliveResponse) Unmarshal ¶
func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error
type LeaseLeasesRequest ¶
type LeaseLeasesRequest struct { }
func (*LeaseLeasesRequest) Descriptor ¶
func (*LeaseLeasesRequest) Descriptor() ([]byte, []int)
func (*LeaseLeasesRequest) Marshal ¶
func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error)
func (*LeaseLeasesRequest) MarshalTo ¶
func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseLeasesRequest) ProtoMessage ¶
func (*LeaseLeasesRequest) ProtoMessage()
func (*LeaseLeasesRequest) Reset ¶
func (m *LeaseLeasesRequest) Reset()
func (*LeaseLeasesRequest) Size ¶
func (m *LeaseLeasesRequest) Size() (n int)
func (*LeaseLeasesRequest) String ¶
func (m *LeaseLeasesRequest) String() string
func (*LeaseLeasesRequest) Unmarshal ¶
func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error
type LeaseLeasesResponse ¶
type LeaseLeasesResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases" json:"leases,omitempty"` }
func (*LeaseLeasesResponse) Descriptor ¶
func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)
func (*LeaseLeasesResponse) GetHeader ¶
func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader
func (*LeaseLeasesResponse) GetLeases ¶
func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus
func (*LeaseLeasesResponse) Marshal ¶
func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error)
func (*LeaseLeasesResponse) MarshalTo ¶
func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseLeasesResponse) ProtoMessage ¶
func (*LeaseLeasesResponse) ProtoMessage()
func (*LeaseLeasesResponse) Reset ¶
func (m *LeaseLeasesResponse) Reset()
func (*LeaseLeasesResponse) Size ¶
func (m *LeaseLeasesResponse) Size() (n int)
func (*LeaseLeasesResponse) String ¶
func (m *LeaseLeasesResponse) String() string
func (*LeaseLeasesResponse) Unmarshal ¶
func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error
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"` }
func (*LeaseRevokeRequest) Descriptor ¶
func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
func (*LeaseRevokeRequest) GetID ¶
func (m *LeaseRevokeRequest) GetID() int64
func (*LeaseRevokeRequest) Marshal ¶
func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error)
func (*LeaseRevokeRequest) MarshalTo ¶
func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseRevokeRequest) ProtoMessage ¶
func (*LeaseRevokeRequest) ProtoMessage()
func (*LeaseRevokeRequest) Reset ¶
func (m *LeaseRevokeRequest) Reset()
func (*LeaseRevokeRequest) Size ¶
func (m *LeaseRevokeRequest) Size() (n int)
func (*LeaseRevokeRequest) String ¶
func (m *LeaseRevokeRequest) String() string
func (*LeaseRevokeRequest) Unmarshal ¶
func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error
type LeaseRevokeResponse ¶
type LeaseRevokeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*LeaseRevokeResponse) Descriptor ¶
func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)
func (*LeaseRevokeResponse) GetHeader ¶
func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader
func (*LeaseRevokeResponse) Marshal ¶
func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error)
func (*LeaseRevokeResponse) MarshalTo ¶
func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseRevokeResponse) ProtoMessage ¶
func (*LeaseRevokeResponse) ProtoMessage()
func (*LeaseRevokeResponse) Reset ¶
func (m *LeaseRevokeResponse) Reset()
func (*LeaseRevokeResponse) Size ¶
func (m *LeaseRevokeResponse) Size() (n int)
func (*LeaseRevokeResponse) String ¶
func (m *LeaseRevokeResponse) String() string
func (*LeaseRevokeResponse) Unmarshal ¶
func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error
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(Lease_LeaseKeepAliveServer) error // LeaseTimeToLive retrieves lease information. LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) // LeaseLeases lists all existing leases. LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error) }
type LeaseStatus ¶
type LeaseStatus struct {
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}
func (*LeaseStatus) Descriptor ¶
func (*LeaseStatus) Descriptor() ([]byte, []int)
func (*LeaseStatus) GetID ¶
func (m *LeaseStatus) GetID() int64
func (*LeaseStatus) Marshal ¶
func (m *LeaseStatus) Marshal() (dAtA []byte, err error)
func (*LeaseStatus) MarshalTo ¶
func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error)
func (*LeaseStatus) ProtoMessage ¶
func (*LeaseStatus) ProtoMessage()
func (*LeaseStatus) Reset ¶
func (m *LeaseStatus) Reset()
func (*LeaseStatus) Size ¶
func (m *LeaseStatus) Size() (n int)
func (*LeaseStatus) String ¶
func (m *LeaseStatus) String() string
func (*LeaseStatus) Unmarshal ¶
func (m *LeaseStatus) Unmarshal(dAtA []byte) error
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"` }
func (*LeaseTimeToLiveRequest) Descriptor ¶
func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)
func (*LeaseTimeToLiveRequest) GetID ¶
func (m *LeaseTimeToLiveRequest) GetID() int64
func (*LeaseTimeToLiveRequest) GetKeys ¶
func (m *LeaseTimeToLiveRequest) GetKeys() bool
func (*LeaseTimeToLiveRequest) Marshal ¶
func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error)
func (*LeaseTimeToLiveRequest) MarshalTo ¶
func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseTimeToLiveRequest) ProtoMessage ¶
func (*LeaseTimeToLiveRequest) ProtoMessage()
func (*LeaseTimeToLiveRequest) Reset ¶
func (m *LeaseTimeToLiveRequest) Reset()
func (*LeaseTimeToLiveRequest) Size ¶
func (m *LeaseTimeToLiveRequest) Size() (n int)
func (*LeaseTimeToLiveRequest) String ¶
func (m *LeaseTimeToLiveRequest) String() string
func (*LeaseTimeToLiveRequest) Unmarshal ¶
func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error
type LeaseTimeToLiveResponse ¶
type LeaseTimeToLiveResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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" json:"keys,omitempty"` }
func (*LeaseTimeToLiveResponse) Descriptor ¶
func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)
func (*LeaseTimeToLiveResponse) GetGrantedTTL ¶
func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64
func (*LeaseTimeToLiveResponse) GetHeader ¶
func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader
func (*LeaseTimeToLiveResponse) GetID ¶
func (m *LeaseTimeToLiveResponse) GetID() int64
func (*LeaseTimeToLiveResponse) GetKeys ¶
func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte
func (*LeaseTimeToLiveResponse) GetTTL ¶
func (m *LeaseTimeToLiveResponse) GetTTL() int64
func (*LeaseTimeToLiveResponse) Marshal ¶
func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error)
func (*LeaseTimeToLiveResponse) MarshalTo ¶
func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseTimeToLiveResponse) ProtoMessage ¶
func (*LeaseTimeToLiveResponse) ProtoMessage()
func (*LeaseTimeToLiveResponse) Reset ¶
func (m *LeaseTimeToLiveResponse) Reset()
func (*LeaseTimeToLiveResponse) Size ¶
func (m *LeaseTimeToLiveResponse) Size() (n int)
func (*LeaseTimeToLiveResponse) String ¶
func (m *LeaseTimeToLiveResponse) String() string
func (*LeaseTimeToLiveResponse) Unmarshal ¶
func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error
type Lease_LeaseKeepAliveClient ¶
type Lease_LeaseKeepAliveClient interface { Send(*LeaseKeepAliveRequest) error Recv() (*LeaseKeepAliveResponse, error) grpc.ClientStream }
type Lease_LeaseKeepAliveServer ¶
type Lease_LeaseKeepAliveServer interface { Send(*LeaseKeepAliveResponse) error Recv() (*LeaseKeepAliveRequest, error) grpc.ServerStream }
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) (Maintenance_SnapshotClient, error) // MoveLeader requests current leader node to transfer its leadership to transferee. MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) }
func NewMaintenanceClient ¶
func NewMaintenanceClient(cc *grpc.ClientConn) 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, Maintenance_SnapshotServer) error // MoveLeader requests current leader node to transfer its leadership to transferee. MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error) }
type Maintenance_SnapshotClient ¶
type Maintenance_SnapshotClient interface { Recv() (*SnapshotResponse, error) grpc.ClientStream }
type Maintenance_SnapshotServer ¶
type Maintenance_SnapshotServer interface { Send(*SnapshotResponse) error grpc.ServerStream }