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 InternalRaftRequest EmptyResponse ResponseHeader RangeRequest RangeResponse PutRequest PutResponse DeleteRangeRequest DeleteRangeResponse RequestUnion ResponseUnion Compare TxnRequest TxnResponse CompactionRequest CompactionResponse HashRequest HashResponse SnapshotRequest SnapshotResponse WatchRequest WatchCreateRequest WatchCancelRequest WatchResponse LeaseGrantRequest LeaseGrantResponse LeaseRevokeRequest LeaseRevokeResponse LeaseKeepAliveRequest LeaseKeepAliveResponse Member MemberAddRequest MemberAddResponse MemberRemoveRequest MemberRemoveResponse MemberUpdateRequest MemberUpdateResponse MemberListRequest MemberListResponse DefragmentRequest DefragmentResponse AlarmRequest AlarmMember AlarmResponse StatusRequest StatusResponse AuthEnableRequest AuthDisableRequest AuthenticateRequest AuthUserAddRequest AuthUserGetRequest AuthUserDeleteRequest AuthUserChangePasswordRequest AuthUserGrantRequest AuthUserRevokeRequest AuthRoleAddRequest AuthRoleGetRequest AuthRoleDeleteRequest AuthRoleGrantRequest AuthRoleRevokeRequest AuthEnableResponse AuthDisableResponse AuthenticateResponse AuthUserAddResponse AuthUserGetResponse AuthUserDeleteResponse AuthUserChangePasswordResponse AuthUserGrantResponse AuthUserRevokeResponse AuthRoleAddResponse AuthRoleGetResponse AuthRoleDeleteResponse AuthRoleGrantResponse AuthRoleRevokeResponse
Index ¶
- Variables
- 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) 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) 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) 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) 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) 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) 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 AuthRoleGrantRequest
- func (*AuthRoleGrantRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleGrantRequest) GetPerm() *authpb.Permission
- func (m *AuthRoleGrantRequest) Marshal() (data []byte, err error)
- func (m *AuthRoleGrantRequest) MarshalTo(data []byte) (int, error)
- func (*AuthRoleGrantRequest) ProtoMessage()
- func (m *AuthRoleGrantRequest) Reset()
- func (m *AuthRoleGrantRequest) Size() (n int)
- func (m *AuthRoleGrantRequest) String() string
- func (m *AuthRoleGrantRequest) Unmarshal(data []byte) error
- type AuthRoleGrantResponse
- func (*AuthRoleGrantResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleGrantResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleGrantResponse) Marshal() (data []byte, err error)
- func (m *AuthRoleGrantResponse) MarshalTo(data []byte) (int, error)
- func (*AuthRoleGrantResponse) ProtoMessage()
- func (m *AuthRoleGrantResponse) Reset()
- func (m *AuthRoleGrantResponse) Size() (n int)
- func (m *AuthRoleGrantResponse) String() string
- func (m *AuthRoleGrantResponse) Unmarshal(data []byte) error
- type AuthRoleRevokeRequest
- func (*AuthRoleRevokeRequest) Descriptor() ([]byte, []int)
- func (m *AuthRoleRevokeRequest) Marshal() (data []byte, err error)
- func (m *AuthRoleRevokeRequest) MarshalTo(data []byte) (int, error)
- func (*AuthRoleRevokeRequest) ProtoMessage()
- func (m *AuthRoleRevokeRequest) Reset()
- func (m *AuthRoleRevokeRequest) Size() (n int)
- func (m *AuthRoleRevokeRequest) String() string
- func (m *AuthRoleRevokeRequest) Unmarshal(data []byte) error
- type AuthRoleRevokeResponse
- func (*AuthRoleRevokeResponse) Descriptor() ([]byte, []int)
- func (m *AuthRoleRevokeResponse) GetHeader() *ResponseHeader
- func (m *AuthRoleRevokeResponse) Marshal() (data []byte, err error)
- func (m *AuthRoleRevokeResponse) MarshalTo(data []byte) (int, error)
- func (*AuthRoleRevokeResponse) ProtoMessage()
- func (m *AuthRoleRevokeResponse) Reset()
- func (m *AuthRoleRevokeResponse) Size() (n int)
- func (m *AuthRoleRevokeResponse) String() string
- func (m *AuthRoleRevokeResponse) Unmarshal(data []byte) error
- type AuthServer
- type AuthUserAddRequest
- func (*AuthUserAddRequest) Descriptor() ([]byte, []int)
- 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) 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) 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) 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) 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 AuthUserGrantRequest
- func (*AuthUserGrantRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserGrantRequest) Marshal() (data []byte, err error)
- func (m *AuthUserGrantRequest) MarshalTo(data []byte) (int, error)
- func (*AuthUserGrantRequest) ProtoMessage()
- func (m *AuthUserGrantRequest) Reset()
- func (m *AuthUserGrantRequest) Size() (n int)
- func (m *AuthUserGrantRequest) String() string
- func (m *AuthUserGrantRequest) Unmarshal(data []byte) error
- type AuthUserGrantResponse
- func (*AuthUserGrantResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserGrantResponse) GetHeader() *ResponseHeader
- func (m *AuthUserGrantResponse) Marshal() (data []byte, err error)
- func (m *AuthUserGrantResponse) MarshalTo(data []byte) (int, error)
- func (*AuthUserGrantResponse) ProtoMessage()
- func (m *AuthUserGrantResponse) Reset()
- func (m *AuthUserGrantResponse) Size() (n int)
- func (m *AuthUserGrantResponse) String() string
- func (m *AuthUserGrantResponse) Unmarshal(data []byte) error
- type AuthUserRevokeRequest
- func (*AuthUserRevokeRequest) Descriptor() ([]byte, []int)
- func (m *AuthUserRevokeRequest) Marshal() (data []byte, err error)
- func (m *AuthUserRevokeRequest) MarshalTo(data []byte) (int, error)
- func (*AuthUserRevokeRequest) ProtoMessage()
- func (m *AuthUserRevokeRequest) Reset()
- func (m *AuthUserRevokeRequest) Size() (n int)
- func (m *AuthUserRevokeRequest) String() string
- func (m *AuthUserRevokeRequest) Unmarshal(data []byte) error
- type AuthUserRevokeResponse
- func (*AuthUserRevokeResponse) Descriptor() ([]byte, []int)
- func (m *AuthUserRevokeResponse) GetHeader() *ResponseHeader
- func (m *AuthUserRevokeResponse) Marshal() (data []byte, err error)
- func (m *AuthUserRevokeResponse) MarshalTo(data []byte) (int, error)
- func (*AuthUserRevokeResponse) ProtoMessage()
- func (m *AuthUserRevokeResponse) Reset()
- func (m *AuthUserRevokeResponse) Size() (n int)
- func (m *AuthUserRevokeResponse) String() string
- func (m *AuthUserRevokeResponse) Unmarshal(data []byte) error
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)
- 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) 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) 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) GetModRevision() int64
- 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_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) 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) GetHeader() *ResponseHeader
- 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 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) 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 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 KVClient
- type KVServer
- type LeaseClient
- type LeaseGrantRequest
- func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
- 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) GetHeader() *ResponseHeader
- 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) 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) 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 LeaseRevokeRequest
- func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
- 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 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) 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) 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) 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 MemberRemoveRequest
- func (*MemberRemoveRequest) Descriptor() ([]byte, []int)
- 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) 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) 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) 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 PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)
- 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) 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) 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) GetHeader() *ResponseHeader
- func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue
- 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 RequestUnion
- func (*RequestUnion) Descriptor() ([]byte, []int)
- func (m *RequestUnion) GetRequest() isRequestUnion_Request
- func (m *RequestUnion) GetRequestDeleteRange() *DeleteRangeRequest
- func (m *RequestUnion) GetRequestPut() *PutRequest
- func (m *RequestUnion) GetRequestRange() *RangeRequest
- func (m *RequestUnion) Marshal() (data []byte, err error)
- func (m *RequestUnion) MarshalTo(data []byte) (int, error)
- func (*RequestUnion) ProtoMessage()
- func (m *RequestUnion) Reset()
- func (m *RequestUnion) Size() (n int)
- func (m *RequestUnion) String() string
- func (m *RequestUnion) Unmarshal(data []byte) error
- func (*RequestUnion) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type RequestUnion_RequestDeleteRange
- type RequestUnion_RequestPut
- type RequestUnion_RequestRange
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)
- 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 ResponseUnion
- func (*ResponseUnion) Descriptor() ([]byte, []int)
- func (m *ResponseUnion) GetResponse() isResponseUnion_Response
- func (m *ResponseUnion) GetResponseDeleteRange() *DeleteRangeResponse
- func (m *ResponseUnion) GetResponsePut() *PutResponse
- func (m *ResponseUnion) GetResponseRange() *RangeResponse
- func (m *ResponseUnion) Marshal() (data []byte, err error)
- func (m *ResponseUnion) MarshalTo(data []byte) (int, error)
- func (*ResponseUnion) ProtoMessage()
- func (m *ResponseUnion) Reset()
- func (m *ResponseUnion) Size() (n int)
- func (m *ResponseUnion) String() string
- func (m *ResponseUnion) Unmarshal(data []byte) error
- func (*ResponseUnion) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ResponseUnion_ResponseDeleteRange
- type ResponseUnion_ResponsePut
- type ResponseUnion_ResponseRange
- 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) GetHeader() *ResponseHeader
- 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) GetHeader() *ResponseHeader
- 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() []*RequestUnion
- func (m *TxnRequest) GetSuccess() []*RequestUnion
- 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() []*ResponseUnion
- 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) 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) 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 WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)
- func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest
- func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest
- 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 WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)
- func (m *WatchResponse) GetEvents() []*mvccpb.Event
- func (m *WatchResponse) GetHeader() *ResponseHeader
- 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 AlarmType_name = map[int32]string{
0: "NONE",
1: "NOSPACE",
}
var AlarmType_value = map[string]int32{
"NONE": 0,
"NOSPACE": 1,
}
var Compare_CompareResult_name = map[int32]string{
0: "EQUAL",
1: "GREATER",
2: "LESS",
}
var Compare_CompareResult_value = map[string]int32{
"EQUAL": 0,
"GREATER": 1,
"LESS": 2,
}
var Compare_CompareTarget_name = map[int32]string{
0: "VERSION",
1: "CREATE",
2: "MOD",
3: "VALUE",
}
var Compare_CompareTarget_value = map[string]int32{
"VERSION": 0,
"CREATE": 1,
"MOD": 2,
"VALUE": 3,
}
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",
}
var RangeRequest_SortTarget_value = map[string]int32{
"KEY": 0,
"VERSION": 1,
"CREATE": 2,
"MOD": 3,
"VALUE": 4,
}
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterClusterServer ¶
func RegisterClusterServer(s *grpc.Server, srv ClusterServer)
func RegisterKVServer ¶
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) Marshal ¶
func (m *AlarmMember) Marshal() (data []byte, err 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) Marshal ¶
func (m *AlarmRequest) Marshal() (data []byte, err 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) 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. UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) // UserGet gets detailed user information or lists all users. UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, 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. UserGrant(ctx context.Context, in *AuthUserGrantRequest, opts ...grpc.CallOption) (*AuthUserGrantResponse, error) // UserRevoke revokes a role of specified user. UserRevoke(ctx context.Context, in *AuthUserRevokeRequest, opts ...grpc.CallOption) (*AuthUserRevokeResponse, error) // RoleAdd adds a new role. RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) // RoleGet gets detailed role information or lists all roles. RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) // RoleDelete deletes a specified role. RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) // RoleGrant grants a permission of a specified key or range to a specified role. RoleGrant(ctx context.Context, in *AuthRoleGrantRequest, opts ...grpc.CallOption) (*AuthRoleGrantResponse, error) // RoleRevoke revokes a key or range permission of a specified role. RoleRevoke(ctx context.Context, in *AuthRoleRevokeRequest, opts ...grpc.CallOption) (*AuthRoleRevokeResponse, 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) 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 { }
func (*AuthRoleDeleteRequest) Descriptor ¶
func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int)
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 { }
func (*AuthRoleGetRequest) Descriptor ¶
func (*AuthRoleGetRequest) Descriptor() ([]byte, []int)
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"`
}
func (*AuthRoleGetResponse) Descriptor ¶
func (*AuthRoleGetResponse) Descriptor() ([]byte, []int)
func (*AuthRoleGetResponse) GetHeader ¶
func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader
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 AuthRoleGrantRequest ¶
type AuthRoleGrantRequest 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 (*AuthRoleGrantRequest) Descriptor ¶
func (*AuthRoleGrantRequest) Descriptor() ([]byte, []int)
func (*AuthRoleGrantRequest) GetPerm ¶
func (m *AuthRoleGrantRequest) GetPerm() *authpb.Permission
func (*AuthRoleGrantRequest) Marshal ¶
func (m *AuthRoleGrantRequest) Marshal() (data []byte, err error)
func (*AuthRoleGrantRequest) MarshalTo ¶
func (m *AuthRoleGrantRequest) MarshalTo(data []byte) (int, error)
func (*AuthRoleGrantRequest) ProtoMessage ¶
func (*AuthRoleGrantRequest) ProtoMessage()
func (*AuthRoleGrantRequest) Reset ¶
func (m *AuthRoleGrantRequest) Reset()
func (*AuthRoleGrantRequest) Size ¶
func (m *AuthRoleGrantRequest) Size() (n int)
func (*AuthRoleGrantRequest) String ¶
func (m *AuthRoleGrantRequest) String() string
func (*AuthRoleGrantRequest) Unmarshal ¶
func (m *AuthRoleGrantRequest) Unmarshal(data []byte) error
type AuthRoleGrantResponse ¶
type AuthRoleGrantResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthRoleGrantResponse) Descriptor ¶
func (*AuthRoleGrantResponse) Descriptor() ([]byte, []int)
func (*AuthRoleGrantResponse) GetHeader ¶
func (m *AuthRoleGrantResponse) GetHeader() *ResponseHeader
func (*AuthRoleGrantResponse) Marshal ¶
func (m *AuthRoleGrantResponse) Marshal() (data []byte, err error)
func (*AuthRoleGrantResponse) MarshalTo ¶
func (m *AuthRoleGrantResponse) MarshalTo(data []byte) (int, error)
func (*AuthRoleGrantResponse) ProtoMessage ¶
func (*AuthRoleGrantResponse) ProtoMessage()
func (*AuthRoleGrantResponse) Reset ¶
func (m *AuthRoleGrantResponse) Reset()
func (*AuthRoleGrantResponse) Size ¶
func (m *AuthRoleGrantResponse) Size() (n int)
func (*AuthRoleGrantResponse) String ¶
func (m *AuthRoleGrantResponse) String() string
func (*AuthRoleGrantResponse) Unmarshal ¶
func (m *AuthRoleGrantResponse) Unmarshal(data []byte) error
type AuthRoleRevokeRequest ¶
type AuthRoleRevokeRequest struct { }
func (*AuthRoleRevokeRequest) Descriptor ¶
func (*AuthRoleRevokeRequest) Descriptor() ([]byte, []int)
func (*AuthRoleRevokeRequest) Marshal ¶
func (m *AuthRoleRevokeRequest) Marshal() (data []byte, err error)
func (*AuthRoleRevokeRequest) MarshalTo ¶
func (m *AuthRoleRevokeRequest) MarshalTo(data []byte) (int, error)
func (*AuthRoleRevokeRequest) ProtoMessage ¶
func (*AuthRoleRevokeRequest) ProtoMessage()
func (*AuthRoleRevokeRequest) Reset ¶
func (m *AuthRoleRevokeRequest) Reset()
func (*AuthRoleRevokeRequest) Size ¶
func (m *AuthRoleRevokeRequest) Size() (n int)
func (*AuthRoleRevokeRequest) String ¶
func (m *AuthRoleRevokeRequest) String() string
func (*AuthRoleRevokeRequest) Unmarshal ¶
func (m *AuthRoleRevokeRequest) Unmarshal(data []byte) error
type AuthRoleRevokeResponse ¶
type AuthRoleRevokeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthRoleRevokeResponse) Descriptor ¶
func (*AuthRoleRevokeResponse) Descriptor() ([]byte, []int)
func (*AuthRoleRevokeResponse) GetHeader ¶
func (m *AuthRoleRevokeResponse) GetHeader() *ResponseHeader
func (*AuthRoleRevokeResponse) Marshal ¶
func (m *AuthRoleRevokeResponse) Marshal() (data []byte, err error)
func (*AuthRoleRevokeResponse) MarshalTo ¶
func (m *AuthRoleRevokeResponse) MarshalTo(data []byte) (int, error)
func (*AuthRoleRevokeResponse) ProtoMessage ¶
func (*AuthRoleRevokeResponse) ProtoMessage()
func (*AuthRoleRevokeResponse) Reset ¶
func (m *AuthRoleRevokeResponse) Reset()
func (*AuthRoleRevokeResponse) Size ¶
func (m *AuthRoleRevokeResponse) Size() (n int)
func (*AuthRoleRevokeResponse) String ¶
func (m *AuthRoleRevokeResponse) String() string
func (*AuthRoleRevokeResponse) Unmarshal ¶
func (m *AuthRoleRevokeResponse) 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. UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error) // UserGet gets detailed user information or lists all users. UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, 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. UserGrant(context.Context, *AuthUserGrantRequest) (*AuthUserGrantResponse, error) // UserRevoke revokes a role of specified user. UserRevoke(context.Context, *AuthUserRevokeRequest) (*AuthUserRevokeResponse, error) // RoleAdd adds a new role. RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error) // RoleGet gets detailed role information or lists all roles. RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error) // RoleDelete deletes a specified role. RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) // RoleGrant grants a permission of a specified key or range to a specified role. RoleGrant(context.Context, *AuthRoleGrantRequest) (*AuthRoleGrantResponse, error) // RoleRevoke revokes a key or range permission of a specified role. RoleRevoke(context.Context, *AuthRoleRevokeRequest) (*AuthRoleRevokeResponse, 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"` }
func (*AuthUserAddRequest) Descriptor ¶
func (*AuthUserAddRequest) Descriptor() ([]byte, []int)
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) 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) 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 { }
func (*AuthUserGetRequest) Descriptor ¶
func (*AuthUserGetRequest) Descriptor() ([]byte, []int)
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"`
}
func (*AuthUserGetResponse) Descriptor ¶
func (*AuthUserGetResponse) Descriptor() ([]byte, []int)
func (*AuthUserGetResponse) GetHeader ¶
func (m *AuthUserGetResponse) GetHeader() *ResponseHeader
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 AuthUserGrantRequest ¶
type AuthUserGrantRequest 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 (*AuthUserGrantRequest) Descriptor ¶
func (*AuthUserGrantRequest) Descriptor() ([]byte, []int)
func (*AuthUserGrantRequest) Marshal ¶
func (m *AuthUserGrantRequest) Marshal() (data []byte, err error)
func (*AuthUserGrantRequest) MarshalTo ¶
func (m *AuthUserGrantRequest) MarshalTo(data []byte) (int, error)
func (*AuthUserGrantRequest) ProtoMessage ¶
func (*AuthUserGrantRequest) ProtoMessage()
func (*AuthUserGrantRequest) Reset ¶
func (m *AuthUserGrantRequest) Reset()
func (*AuthUserGrantRequest) Size ¶
func (m *AuthUserGrantRequest) Size() (n int)
func (*AuthUserGrantRequest) String ¶
func (m *AuthUserGrantRequest) String() string
func (*AuthUserGrantRequest) Unmarshal ¶
func (m *AuthUserGrantRequest) Unmarshal(data []byte) error
type AuthUserGrantResponse ¶
type AuthUserGrantResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserGrantResponse) Descriptor ¶
func (*AuthUserGrantResponse) Descriptor() ([]byte, []int)
func (*AuthUserGrantResponse) GetHeader ¶
func (m *AuthUserGrantResponse) GetHeader() *ResponseHeader
func (*AuthUserGrantResponse) Marshal ¶
func (m *AuthUserGrantResponse) Marshal() (data []byte, err error)
func (*AuthUserGrantResponse) MarshalTo ¶
func (m *AuthUserGrantResponse) MarshalTo(data []byte) (int, error)
func (*AuthUserGrantResponse) ProtoMessage ¶
func (*AuthUserGrantResponse) ProtoMessage()
func (*AuthUserGrantResponse) Reset ¶
func (m *AuthUserGrantResponse) Reset()
func (*AuthUserGrantResponse) Size ¶
func (m *AuthUserGrantResponse) Size() (n int)
func (*AuthUserGrantResponse) String ¶
func (m *AuthUserGrantResponse) String() string
func (*AuthUserGrantResponse) Unmarshal ¶
func (m *AuthUserGrantResponse) Unmarshal(data []byte) error
type AuthUserRevokeRequest ¶
type AuthUserRevokeRequest struct { }
func (*AuthUserRevokeRequest) Descriptor ¶
func (*AuthUserRevokeRequest) Descriptor() ([]byte, []int)
func (*AuthUserRevokeRequest) Marshal ¶
func (m *AuthUserRevokeRequest) Marshal() (data []byte, err error)
func (*AuthUserRevokeRequest) MarshalTo ¶
func (m *AuthUserRevokeRequest) MarshalTo(data []byte) (int, error)
func (*AuthUserRevokeRequest) ProtoMessage ¶
func (*AuthUserRevokeRequest) ProtoMessage()
func (*AuthUserRevokeRequest) Reset ¶
func (m *AuthUserRevokeRequest) Reset()
func (*AuthUserRevokeRequest) Size ¶
func (m *AuthUserRevokeRequest) Size() (n int)
func (*AuthUserRevokeRequest) String ¶
func (m *AuthUserRevokeRequest) String() string
func (*AuthUserRevokeRequest) Unmarshal ¶
func (m *AuthUserRevokeRequest) Unmarshal(data []byte) error
type AuthUserRevokeResponse ¶
type AuthUserRevokeResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*AuthUserRevokeResponse) Descriptor ¶
func (*AuthUserRevokeResponse) Descriptor() ([]byte, []int)
func (*AuthUserRevokeResponse) GetHeader ¶
func (m *AuthUserRevokeResponse) GetHeader() *ResponseHeader
func (*AuthUserRevokeResponse) Marshal ¶
func (m *AuthUserRevokeResponse) Marshal() (data []byte, err error)
func (*AuthUserRevokeResponse) MarshalTo ¶
func (m *AuthUserRevokeResponse) MarshalTo(data []byte) (int, error)
func (*AuthUserRevokeResponse) ProtoMessage ¶
func (*AuthUserRevokeResponse) ProtoMessage()
func (*AuthUserRevokeResponse) Reset ¶
func (m *AuthUserRevokeResponse) Reset()
func (*AuthUserRevokeResponse) Size ¶
func (m *AuthUserRevokeResponse) Size() (n int)
func (*AuthUserRevokeResponse) String ¶
func (m *AuthUserRevokeResponse) String() string
func (*AuthUserRevokeResponse) Unmarshal ¶
func (m *AuthUserRevokeResponse) 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) 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) 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) }
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) }
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) 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 TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"` }
func (*Compare) Descriptor ¶
func (*Compare) GetCreateRevision ¶
func (*Compare) GetModRevision ¶
func (*Compare) GetTargetUnion ¶
func (m *Compare) GetTargetUnion() isCompare_TargetUnion
func (*Compare) GetVersion ¶
func (*Compare) ProtoMessage ¶
func (*Compare) ProtoMessage()
type Compare_CompareResult ¶
type Compare_CompareResult int32
const ( Compare_EQUAL Compare_CompareResult = 0 Compare_GREATER Compare_CompareResult = 1 Compare_LESS Compare_CompareResult = 2 )
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 )
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_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) 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) 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 '\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"` }
func (*DeleteRangeRequest) Descriptor ¶
func (*DeleteRangeRequest) Descriptor() ([]byte, []int)
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"` }
func (*DeleteRangeResponse) Descriptor ¶
func (*DeleteRangeResponse) Descriptor() ([]byte, []int)
func (*DeleteRangeResponse) GetHeader ¶
func (m *DeleteRangeResponse) GetHeader() *ResponseHeader
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) 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 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) 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 key-value store. Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` }
func (*HashResponse) Descriptor ¶
func (*HashResponse) Descriptor() ([]byte, []int)
func (*HashResponse) GetHeader ¶
func (m *HashResponse) GetHeader() *ResponseHeader
func (*HashResponse) Marshal ¶
func (m *HashResponse) Marshal() (data []byte, err 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 InternalRaftRequest ¶
type InternalRaftRequest struct { ID uint64 `protobuf:"varint,1,opt,name=ID,json=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"` AuthEnable *AuthEnableRequest `protobuf:"bytes,10,opt,name=auth_enable,json=authEnable" json:"auth_enable,omitempty"` AuthUserAdd *AuthUserAddRequest `protobuf:"bytes,11,opt,name=auth_user_add,json=authUserAdd" json:"auth_user_add,omitempty"` AuthUserDelete *AuthUserDeleteRequest `protobuf:"bytes,12,opt,name=auth_user_delete,json=authUserDelete" json:"auth_user_delete,omitempty"` AuthUserChangePassword *AuthUserChangePasswordRequest `protobuf:"bytes,13,opt,name=auth_user_change_password,json=authUserChangePassword" json:"auth_user_change_password,omitempty"` AuthUserGrant *AuthUserGrantRequest `protobuf:"bytes,14,opt,name=auth_user_grant,json=authUserGrant" json:"auth_user_grant,omitempty"` AuthRoleAdd *AuthRoleAddRequest `protobuf:"bytes,15,opt,name=auth_role_add,json=authRoleAdd" json:"auth_role_add,omitempty"` AuthRoleGrant *AuthRoleGrantRequest `protobuf:"bytes,16,opt,name=auth_role_grant,json=authRoleGrant" json:"auth_role_grant,omitempty"` Authenticate *AuthenticateRequest `protobuf:"bytes,17,opt,name=authenticate" json:"authenticate,omitempty"` Alarm *AlarmRequest `protobuf:"bytes,18,opt,name=alarm" json:"alarm,omitempty"` }
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 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) // Delete 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) // Delete 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 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) }
func NewLeaseClient ¶
func NewLeaseClient(cc *grpc.ClientConn) LeaseClient
type LeaseGrantRequest ¶
type LeaseGrantRequest struct { // TTL is the advisory time-to-live in seconds. TTL int64 `protobuf:"varint,1,opt,name=TTL,json=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,json=iD,proto3" json:"ID,omitempty"` }
func (*LeaseGrantRequest) Descriptor ¶
func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
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,json=iD,proto3" json:"ID,omitempty"` // TTL is the server chosen lease time-to-live in seconds. TTL int64 `protobuf:"varint,3,opt,name=TTL,json=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) GetHeader ¶
func (m *LeaseGrantResponse) GetHeader() *ResponseHeader
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,json=iD,proto3" json:"ID,omitempty"` }
func (*LeaseKeepAliveRequest) Descriptor ¶
func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)
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,json=iD,proto3" json:"ID,omitempty"` // TTL is the new time-to-live for the lease. TTL int64 `protobuf:"varint,3,opt,name=TTL,json=tTL,proto3" json:"TTL,omitempty"` }
func (*LeaseKeepAliveResponse) Descriptor ¶
func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)
func (*LeaseKeepAliveResponse) GetHeader ¶
func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
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 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,json=iD,proto3" json:"ID,omitempty"` }
func (*LeaseRevokeRequest) Descriptor ¶
func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
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 }
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 returns the hash of the local KV state for consistency checking purpose. // This is designed for testing; do not use this in production when there // are ongoing transactions. Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, 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) }
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 returns the hash of the local KV state for consistency checking purpose. // This is designed for testing; do not use this in production when there // are ongoing transactions. Hash(context.Context, *HashRequest) (*HashResponse, error) // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) 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 }
type Member ¶
type Member struct { // ID is the member ID for this member. ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` // name is the human-readable name of the member. If the member is not started, the name will be an empty string. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // peerURLs is the list of URLs the member exposes to the cluster for communication. PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs" json:"peerURLs,omitempty"` // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty. ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs" json:"clientURLs,omitempty"` }
func (*Member) Descriptor ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
type MemberAddRequest ¶
type MemberAddRequest struct { // peerURLs is the list of URLs the added member will use to communicate with the cluster. PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs" json:"peerURLs,omitempty"` }
func (*MemberAddRequest) Descriptor ¶
func (*MemberAddRequest) Descriptor() ([]byte, []int)
func (*MemberAddRequest) Marshal ¶
func (m *MemberAddRequest) Marshal() (data []byte, err error)
func (*MemberAddRequest) ProtoMessage ¶
func (*MemberAddRequest) ProtoMessage()
func (*MemberAddRequest) Reset ¶
func (m *MemberAddRequest) Reset()
func (*MemberAddRequest) Size ¶
func (m *MemberAddRequest) Size() (n int)
func (*MemberAddRequest) String ¶
func (m *MemberAddRequest) String() string
func (*MemberAddRequest) Unmarshal ¶
func (m *MemberAddRequest) Unmarshal(data []byte) error
type MemberAddResponse ¶
type MemberAddResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // member is the member information for the added member. Member *Member `protobuf:"bytes,2,opt,name=member" json:"member,omitempty"` }
func (*MemberAddResponse) Descriptor ¶
func (*MemberAddResponse) Descriptor() ([]byte, []int)
func (*MemberAddResponse) GetHeader ¶
func (m *MemberAddResponse) GetHeader() *ResponseHeader
func (*MemberAddResponse) GetMember ¶
func (m *MemberAddResponse) GetMember() *Member
func (*MemberAddResponse) Marshal ¶
func (m *MemberAddResponse) Marshal() (data []byte, err error)
func (*MemberAddResponse) MarshalTo ¶
func (m *MemberAddResponse) MarshalTo(data []byte) (int, error)
func (*MemberAddResponse) ProtoMessage ¶
func (*MemberAddResponse) ProtoMessage()
func (*MemberAddResponse) Reset ¶
func (m *MemberAddResponse) Reset()
func (*MemberAddResponse) Size ¶
func (m *MemberAddResponse) Size() (n int)
func (*MemberAddResponse) String ¶
func (m *MemberAddResponse) String() string
func (*MemberAddResponse) Unmarshal ¶
func (m *MemberAddResponse) Unmarshal(data []byte) error
type MemberListRequest ¶
type MemberListRequest struct { }
func (*MemberListRequest) Descriptor ¶
func (*MemberListRequest) Descriptor() ([]byte, []int)
func (*MemberListRequest) Marshal ¶
func (m *MemberListRequest) Marshal() (data []byte, err error)
func (*MemberListRequest) MarshalTo ¶
func (m *MemberListRequest) MarshalTo(data []byte) (int, error)
func (*MemberListRequest) ProtoMessage ¶
func (*MemberListRequest) ProtoMessage()
func (*MemberListRequest) Reset ¶
func (m *MemberListRequest) Reset()
func (*MemberListRequest) Size ¶
func (m *MemberListRequest) Size() (n int)
func (*MemberListRequest) String ¶
func (m *MemberListRequest) String() string
func (*MemberListRequest) Unmarshal ¶
func (m *MemberListRequest) Unmarshal(data []byte) error
type MemberListResponse ¶
type MemberListResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // members is a list of all members associated with the cluster. Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` }
func (*MemberListResponse) Descriptor ¶
func (*MemberListResponse) Descriptor() ([]byte, []int)
func (*MemberListResponse) GetHeader ¶
func (m *MemberListResponse) GetHeader() *ResponseHeader
func (*MemberListResponse) GetMembers ¶
func (m *MemberListResponse) GetMembers() []*Member
func (*MemberListResponse) Marshal ¶
func (m *MemberListResponse) Marshal() (data []byte, err error)
func (*MemberListResponse) MarshalTo ¶
func (m *MemberListResponse) MarshalTo(data []byte) (int, error)
func (*MemberListResponse) ProtoMessage ¶
func (*MemberListResponse) ProtoMessage()
func (*MemberListResponse) Reset ¶
func (m *MemberListResponse) Reset()
func (*MemberListResponse) Size ¶
func (m *MemberListResponse) Size() (n int)
func (*MemberListResponse) String ¶
func (m *MemberListResponse) String() string
func (*MemberListResponse) Unmarshal ¶
func (m *MemberListResponse) Unmarshal(data []byte) error
type MemberRemoveRequest ¶
type MemberRemoveRequest struct { // ID is the member ID of the member to remove. ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` }
func (*MemberRemoveRequest) Descriptor ¶
func (*MemberRemoveRequest) Descriptor() ([]byte, []int)
func (*MemberRemoveRequest) Marshal ¶
func (m *MemberRemoveRequest) Marshal() (data []byte, err error)
func (*MemberRemoveRequest) MarshalTo ¶
func (m *MemberRemoveRequest) MarshalTo(data []byte) (int, error)
func (*MemberRemoveRequest) ProtoMessage ¶
func (*MemberRemoveRequest) ProtoMessage()
func (*MemberRemoveRequest) Reset ¶
func (m *MemberRemoveRequest) Reset()
func (*MemberRemoveRequest) Size ¶
func (m *MemberRemoveRequest) Size() (n int)
func (*MemberRemoveRequest) String ¶
func (m *MemberRemoveRequest) String() string
func (*MemberRemoveRequest) Unmarshal ¶
func (m *MemberRemoveRequest) Unmarshal(data []byte) error
type MemberRemoveResponse ¶
type MemberRemoveResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*MemberRemoveResponse) Descriptor ¶
func (*MemberRemoveResponse) Descriptor() ([]byte, []int)
func (*MemberRemoveResponse) GetHeader ¶
func (m *MemberRemoveResponse) GetHeader() *ResponseHeader
func (*MemberRemoveResponse) Marshal ¶
func (m *MemberRemoveResponse) Marshal() (data []byte, err error)
func (*MemberRemoveResponse) MarshalTo ¶
func (m *MemberRemoveResponse) MarshalTo(data []byte) (int, error)
func (*MemberRemoveResponse) ProtoMessage ¶
func (*MemberRemoveResponse) ProtoMessage()
func (*MemberRemoveResponse) Reset ¶
func (m *MemberRemoveResponse) Reset()
func (*MemberRemoveResponse) Size ¶
func (m *MemberRemoveResponse) Size() (n int)
func (*MemberRemoveResponse) String ¶
func (m *MemberRemoveResponse) String() string
func (*MemberRemoveResponse) Unmarshal ¶
func (m *MemberRemoveResponse) Unmarshal(data []byte) error
type MemberUpdateRequest ¶
type MemberUpdateRequest struct { // ID is the member ID of the member to update. ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` // peerURLs is the new list of URLs the member will use to communicate with the cluster. PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs" json:"peerURLs,omitempty"` }
func (*MemberUpdateRequest) Descriptor ¶
func (*MemberUpdateRequest) Descriptor() ([]byte, []int)
func (*MemberUpdateRequest) Marshal ¶
func (m *MemberUpdateRequest) Marshal() (data []byte, err error)
func (*MemberUpdateRequest) MarshalTo ¶
func (m *MemberUpdateRequest) MarshalTo(data []byte) (int, error)
func (*MemberUpdateRequest) ProtoMessage ¶
func (*MemberUpdateRequest) ProtoMessage()
func (*MemberUpdateRequest) Reset ¶
func (m *MemberUpdateRequest) Reset()
func (*MemberUpdateRequest) Size ¶
func (m *MemberUpdateRequest) Size() (n int)
func (*MemberUpdateRequest) String ¶
func (m *MemberUpdateRequest) String() string
func (*MemberUpdateRequest) Unmarshal ¶
func (m *MemberUpdateRequest) Unmarshal(data []byte) error
type MemberUpdateResponse ¶
type MemberUpdateResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*MemberUpdateResponse) Descriptor ¶
func (*MemberUpdateResponse) Descriptor() ([]byte, []int)
func (*MemberUpdateResponse) GetHeader ¶
func (m *MemberUpdateResponse) GetHeader() *ResponseHeader
func (*MemberUpdateResponse) Marshal ¶
func (m *MemberUpdateResponse) Marshal() (data []byte, err error)
func (*MemberUpdateResponse) MarshalTo ¶
func (m *MemberUpdateResponse) MarshalTo(data []byte) (int, error)
func (*MemberUpdateResponse) ProtoMessage ¶
func (*MemberUpdateResponse) ProtoMessage()
func (*MemberUpdateResponse) Reset ¶
func (m *MemberUpdateResponse) Reset()
func (*MemberUpdateResponse) Size ¶
func (m *MemberUpdateResponse) Size() (n int)
func (*MemberUpdateResponse) String ¶
func (m *MemberUpdateResponse) String() string
func (*MemberUpdateResponse) Unmarshal ¶
func (m *MemberUpdateResponse) Unmarshal(data []byte) error
type Metadata ¶
type Metadata struct { NodeID uint64 `protobuf:"varint,1,opt,name=NodeID,json=nodeID" json:"NodeID"` ClusterID uint64 `protobuf:"varint,2,opt,name=ClusterID,json=clusterID" json:"ClusterID"` XXX_unrecognized []byte `json:"-"` }
func (*Metadata) Descriptor ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
type PutRequest ¶
type PutRequest struct { // key is the key, in bytes, to put into the key-value store. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // value is the value, in bytes, to associate with the key in the key-value store. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // lease is the lease ID to associate with the key in the key-value store. A lease // value of 0 indicates no lease. Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"` }
func (*PutRequest) Descriptor ¶
func (*PutRequest) Descriptor() ([]byte, []int)
func (*PutRequest) Marshal ¶
func (m *PutRequest) Marshal() (data []byte, err error)
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) Reset ¶
func (m *PutRequest) Reset()
func (*PutRequest) Size ¶
func (m *PutRequest) Size() (n int)
func (*PutRequest) String ¶
func (m *PutRequest) String() string
func (*PutRequest) Unmarshal ¶
func (m *PutRequest) Unmarshal(data []byte) error
type PutResponse ¶
type PutResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*PutResponse) Descriptor ¶
func (*PutResponse) Descriptor() ([]byte, []int)
func (*PutResponse) GetHeader ¶
func (m *PutResponse) GetHeader() *ResponseHeader
func (*PutResponse) Marshal ¶
func (m *PutResponse) Marshal() (data []byte, err error)
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) Reset ¶
func (m *PutResponse) Reset()
func (*PutResponse) Size ¶
func (m *PutResponse) Size() (n int)
func (*PutResponse) String ¶
func (m *PutResponse) String() string
func (*PutResponse) Unmarshal ¶
func (m *PutResponse) Unmarshal(data []byte) error
type RangeRequest ¶
type RangeRequest struct { // key is the first key for the range. If range_end is not given, the request only looks up key. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // range_end is the upper bound on the requested range [key, range_end). // If range_end is '\0', the range is all keys >= key. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // limit is a limit on the number of keys returned for the request. Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // revision is the point-in-time of the key-value store to use for the range. // If revision is less or equal to zero, the range is over the newest key-value store. // If the revision has been compacted, ErrCompaction is returned as a response. Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` // sort_order is the order for returned sorted results. SortOrder RangeRequest_SortOrder `` /* 130-byte string literal not displayed */ // sort_target is the key-value field to use for sorting. SortTarget RangeRequest_SortTarget `` /* 134-byte string literal not displayed */ // serializable sets the range request to use serializable member-local reads. // Range requests are linearizable by default; linearizable requests have higher // latency and lower throughput than serializable requests but reflect the current // consensus of the cluster. For better performance, in exchange for possible stale reads, // a serializable range request is served locally without needing to reach consensus // with other nodes in the cluster. Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"` }
func (*RangeRequest) Descriptor ¶
func (*RangeRequest) Descriptor() ([]byte, []int)
func (*RangeRequest) Marshal ¶
func (m *RangeRequest) Marshal() (data []byte, err error)
func (*RangeRequest) ProtoMessage ¶
func (*RangeRequest) ProtoMessage()
func (*RangeRequest) Reset ¶
func (m *RangeRequest) Reset()
func (*RangeRequest) Size ¶
func (m *RangeRequest) Size() (n int)
func (*RangeRequest) String ¶
func (m *RangeRequest) String() string
func (*RangeRequest) Unmarshal ¶
func (m *RangeRequest) Unmarshal(data []byte) error
type RangeRequest_SortOrder ¶
type RangeRequest_SortOrder int32
const ( RangeRequest_NONE RangeRequest_SortOrder = 0 RangeRequest_ASCEND RangeRequest_SortOrder = 1 RangeRequest_DESCEND RangeRequest_SortOrder = 2 )
func (RangeRequest_SortOrder) EnumDescriptor ¶
func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int)
func (RangeRequest_SortOrder) String ¶
func (x RangeRequest_SortOrder) String() string
type RangeRequest_SortTarget ¶
type RangeRequest_SortTarget int32
const ( RangeRequest_KEY RangeRequest_SortTarget = 0 RangeRequest_VERSION RangeRequest_SortTarget = 1 RangeRequest_CREATE RangeRequest_SortTarget = 2 RangeRequest_MOD RangeRequest_SortTarget = 3 RangeRequest_VALUE RangeRequest_SortTarget = 4 )
func (RangeRequest_SortTarget) EnumDescriptor ¶
func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int)
func (RangeRequest_SortTarget) String ¶
func (x RangeRequest_SortTarget) String() string
type RangeResponse ¶
type RangeResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // kvs is the list of key-value pairs matched by the range request. Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` // more indicates if there are more keys to return in the requested range. More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` }
func (*RangeResponse) Descriptor ¶
func (*RangeResponse) Descriptor() ([]byte, []int)
func (*RangeResponse) GetHeader ¶
func (m *RangeResponse) GetHeader() *ResponseHeader
func (*RangeResponse) GetKvs ¶
func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue
func (*RangeResponse) Marshal ¶
func (m *RangeResponse) Marshal() (data []byte, err error)
func (*RangeResponse) ProtoMessage ¶
func (*RangeResponse) ProtoMessage()
func (*RangeResponse) Reset ¶
func (m *RangeResponse) Reset()
func (*RangeResponse) Size ¶
func (m *RangeResponse) Size() (n int)
func (*RangeResponse) String ¶
func (m *RangeResponse) String() string
func (*RangeResponse) Unmarshal ¶
func (m *RangeResponse) Unmarshal(data []byte) error
type Request ¶
type Request struct { ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD" json:"ID"` Method string `protobuf:"bytes,2,opt,name=Method,json=method" json:"Method"` Path string `protobuf:"bytes,3,opt,name=Path,json=path" json:"Path"` Val string `protobuf:"bytes,4,opt,name=Val,json=val" json:"Val"` Dir bool `protobuf:"varint,5,opt,name=Dir,json=dir" json:"Dir"` PrevValue string `protobuf:"bytes,6,opt,name=PrevValue,json=prevValue" json:"PrevValue"` PrevIndex uint64 `protobuf:"varint,7,opt,name=PrevIndex,json=prevIndex" json:"PrevIndex"` PrevExist *bool `protobuf:"varint,8,opt,name=PrevExist,json=prevExist" json:"PrevExist,omitempty"` Expiration int64 `protobuf:"varint,9,opt,name=Expiration,json=expiration" json:"Expiration"` Wait bool `protobuf:"varint,10,opt,name=Wait,json=wait" json:"Wait"` Since uint64 `protobuf:"varint,11,opt,name=Since,json=since" json:"Since"` Recursive bool `protobuf:"varint,12,opt,name=Recursive,json=recursive" json:"Recursive"` Sorted bool `protobuf:"varint,13,opt,name=Sorted,json=sorted" json:"Sorted"` Quorum bool `protobuf:"varint,14,opt,name=Quorum,json=quorum" json:"Quorum"` Time int64 `protobuf:"varint,15,opt,name=Time,json=time" json:"Time"` Stream bool `protobuf:"varint,16,opt,name=Stream,json=stream" json:"Stream"` Refresh *bool `protobuf:"varint,17,opt,name=Refresh,json=refresh" json:"Refresh,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type RequestUnion ¶
type RequestUnion struct { // request is a union of request types accepted by a transaction. // // Types that are valid to be assigned to Request: // *RequestUnion_RequestRange // *RequestUnion_RequestPut // *RequestUnion_RequestDeleteRange Request isRequestUnion_Request `protobuf_oneof:"request"` }
func (*RequestUnion) Descriptor ¶
func (*RequestUnion) Descriptor() ([]byte, []int)
func (*RequestUnion) GetRequest ¶
func (m *RequestUnion) GetRequest() isRequestUnion_Request
func (*RequestUnion) GetRequestDeleteRange ¶
func (m *RequestUnion) GetRequestDeleteRange() *DeleteRangeRequest
func (*RequestUnion) GetRequestPut ¶
func (m *RequestUnion) GetRequestPut() *PutRequest
func (*RequestUnion) GetRequestRange ¶
func (m *RequestUnion) GetRequestRange() *RangeRequest
func (*RequestUnion) Marshal ¶
func (m *RequestUnion) Marshal() (data []byte, err error)
func (*RequestUnion) ProtoMessage ¶
func (*RequestUnion) ProtoMessage()
func (*RequestUnion) Reset ¶
func (m *RequestUnion) Reset()
func (*RequestUnion) Size ¶
func (m *RequestUnion) Size() (n int)
func (*RequestUnion) String ¶
func (m *RequestUnion) String() string
func (*RequestUnion) Unmarshal ¶
func (m *RequestUnion) Unmarshal(data []byte) error
func (*RequestUnion) XXX_OneofFuncs ¶
func (*RequestUnion) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type RequestUnion_RequestDeleteRange ¶
type RequestUnion_RequestDeleteRange struct {
RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,oneof"`
}
func (*RequestUnion_RequestDeleteRange) MarshalTo ¶
func (m *RequestUnion_RequestDeleteRange) MarshalTo(data []byte) (int, error)
func (*RequestUnion_RequestDeleteRange) Size ¶
func (m *RequestUnion_RequestDeleteRange) Size() (n int)
type RequestUnion_RequestPut ¶
type RequestUnion_RequestPut struct {
RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,oneof"`
}
func (*RequestUnion_RequestPut) MarshalTo ¶
func (m *RequestUnion_RequestPut) MarshalTo(data []byte) (int, error)
func (*RequestUnion_RequestPut) Size ¶
func (m *RequestUnion_RequestPut) Size() (n int)
type RequestUnion_RequestRange ¶
type RequestUnion_RequestRange struct {
RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,oneof"`
}
func (*RequestUnion_RequestRange) MarshalTo ¶
func (m *RequestUnion_RequestRange) MarshalTo(data []byte) (int, error)
func (*RequestUnion_RequestRange) Size ¶
func (m *RequestUnion_RequestRange) Size() (n int)
type ResponseHeader ¶
type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // member_id is the ID of the member which sent the response. MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // revision is the key-value store revision when the request was applied. Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` // raft_term is the raft term when the request was applied. RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"` }
func (*ResponseHeader) Descriptor ¶
func (*ResponseHeader) Descriptor() ([]byte, []int)
func (*ResponseHeader) Marshal ¶
func (m *ResponseHeader) Marshal() (data []byte, err error)
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) Reset ¶
func (m *ResponseHeader) Reset()
func (*ResponseHeader) Size ¶
func (m *ResponseHeader) Size() (n int)
func (*ResponseHeader) String ¶
func (m *ResponseHeader) String() string
func (*ResponseHeader) Unmarshal ¶
func (m *ResponseHeader) Unmarshal(data []byte) error
type ResponseUnion ¶
type ResponseUnion struct { // response is a union of response types returned by a transaction. // // Types that are valid to be assigned to Response: // *ResponseUnion_ResponseRange // *ResponseUnion_ResponsePut // *ResponseUnion_ResponseDeleteRange Response isResponseUnion_Response `protobuf_oneof:"response"` }
func (*ResponseUnion) Descriptor ¶
func (*ResponseUnion) Descriptor() ([]byte, []int)
func (*ResponseUnion) GetResponse ¶
func (m *ResponseUnion) GetResponse() isResponseUnion_Response
func (*ResponseUnion) GetResponseDeleteRange ¶
func (m *ResponseUnion) GetResponseDeleteRange() *DeleteRangeResponse
func (*ResponseUnion) GetResponsePut ¶
func (m *ResponseUnion) GetResponsePut() *PutResponse
func (*ResponseUnion) GetResponseRange ¶
func (m *ResponseUnion) GetResponseRange() *RangeResponse
func (*ResponseUnion) Marshal ¶
func (m *ResponseUnion) Marshal() (data []byte, err error)
func (*ResponseUnion) ProtoMessage ¶
func (*ResponseUnion) ProtoMessage()
func (*ResponseUnion) Reset ¶
func (m *ResponseUnion) Reset()
func (*ResponseUnion) Size ¶
func (m *ResponseUnion) Size() (n int)
func (*ResponseUnion) String ¶
func (m *ResponseUnion) String() string
func (*ResponseUnion) Unmarshal ¶
func (m *ResponseUnion) Unmarshal(data []byte) error
func (*ResponseUnion) XXX_OneofFuncs ¶
func (*ResponseUnion) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type ResponseUnion_ResponseDeleteRange ¶
type ResponseUnion_ResponseDeleteRange struct {
ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,oneof"`
}
func (*ResponseUnion_ResponseDeleteRange) MarshalTo ¶
func (m *ResponseUnion_ResponseDeleteRange) MarshalTo(data []byte) (int, error)
func (*ResponseUnion_ResponseDeleteRange) Size ¶
func (m *ResponseUnion_ResponseDeleteRange) Size() (n int)
type ResponseUnion_ResponsePut ¶
type ResponseUnion_ResponsePut struct {
ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,oneof"`
}
func (*ResponseUnion_ResponsePut) MarshalTo ¶
func (m *ResponseUnion_ResponsePut) MarshalTo(data []byte) (int, error)
func (*ResponseUnion_ResponsePut) Size ¶
func (m *ResponseUnion_ResponsePut) Size() (n int)
type ResponseUnion_ResponseRange ¶
type ResponseUnion_ResponseRange struct {
ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,oneof"`
}
func (*ResponseUnion_ResponseRange) MarshalTo ¶
func (m *ResponseUnion_ResponseRange) MarshalTo(data []byte) (int, error)
func (*ResponseUnion_ResponseRange) Size ¶
func (m *ResponseUnion_ResponseRange) Size() (n int)
type SnapshotRequest ¶
type SnapshotRequest struct { }
func (*SnapshotRequest) Descriptor ¶
func (*SnapshotRequest) Descriptor() ([]byte, []int)
func (*SnapshotRequest) Marshal ¶
func (m *SnapshotRequest) Marshal() (data []byte, err error)
func (*SnapshotRequest) ProtoMessage ¶
func (*SnapshotRequest) ProtoMessage()
func (*SnapshotRequest) Reset ¶
func (m *SnapshotRequest) Reset()
func (*SnapshotRequest) Size ¶
func (m *SnapshotRequest) Size() (n int)
func (*SnapshotRequest) String ¶
func (m *SnapshotRequest) String() string
func (*SnapshotRequest) Unmarshal ¶
func (m *SnapshotRequest) Unmarshal(data []byte) error
type SnapshotResponse ¶
type SnapshotResponse struct { // header has the current key-value store information. The first header in the snapshot // stream indicates the point in time of the snapshot. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // remaining_bytes is the number of blob bytes to be sent after this message RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"` // blob contains the next chunk of the snapshot in the snapshot stream. Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` }
func (*SnapshotResponse) Descriptor ¶
func (*SnapshotResponse) Descriptor() ([]byte, []int)
func (*SnapshotResponse) GetHeader ¶
func (m *SnapshotResponse) GetHeader() *ResponseHeader
func (*SnapshotResponse) Marshal ¶
func (m *SnapshotResponse) Marshal() (data []byte, err error)
func (*SnapshotResponse) ProtoMessage ¶
func (*SnapshotResponse) ProtoMessage()
func (*SnapshotResponse) Reset ¶
func (m *SnapshotResponse) Reset()
func (*SnapshotResponse) Size ¶
func (m *SnapshotResponse) Size() (n int)
func (*SnapshotResponse) String ¶
func (m *SnapshotResponse) String() string
func (*SnapshotResponse) Unmarshal ¶
func (m *SnapshotResponse) Unmarshal(data []byte) error
type StatusRequest ¶
type StatusRequest struct { }
func (*StatusRequest) Descriptor ¶
func (*StatusRequest) Descriptor() ([]byte, []int)
func (*StatusRequest) Marshal ¶
func (m *StatusRequest) Marshal() (data []byte, err error)
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) Reset ¶
func (m *StatusRequest) Reset()
func (*StatusRequest) Size ¶
func (m *StatusRequest) Size() (n int)
func (*StatusRequest) String ¶
func (m *StatusRequest) String() string
func (*StatusRequest) Unmarshal ¶
func (m *StatusRequest) Unmarshal(data []byte) error
type StatusResponse ¶
type StatusResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // version is the cluster protocol version used by the responding member. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // dbSize is the size of the backend database, in bytes, of the responding member. DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"` // leader is the member ID which the responding member believes is the current leader. Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` // raftIndex is the current raft index of the responding member. RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"` // raftTerm is the current raft term of the responding member. RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"` }
func (*StatusResponse) Descriptor ¶
func (*StatusResponse) Descriptor() ([]byte, []int)
func (*StatusResponse) GetHeader ¶
func (m *StatusResponse) GetHeader() *ResponseHeader
func (*StatusResponse) Marshal ¶
func (m *StatusResponse) Marshal() (data []byte, err error)
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) Reset ¶
func (m *StatusResponse) Reset()
func (*StatusResponse) Size ¶
func (m *StatusResponse) Size() (n int)
func (*StatusResponse) String ¶
func (m *StatusResponse) String() string
func (*StatusResponse) Unmarshal ¶
func (m *StatusResponse) Unmarshal(data []byte) error
type TxnRequest ¶
type TxnRequest struct { // Compare is a list of predicates representing a conjunction of terms. // If the comparisons succeed, then the success requests will be processed in order, // and the response will contain their respective responses in order. // If the comparisons fail, then the failure requests will be processed in order, // and the response will contain their respective responses in order. Compare []*Compare `protobuf:"bytes,1,rep,name=compare" json:"compare,omitempty"` // success is a list of requests which will be applied when compare evaluates to true. Success []*RequestUnion `protobuf:"bytes,2,rep,name=success" json:"success,omitempty"` // failure is a list of requests which will be applied when compare evaluates to false. Failure []*RequestUnion `protobuf:"bytes,3,rep,name=failure" json:"failure,omitempty"` }
From google paxosdb paper: Our implementation hinges around a powerful primitive which we call MultiOp. All other database operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically and consists of three components: 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check for the absence or presence of a value, or compare with a given value. Two different tests in the guard may apply to the same or different entries in the database. All tests in the guard are applied and MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise it executes f op (see item 3 below). 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or lookup operation, and applies to a single database entry. Two different operations in the list may apply to the same or different entries in the database. These operations are executed if guard evaluates to true. 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
func (*TxnRequest) Descriptor ¶
func (*TxnRequest) Descriptor() ([]byte, []int)
func (*TxnRequest) GetCompare ¶
func (m *TxnRequest) GetCompare() []*Compare
func (*TxnRequest) GetFailure ¶
func (m *TxnRequest) GetFailure() []*RequestUnion
func (*TxnRequest) GetSuccess ¶
func (m *TxnRequest) GetSuccess() []*RequestUnion
func (*TxnRequest) Marshal ¶
func (m *TxnRequest) Marshal() (data []byte, err error)
func (*TxnRequest) ProtoMessage ¶
func (*TxnRequest) ProtoMessage()
func (*TxnRequest) Reset ¶
func (m *TxnRequest) Reset()
func (*TxnRequest) Size ¶
func (m *TxnRequest) Size() (n int)
func (*TxnRequest) String ¶
func (m *TxnRequest) String() string
func (*TxnRequest) Unmarshal ¶
func (m *TxnRequest) Unmarshal(data []byte) error
type TxnResponse ¶
type TxnResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // succeeded is set to true if the compare evaluated to true or false otherwise. Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` // responses is a list of responses corresponding to the results from applying // success if succeeded is true or failure if succeeded is false. Responses []*ResponseUnion `protobuf:"bytes,3,rep,name=responses" json:"responses,omitempty"` }
func (*TxnResponse) Descriptor ¶
func (*TxnResponse) Descriptor() ([]byte, []int)
func (*TxnResponse) GetHeader ¶
func (m *TxnResponse) GetHeader() *ResponseHeader
func (*TxnResponse) GetResponses ¶
func (m *TxnResponse) GetResponses() []*ResponseUnion
func (*TxnResponse) Marshal ¶
func (m *TxnResponse) Marshal() (data []byte, err error)
func (*TxnResponse) ProtoMessage ¶
func (*TxnResponse) ProtoMessage()
func (*TxnResponse) Reset ¶
func (m *TxnResponse) Reset()
func (*TxnResponse) Size ¶
func (m *TxnResponse) Size() (n int)
func (*TxnResponse) String ¶
func (m *TxnResponse) String() string
func (*TxnResponse) Unmarshal ¶
func (m *TxnResponse) Unmarshal(data []byte) error
type WatchCancelRequest ¶
type WatchCancelRequest struct { // watch_id is the watcher id to cancel so that no more events are transmitted. WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` }
func (*WatchCancelRequest) Descriptor ¶
func (*WatchCancelRequest) Descriptor() ([]byte, []int)
func (*WatchCancelRequest) Marshal ¶
func (m *WatchCancelRequest) Marshal() (data []byte, err error)
func (*WatchCancelRequest) MarshalTo ¶
func (m *WatchCancelRequest) MarshalTo(data []byte) (int, error)
func (*WatchCancelRequest) ProtoMessage ¶
func (*WatchCancelRequest) ProtoMessage()
func (*WatchCancelRequest) Reset ¶
func (m *WatchCancelRequest) Reset()
func (*WatchCancelRequest) Size ¶
func (m *WatchCancelRequest) Size() (n int)
func (*WatchCancelRequest) String ¶
func (m *WatchCancelRequest) String() string
func (*WatchCancelRequest) Unmarshal ¶
func (m *WatchCancelRequest) Unmarshal(data []byte) error
type WatchClient ¶
type WatchClient interface { // Watch watches for events happening or that have happened. Both input and output // are streams; the input stream is for creating and canceling watchers and the output // stream sends events. One watch RPC can watch on multiple key ranges, streaming events // for several watches at once. The entire event history can be watched starting from the // last compaction revision. Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) }
func NewWatchClient ¶
func NewWatchClient(cc *grpc.ClientConn) WatchClient
type WatchCreateRequest ¶
type WatchCreateRequest struct { // key is the key to register for watching. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // range_end is the end of the range [key, range_end) to watch. If range_end is not given, // only the key argument is watched. If range_end is equal to '\0', all keys greater than // or equal to the key argument are watched. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // start_revision is an optional revision to watch from (inclusive). No start_revision is "now". StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` // progress_notify is set so that the etcd server will periodically send a WatchResponse with // no events to the new watcher if there are no recent events. It is useful when clients // wish to recover a disconnected watcher starting from a recent known revision. // The etcd server may decide how often it will send notifications based on current load. ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"` }
func (*WatchCreateRequest) Descriptor ¶
func (*WatchCreateRequest) Descriptor() ([]byte, []int)
func (*WatchCreateRequest) Marshal ¶
func (m *WatchCreateRequest) Marshal() (data []byte, err error)
func (*WatchCreateRequest) MarshalTo ¶
func (m *WatchCreateRequest) MarshalTo(data []byte) (int, error)
func (*WatchCreateRequest) ProtoMessage ¶
func (*WatchCreateRequest) ProtoMessage()
func (*WatchCreateRequest) Reset ¶
func (m *WatchCreateRequest) Reset()
func (*WatchCreateRequest) Size ¶
func (m *WatchCreateRequest) Size() (n int)
func (*WatchCreateRequest) String ¶
func (m *WatchCreateRequest) String() string
func (*WatchCreateRequest) Unmarshal ¶
func (m *WatchCreateRequest) Unmarshal(data []byte) error
type WatchRequest ¶
type WatchRequest struct { // request_union is a request to either create a new watcher or cancel an existing watcher. // // Types that are valid to be assigned to RequestUnion: // *WatchRequest_CreateRequest // *WatchRequest_CancelRequest RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"` }
func (*WatchRequest) Descriptor ¶
func (*WatchRequest) Descriptor() ([]byte, []int)
func (*WatchRequest) GetCancelRequest ¶
func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest
func (*WatchRequest) GetCreateRequest ¶
func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest
func (*WatchRequest) GetRequestUnion ¶
func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion
func (*WatchRequest) Marshal ¶
func (m *WatchRequest) Marshal() (data []byte, err error)
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) Reset ¶
func (m *WatchRequest) Reset()
func (*WatchRequest) Size ¶
func (m *WatchRequest) Size() (n int)
func (*WatchRequest) String ¶
func (m *WatchRequest) String() string
func (*WatchRequest) Unmarshal ¶
func (m *WatchRequest) Unmarshal(data []byte) error
func (*WatchRequest) XXX_OneofFuncs ¶
func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type WatchRequest_CancelRequest ¶
type WatchRequest_CancelRequest struct {
CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,oneof"`
}
func (*WatchRequest_CancelRequest) MarshalTo ¶
func (m *WatchRequest_CancelRequest) MarshalTo(data []byte) (int, error)
func (*WatchRequest_CancelRequest) Size ¶
func (m *WatchRequest_CancelRequest) Size() (n int)
type WatchRequest_CreateRequest ¶
type WatchRequest_CreateRequest struct {
CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,oneof"`
}
func (*WatchRequest_CreateRequest) MarshalTo ¶
func (m *WatchRequest_CreateRequest) MarshalTo(data []byte) (int, error)
func (*WatchRequest_CreateRequest) Size ¶
func (m *WatchRequest_CreateRequest) Size() (n int)
type WatchResponse ¶
type WatchResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // watch_id is the ID of the watcher that corresponds to the response. WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` // created is set to true if the response is for a create watch request. // The client should record the watch_id and expect to receive events for // the created watcher from the same stream. // All events sent to the created watcher will attach with the same watch_id. Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` // canceled is set to true if the response is for a cancel watch request. // No further events will be sent to the canceled watcher. Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"` // compact_revision is set to the minimum index if a watcher tries to watch // at a compacted index. // // This happens when creating a watcher at a compacted revision or the watcher cannot // catch up with the progress of the key-value store. // // The client should treat the watcher as canceled and should not try to create any // watcher with the same start_revision again. CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events" json:"events,omitempty"` }
func (*WatchResponse) Descriptor ¶
func (*WatchResponse) Descriptor() ([]byte, []int)
func (*WatchResponse) GetEvents ¶
func (m *WatchResponse) GetEvents() []*mvccpb.Event
func (*WatchResponse) GetHeader ¶
func (m *WatchResponse) GetHeader() *ResponseHeader
func (*WatchResponse) Marshal ¶
func (m *WatchResponse) Marshal() (data []byte, err error)
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) Reset ¶
func (m *WatchResponse) Reset()
func (*WatchResponse) Size ¶
func (m *WatchResponse) Size() (n int)
func (*WatchResponse) String ¶
func (m *WatchResponse) String() string
func (*WatchResponse) Unmarshal ¶
func (m *WatchResponse) Unmarshal(data []byte) error
type WatchServer ¶
type WatchServer interface { // Watch watches for events happening or that have happened. Both input and output // are streams; the input stream is for creating and canceling watchers and the output // stream sends events. One watch RPC can watch on multiple key ranges, streaming events // for several watches at once. The entire event history can be watched starting from the // last compaction revision. Watch(Watch_WatchServer) error }
type Watch_WatchClient ¶
type Watch_WatchClient interface { Send(*WatchRequest) error Recv() (*WatchResponse, error) grpc.ClientStream }
type Watch_WatchServer ¶
type Watch_WatchServer interface { Send(*WatchResponse) error Recv() (*WatchRequest, error) grpc.ServerStream }