etcd: github.com/coreos/etcd/etcdserver/etcdserverpb Index | Files | Directories

package etcdserverpb

import "github.com/coreos/etcd/etcdserver/etcdserverpb"

Package etcdserverpb is a generated protocol buffer package.

It is generated from these files:

etcdserver.proto
raft_internal.proto
rpc.proto

It has these top-level messages:

Request
Metadata
RequestHeader
InternalRaftRequest
EmptyResponse
InternalAuthenticateRequest
ResponseHeader
RangeRequest
RangeResponse
PutRequest
PutResponse
DeleteRangeRequest
DeleteRangeResponse
RequestOp
ResponseOp
Compare
TxnRequest
TxnResponse
CompactionRequest
CompactionResponse
HashRequest
HashKVRequest
HashKVResponse
HashResponse
SnapshotRequest
SnapshotResponse
WatchRequest
WatchCreateRequest
WatchCancelRequest
WatchProgressRequest
WatchResponse
LeaseGrantRequest
LeaseGrantResponse
LeaseRevokeRequest
LeaseRevokeResponse
LeaseCheckpoint
LeaseCheckpointRequest
LeaseCheckpointResponse
LeaseKeepAliveRequest
LeaseKeepAliveResponse
LeaseTimeToLiveRequest
LeaseTimeToLiveResponse
LeaseLeasesRequest
LeaseStatus
LeaseLeasesResponse
Member
MemberAddRequest
MemberAddResponse
MemberRemoveRequest
MemberRemoveResponse
MemberUpdateRequest
MemberUpdateResponse
MemberListRequest
MemberListResponse
MemberPromoteRequest
MemberPromoteResponse
DefragmentRequest
DefragmentResponse
MoveLeaderRequest
MoveLeaderResponse
AlarmRequest
AlarmMember
AlarmResponse
StatusRequest
StatusResponse
AuthEnableRequest
AuthDisableRequest
AuthenticateRequest
AuthUserAddRequest
AuthUserGetRequest
AuthUserDeleteRequest
AuthUserChangePasswordRequest
AuthUserGrantRoleRequest
AuthUserRevokeRoleRequest
AuthRoleAddRequest
AuthRoleGetRequest
AuthUserListRequest
AuthRoleListRequest
AuthRoleDeleteRequest
AuthRoleGrantPermissionRequest
AuthRoleRevokePermissionRequest
AuthEnableResponse
AuthDisableResponse
AuthenticateResponse
AuthUserAddResponse
AuthUserGetResponse
AuthUserDeleteResponse
AuthUserChangePasswordResponse
AuthUserGrantRoleResponse
AuthUserRevokeRoleResponse
AuthRoleAddResponse
AuthRoleGetResponse
AuthRoleListResponse
AuthUserListResponse
AuthRoleDeleteResponse
AuthRoleGrantPermissionResponse
AuthRoleRevokePermissionResponse

Index

Package Files

etcdserver.pb.go raft_internal.pb.go raft_internal_stringer.go rpc.pb.go

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",
    2:  "CORRUPT",
}
var AlarmType_value = map[string]int32{
    "NONE":    0,
    "NOSPACE": 1,
    "CORRUPT": 2,
}
var Compare_CompareResult_name = map[int32]string{
    0:  "EQUAL",
    1:  "GREATER",
    2:  "LESS",
    3:  "NOT_EQUAL",
}
var Compare_CompareResult_value = map[string]int32{
    "EQUAL":     0,
    "GREATER":   1,
    "LESS":      2,
    "NOT_EQUAL": 3,
}
var Compare_CompareTarget_name = map[int32]string{
    0:  "VERSION",
    1:  "CREATE",
    2:  "MOD",
    3:  "VALUE",
    4:  "LEASE",
}
var Compare_CompareTarget_value = map[string]int32{
    "VERSION": 0,
    "CREATE":  1,
    "MOD":     2,
    "VALUE":   3,
    "LEASE":   4,
}
var RangeRequest_SortOrder_name = map[int32]string{
    0:  "NONE",
    1:  "ASCEND",
    2:  "DESCEND",
}
var RangeRequest_SortOrder_value = map[string]int32{
    "NONE":    0,
    "ASCEND":  1,
    "DESCEND": 2,
}
var RangeRequest_SortTarget_name = map[int32]string{
    0:  "KEY",
    1:  "VERSION",
    2:  "CREATE",
    3:  "MOD",
    4:  "VALUE",
}
var RangeRequest_SortTarget_value = map[string]int32{
    "KEY":     0,
    "VERSION": 1,
    "CREATE":  2,
    "MOD":     3,
    "VALUE":   4,
}
var WatchCreateRequest_FilterType_name = map[int32]string{
    0:  "NOPUT",
    1:  "NODELETE",
}
var WatchCreateRequest_FilterType_value = map[string]int32{
    "NOPUT":    0,
    "NODELETE": 1,
}

func NewLoggablePutRequest Uses

func NewLoggablePutRequest(request *PutRequest) *loggablePutRequest

func NewLoggableTxnRequest Uses

func NewLoggableTxnRequest(request *TxnRequest) *txnRequestStringer

func RegisterAuthServer Uses

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

func RegisterClusterServer Uses

func RegisterClusterServer(s *grpc.Server, srv ClusterServer)

func RegisterKVServer Uses

func RegisterKVServer(s *grpc.Server, srv KVServer)

func RegisterLeaseServer Uses

func RegisterLeaseServer(s *grpc.Server, srv LeaseServer)

func RegisterMaintenanceServer Uses

func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer)

func RegisterWatchServer Uses

func RegisterWatchServer(s *grpc.Server, srv WatchServer)

type AlarmMember Uses

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 Uses

func (*AlarmMember) Descriptor() ([]byte, []int)

func (*AlarmMember) GetAlarm Uses

func (m *AlarmMember) GetAlarm() AlarmType

func (*AlarmMember) GetMemberID Uses

func (m *AlarmMember) GetMemberID() uint64

func (*AlarmMember) Marshal Uses

func (m *AlarmMember) Marshal() (dAtA []byte, err error)

func (*AlarmMember) MarshalTo Uses

func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error)

func (*AlarmMember) ProtoMessage Uses

func (*AlarmMember) ProtoMessage()

func (*AlarmMember) Reset Uses

func (m *AlarmMember) Reset()

func (*AlarmMember) Size Uses

func (m *AlarmMember) Size() (n int)

func (*AlarmMember) String Uses

func (m *AlarmMember) String() string

func (*AlarmMember) Unmarshal Uses

func (m *AlarmMember) Unmarshal(dAtA []byte) error

type AlarmRequest Uses

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 Uses

func (*AlarmRequest) Descriptor() ([]byte, []int)

func (*AlarmRequest) GetAction Uses

func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction

func (*AlarmRequest) GetAlarm Uses

func (m *AlarmRequest) GetAlarm() AlarmType

func (*AlarmRequest) GetMemberID Uses

func (m *AlarmRequest) GetMemberID() uint64

func (*AlarmRequest) Marshal Uses

func (m *AlarmRequest) Marshal() (dAtA []byte, err error)

func (*AlarmRequest) MarshalTo Uses

func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error)

func (*AlarmRequest) ProtoMessage Uses

func (*AlarmRequest) ProtoMessage()

func (*AlarmRequest) Reset Uses

func (m *AlarmRequest) Reset()

func (*AlarmRequest) Size Uses

func (m *AlarmRequest) Size() (n int)

func (*AlarmRequest) String Uses

func (m *AlarmRequest) String() string

func (*AlarmRequest) Unmarshal Uses

func (m *AlarmRequest) Unmarshal(dAtA []byte) error

type AlarmRequest_AlarmAction Uses

type AlarmRequest_AlarmAction int32
const (
    AlarmRequest_GET        AlarmRequest_AlarmAction = 0
    AlarmRequest_ACTIVATE   AlarmRequest_AlarmAction = 1
    AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2
)

func (AlarmRequest_AlarmAction) EnumDescriptor Uses

func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int)

func (AlarmRequest_AlarmAction) String Uses

func (x AlarmRequest_AlarmAction) String() string

type AlarmResponse Uses

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 Uses

func (*AlarmResponse) Descriptor() ([]byte, []int)

func (*AlarmResponse) GetAlarms Uses

func (m *AlarmResponse) GetAlarms() []*AlarmMember

func (*AlarmResponse) GetHeader Uses

func (m *AlarmResponse) GetHeader() *ResponseHeader

func (*AlarmResponse) Marshal Uses

func (m *AlarmResponse) Marshal() (dAtA []byte, err error)

func (*AlarmResponse) MarshalTo Uses

func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error)

func (*AlarmResponse) ProtoMessage Uses

func (*AlarmResponse) ProtoMessage()

func (*AlarmResponse) Reset Uses

func (m *AlarmResponse) Reset()

func (*AlarmResponse) Size Uses

func (m *AlarmResponse) Size() (n int)

func (*AlarmResponse) String Uses

func (m *AlarmResponse) String() string

func (*AlarmResponse) Unmarshal Uses

func (m *AlarmResponse) Unmarshal(dAtA []byte) error

type AlarmType Uses

type AlarmType int32
const (
    AlarmType_NONE    AlarmType = 0
    AlarmType_NOSPACE AlarmType = 1
    AlarmType_CORRUPT AlarmType = 2
)

func (AlarmType) EnumDescriptor Uses

func (AlarmType) EnumDescriptor() ([]byte, []int)

func (AlarmType) String Uses

func (x AlarmType) String() string

type AuthClient Uses

type AuthClient interface {
    // AuthEnable enables authentication.
    AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error)
    // AuthDisable disables authentication.
    AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error)
    // Authenticate processes an authenticate request.
    Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
    // UserAdd adds a new user. User name cannot be empty.
    UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error)
    // UserGet gets detailed user information.
    UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error)
    // UserList gets a list of all users.
    UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error)
    // UserDelete deletes a specified user.
    UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error)
    // UserChangePassword changes the password of a specified user.
    UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error)
    // UserGrant grants a role to a specified user.
    UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error)
    // UserRevokeRole revokes a role of specified user.
    UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error)
    // RoleAdd adds a new role. Role name cannot be empty.
    RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error)
    // RoleGet gets detailed role information.
    RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error)
    // RoleList gets lists of all roles.
    RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error)
    // RoleDelete deletes a specified role.
    RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error)
    // RoleGrantPermission grants a permission of a specified key or range to a specified role.
    RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error)
    // RoleRevokePermission revokes a key or range permission of a specified role.
    RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error)
}

func NewAuthClient Uses

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type AuthDisableRequest Uses

type AuthDisableRequest struct {
}

func (*AuthDisableRequest) Descriptor Uses

func (*AuthDisableRequest) Descriptor() ([]byte, []int)

func (*AuthDisableRequest) Marshal Uses

func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error)

func (*AuthDisableRequest) MarshalTo Uses

func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthDisableRequest) ProtoMessage Uses

func (*AuthDisableRequest) ProtoMessage()

func (*AuthDisableRequest) Reset Uses

func (m *AuthDisableRequest) Reset()

func (*AuthDisableRequest) Size Uses

func (m *AuthDisableRequest) Size() (n int)

func (*AuthDisableRequest) String Uses

func (m *AuthDisableRequest) String() string

func (*AuthDisableRequest) Unmarshal Uses

func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error

type AuthDisableResponse Uses

type AuthDisableResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthDisableResponse) Descriptor Uses

func (*AuthDisableResponse) Descriptor() ([]byte, []int)

func (*AuthDisableResponse) GetHeader Uses

func (m *AuthDisableResponse) GetHeader() *ResponseHeader

func (*AuthDisableResponse) Marshal Uses

func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error)

func (*AuthDisableResponse) MarshalTo Uses

func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthDisableResponse) ProtoMessage Uses

func (*AuthDisableResponse) ProtoMessage()

func (*AuthDisableResponse) Reset Uses

func (m *AuthDisableResponse) Reset()

func (*AuthDisableResponse) Size Uses

func (m *AuthDisableResponse) Size() (n int)

func (*AuthDisableResponse) String Uses

func (m *AuthDisableResponse) String() string

func (*AuthDisableResponse) Unmarshal Uses

func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error

type AuthEnableRequest Uses

type AuthEnableRequest struct {
}

func (*AuthEnableRequest) Descriptor Uses

func (*AuthEnableRequest) Descriptor() ([]byte, []int)

func (*AuthEnableRequest) Marshal Uses

func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error)

func (*AuthEnableRequest) MarshalTo Uses

func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthEnableRequest) ProtoMessage Uses

func (*AuthEnableRequest) ProtoMessage()

func (*AuthEnableRequest) Reset Uses

func (m *AuthEnableRequest) Reset()

func (*AuthEnableRequest) Size Uses

func (m *AuthEnableRequest) Size() (n int)

func (*AuthEnableRequest) String Uses

func (m *AuthEnableRequest) String() string

func (*AuthEnableRequest) Unmarshal Uses

func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error

type AuthEnableResponse Uses

type AuthEnableResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthEnableResponse) Descriptor Uses

func (*AuthEnableResponse) Descriptor() ([]byte, []int)

func (*AuthEnableResponse) GetHeader Uses

func (m *AuthEnableResponse) GetHeader() *ResponseHeader

func (*AuthEnableResponse) Marshal Uses

func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error)

func (*AuthEnableResponse) MarshalTo Uses

func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthEnableResponse) ProtoMessage Uses

func (*AuthEnableResponse) ProtoMessage()

func (*AuthEnableResponse) Reset Uses

func (m *AuthEnableResponse) Reset()

func (*AuthEnableResponse) Size Uses

func (m *AuthEnableResponse) Size() (n int)

func (*AuthEnableResponse) String Uses

func (m *AuthEnableResponse) String() string

func (*AuthEnableResponse) Unmarshal Uses

func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error

type AuthRoleAddRequest Uses

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 Uses

func (*AuthRoleAddRequest) Descriptor() ([]byte, []int)

func (*AuthRoleAddRequest) GetName Uses

func (m *AuthRoleAddRequest) GetName() string

func (*AuthRoleAddRequest) Marshal Uses

func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error)

func (*AuthRoleAddRequest) MarshalTo Uses

func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleAddRequest) ProtoMessage Uses

func (*AuthRoleAddRequest) ProtoMessage()

func (*AuthRoleAddRequest) Reset Uses

func (m *AuthRoleAddRequest) Reset()

func (*AuthRoleAddRequest) Size Uses

func (m *AuthRoleAddRequest) Size() (n int)

func (*AuthRoleAddRequest) String Uses

func (m *AuthRoleAddRequest) String() string

func (*AuthRoleAddRequest) Unmarshal Uses

func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error

type AuthRoleAddResponse Uses

type AuthRoleAddResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthRoleAddResponse) Descriptor Uses

func (*AuthRoleAddResponse) Descriptor() ([]byte, []int)

func (*AuthRoleAddResponse) GetHeader Uses

func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader

func (*AuthRoleAddResponse) Marshal Uses

func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error)

func (*AuthRoleAddResponse) MarshalTo Uses

func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleAddResponse) ProtoMessage Uses

func (*AuthRoleAddResponse) ProtoMessage()

func (*AuthRoleAddResponse) Reset Uses

func (m *AuthRoleAddResponse) Reset()

func (*AuthRoleAddResponse) Size Uses

func (m *AuthRoleAddResponse) Size() (n int)

func (*AuthRoleAddResponse) String Uses

func (m *AuthRoleAddResponse) String() string

func (*AuthRoleAddResponse) Unmarshal Uses

func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error

type AuthRoleDeleteRequest Uses

type AuthRoleDeleteRequest struct {
    Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
}

func (*AuthRoleDeleteRequest) Descriptor Uses

func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int)

func (*AuthRoleDeleteRequest) GetRole Uses

func (m *AuthRoleDeleteRequest) GetRole() string

func (*AuthRoleDeleteRequest) Marshal Uses

func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error)

func (*AuthRoleDeleteRequest) MarshalTo Uses

func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleDeleteRequest) ProtoMessage Uses

func (*AuthRoleDeleteRequest) ProtoMessage()

func (*AuthRoleDeleteRequest) Reset Uses

func (m *AuthRoleDeleteRequest) Reset()

func (*AuthRoleDeleteRequest) Size Uses

func (m *AuthRoleDeleteRequest) Size() (n int)

func (*AuthRoleDeleteRequest) String Uses

func (m *AuthRoleDeleteRequest) String() string

func (*AuthRoleDeleteRequest) Unmarshal Uses

func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error

type AuthRoleDeleteResponse Uses

type AuthRoleDeleteResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthRoleDeleteResponse) Descriptor Uses

func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int)

func (*AuthRoleDeleteResponse) GetHeader Uses

func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader

func (*AuthRoleDeleteResponse) Marshal Uses

func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error)

func (*AuthRoleDeleteResponse) MarshalTo Uses

func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleDeleteResponse) ProtoMessage Uses

func (*AuthRoleDeleteResponse) ProtoMessage()

func (*AuthRoleDeleteResponse) Reset Uses

func (m *AuthRoleDeleteResponse) Reset()

func (*AuthRoleDeleteResponse) Size Uses

func (m *AuthRoleDeleteResponse) Size() (n int)

func (*AuthRoleDeleteResponse) String Uses

func (m *AuthRoleDeleteResponse) String() string

func (*AuthRoleDeleteResponse) Unmarshal Uses

func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error

type AuthRoleGetRequest Uses

type AuthRoleGetRequest struct {
    Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
}

func (*AuthRoleGetRequest) Descriptor Uses

func (*AuthRoleGetRequest) Descriptor() ([]byte, []int)

func (*AuthRoleGetRequest) GetRole Uses

func (m *AuthRoleGetRequest) GetRole() string

func (*AuthRoleGetRequest) Marshal Uses

func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error)

func (*AuthRoleGetRequest) MarshalTo Uses

func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleGetRequest) ProtoMessage Uses

func (*AuthRoleGetRequest) ProtoMessage()

func (*AuthRoleGetRequest) Reset Uses

func (m *AuthRoleGetRequest) Reset()

func (*AuthRoleGetRequest) Size Uses

func (m *AuthRoleGetRequest) Size() (n int)

func (*AuthRoleGetRequest) String Uses

func (m *AuthRoleGetRequest) String() string

func (*AuthRoleGetRequest) Unmarshal Uses

func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error

type AuthRoleGetResponse Uses

type AuthRoleGetResponse struct {
    Header *ResponseHeader      `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    Perm   []*authpb.Permission `protobuf:"bytes,2,rep,name=perm" json:"perm,omitempty"`
}

func (*AuthRoleGetResponse) Descriptor Uses

func (*AuthRoleGetResponse) Descriptor() ([]byte, []int)

func (*AuthRoleGetResponse) GetHeader Uses

func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader

func (*AuthRoleGetResponse) GetPerm Uses

func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission

func (*AuthRoleGetResponse) Marshal Uses

func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error)

func (*AuthRoleGetResponse) MarshalTo Uses

func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleGetResponse) ProtoMessage Uses

func (*AuthRoleGetResponse) ProtoMessage()

func (*AuthRoleGetResponse) Reset Uses

func (m *AuthRoleGetResponse) Reset()

func (*AuthRoleGetResponse) Size Uses

func (m *AuthRoleGetResponse) Size() (n int)

func (*AuthRoleGetResponse) String Uses

func (m *AuthRoleGetResponse) String() string

func (*AuthRoleGetResponse) Unmarshal Uses

func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error

type AuthRoleGrantPermissionRequest Uses

type AuthRoleGrantPermissionRequest struct {
    // name is the name of the role which will be granted the permission.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // perm is the permission to grant to the role.
    Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm" json:"perm,omitempty"`
}

func (*AuthRoleGrantPermissionRequest) Descriptor Uses

func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int)

func (*AuthRoleGrantPermissionRequest) GetName Uses

func (m *AuthRoleGrantPermissionRequest) GetName() string

func (*AuthRoleGrantPermissionRequest) GetPerm Uses

func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission

func (*AuthRoleGrantPermissionRequest) Marshal Uses

func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error)

func (*AuthRoleGrantPermissionRequest) MarshalTo Uses

func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleGrantPermissionRequest) ProtoMessage Uses

func (*AuthRoleGrantPermissionRequest) ProtoMessage()

func (*AuthRoleGrantPermissionRequest) Reset Uses

func (m *AuthRoleGrantPermissionRequest) Reset()

func (*AuthRoleGrantPermissionRequest) Size Uses

func (m *AuthRoleGrantPermissionRequest) Size() (n int)

func (*AuthRoleGrantPermissionRequest) String Uses

func (m *AuthRoleGrantPermissionRequest) String() string

func (*AuthRoleGrantPermissionRequest) Unmarshal Uses

func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error

type AuthRoleGrantPermissionResponse Uses

type AuthRoleGrantPermissionResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthRoleGrantPermissionResponse) Descriptor Uses

func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int)

func (*AuthRoleGrantPermissionResponse) GetHeader Uses

func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader

func (*AuthRoleGrantPermissionResponse) Marshal Uses

func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error)

func (*AuthRoleGrantPermissionResponse) MarshalTo Uses

func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleGrantPermissionResponse) ProtoMessage Uses

func (*AuthRoleGrantPermissionResponse) ProtoMessage()

func (*AuthRoleGrantPermissionResponse) Reset Uses

func (m *AuthRoleGrantPermissionResponse) Reset()

func (*AuthRoleGrantPermissionResponse) Size Uses

func (m *AuthRoleGrantPermissionResponse) Size() (n int)

func (*AuthRoleGrantPermissionResponse) String Uses

func (m *AuthRoleGrantPermissionResponse) String() string

func (*AuthRoleGrantPermissionResponse) Unmarshal Uses

func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error

type AuthRoleListRequest Uses

type AuthRoleListRequest struct {
}

func (*AuthRoleListRequest) Descriptor Uses

func (*AuthRoleListRequest) Descriptor() ([]byte, []int)

func (*AuthRoleListRequest) Marshal Uses

func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error)

func (*AuthRoleListRequest) MarshalTo Uses

func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleListRequest) ProtoMessage Uses

func (*AuthRoleListRequest) ProtoMessage()

func (*AuthRoleListRequest) Reset Uses

func (m *AuthRoleListRequest) Reset()

func (*AuthRoleListRequest) Size Uses

func (m *AuthRoleListRequest) Size() (n int)

func (*AuthRoleListRequest) String Uses

func (m *AuthRoleListRequest) String() string

func (*AuthRoleListRequest) Unmarshal Uses

func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error

type AuthRoleListResponse Uses

type AuthRoleListResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    Roles  []string        `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"`
}

func (*AuthRoleListResponse) Descriptor Uses

func (*AuthRoleListResponse) Descriptor() ([]byte, []int)

func (*AuthRoleListResponse) GetHeader Uses

func (m *AuthRoleListResponse) GetHeader() *ResponseHeader

func (*AuthRoleListResponse) GetRoles Uses

func (m *AuthRoleListResponse) GetRoles() []string

func (*AuthRoleListResponse) Marshal Uses

func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error)

func (*AuthRoleListResponse) MarshalTo Uses

func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleListResponse) ProtoMessage Uses

func (*AuthRoleListResponse) ProtoMessage()

func (*AuthRoleListResponse) Reset Uses

func (m *AuthRoleListResponse) Reset()

func (*AuthRoleListResponse) Size Uses

func (m *AuthRoleListResponse) Size() (n int)

func (*AuthRoleListResponse) String Uses

func (m *AuthRoleListResponse) String() string

func (*AuthRoleListResponse) Unmarshal Uses

func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error

type AuthRoleRevokePermissionRequest Uses

type AuthRoleRevokePermissionRequest struct {
    Role     string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
    Key      []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
    RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
}

func (*AuthRoleRevokePermissionRequest) Descriptor Uses

func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int)

func (*AuthRoleRevokePermissionRequest) GetKey Uses

func (m *AuthRoleRevokePermissionRequest) GetKey() []byte

func (*AuthRoleRevokePermissionRequest) GetRangeEnd Uses

func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte

func (*AuthRoleRevokePermissionRequest) GetRole Uses

func (m *AuthRoleRevokePermissionRequest) GetRole() string

func (*AuthRoleRevokePermissionRequest) Marshal Uses

func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error)

func (*AuthRoleRevokePermissionRequest) MarshalTo Uses

func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleRevokePermissionRequest) ProtoMessage Uses

func (*AuthRoleRevokePermissionRequest) ProtoMessage()

func (*AuthRoleRevokePermissionRequest) Reset Uses

func (m *AuthRoleRevokePermissionRequest) Reset()

func (*AuthRoleRevokePermissionRequest) Size Uses

func (m *AuthRoleRevokePermissionRequest) Size() (n int)

func (*AuthRoleRevokePermissionRequest) String Uses

func (m *AuthRoleRevokePermissionRequest) String() string

func (*AuthRoleRevokePermissionRequest) Unmarshal Uses

func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error

type AuthRoleRevokePermissionResponse Uses

type AuthRoleRevokePermissionResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthRoleRevokePermissionResponse) Descriptor Uses

func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int)

func (*AuthRoleRevokePermissionResponse) GetHeader Uses

func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader

func (*AuthRoleRevokePermissionResponse) Marshal Uses

func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error)

func (*AuthRoleRevokePermissionResponse) MarshalTo Uses

func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthRoleRevokePermissionResponse) ProtoMessage Uses

func (*AuthRoleRevokePermissionResponse) ProtoMessage()

func (*AuthRoleRevokePermissionResponse) Reset Uses

func (m *AuthRoleRevokePermissionResponse) Reset()

func (*AuthRoleRevokePermissionResponse) Size Uses

func (m *AuthRoleRevokePermissionResponse) Size() (n int)

func (*AuthRoleRevokePermissionResponse) String Uses

func (m *AuthRoleRevokePermissionResponse) String() string

func (*AuthRoleRevokePermissionResponse) Unmarshal Uses

func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error

type AuthServer Uses

type AuthServer interface {
    // AuthEnable enables authentication.
    AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
    // AuthDisable disables authentication.
    AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
    // Authenticate processes an authenticate request.
    Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
    // UserAdd adds a new user. User name cannot be empty.
    UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
    // UserGet gets detailed user information.
    UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error)
    // UserList gets a list of all users.
    UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error)
    // UserDelete deletes a specified user.
    UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error)
    // UserChangePassword changes the password of a specified user.
    UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error)
    // UserGrant grants a role to a specified user.
    UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error)
    // UserRevokeRole revokes a role of specified user.
    UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error)
    // RoleAdd adds a new role. Role name cannot be empty.
    RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error)
    // RoleGet gets detailed role information.
    RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error)
    // RoleList gets lists of all roles.
    RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error)
    // RoleDelete deletes a specified role.
    RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error)
    // RoleGrantPermission grants a permission of a specified key or range to a specified role.
    RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error)
    // RoleRevokePermission revokes a key or range permission of a specified role.
    RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error)
}

type AuthUserAddRequest Uses

type AuthUserAddRequest struct {
    Name     string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Password string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    Options  *authpb.UserAddOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
}

func (*AuthUserAddRequest) Descriptor Uses

func (*AuthUserAddRequest) Descriptor() ([]byte, []int)

func (*AuthUserAddRequest) GetName Uses

func (m *AuthUserAddRequest) GetName() string

func (*AuthUserAddRequest) GetOptions Uses

func (m *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions

func (*AuthUserAddRequest) GetPassword Uses

func (m *AuthUserAddRequest) GetPassword() string

func (*AuthUserAddRequest) Marshal Uses

func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserAddRequest) MarshalTo Uses

func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserAddRequest) ProtoMessage Uses

func (*AuthUserAddRequest) ProtoMessage()

func (*AuthUserAddRequest) Reset Uses

func (m *AuthUserAddRequest) Reset()

func (*AuthUserAddRequest) Size Uses

func (m *AuthUserAddRequest) Size() (n int)

func (*AuthUserAddRequest) String Uses

func (m *AuthUserAddRequest) String() string

func (*AuthUserAddRequest) Unmarshal Uses

func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error

type AuthUserAddResponse Uses

type AuthUserAddResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthUserAddResponse) Descriptor Uses

func (*AuthUserAddResponse) Descriptor() ([]byte, []int)

func (*AuthUserAddResponse) GetHeader Uses

func (m *AuthUserAddResponse) GetHeader() *ResponseHeader

func (*AuthUserAddResponse) Marshal Uses

func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserAddResponse) MarshalTo Uses

func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserAddResponse) ProtoMessage Uses

func (*AuthUserAddResponse) ProtoMessage()

func (*AuthUserAddResponse) Reset Uses

func (m *AuthUserAddResponse) Reset()

func (*AuthUserAddResponse) Size Uses

func (m *AuthUserAddResponse) Size() (n int)

func (*AuthUserAddResponse) String Uses

func (m *AuthUserAddResponse) String() string

func (*AuthUserAddResponse) Unmarshal Uses

func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error

type AuthUserChangePasswordRequest Uses

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 Uses

func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int)

func (*AuthUserChangePasswordRequest) GetName Uses

func (m *AuthUserChangePasswordRequest) GetName() string

func (*AuthUserChangePasswordRequest) GetPassword Uses

func (m *AuthUserChangePasswordRequest) GetPassword() string

func (*AuthUserChangePasswordRequest) Marshal Uses

func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserChangePasswordRequest) MarshalTo Uses

func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserChangePasswordRequest) ProtoMessage Uses

func (*AuthUserChangePasswordRequest) ProtoMessage()

func (*AuthUserChangePasswordRequest) Reset Uses

func (m *AuthUserChangePasswordRequest) Reset()

func (*AuthUserChangePasswordRequest) Size Uses

func (m *AuthUserChangePasswordRequest) Size() (n int)

func (*AuthUserChangePasswordRequest) String Uses

func (m *AuthUserChangePasswordRequest) String() string

func (*AuthUserChangePasswordRequest) Unmarshal Uses

func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error

type AuthUserChangePasswordResponse Uses

type AuthUserChangePasswordResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthUserChangePasswordResponse) Descriptor Uses

func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int)

func (*AuthUserChangePasswordResponse) GetHeader Uses

func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader

func (*AuthUserChangePasswordResponse) Marshal Uses

func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserChangePasswordResponse) MarshalTo Uses

func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserChangePasswordResponse) ProtoMessage Uses

func (*AuthUserChangePasswordResponse) ProtoMessage()

func (*AuthUserChangePasswordResponse) Reset Uses

func (m *AuthUserChangePasswordResponse) Reset()

func (*AuthUserChangePasswordResponse) Size Uses

func (m *AuthUserChangePasswordResponse) Size() (n int)

func (*AuthUserChangePasswordResponse) String Uses

func (m *AuthUserChangePasswordResponse) String() string

func (*AuthUserChangePasswordResponse) Unmarshal Uses

func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error

type AuthUserDeleteRequest Uses

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 Uses

func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int)

func (*AuthUserDeleteRequest) GetName Uses

func (m *AuthUserDeleteRequest) GetName() string

func (*AuthUserDeleteRequest) Marshal Uses

func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserDeleteRequest) MarshalTo Uses

func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserDeleteRequest) ProtoMessage Uses

func (*AuthUserDeleteRequest) ProtoMessage()

func (*AuthUserDeleteRequest) Reset Uses

func (m *AuthUserDeleteRequest) Reset()

func (*AuthUserDeleteRequest) Size Uses

func (m *AuthUserDeleteRequest) Size() (n int)

func (*AuthUserDeleteRequest) String Uses

func (m *AuthUserDeleteRequest) String() string

func (*AuthUserDeleteRequest) Unmarshal Uses

func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error

type AuthUserDeleteResponse Uses

type AuthUserDeleteResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthUserDeleteResponse) Descriptor Uses

func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int)

func (*AuthUserDeleteResponse) GetHeader Uses

func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader

func (*AuthUserDeleteResponse) Marshal Uses

func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserDeleteResponse) MarshalTo Uses

func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserDeleteResponse) ProtoMessage Uses

func (*AuthUserDeleteResponse) ProtoMessage()

func (*AuthUserDeleteResponse) Reset Uses

func (m *AuthUserDeleteResponse) Reset()

func (*AuthUserDeleteResponse) Size Uses

func (m *AuthUserDeleteResponse) Size() (n int)

func (*AuthUserDeleteResponse) String Uses

func (m *AuthUserDeleteResponse) String() string

func (*AuthUserDeleteResponse) Unmarshal Uses

func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error

type AuthUserGetRequest Uses

type AuthUserGetRequest struct {
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*AuthUserGetRequest) Descriptor Uses

func (*AuthUserGetRequest) Descriptor() ([]byte, []int)

func (*AuthUserGetRequest) GetName Uses

func (m *AuthUserGetRequest) GetName() string

func (*AuthUserGetRequest) Marshal Uses

func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserGetRequest) MarshalTo Uses

func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserGetRequest) ProtoMessage Uses

func (*AuthUserGetRequest) ProtoMessage()

func (*AuthUserGetRequest) Reset Uses

func (m *AuthUserGetRequest) Reset()

func (*AuthUserGetRequest) Size Uses

func (m *AuthUserGetRequest) Size() (n int)

func (*AuthUserGetRequest) String Uses

func (m *AuthUserGetRequest) String() string

func (*AuthUserGetRequest) Unmarshal Uses

func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error

type AuthUserGetResponse Uses

type AuthUserGetResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    Roles  []string        `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"`
}

func (*AuthUserGetResponse) Descriptor Uses

func (*AuthUserGetResponse) Descriptor() ([]byte, []int)

func (*AuthUserGetResponse) GetHeader Uses

func (m *AuthUserGetResponse) GetHeader() *ResponseHeader

func (*AuthUserGetResponse) GetRoles Uses

func (m *AuthUserGetResponse) GetRoles() []string

func (*AuthUserGetResponse) Marshal Uses

func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserGetResponse) MarshalTo Uses

func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserGetResponse) ProtoMessage Uses

func (*AuthUserGetResponse) ProtoMessage()

func (*AuthUserGetResponse) Reset Uses

func (m *AuthUserGetResponse) Reset()

func (*AuthUserGetResponse) Size Uses

func (m *AuthUserGetResponse) Size() (n int)

func (*AuthUserGetResponse) String Uses

func (m *AuthUserGetResponse) String() string

func (*AuthUserGetResponse) Unmarshal Uses

func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error

type AuthUserGrantRoleRequest Uses

type AuthUserGrantRoleRequest struct {
    // user is the name of the user which should be granted a given role.
    User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
    // role is the name of the role to grant to the user.
    Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
}

func (*AuthUserGrantRoleRequest) Descriptor Uses

func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int)

func (*AuthUserGrantRoleRequest) GetRole Uses

func (m *AuthUserGrantRoleRequest) GetRole() string

func (*AuthUserGrantRoleRequest) GetUser Uses

func (m *AuthUserGrantRoleRequest) GetUser() string

func (*AuthUserGrantRoleRequest) Marshal Uses

func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserGrantRoleRequest) MarshalTo Uses

func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserGrantRoleRequest) ProtoMessage Uses

func (*AuthUserGrantRoleRequest) ProtoMessage()

func (*AuthUserGrantRoleRequest) Reset Uses

func (m *AuthUserGrantRoleRequest) Reset()

func (*AuthUserGrantRoleRequest) Size Uses

func (m *AuthUserGrantRoleRequest) Size() (n int)

func (*AuthUserGrantRoleRequest) String Uses

func (m *AuthUserGrantRoleRequest) String() string

func (*AuthUserGrantRoleRequest) Unmarshal Uses

func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error

type AuthUserGrantRoleResponse Uses

type AuthUserGrantRoleResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthUserGrantRoleResponse) Descriptor Uses

func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int)

func (*AuthUserGrantRoleResponse) GetHeader Uses

func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader

func (*AuthUserGrantRoleResponse) Marshal Uses

func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserGrantRoleResponse) MarshalTo Uses

func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserGrantRoleResponse) ProtoMessage Uses

func (*AuthUserGrantRoleResponse) ProtoMessage()

func (*AuthUserGrantRoleResponse) Reset Uses

func (m *AuthUserGrantRoleResponse) Reset()

func (*AuthUserGrantRoleResponse) Size Uses

func (m *AuthUserGrantRoleResponse) Size() (n int)

func (*AuthUserGrantRoleResponse) String Uses

func (m *AuthUserGrantRoleResponse) String() string

func (*AuthUserGrantRoleResponse) Unmarshal Uses

func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error

type AuthUserListRequest Uses

type AuthUserListRequest struct {
}

func (*AuthUserListRequest) Descriptor Uses

func (*AuthUserListRequest) Descriptor() ([]byte, []int)

func (*AuthUserListRequest) Marshal Uses

func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserListRequest) MarshalTo Uses

func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserListRequest) ProtoMessage Uses

func (*AuthUserListRequest) ProtoMessage()

func (*AuthUserListRequest) Reset Uses

func (m *AuthUserListRequest) Reset()

func (*AuthUserListRequest) Size Uses

func (m *AuthUserListRequest) Size() (n int)

func (*AuthUserListRequest) String Uses

func (m *AuthUserListRequest) String() string

func (*AuthUserListRequest) Unmarshal Uses

func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error

type AuthUserListResponse Uses

type AuthUserListResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    Users  []string        `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"`
}

func (*AuthUserListResponse) Descriptor Uses

func (*AuthUserListResponse) Descriptor() ([]byte, []int)

func (*AuthUserListResponse) GetHeader Uses

func (m *AuthUserListResponse) GetHeader() *ResponseHeader

func (*AuthUserListResponse) GetUsers Uses

func (m *AuthUserListResponse) GetUsers() []string

func (*AuthUserListResponse) Marshal Uses

func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserListResponse) MarshalTo Uses

func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserListResponse) ProtoMessage Uses

func (*AuthUserListResponse) ProtoMessage()

func (*AuthUserListResponse) Reset Uses

func (m *AuthUserListResponse) Reset()

func (*AuthUserListResponse) Size Uses

func (m *AuthUserListResponse) Size() (n int)

func (*AuthUserListResponse) String Uses

func (m *AuthUserListResponse) String() string

func (*AuthUserListResponse) Unmarshal Uses

func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error

type AuthUserRevokeRoleRequest Uses

type AuthUserRevokeRoleRequest struct {
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
}

func (*AuthUserRevokeRoleRequest) Descriptor Uses

func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int)

func (*AuthUserRevokeRoleRequest) GetName Uses

func (m *AuthUserRevokeRoleRequest) GetName() string

func (*AuthUserRevokeRoleRequest) GetRole Uses

func (m *AuthUserRevokeRoleRequest) GetRole() string

func (*AuthUserRevokeRoleRequest) Marshal Uses

func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error)

func (*AuthUserRevokeRoleRequest) MarshalTo Uses

func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserRevokeRoleRequest) ProtoMessage Uses

func (*AuthUserRevokeRoleRequest) ProtoMessage()

func (*AuthUserRevokeRoleRequest) Reset Uses

func (m *AuthUserRevokeRoleRequest) Reset()

func (*AuthUserRevokeRoleRequest) Size Uses

func (m *AuthUserRevokeRoleRequest) Size() (n int)

func (*AuthUserRevokeRoleRequest) String Uses

func (m *AuthUserRevokeRoleRequest) String() string

func (*AuthUserRevokeRoleRequest) Unmarshal Uses

func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error

type AuthUserRevokeRoleResponse Uses

type AuthUserRevokeRoleResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthUserRevokeRoleResponse) Descriptor Uses

func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int)

func (*AuthUserRevokeRoleResponse) GetHeader Uses

func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader

func (*AuthUserRevokeRoleResponse) Marshal Uses

func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error)

func (*AuthUserRevokeRoleResponse) MarshalTo Uses

func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthUserRevokeRoleResponse) ProtoMessage Uses

func (*AuthUserRevokeRoleResponse) ProtoMessage()

func (*AuthUserRevokeRoleResponse) Reset Uses

func (m *AuthUserRevokeRoleResponse) Reset()

func (*AuthUserRevokeRoleResponse) Size Uses

func (m *AuthUserRevokeRoleResponse) Size() (n int)

func (*AuthUserRevokeRoleResponse) String Uses

func (m *AuthUserRevokeRoleResponse) String() string

func (*AuthUserRevokeRoleResponse) Unmarshal Uses

func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error

type AuthenticateRequest Uses

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 Uses

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

func (*AuthenticateRequest) GetName Uses

func (m *AuthenticateRequest) GetName() string

func (*AuthenticateRequest) GetPassword Uses

func (m *AuthenticateRequest) GetPassword() string

func (*AuthenticateRequest) Marshal Uses

func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)

func (*AuthenticateRequest) MarshalTo Uses

func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticateRequest) ProtoMessage Uses

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) Reset Uses

func (m *AuthenticateRequest) Reset()

func (*AuthenticateRequest) Size Uses

func (m *AuthenticateRequest) Size() (n int)

func (*AuthenticateRequest) String Uses

func (m *AuthenticateRequest) String() string

func (*AuthenticateRequest) Unmarshal Uses

func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error

type AuthenticateResponse Uses

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 Uses

func (*AuthenticateResponse) Descriptor() ([]byte, []int)

func (*AuthenticateResponse) GetHeader Uses

func (m *AuthenticateResponse) GetHeader() *ResponseHeader

func (*AuthenticateResponse) GetToken Uses

func (m *AuthenticateResponse) GetToken() string

func (*AuthenticateResponse) Marshal Uses

func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)

func (*AuthenticateResponse) MarshalTo Uses

func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticateResponse) ProtoMessage Uses

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) Reset Uses

func (m *AuthenticateResponse) Reset()

func (*AuthenticateResponse) Size Uses

func (m *AuthenticateResponse) Size() (n int)

func (*AuthenticateResponse) String Uses

func (m *AuthenticateResponse) String() string

func (*AuthenticateResponse) Unmarshal Uses

func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error

type ClusterClient Uses

type ClusterClient interface {
    // MemberAdd adds a member into the cluster.
    MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error)
    // MemberRemove removes an existing member from the cluster.
    MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error)
    // MemberUpdate updates the member configuration.
    MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error)
    // MemberList lists all the members in the cluster.
    MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error)
    // MemberPromote promotes a member from raft learner (non-voting) to raft voting member.
    MemberPromote(ctx context.Context, in *MemberPromoteRequest, opts ...grpc.CallOption) (*MemberPromoteResponse, error)
}

func NewClusterClient Uses

func NewClusterClient(cc *grpc.ClientConn) ClusterClient

type ClusterServer Uses

type ClusterServer interface {
    // MemberAdd adds a member into the cluster.
    MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
    // MemberRemove removes an existing member from the cluster.
    MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
    // MemberUpdate updates the member configuration.
    MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
    // MemberList lists all the members in the cluster.
    MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
    // MemberPromote promotes a member from raft learner (non-voting) to raft voting member.
    MemberPromote(context.Context, *MemberPromoteRequest) (*MemberPromoteResponse, error)
}

type CompactionRequest Uses

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 Uses

func (*CompactionRequest) Descriptor() ([]byte, []int)

func (*CompactionRequest) GetPhysical Uses

func (m *CompactionRequest) GetPhysical() bool

func (*CompactionRequest) GetRevision Uses

func (m *CompactionRequest) GetRevision() int64

func (*CompactionRequest) Marshal Uses

func (m *CompactionRequest) Marshal() (dAtA []byte, err error)

func (*CompactionRequest) MarshalTo Uses

func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error)

func (*CompactionRequest) ProtoMessage Uses

func (*CompactionRequest) ProtoMessage()

func (*CompactionRequest) Reset Uses

func (m *CompactionRequest) Reset()

func (*CompactionRequest) Size Uses

func (m *CompactionRequest) Size() (n int)

func (*CompactionRequest) String Uses

func (m *CompactionRequest) String() string

func (*CompactionRequest) Unmarshal Uses

func (m *CompactionRequest) Unmarshal(dAtA []byte) error

type CompactionResponse Uses

type CompactionResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*CompactionResponse) Descriptor Uses

func (*CompactionResponse) Descriptor() ([]byte, []int)

func (*CompactionResponse) GetHeader Uses

func (m *CompactionResponse) GetHeader() *ResponseHeader

func (*CompactionResponse) Marshal Uses

func (m *CompactionResponse) Marshal() (dAtA []byte, err error)

func (*CompactionResponse) MarshalTo Uses

func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error)

func (*CompactionResponse) ProtoMessage Uses

func (*CompactionResponse) ProtoMessage()

func (*CompactionResponse) Reset Uses

func (m *CompactionResponse) Reset()

func (*CompactionResponse) Size Uses

func (m *CompactionResponse) Size() (n int)

func (*CompactionResponse) String Uses

func (m *CompactionResponse) String() string

func (*CompactionResponse) Unmarshal Uses

func (m *CompactionResponse) Unmarshal(dAtA []byte) error

type Compare Uses

type Compare struct {
    // result is logical comparison operation for this comparison.
    Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"`
    // target is the key-value field to inspect for the comparison.
    Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"`
    // key is the subject key for the comparison operation.
    Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
    // Types that are valid to be assigned to TargetUnion:
    //	*Compare_Version
    //	*Compare_CreateRevision
    //	*Compare_ModRevision
    //	*Compare_Value
    //	*Compare_Lease
    TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"`
    // range_end compares the given target to all keys in the range [key, range_end).
    // See RangeRequest for more details on key ranges.
    RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
}

func (*Compare) Descriptor Uses

func (*Compare) Descriptor() ([]byte, []int)

func (*Compare) GetCreateRevision Uses

func (m *Compare) GetCreateRevision() int64

func (*Compare) GetKey Uses

func (m *Compare) GetKey() []byte

func (*Compare) GetLease Uses

func (m *Compare) GetLease() int64

func (*Compare) GetModRevision Uses

func (m *Compare) GetModRevision() int64

func (*Compare) GetRangeEnd Uses

func (m *Compare) GetRangeEnd() []byte

func (*Compare) GetResult Uses

func (m *Compare) GetResult() Compare_CompareResult

func (*Compare) GetTarget Uses

func (m *Compare) GetTarget() Compare_CompareTarget

func (*Compare) GetTargetUnion Uses

func (m *Compare) GetTargetUnion() isCompare_TargetUnion

func (*Compare) GetValue Uses

func (m *Compare) GetValue() []byte

func (*Compare) GetVersion Uses

func (m *Compare) GetVersion() int64

func (*Compare) Marshal Uses

func (m *Compare) Marshal() (dAtA []byte, err error)

func (*Compare) MarshalTo Uses

func (m *Compare) MarshalTo(dAtA []byte) (int, error)

func (*Compare) ProtoMessage Uses

func (*Compare) ProtoMessage()

func (*Compare) Reset Uses

func (m *Compare) Reset()

func (*Compare) Size Uses

func (m *Compare) Size() (n int)

func (*Compare) String Uses

func (m *Compare) String() string

func (*Compare) Unmarshal Uses

func (m *Compare) Unmarshal(dAtA []byte) error

func (*Compare) XXX_OneofFuncs Uses

func (*Compare) 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 Compare_CompareResult Uses

type Compare_CompareResult int32
const (
    Compare_EQUAL     Compare_CompareResult = 0
    Compare_GREATER   Compare_CompareResult = 1
    Compare_LESS      Compare_CompareResult = 2
    Compare_NOT_EQUAL Compare_CompareResult = 3
)

func (Compare_CompareResult) EnumDescriptor Uses

func (Compare_CompareResult) EnumDescriptor() ([]byte, []int)

func (Compare_CompareResult) String Uses

func (x Compare_CompareResult) String() string

type Compare_CompareTarget Uses

type Compare_CompareTarget int32
const (
    Compare_VERSION Compare_CompareTarget = 0
    Compare_CREATE  Compare_CompareTarget = 1
    Compare_MOD     Compare_CompareTarget = 2
    Compare_VALUE   Compare_CompareTarget = 3
    Compare_LEASE   Compare_CompareTarget = 4
)

func (Compare_CompareTarget) EnumDescriptor Uses

func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int)

func (Compare_CompareTarget) String Uses

func (x Compare_CompareTarget) String() string

type Compare_CreateRevision Uses

type Compare_CreateRevision struct {
    CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"`
}

func (*Compare_CreateRevision) MarshalTo Uses

func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error)

func (*Compare_CreateRevision) Size Uses

func (m *Compare_CreateRevision) Size() (n int)

type Compare_Lease Uses

type Compare_Lease struct {
    Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof"`
}

func (*Compare_Lease) MarshalTo Uses

func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error)

func (*Compare_Lease) Size Uses

func (m *Compare_Lease) Size() (n int)

type Compare_ModRevision Uses

type Compare_ModRevision struct {
    ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"`
}

func (*Compare_ModRevision) MarshalTo Uses

func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error)

func (*Compare_ModRevision) Size Uses

func (m *Compare_ModRevision) Size() (n int)

type Compare_Value Uses

type Compare_Value struct {
    Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"`
}

func (*Compare_Value) MarshalTo Uses

func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error)

func (*Compare_Value) Size Uses

func (m *Compare_Value) Size() (n int)

type Compare_Version Uses

type Compare_Version struct {
    Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"`
}

func (*Compare_Version) MarshalTo Uses

func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error)

func (*Compare_Version) Size Uses

func (m *Compare_Version) Size() (n int)

type DefragmentRequest Uses

type DefragmentRequest struct {
}

func (*DefragmentRequest) Descriptor Uses

func (*DefragmentRequest) Descriptor() ([]byte, []int)

func (*DefragmentRequest) Marshal Uses

func (m *DefragmentRequest) Marshal() (dAtA []byte, err error)

func (*DefragmentRequest) MarshalTo Uses

func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error)

func (*DefragmentRequest) ProtoMessage Uses

func (*DefragmentRequest) ProtoMessage()

func (*DefragmentRequest) Reset Uses

func (m *DefragmentRequest) Reset()

func (*DefragmentRequest) Size Uses

func (m *DefragmentRequest) Size() (n int)

func (*DefragmentRequest) String Uses

func (m *DefragmentRequest) String() string

func (*DefragmentRequest) Unmarshal Uses

func (m *DefragmentRequest) Unmarshal(dAtA []byte) error

type DefragmentResponse Uses

type DefragmentResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*DefragmentResponse) Descriptor Uses

func (*DefragmentResponse) Descriptor() ([]byte, []int)

func (*DefragmentResponse) GetHeader Uses

func (m *DefragmentResponse) GetHeader() *ResponseHeader

func (*DefragmentResponse) Marshal Uses

func (m *DefragmentResponse) Marshal() (dAtA []byte, err error)

func (*DefragmentResponse) MarshalTo Uses

func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error)

func (*DefragmentResponse) ProtoMessage Uses

func (*DefragmentResponse) ProtoMessage()

func (*DefragmentResponse) Reset Uses

func (m *DefragmentResponse) Reset()

func (*DefragmentResponse) Size Uses

func (m *DefragmentResponse) Size() (n int)

func (*DefragmentResponse) String Uses

func (m *DefragmentResponse) String() string

func (*DefragmentResponse) Unmarshal Uses

func (m *DefragmentResponse) Unmarshal(dAtA []byte) error

type DeleteRangeRequest Uses

type DeleteRangeRequest struct {
    // key is the first key to delete in the range.
    Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // range_end is the key following the last key to delete for the range [key, range_end).
    // If range_end is not given, the range is defined to contain only the key argument.
    // If range_end is one bit larger than the given key, then the range is all the keys
    // with the prefix (the given key).
    // If range_end is '\0', the range is all keys greater than or equal to the key argument.
    RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
    // If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
    // The previous key-value pairs will be returned in the delete response.
    PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
}

func (*DeleteRangeRequest) Descriptor Uses

func (*DeleteRangeRequest) Descriptor() ([]byte, []int)

func (*DeleteRangeRequest) GetKey Uses

func (m *DeleteRangeRequest) GetKey() []byte

func (*DeleteRangeRequest) GetPrevKv Uses

func (m *DeleteRangeRequest) GetPrevKv() bool

func (*DeleteRangeRequest) GetRangeEnd Uses

func (m *DeleteRangeRequest) GetRangeEnd() []byte

func (*DeleteRangeRequest) Marshal Uses

func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error)

func (*DeleteRangeRequest) MarshalTo Uses

func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRangeRequest) ProtoMessage Uses

func (*DeleteRangeRequest) ProtoMessage()

func (*DeleteRangeRequest) Reset Uses

func (m *DeleteRangeRequest) Reset()

func (*DeleteRangeRequest) Size Uses

func (m *DeleteRangeRequest) Size() (n int)

func (*DeleteRangeRequest) String Uses

func (m *DeleteRangeRequest) String() string

func (*DeleteRangeRequest) Unmarshal Uses

func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error

type DeleteRangeResponse Uses

type DeleteRangeResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // deleted is the number of keys deleted by the delete range request.
    Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
    // if prev_kv is set in the request, the previous key-value pairs will be returned.
    PrevKvs []*mvccpb.KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs" json:"prev_kvs,omitempty"`
}

func (*DeleteRangeResponse) Descriptor Uses

func (*DeleteRangeResponse) Descriptor() ([]byte, []int)

func (*DeleteRangeResponse) GetDeleted Uses

func (m *DeleteRangeResponse) GetDeleted() int64

func (*DeleteRangeResponse) GetHeader Uses

func (m *DeleteRangeResponse) GetHeader() *ResponseHeader

func (*DeleteRangeResponse) GetPrevKvs Uses

func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue

func (*DeleteRangeResponse) Marshal Uses

func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error)

func (*DeleteRangeResponse) MarshalTo Uses

func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRangeResponse) ProtoMessage Uses

func (*DeleteRangeResponse) ProtoMessage()

func (*DeleteRangeResponse) Reset Uses

func (m *DeleteRangeResponse) Reset()

func (*DeleteRangeResponse) Size Uses

func (m *DeleteRangeResponse) Size() (n int)

func (*DeleteRangeResponse) String Uses

func (m *DeleteRangeResponse) String() string

func (*DeleteRangeResponse) Unmarshal Uses

func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error

type EmptyResponse Uses

type EmptyResponse struct {
}

func (*EmptyResponse) Descriptor Uses

func (*EmptyResponse) Descriptor() ([]byte, []int)

func (*EmptyResponse) Marshal Uses

func (m *EmptyResponse) Marshal() (dAtA []byte, err error)

func (*EmptyResponse) MarshalTo Uses

func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)

func (*EmptyResponse) ProtoMessage Uses

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset Uses

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size Uses

func (m *EmptyResponse) Size() (n int)

func (*EmptyResponse) String Uses

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal Uses

func (m *EmptyResponse) Unmarshal(dAtA []byte) error

type HashKVRequest Uses

type HashKVRequest struct {
    // revision is the key-value store revision for the hash operation.
    Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
}

func (*HashKVRequest) Descriptor Uses

func (*HashKVRequest) Descriptor() ([]byte, []int)

func (*HashKVRequest) GetRevision Uses

func (m *HashKVRequest) GetRevision() int64

func (*HashKVRequest) Marshal Uses

func (m *HashKVRequest) Marshal() (dAtA []byte, err error)

func (*HashKVRequest) MarshalTo Uses

func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error)

func (*HashKVRequest) ProtoMessage Uses

func (*HashKVRequest) ProtoMessage()

func (*HashKVRequest) Reset Uses

func (m *HashKVRequest) Reset()

func (*HashKVRequest) Size Uses

func (m *HashKVRequest) Size() (n int)

func (*HashKVRequest) String Uses

func (m *HashKVRequest) String() string

func (*HashKVRequest) Unmarshal Uses

func (m *HashKVRequest) Unmarshal(dAtA []byte) error

type HashKVResponse Uses

type HashKVResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // hash is the hash value computed from the responding member's MVCC keys up to a given revision.
    Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
    // compact_revision is the compacted revision of key-value store when hash begins.
    CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
}

func (*HashKVResponse) Descriptor Uses

func (*HashKVResponse) Descriptor() ([]byte, []int)

func (*HashKVResponse) GetCompactRevision Uses

func (m *HashKVResponse) GetCompactRevision() int64

func (*HashKVResponse) GetHash Uses

func (m *HashKVResponse) GetHash() uint32

func (*HashKVResponse) GetHeader Uses

func (m *HashKVResponse) GetHeader() *ResponseHeader

func (*HashKVResponse) Marshal Uses

func (m *HashKVResponse) Marshal() (dAtA []byte, err error)

func (*HashKVResponse) MarshalTo Uses

func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error)

func (*HashKVResponse) ProtoMessage Uses

func (*HashKVResponse) ProtoMessage()

func (*HashKVResponse) Reset Uses

func (m *HashKVResponse) Reset()

func (*HashKVResponse) Size Uses

func (m *HashKVResponse) Size() (n int)

func (*HashKVResponse) String Uses

func (m *HashKVResponse) String() string

func (*HashKVResponse) Unmarshal Uses

func (m *HashKVResponse) Unmarshal(dAtA []byte) error

type HashRequest Uses

type HashRequest struct {
}

func (*HashRequest) Descriptor Uses

func (*HashRequest) Descriptor() ([]byte, []int)

func (*HashRequest) Marshal Uses

func (m *HashRequest) Marshal() (dAtA []byte, err error)

func (*HashRequest) MarshalTo Uses

func (m *HashRequest) MarshalTo(dAtA []byte) (int, error)

func (*HashRequest) ProtoMessage Uses

func (*HashRequest) ProtoMessage()

func (*HashRequest) Reset Uses

func (m *HashRequest) Reset()

func (*HashRequest) Size Uses

func (m *HashRequest) Size() (n int)

func (*HashRequest) String Uses

func (m *HashRequest) String() string

func (*HashRequest) Unmarshal Uses

func (m *HashRequest) Unmarshal(dAtA []byte) error

type HashResponse Uses

type HashResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // hash is the hash value computed from the responding member's KV's backend.
    Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*HashResponse) Descriptor Uses

func (*HashResponse) Descriptor() ([]byte, []int)

func (*HashResponse) GetHash Uses

func (m *HashResponse) GetHash() uint32

func (*HashResponse) GetHeader Uses

func (m *HashResponse) GetHeader() *ResponseHeader

func (*HashResponse) Marshal Uses

func (m *HashResponse) Marshal() (dAtA []byte, err error)

func (*HashResponse) MarshalTo Uses

func (m *HashResponse) MarshalTo(dAtA []byte) (int, error)

func (*HashResponse) ProtoMessage Uses

func (*HashResponse) ProtoMessage()

func (*HashResponse) Reset Uses

func (m *HashResponse) Reset()

func (*HashResponse) Size Uses

func (m *HashResponse) Size() (n int)

func (*HashResponse) String Uses

func (m *HashResponse) String() string

func (*HashResponse) Unmarshal Uses

func (m *HashResponse) Unmarshal(dAtA []byte) error

type InternalAuthenticateRequest Uses

type InternalAuthenticateRequest struct {
    Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    // simple_token is generated in API layer (etcdserver/v3_server.go)
    SimpleToken string `protobuf:"bytes,3,opt,name=simple_token,json=simpleToken,proto3" json:"simple_token,omitempty"`
}

What is the difference between AuthenticateRequest (defined in rpc.proto) and InternalAuthenticateRequest? InternalAuthenticateRequest has a member that is filled by etcdserver and shouldn't be user-facing. For avoiding misusage the field, we have an internal version of AuthenticateRequest.

func (*InternalAuthenticateRequest) Descriptor Uses

func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int)

func (*InternalAuthenticateRequest) Marshal Uses

func (m *InternalAuthenticateRequest) Marshal() (dAtA []byte, err error)

func (*InternalAuthenticateRequest) MarshalTo Uses

func (m *InternalAuthenticateRequest) MarshalTo(dAtA []byte) (int, error)

func (*InternalAuthenticateRequest) ProtoMessage Uses

func (*InternalAuthenticateRequest) ProtoMessage()

func (*InternalAuthenticateRequest) Reset Uses

func (m *InternalAuthenticateRequest) Reset()

func (*InternalAuthenticateRequest) Size Uses

func (m *InternalAuthenticateRequest) Size() (n int)

func (*InternalAuthenticateRequest) String Uses

func (m *InternalAuthenticateRequest) String() string

func (*InternalAuthenticateRequest) Unmarshal Uses

func (m *InternalAuthenticateRequest) Unmarshal(dAtA []byte) error

type InternalRaftRequest Uses

type InternalRaftRequest struct {
    Header                   *RequestHeader                   `protobuf:"bytes,100,opt,name=header" json:"header,omitempty"`
    ID                       uint64                           `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    V2                       *Request                         `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"`
    Range                    *RangeRequest                    `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"`
    Put                      *PutRequest                      `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"`
    DeleteRange              *DeleteRangeRequest              `protobuf:"bytes,5,opt,name=delete_range,json=deleteRange" json:"delete_range,omitempty"`
    Txn                      *TxnRequest                      `protobuf:"bytes,6,opt,name=txn" json:"txn,omitempty"`
    Compaction               *CompactionRequest               `protobuf:"bytes,7,opt,name=compaction" json:"compaction,omitempty"`
    LeaseGrant               *LeaseGrantRequest               `protobuf:"bytes,8,opt,name=lease_grant,json=leaseGrant" json:"lease_grant,omitempty"`
    LeaseRevoke              *LeaseRevokeRequest              `protobuf:"bytes,9,opt,name=lease_revoke,json=leaseRevoke" json:"lease_revoke,omitempty"`
    Alarm                    *AlarmRequest                    `protobuf:"bytes,10,opt,name=alarm" json:"alarm,omitempty"`
    LeaseCheckpoint          *LeaseCheckpointRequest          `protobuf:"bytes,11,opt,name=lease_checkpoint,json=leaseCheckpoint" json:"lease_checkpoint,omitempty"`
    AuthEnable               *AuthEnableRequest               `protobuf:"bytes,1000,opt,name=auth_enable,json=authEnable" json:"auth_enable,omitempty"`
    AuthDisable              *AuthDisableRequest              `protobuf:"bytes,1011,opt,name=auth_disable,json=authDisable" json:"auth_disable,omitempty"`
    Authenticate             *InternalAuthenticateRequest     `protobuf:"bytes,1012,opt,name=authenticate" json:"authenticate,omitempty"`
    AuthUserAdd              *AuthUserAddRequest              `protobuf:"bytes,1100,opt,name=auth_user_add,json=authUserAdd" json:"auth_user_add,omitempty"`
    AuthUserDelete           *AuthUserDeleteRequest           `protobuf:"bytes,1101,opt,name=auth_user_delete,json=authUserDelete" json:"auth_user_delete,omitempty"`
    AuthUserGet              *AuthUserGetRequest              `protobuf:"bytes,1102,opt,name=auth_user_get,json=authUserGet" json:"auth_user_get,omitempty"`
    AuthUserChangePassword   *AuthUserChangePasswordRequest   `protobuf:"bytes,1103,opt,name=auth_user_change_password,json=authUserChangePassword" json:"auth_user_change_password,omitempty"`
    AuthUserGrantRole        *AuthUserGrantRoleRequest        `protobuf:"bytes,1104,opt,name=auth_user_grant_role,json=authUserGrantRole" json:"auth_user_grant_role,omitempty"`
    AuthUserRevokeRole       *AuthUserRevokeRoleRequest       `protobuf:"bytes,1105,opt,name=auth_user_revoke_role,json=authUserRevokeRole" json:"auth_user_revoke_role,omitempty"`
    AuthUserList             *AuthUserListRequest             `protobuf:"bytes,1106,opt,name=auth_user_list,json=authUserList" json:"auth_user_list,omitempty"`
    AuthRoleList             *AuthRoleListRequest             `protobuf:"bytes,1107,opt,name=auth_role_list,json=authRoleList" json:"auth_role_list,omitempty"`
    AuthRoleAdd              *AuthRoleAddRequest              `protobuf:"bytes,1200,opt,name=auth_role_add,json=authRoleAdd" json:"auth_role_add,omitempty"`
    AuthRoleDelete           *AuthRoleDeleteRequest           `protobuf:"bytes,1201,opt,name=auth_role_delete,json=authRoleDelete" json:"auth_role_delete,omitempty"`
    AuthRoleGet              *AuthRoleGetRequest              `protobuf:"bytes,1202,opt,name=auth_role_get,json=authRoleGet" json:"auth_role_get,omitempty"`
    AuthRoleGrantPermission  *AuthRoleGrantPermissionRequest  `protobuf:"bytes,1203,opt,name=auth_role_grant_permission,json=authRoleGrantPermission" json:"auth_role_grant_permission,omitempty"`
    AuthRoleRevokePermission *AuthRoleRevokePermissionRequest `protobuf:"bytes,1204,opt,name=auth_role_revoke_permission,json=authRoleRevokePermission" json:"auth_role_revoke_permission,omitempty"`
}

An InternalRaftRequest is the union of all requests which can be sent via raft.

func (*InternalRaftRequest) Descriptor Uses

func (*InternalRaftRequest) Descriptor() ([]byte, []int)

func (*InternalRaftRequest) Marshal Uses

func (m *InternalRaftRequest) Marshal() (dAtA []byte, err error)

func (*InternalRaftRequest) MarshalTo Uses

func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error)

func (*InternalRaftRequest) ProtoMessage Uses

func (*InternalRaftRequest) ProtoMessage()

func (*InternalRaftRequest) Reset Uses

func (m *InternalRaftRequest) Reset()

func (*InternalRaftRequest) Size Uses

func (m *InternalRaftRequest) Size() (n int)

func (*InternalRaftRequest) String Uses

func (m *InternalRaftRequest) String() string

func (*InternalRaftRequest) Unmarshal Uses

func (m *InternalRaftRequest) Unmarshal(dAtA []byte) error

type InternalRaftStringer Uses

type InternalRaftStringer struct {
    Request *InternalRaftRequest
}

InternalRaftStringer implements custom proto Stringer: redact password, replace value fields with value_size fields.

func (*InternalRaftStringer) String Uses

func (as *InternalRaftStringer) String() string

type KVClient Uses

type KVClient interface {
    // Range gets the keys in the range from the key-value store.
    Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error)
    // Put puts the given key into the key-value store.
    // A put request increments the revision of the key-value store
    // and generates one event in the event history.
    Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
    // DeleteRange deletes the given range from the key-value store.
    // A delete request increments the revision of the key-value store
    // and generates a delete event in the event history for every deleted key.
    DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error)
    // Txn processes multiple requests in a single transaction.
    // A txn request increments the revision of the key-value store
    // and generates events with the same revision for every completed request.
    // It is not allowed to modify the same key several times within one txn.
    Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error)
    // Compact compacts the event history in the etcd key-value store. The key-value
    // store should be periodically compacted or the event history will continue to grow
    // indefinitely.
    Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error)
}

func NewKVClient Uses

func NewKVClient(cc *grpc.ClientConn) KVClient

type KVServer Uses

type KVServer interface {
    // Range gets the keys in the range from the key-value store.
    Range(context.Context, *RangeRequest) (*RangeResponse, error)
    // Put puts the given key into the key-value store.
    // A put request increments the revision of the key-value store
    // and generates one event in the event history.
    Put(context.Context, *PutRequest) (*PutResponse, error)
    // DeleteRange deletes the given range from the key-value store.
    // A delete request increments the revision of the key-value store
    // and generates a delete event in the event history for every deleted key.
    DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
    // Txn processes multiple requests in a single transaction.
    // A txn request increments the revision of the key-value store
    // and generates events with the same revision for every completed request.
    // It is not allowed to modify the same key several times within one txn.
    Txn(context.Context, *TxnRequest) (*TxnResponse, error)
    // Compact compacts the event history in the etcd key-value store. The key-value
    // store should be periodically compacted or the event history will continue to grow
    // indefinitely.
    Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
}

type LeaseCheckpoint Uses

type LeaseCheckpoint struct {
    // ID is the lease ID to checkpoint.
    ID  int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    // Remaining_TTL is the remaining time until expiry of the lease.
    Remaining_TTL int64 `protobuf:"varint,2,opt,name=remaining_TTL,json=remainingTTL,proto3" json:"remaining_TTL,omitempty"`
}

func (*LeaseCheckpoint) Descriptor Uses

func (*LeaseCheckpoint) Descriptor() ([]byte, []int)

func (*LeaseCheckpoint) GetID Uses

func (m *LeaseCheckpoint) GetID() int64

func (*LeaseCheckpoint) GetRemaining_TTL Uses

func (m *LeaseCheckpoint) GetRemaining_TTL() int64

func (*LeaseCheckpoint) Marshal Uses

func (m *LeaseCheckpoint) Marshal() (dAtA []byte, err error)

func (*LeaseCheckpoint) MarshalTo Uses

func (m *LeaseCheckpoint) MarshalTo(dAtA []byte) (int, error)

func (*LeaseCheckpoint) ProtoMessage Uses

func (*LeaseCheckpoint) ProtoMessage()

func (*LeaseCheckpoint) Reset Uses

func (m *LeaseCheckpoint) Reset()

func (*LeaseCheckpoint) Size Uses

func (m *LeaseCheckpoint) Size() (n int)

func (*LeaseCheckpoint) String Uses

func (m *LeaseCheckpoint) String() string

func (*LeaseCheckpoint) Unmarshal Uses

func (m *LeaseCheckpoint) Unmarshal(dAtA []byte) error

type LeaseCheckpointRequest Uses

type LeaseCheckpointRequest struct {
    Checkpoints []*LeaseCheckpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"`
}

func (*LeaseCheckpointRequest) Descriptor Uses

func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int)

func (*LeaseCheckpointRequest) GetCheckpoints Uses

func (m *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint

func (*LeaseCheckpointRequest) Marshal Uses

func (m *LeaseCheckpointRequest) Marshal() (dAtA []byte, err error)

func (*LeaseCheckpointRequest) MarshalTo Uses

func (m *LeaseCheckpointRequest) MarshalTo(dAtA []byte) (int, error)

func (*LeaseCheckpointRequest) ProtoMessage Uses

func (*LeaseCheckpointRequest) ProtoMessage()

func (*LeaseCheckpointRequest) Reset Uses

func (m *LeaseCheckpointRequest) Reset()

func (*LeaseCheckpointRequest) Size Uses

func (m *LeaseCheckpointRequest) Size() (n int)

func (*LeaseCheckpointRequest) String Uses

func (m *LeaseCheckpointRequest) String() string

func (*LeaseCheckpointRequest) Unmarshal Uses

func (m *LeaseCheckpointRequest) Unmarshal(dAtA []byte) error

type LeaseCheckpointResponse Uses

type LeaseCheckpointResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*LeaseCheckpointResponse) Descriptor Uses

func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int)

func (*LeaseCheckpointResponse) GetHeader Uses

func (m *LeaseCheckpointResponse) GetHeader() *ResponseHeader

func (*LeaseCheckpointResponse) Marshal Uses

func (m *LeaseCheckpointResponse) Marshal() (dAtA []byte, err error)

func (*LeaseCheckpointResponse) MarshalTo Uses

func (m *LeaseCheckpointResponse) MarshalTo(dAtA []byte) (int, error)

func (*LeaseCheckpointResponse) ProtoMessage Uses

func (*LeaseCheckpointResponse) ProtoMessage()

func (*LeaseCheckpointResponse) Reset Uses

func (m *LeaseCheckpointResponse) Reset()

func (*LeaseCheckpointResponse) Size Uses

func (m *LeaseCheckpointResponse) Size() (n int)

func (*LeaseCheckpointResponse) String Uses

func (m *LeaseCheckpointResponse) String() string

func (*LeaseCheckpointResponse) Unmarshal Uses

func (m *LeaseCheckpointResponse) Unmarshal(dAtA []byte) error

type LeaseClient Uses

type LeaseClient interface {
    // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
    // within a given time to live period. All keys attached to the lease will be expired and
    // deleted if the lease expires. Each expired key generates a delete event in the event history.
    LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error)
    // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
    LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error)
    // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
    // to the server and streaming keep alive responses from the server to the client.
    LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error)
    // LeaseTimeToLive retrieves lease information.
    LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error)
    // LeaseLeases lists all existing leases.
    LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error)
}

func NewLeaseClient Uses

func NewLeaseClient(cc *grpc.ClientConn) LeaseClient

type LeaseGrantRequest Uses

type LeaseGrantRequest struct {
    // TTL is the advisory time-to-live in seconds. Expired lease will return -1.
    TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
    // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
    ID  int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseGrantRequest) Descriptor Uses

func (*LeaseGrantRequest) Descriptor() ([]byte, []int)

func (*LeaseGrantRequest) GetID Uses

func (m *LeaseGrantRequest) GetID() int64

func (*LeaseGrantRequest) GetTTL Uses

func (m *LeaseGrantRequest) GetTTL() int64

func (*LeaseGrantRequest) Marshal Uses

func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error)

func (*LeaseGrantRequest) MarshalTo Uses

func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error)

func (*LeaseGrantRequest) ProtoMessage Uses

func (*LeaseGrantRequest) ProtoMessage()

func (*LeaseGrantRequest) Reset Uses

func (m *LeaseGrantRequest) Reset()

func (*LeaseGrantRequest) Size Uses

func (m *LeaseGrantRequest) Size() (n int)

func (*LeaseGrantRequest) String Uses

func (m *LeaseGrantRequest) String() string

func (*LeaseGrantRequest) Unmarshal Uses

func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error

type LeaseGrantResponse Uses

type LeaseGrantResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // ID is the lease ID for the granted lease.
    ID  int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
    // TTL is the server chosen lease time-to-live in seconds.
    TTL   int64  `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
    Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
}

func (*LeaseGrantResponse) Descriptor Uses

func (*LeaseGrantResponse) Descriptor() ([]byte, []int)

func (*LeaseGrantResponse) GetError Uses

func (m *LeaseGrantResponse) GetError() string

func (*LeaseGrantResponse) GetHeader Uses

func (m *LeaseGrantResponse) GetHeader() *ResponseHeader

func (*LeaseGrantResponse) GetID Uses

func (m *LeaseGrantResponse) GetID() int64

func (*LeaseGrantResponse) GetTTL Uses

func (m *LeaseGrantResponse) GetTTL() int64

func (*LeaseGrantResponse) Marshal Uses

func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error)

func (*LeaseGrantResponse) MarshalTo Uses

func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error)

func (*LeaseGrantResponse) ProtoMessage Uses

func (*LeaseGrantResponse) ProtoMessage()

func (*LeaseGrantResponse) Reset Uses

func (m *LeaseGrantResponse) Reset()

func (*LeaseGrantResponse) Size Uses

func (m *LeaseGrantResponse) Size() (n int)

func (*LeaseGrantResponse) String Uses

func (m *LeaseGrantResponse) String() string

func (*LeaseGrantResponse) Unmarshal Uses

func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error

type LeaseKeepAliveRequest Uses

type LeaseKeepAliveRequest struct {
    // ID is the lease ID for the lease to keep alive.
    ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseKeepAliveRequest) Descriptor Uses

func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)

func (*LeaseKeepAliveRequest) GetID Uses

func (m *LeaseKeepAliveRequest) GetID() int64

func (*LeaseKeepAliveRequest) Marshal Uses

func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error)

func (*LeaseKeepAliveRequest) MarshalTo Uses

func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error)

func (*LeaseKeepAliveRequest) ProtoMessage Uses

func (*LeaseKeepAliveRequest) ProtoMessage()

func (*LeaseKeepAliveRequest) Reset Uses

func (m *LeaseKeepAliveRequest) Reset()

func (*LeaseKeepAliveRequest) Size Uses

func (m *LeaseKeepAliveRequest) Size() (n int)

func (*LeaseKeepAliveRequest) String Uses

func (m *LeaseKeepAliveRequest) String() string

func (*LeaseKeepAliveRequest) Unmarshal Uses

func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error

type LeaseKeepAliveResponse Uses

type LeaseKeepAliveResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // ID is the lease ID from the keep alive request.
    ID  int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
    // TTL is the new time-to-live for the lease.
    TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
}

func (*LeaseKeepAliveResponse) Descriptor Uses

func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)

func (*LeaseKeepAliveResponse) GetHeader Uses

func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader

func (*LeaseKeepAliveResponse) GetID Uses

func (m *LeaseKeepAliveResponse) GetID() int64

func (*LeaseKeepAliveResponse) GetTTL Uses

func (m *LeaseKeepAliveResponse) GetTTL() int64

func (*LeaseKeepAliveResponse) Marshal Uses

func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error)

func (*LeaseKeepAliveResponse) MarshalTo Uses

func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error)

func (*LeaseKeepAliveResponse) ProtoMessage Uses

func (*LeaseKeepAliveResponse) ProtoMessage()

func (*LeaseKeepAliveResponse) Reset Uses

func (m *LeaseKeepAliveResponse) Reset()

func (*LeaseKeepAliveResponse) Size Uses

func (m *LeaseKeepAliveResponse) Size() (n int)

func (*LeaseKeepAliveResponse) String Uses

func (m *LeaseKeepAliveResponse) String() string

func (*LeaseKeepAliveResponse) Unmarshal Uses

func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error

type LeaseLeasesRequest Uses

type LeaseLeasesRequest struct {
}

func (*LeaseLeasesRequest) Descriptor Uses

func (*LeaseLeasesRequest) Descriptor() ([]byte, []int)

func (*LeaseLeasesRequest) Marshal Uses

func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error)

func (*LeaseLeasesRequest) MarshalTo Uses

func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error)

func (*LeaseLeasesRequest) ProtoMessage Uses

func (*LeaseLeasesRequest) ProtoMessage()

func (*LeaseLeasesRequest) Reset Uses

func (m *LeaseLeasesRequest) Reset()

func (*LeaseLeasesRequest) Size Uses

func (m *LeaseLeasesRequest) Size() (n int)

func (*LeaseLeasesRequest) String Uses

func (m *LeaseLeasesRequest) String() string

func (*LeaseLeasesRequest) Unmarshal Uses

func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error

type LeaseLeasesResponse Uses

type LeaseLeasesResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    Leases []*LeaseStatus  `protobuf:"bytes,2,rep,name=leases" json:"leases,omitempty"`
}

func (*LeaseLeasesResponse) Descriptor Uses

func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)

func (*LeaseLeasesResponse) GetHeader Uses

func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader

func (*LeaseLeasesResponse) GetLeases Uses

func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus

func (*LeaseLeasesResponse) Marshal Uses

func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error)

func (*LeaseLeasesResponse) MarshalTo Uses

func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error)

func (*LeaseLeasesResponse) ProtoMessage Uses

func (*LeaseLeasesResponse) ProtoMessage()

func (*LeaseLeasesResponse) Reset Uses

func (m *LeaseLeasesResponse) Reset()

func (*LeaseLeasesResponse) Size Uses

func (m *LeaseLeasesResponse) Size() (n int)

func (*LeaseLeasesResponse) String Uses

func (m *LeaseLeasesResponse) String() string

func (*LeaseLeasesResponse) Unmarshal Uses

func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error

type LeaseRevokeRequest Uses

type LeaseRevokeRequest struct {
    // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
    ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseRevokeRequest) Descriptor Uses

func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)

func (*LeaseRevokeRequest) GetID Uses

func (m *LeaseRevokeRequest) GetID() int64

func (*LeaseRevokeRequest) Marshal Uses

func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error)

func (*LeaseRevokeRequest) MarshalTo Uses

func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error)

func (*LeaseRevokeRequest) ProtoMessage Uses

func (*LeaseRevokeRequest) ProtoMessage()

func (*LeaseRevokeRequest) Reset Uses

func (m *LeaseRevokeRequest) Reset()

func (*LeaseRevokeRequest) Size Uses

func (m *LeaseRevokeRequest) Size() (n int)

func (*LeaseRevokeRequest) String Uses

func (m *LeaseRevokeRequest) String() string

func (*LeaseRevokeRequest) Unmarshal Uses

func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error

type LeaseRevokeResponse Uses

type LeaseRevokeResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*LeaseRevokeResponse) Descriptor Uses

func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)

func (*LeaseRevokeResponse) GetHeader Uses

func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader

func (*LeaseRevokeResponse) Marshal Uses

func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error)

func (*LeaseRevokeResponse) MarshalTo Uses

func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error)

func (*LeaseRevokeResponse) ProtoMessage Uses

func (*LeaseRevokeResponse) ProtoMessage()

func (*LeaseRevokeResponse) Reset Uses

func (m *LeaseRevokeResponse) Reset()

func (*LeaseRevokeResponse) Size Uses

func (m *LeaseRevokeResponse) Size() (n int)

func (*LeaseRevokeResponse) String Uses

func (m *LeaseRevokeResponse) String() string

func (*LeaseRevokeResponse) Unmarshal Uses

func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error

type LeaseServer Uses

type LeaseServer interface {
    // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
    // within a given time to live period. All keys attached to the lease will be expired and
    // deleted if the lease expires. Each expired key generates a delete event in the event history.
    LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error)
    // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
    LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
    // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
    // to the server and streaming keep alive responses from the server to the client.
    LeaseKeepAlive(Lease_LeaseKeepAliveServer) error
    // LeaseTimeToLive retrieves lease information.
    LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error)
    // LeaseLeases lists all existing leases.
    LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error)
}

type LeaseStatus Uses

type LeaseStatus struct {
    ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseStatus) Descriptor Uses

func (*LeaseStatus) Descriptor() ([]byte, []int)

func (*LeaseStatus) GetID Uses

func (m *LeaseStatus) GetID() int64

func (*LeaseStatus) Marshal Uses

func (m *LeaseStatus) Marshal() (dAtA []byte, err error)

func (*LeaseStatus) MarshalTo Uses

func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error)

func (*LeaseStatus) ProtoMessage Uses

func (*LeaseStatus) ProtoMessage()

func (*LeaseStatus) Reset Uses

func (m *LeaseStatus) Reset()

func (*LeaseStatus) Size Uses

func (m *LeaseStatus) Size() (n int)

func (*LeaseStatus) String Uses

func (m *LeaseStatus) String() string

func (*LeaseStatus) Unmarshal Uses

func (m *LeaseStatus) Unmarshal(dAtA []byte) error

type LeaseTimeToLiveRequest Uses

type LeaseTimeToLiveRequest struct {
    // ID is the lease ID for the lease.
    ID  int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    // keys is true to query all the keys attached to this lease.
    Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"`
}

func (*LeaseTimeToLiveRequest) Descriptor Uses

func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)

func (*LeaseTimeToLiveRequest) GetID Uses

func (m *LeaseTimeToLiveRequest) GetID() int64

func (*LeaseTimeToLiveRequest) GetKeys Uses

func (m *LeaseTimeToLiveRequest) GetKeys() bool

func (*LeaseTimeToLiveRequest) Marshal Uses

func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error)

func (*LeaseTimeToLiveRequest) MarshalTo Uses

func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error)

func (*LeaseTimeToLiveRequest) ProtoMessage Uses

func (*LeaseTimeToLiveRequest) ProtoMessage()

func (*LeaseTimeToLiveRequest) Reset Uses

func (m *LeaseTimeToLiveRequest) Reset()

func (*LeaseTimeToLiveRequest) Size Uses

func (m *LeaseTimeToLiveRequest) Size() (n int)

func (*LeaseTimeToLiveRequest) String Uses

func (m *LeaseTimeToLiveRequest) String() string

func (*LeaseTimeToLiveRequest) Unmarshal Uses

func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error

type LeaseTimeToLiveResponse Uses

type LeaseTimeToLiveResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // ID is the lease ID from the keep alive request.
    ID  int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
    // TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
    TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
    // GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
    GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"`
    // Keys is the list of keys attached to this lease.
    Keys [][]byte `protobuf:"bytes,5,rep,name=keys" json:"keys,omitempty"`
}

func (*LeaseTimeToLiveResponse) Descriptor Uses

func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)

func (*LeaseTimeToLiveResponse) GetGrantedTTL Uses

func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64

func (*LeaseTimeToLiveResponse) GetHeader Uses

func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader

func (*LeaseTimeToLiveResponse) GetID Uses

func (m *LeaseTimeToLiveResponse) GetID() int64

func (*LeaseTimeToLiveResponse) GetKeys Uses

func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte

func (*LeaseTimeToLiveResponse) GetTTL Uses

func (m *LeaseTimeToLiveResponse) GetTTL() int64

func (*LeaseTimeToLiveResponse) Marshal Uses

func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error)

func (*LeaseTimeToLiveResponse) MarshalTo Uses

func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error)

func (*LeaseTimeToLiveResponse) ProtoMessage Uses

func (*LeaseTimeToLiveResponse) ProtoMessage()

func (*LeaseTimeToLiveResponse) Reset Uses

func (m *LeaseTimeToLiveResponse) Reset()

func (*LeaseTimeToLiveResponse) Size Uses

func (m *LeaseTimeToLiveResponse) Size() (n int)

func (*LeaseTimeToLiveResponse) String Uses

func (m *LeaseTimeToLiveResponse) String() string

func (*LeaseTimeToLiveResponse) Unmarshal Uses

func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error

type Lease_LeaseKeepAliveClient Uses

type Lease_LeaseKeepAliveClient interface {
    Send(*LeaseKeepAliveRequest) error
    Recv() (*LeaseKeepAliveResponse, error)
    grpc.ClientStream
}

type Lease_LeaseKeepAliveServer Uses

type Lease_LeaseKeepAliveServer interface {
    Send(*LeaseKeepAliveResponse) error
    Recv() (*LeaseKeepAliveRequest, error)
    grpc.ServerStream
}

type MaintenanceClient Uses

type MaintenanceClient interface {
    // Alarm activates, deactivates, and queries alarms regarding cluster health.
    Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error)
    // Status gets the status of the member.
    Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
    // Defragment defragments a member's backend database to recover storage space.
    Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error)
    // Hash computes the hash of whole backend keyspace,
    // including key, lease, and other buckets in storage.
    // This is designed for testing ONLY!
    // Do not rely on this in production with ongoing transactions,
    // since Hash operation does not hold MVCC locks.
    // Use "HashKV" API instead for "key" bucket consistency checks.
    Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
    // HashKV computes the hash of all MVCC keys up to a given revision.
    // It only iterates "key" bucket in backend storage.
    HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error)
    // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
    Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error)
    // MoveLeader requests current leader node to transfer its leadership to transferee.
    MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error)
}

func NewMaintenanceClient Uses

func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient

type MaintenanceServer Uses

type MaintenanceServer interface {
    // Alarm activates, deactivates, and queries alarms regarding cluster health.
    Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
    // Status gets the status of the member.
    Status(context.Context, *StatusRequest) (*StatusResponse, error)
    // Defragment defragments a member's backend database to recover storage space.
    Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
    // Hash computes the hash of whole backend keyspace,
    // including key, lease, and other buckets in storage.
    // This is designed for testing ONLY!
    // Do not rely on this in production with ongoing transactions,
    // since Hash operation does not hold MVCC locks.
    // Use "HashKV" API instead for "key" bucket consistency checks.
    Hash(context.Context, *HashRequest) (*HashResponse, error)
    // HashKV computes the hash of all MVCC keys up to a given revision.
    // It only iterates "key" bucket in backend storage.
    HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error)
    // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
    Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error
    // MoveLeader requests current leader node to transfer its leadership to transferee.
    MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error)
}

type Maintenance_SnapshotClient Uses

type Maintenance_SnapshotClient interface {
    Recv() (*SnapshotResponse, error)
    grpc.ClientStream
}

type Maintenance_SnapshotServer Uses

type Maintenance_SnapshotServer interface {
    Send(*SnapshotResponse) error
    grpc.ServerStream
}

type Member Uses

type Member struct {
    // ID is the member ID for this member.
    ID  uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    // name is the human-readable name of the member. If the member is not started, the name will be an empty string.
    Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    // peerURLs is the list of URLs the member exposes to the cluster for communication.
    PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs" 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"`
    // isLearner indicates if the member is raft learner.
    IsLearner bool `protobuf:"varint,5,opt,name=isLearner,proto3" json:"isLearner,omitempty"`
}

func (*Member) Descriptor Uses

func (*Member) Descriptor() ([]byte, []int)

func (*Member) GetClientURLs Uses

func (m *Member) GetClientURLs() []string

func (*Member) GetID Uses

func (m *Member) GetID() uint64

func (*Member) GetIsLearner Uses

func (m *Member) GetIsLearner() bool

func (*Member) GetName Uses

func (m *Member) GetName() string

func (*Member) GetPeerURLs Uses

func (m *Member) GetPeerURLs() []string

func (*Member) Marshal Uses

func (m *Member) Marshal() (dAtA []byte, err error)

func (*Member) MarshalTo Uses

func (m *Member) MarshalTo(dAtA []byte) (int, error)

func (*Member) ProtoMessage Uses

func (*Member) ProtoMessage()

func (*Member) Reset Uses

func (m *Member) Reset()

func (*Member) Size Uses

func (m *Member) Size() (n int)

func (*Member) String Uses

func (m *Member) String() string

func (*Member) Unmarshal Uses

func (m *Member) Unmarshal(dAtA []byte) error

type MemberAddRequest Uses

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"`
    // isLearner indicates if the added member is raft learner.
    IsLearner bool `protobuf:"varint,2,opt,name=isLearner,proto3" json:"isLearner,omitempty"`
}

func (*MemberAddRequest) Descriptor Uses

func (*MemberAddRequest) Descriptor() ([]byte, []int)

func (*MemberAddRequest) GetIsLearner Uses

func (m *MemberAddRequest) GetIsLearner() bool

func (*MemberAddRequest) GetPeerURLs Uses

func (m *MemberAddRequest) GetPeerURLs() []string

func (*MemberAddRequest) Marshal Uses

func (m *MemberAddRequest) Marshal() (dAtA []byte, err error)

func (*MemberAddRequest) MarshalTo Uses

func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error)

func (*MemberAddRequest) ProtoMessage Uses

func (*MemberAddRequest) ProtoMessage()

func (*MemberAddRequest) Reset Uses

func (m *MemberAddRequest) Reset()

func (*MemberAddRequest) Size Uses

func (m *MemberAddRequest) Size() (n int)

func (*MemberAddRequest) String Uses

func (m *MemberAddRequest) String() string

func (*MemberAddRequest) Unmarshal Uses

func (m *MemberAddRequest) Unmarshal(dAtA []byte) error

type MemberAddResponse Uses

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"`
    // members is a list of all members after adding the new member.
    Members []*Member `protobuf:"bytes,3,rep,name=members" json:"members,omitempty"`
}

func (*MemberAddResponse) Descriptor Uses

func (*MemberAddResponse) Descriptor() ([]byte, []int)

func (*MemberAddResponse) GetHeader Uses

func (m *MemberAddResponse) GetHeader() *ResponseHeader

func (*MemberAddResponse) GetMember Uses

func (m *MemberAddResponse) GetMember() *Member

func (*MemberAddResponse) GetMembers Uses

func (m *MemberAddResponse) GetMembers() []*Member

func (*MemberAddResponse) Marshal Uses

func (m *MemberAddResponse) Marshal() (dAtA []byte, err error)

func (*MemberAddResponse) MarshalTo Uses

func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error)

func (*MemberAddResponse) ProtoMessage Uses

func (*MemberAddResponse) ProtoMessage()

func (*MemberAddResponse) Reset Uses

func (m *MemberAddResponse) Reset()

func (*MemberAddResponse) Size Uses

func (m *MemberAddResponse) Size() (n int)

func (*MemberAddResponse) String Uses

func (m *MemberAddResponse) String() string

func (*MemberAddResponse) Unmarshal Uses

func (m *MemberAddResponse) Unmarshal(dAtA []byte) error

type MemberListRequest Uses

type MemberListRequest struct {
}

func (*MemberListRequest) Descriptor Uses

func (*MemberListRequest) Descriptor() ([]byte, []int)

func (*MemberListRequest) Marshal Uses

func (m *MemberListRequest) Marshal() (dAtA []byte, err error)

func (*MemberListRequest) MarshalTo Uses

func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error)

func (*MemberListRequest) ProtoMessage Uses

func (*MemberListRequest) ProtoMessage()

func (*MemberListRequest) Reset Uses

func (m *MemberListRequest) Reset()

func (*MemberListRequest) Size Uses

func (m *MemberListRequest) Size() (n int)

func (*MemberListRequest) String Uses

func (m *MemberListRequest) String() string

func (*MemberListRequest) Unmarshal Uses

func (m *MemberListRequest) Unmarshal(dAtA []byte) error

type MemberListResponse Uses

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 Uses

func (*MemberListResponse) Descriptor() ([]byte, []int)

func (*MemberListResponse) GetHeader Uses

func (m *MemberListResponse) GetHeader() *ResponseHeader

func (*MemberListResponse) GetMembers Uses

func (m *MemberListResponse) GetMembers() []*Member

func (*MemberListResponse) Marshal Uses

func (m *MemberListResponse) Marshal() (dAtA []byte, err error)

func (*MemberListResponse) MarshalTo Uses

func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error)

func (*MemberListResponse) ProtoMessage Uses

func (*MemberListResponse) ProtoMessage()

func (*MemberListResponse) Reset Uses

func (m *MemberListResponse) Reset()

func (*MemberListResponse) Size Uses

func (m *MemberListResponse) Size() (n int)

func (*MemberListResponse) String Uses

func (m *MemberListResponse) String() string

func (*MemberListResponse) Unmarshal Uses

func (m *MemberListResponse) Unmarshal(dAtA []byte) error

type MemberPromoteRequest Uses

type MemberPromoteRequest struct {
    // ID is the member ID of the member to promote.
    ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*MemberPromoteRequest) Descriptor Uses

func (*MemberPromoteRequest) Descriptor() ([]byte, []int)

func (*MemberPromoteRequest) GetID Uses

func (m *MemberPromoteRequest) GetID() uint64

func (*MemberPromoteRequest) Marshal Uses

func (m *MemberPromoteRequest) Marshal() (dAtA []byte, err error)

func (*MemberPromoteRequest) MarshalTo Uses

func (m *MemberPromoteRequest) MarshalTo(dAtA []byte) (int, error)

func (*MemberPromoteRequest) ProtoMessage Uses

func (*MemberPromoteRequest) ProtoMessage()

func (*MemberPromoteRequest) Reset Uses

func (m *MemberPromoteRequest) Reset()

func (*MemberPromoteRequest) Size Uses

func (m *MemberPromoteRequest) Size() (n int)

func (*MemberPromoteRequest) String Uses

func (m *MemberPromoteRequest) String() string

func (*MemberPromoteRequest) Unmarshal Uses

func (m *MemberPromoteRequest) Unmarshal(dAtA []byte) error

type MemberPromoteResponse Uses

type MemberPromoteResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // members is a list of all members after promoting the member.
    Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"`
}

func (*MemberPromoteResponse) Descriptor Uses

func (*MemberPromoteResponse) Descriptor() ([]byte, []int)

func (*MemberPromoteResponse) GetHeader Uses

func (m *MemberPromoteResponse) GetHeader() *ResponseHeader

func (*MemberPromoteResponse) GetMembers Uses

func (m *MemberPromoteResponse) GetMembers() []*Member

func (*MemberPromoteResponse) Marshal Uses

func (m *MemberPromoteResponse) Marshal() (dAtA []byte, err error)

func (*MemberPromoteResponse) MarshalTo Uses

func (m *MemberPromoteResponse) MarshalTo(dAtA []byte) (int, error)

func (*MemberPromoteResponse) ProtoMessage Uses

func (*MemberPromoteResponse) ProtoMessage()

func (*MemberPromoteResponse) Reset Uses

func (m *MemberPromoteResponse) Reset()

func (*MemberPromoteResponse) Size Uses

func (m *MemberPromoteResponse) Size() (n int)

func (*MemberPromoteResponse) String Uses

func (m *MemberPromoteResponse) String() string

func (*MemberPromoteResponse) Unmarshal Uses

func (m *MemberPromoteResponse) Unmarshal(dAtA []byte) error

type MemberRemoveRequest Uses

type MemberRemoveRequest struct {
    // ID is the member ID of the member to remove.
    ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*MemberRemoveRequest) Descriptor Uses

func (*MemberRemoveRequest) Descriptor() ([]byte, []int)

func (*MemberRemoveRequest) GetID Uses

func (m *MemberRemoveRequest) GetID() uint64

func (*MemberRemoveRequest) Marshal Uses

func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error)

func (*MemberRemoveRequest) MarshalTo Uses

func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error)

func (*MemberRemoveRequest) ProtoMessage Uses

func (*MemberRemoveRequest) ProtoMessage()

func (*MemberRemoveRequest) Reset Uses

func (m *MemberRemoveRequest) Reset()

func (*MemberRemoveRequest) Size Uses

func (m *MemberRemoveRequest) Size() (n int)

func (*MemberRemoveRequest) String Uses

func (m *MemberRemoveRequest) String() string

func (*MemberRemoveRequest) Unmarshal Uses

func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error

type MemberRemoveResponse Uses

type MemberRemoveResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // members is a list of all members after removing the member.
    Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"`
}

func (*MemberRemoveResponse) Descriptor Uses

func (*MemberRemoveResponse) Descriptor() ([]byte, []int)

func (*MemberRemoveResponse) GetHeader Uses

func (m *MemberRemoveResponse) GetHeader() *ResponseHeader

func (*MemberRemoveResponse) GetMembers Uses

func (m *MemberRemoveResponse) GetMembers() []*Member

func (*MemberRemoveResponse) Marshal Uses

func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error)

func (*MemberRemoveResponse) MarshalTo Uses

func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error)

func (*MemberRemoveResponse) ProtoMessage Uses

func (*MemberRemoveResponse) ProtoMessage()

func (*MemberRemoveResponse) Reset Uses

func (m *MemberRemoveResponse) Reset()

func (*MemberRemoveResponse) Size Uses

func (m *MemberRemoveResponse) Size() (n int)

func (*MemberRemoveResponse) String Uses

func (m *MemberRemoveResponse) String() string

func (*MemberRemoveResponse) Unmarshal Uses

func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error

type MemberUpdateRequest Uses

type MemberUpdateRequest struct {
    // ID is the member ID of the member to update.
    ID  uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    // peerURLs is the new list of URLs the member will use to communicate with the cluster.
    PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs" json:"peerURLs,omitempty"`
}

func (*MemberUpdateRequest) Descriptor Uses

func (*MemberUpdateRequest) Descriptor() ([]byte, []int)

func (*MemberUpdateRequest) GetID Uses

func (m *MemberUpdateRequest) GetID() uint64

func (*MemberUpdateRequest) GetPeerURLs Uses

func (m *MemberUpdateRequest) GetPeerURLs() []string

func (*MemberUpdateRequest) Marshal Uses

func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error)

func (*MemberUpdateRequest) MarshalTo Uses

func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error)

func (*MemberUpdateRequest) ProtoMessage Uses

func (*MemberUpdateRequest) ProtoMessage()

func (*MemberUpdateRequest) Reset Uses

func (m *MemberUpdateRequest) Reset()

func (*MemberUpdateRequest) Size Uses

func (m *MemberUpdateRequest) Size() (n int)

func (*MemberUpdateRequest) String Uses

func (m *MemberUpdateRequest) String() string

func (*MemberUpdateRequest) Unmarshal Uses

func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error

type MemberUpdateResponse Uses

type MemberUpdateResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // members is a list of all members after updating the member.
    Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"`
}

func (*MemberUpdateResponse) Descriptor Uses

func (*MemberUpdateResponse) Descriptor() ([]byte, []int)

func (*MemberUpdateResponse) GetHeader Uses

func (m *MemberUpdateResponse) GetHeader() *ResponseHeader

func (*MemberUpdateResponse) GetMembers Uses

func (m *MemberUpdateResponse) GetMembers() []*Member

func (*MemberUpdateResponse) Marshal Uses

func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error)

func (*MemberUpdateResponse) MarshalTo Uses

func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MemberUpdateResponse) ProtoMessage Uses

func (*MemberUpdateResponse) ProtoMessage()

func (*MemberUpdateResponse) Reset Uses

func (m *MemberUpdateResponse) Reset()

func (*MemberUpdateResponse) Size Uses

func (m *MemberUpdateResponse) Size() (n int)

func (*MemberUpdateResponse) String Uses

func (m *MemberUpdateResponse) String() string

func (*MemberUpdateResponse) Unmarshal Uses

func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error

type Metadata Uses

type Metadata struct {
    NodeID           uint64 `protobuf:"varint,1,opt,name=NodeID" json:"NodeID"`
    ClusterID        uint64 `protobuf:"varint,2,opt,name=ClusterID" json:"ClusterID"`
    XXX_unrecognized []byte `json:"-"`
}

func (*Metadata) Descriptor Uses

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) Marshal Uses

func (m *Metadata) Marshal() (dAtA []byte, err error)

func (*Metadata) MarshalTo Uses

func (m *Metadata) MarshalTo(dAtA []byte) (int, error)

func (*Metadata) ProtoMessage Uses

func (*Metadata) ProtoMessage()

func (*Metadata) Reset Uses

func (m *Metadata) Reset()

func (*Metadata) Size Uses

func (m *Metadata) Size() (n int)

func (*Metadata) String Uses

func (m *Metadata) String() string

func (*Metadata) Unmarshal Uses

func (m *Metadata) Unmarshal(dAtA []byte) error

type MoveLeaderRequest Uses

type MoveLeaderRequest struct {
    // targetID is the node ID for the new leader.
    TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"`
}

func (*MoveLeaderRequest) Descriptor Uses

func (*MoveLeaderRequest) Descriptor() ([]byte, []int)

func (*MoveLeaderRequest) GetTargetID Uses

func (m *MoveLeaderRequest) GetTargetID() uint64

func (*MoveLeaderRequest) Marshal Uses

func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error)

func (*MoveLeaderRequest) MarshalTo Uses

func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error)

func (*MoveLeaderRequest) ProtoMessage Uses

func (*MoveLeaderRequest) ProtoMessage()

func (*MoveLeaderRequest) Reset Uses

func (m *MoveLeaderRequest) Reset()

func (*MoveLeaderRequest) Size Uses

func (m *MoveLeaderRequest) Size() (n int)

func (*MoveLeaderRequest) String Uses

func (m *MoveLeaderRequest) String() string

func (*MoveLeaderRequest) Unmarshal Uses

func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error

type MoveLeaderResponse Uses

type MoveLeaderResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*MoveLeaderResponse) Descriptor Uses

func (*MoveLeaderResponse) Descriptor() ([]byte, []int)

func (*MoveLeaderResponse) GetHeader Uses

func (m *MoveLeaderResponse) GetHeader() *ResponseHeader

func (*MoveLeaderResponse) Marshal Uses

func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error)

func (*MoveLeaderResponse) MarshalTo Uses

func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MoveLeaderResponse) ProtoMessage Uses

func (*MoveLeaderResponse) ProtoMessage()

func (*MoveLeaderResponse) Reset Uses

func (m *MoveLeaderResponse) Reset()

func (*MoveLeaderResponse) Size Uses

func (m *MoveLeaderResponse) Size() (n int)

func (*MoveLeaderResponse) String Uses

func (m *MoveLeaderResponse) String() string

func (*MoveLeaderResponse) Unmarshal Uses

func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error

type PutRequest Uses

type PutRequest struct {
    // key is the key, in bytes, to put into the key-value store.
    Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // value is the value, in bytes, to associate with the key in the key-value store.
    Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // lease is the lease ID to associate with the key in the key-value store. A lease
    // value of 0 indicates no lease.
    Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"`
    // If prev_kv is set, etcd gets the previous key-value pair before changing it.
    // The previous key-value pair will be returned in the put response.
    PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
    // If ignore_value is set, etcd updates the key using its current value.
    // Returns an error if the key does not exist.
    IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"`
    // If ignore_lease is set, etcd updates the key using its current lease.
    // Returns an error if the key does not exist.
    IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"`
}

func (*PutRequest) Descriptor Uses

func (*PutRequest) Descriptor() ([]byte, []int)

func (*PutRequest) GetIgnoreLease Uses

func (m *PutRequest) GetIgnoreLease() bool

func (*PutRequest) GetIgnoreValue Uses

func (m *PutRequest) GetIgnoreValue() bool

func (*PutRequest) GetKey Uses

func (m *PutRequest) GetKey() []byte

func (*PutRequest) GetLease Uses

func (m *PutRequest) GetLease() int64

func (*PutRequest) GetPrevKv Uses

func (m *PutRequest) GetPrevKv() bool

func (*PutRequest) GetValue Uses

func (m *PutRequest) GetValue() []byte

func (*PutRequest) Marshal Uses

func (m *PutRequest) Marshal() (dAtA []byte, err error)

func (*PutRequest) MarshalTo Uses

func (m *PutRequest) MarshalTo(dAtA []byte) (int, error)

func (*PutRequest) ProtoMessage Uses

func (*PutRequest) ProtoMessage()

func (*PutRequest) Reset Uses

func (m *PutRequest) Reset()

func (*PutRequest) Size Uses

func (m *PutRequest) Size() (n int)

func (*PutRequest) String Uses

func (m *PutRequest) String() string

func (*PutRequest) Unmarshal Uses

func (m *PutRequest) Unmarshal(dAtA []byte) error

type PutResponse Uses

type PutResponse struct {
    Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
    // if prev_kv is set in the request, the previous key-value pair will be returned.
    PrevKv *mvccpb.KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"`
}

func (*PutResponse) Descriptor Uses

func (*PutResponse) Descriptor() ([]byte, []int)

func (*PutResponse) GetHeader Uses

func (m *PutResponse) GetHeader() *ResponseHeader

func (*PutResponse) GetPrevKv Uses

func (m *PutResponse) GetPrevKv() *mvccpb.KeyValue

func (*PutResponse) Marshal Uses

func (m *PutResponse) Marshal() (dAtA []byte, err error)

func (*PutResponse) MarshalTo Uses

func (m *PutResponse) MarshalTo(dAtA []byte) (int, error)

func (*PutResponse) ProtoMessage Uses

func (*PutResponse) ProtoMessage()

func (*PutResponse) Reset Uses

func (m *PutResponse) Reset()

func (*PutResponse) Size Uses

func (m *PutResponse) Size() (n int)

func (*PutResponse) String Uses

func (m *PutResponse) String() string

func (*PutResponse) Unmarshal Uses

func (m *PutResponse) Unmarshal(dAtA []byte) error

type RangeRequest Uses

type RangeRequest struct {
    // key is the first key for the range. If range_end is not given, the request only looks up key.
    Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // range_end is the upper bound on the requested range [key, range_end).
    // If range_end is '\0', the range is all keys >= key.
    // If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
    // then the range request gets all keys prefixed with key.
    // If both key and range_end are '\0', then the range request returns all keys.
    RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
    // limit is a limit on the number of keys returned for the request. When limit is set to 0,
    // it is treated as no limit.
    Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
    // revision is the point-in-time of the key-value store to use for the range.
    // If revision is less or equal to zero, the range is over the newest key-value store.
    // If the revision has been compacted, ErrCompacted is returned as a response.
    Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
    // sort_order is the order for returned sorted results.
    SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"`
    // sort_target is the key-value field to use for sorting.
    SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,json=sortTarget,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"`
    // serializable sets the range request to use serializable member-local reads.
    // Range requests are linearizable by default; linearizable requests have higher
    // latency and lower throughput than serializable requests but reflect the current
    // consensus of the cluster. For better performance, in exchange for possible stale reads,
    // a serializable range request is served locally without needing to reach consensus
    // with other nodes in the cluster.
    Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"`
    // keys_only when set returns only the keys and not the values.
    KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"`
    // count_only when set returns only the count of the keys in the range.
    CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"`
    // min_mod_revision is the lower bound for returned key mod revisions; all keys with
    // lesser mod revisions will be filtered away.
    MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"`
    // max_mod_revision is the upper bound for returned key mod revisions; all keys with
    // greater mod revisions will be filtered away.
    MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"`
    // min_create_revision is the lower bound for returned key create revisions; all keys with
    // lesser create revisions will be filtered away.
    MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"`
    // max_create_revision is the upper bound for returned key create revisions; all keys with
    // greater create revisions will be filtered away.
    MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"`
}

func (*RangeRequest) Descriptor Uses

func (*RangeRequest) Descriptor() ([]byte, []int)

func (*RangeRequest) GetCountOnly Uses

func (m *RangeRequest) GetCountOnly() bool

func (*RangeRequest) GetKey Uses

func (m *RangeRequest) GetKey() []byte

func (*RangeRequest) GetKeysOnly Uses

func (m *RangeRequest) GetKeysOnly() bool

func (*RangeRequest) GetLimit Uses

func (m *RangeRequest) GetLimit() int64

func (*RangeRequest) GetMaxCreateRevision Uses

func (m *RangeRequest) GetMaxCreateRevision() int64

func (*RangeRequest) GetMaxModRevision Uses

func (m *RangeRequest) GetMaxModRevision() int64

func (*RangeRequest) GetMinCreateRevision Uses

func (m *RangeRequest) GetMinCreateRevision() int64

func (*RangeRequest) GetMinModRevision Uses

func (m *RangeRequest) GetMinModRevision() int64

func (*RangeRequest) GetRangeEnd Uses

func (m *RangeRequest) GetRangeEnd() []byte

func (*RangeRequest) GetRevision Uses

func (m *RangeRequest) GetRevision() int64

func (*RangeRequest) GetSerializable Uses

func (m *RangeRequest) GetSerializable() bool

func (*RangeRequest) GetSortOrder Uses

func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder

func (*RangeRequest) GetSortTarget Uses

func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget

func (*RangeRequest) Marshal Uses

func (m *RangeRequest) Marshal() (dAtA []byte, err error)

func (*RangeRequest) MarshalTo Uses

func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error)

func (*RangeRequest) ProtoMessage Uses

func (*RangeRequest) ProtoMessage()

func (*RangeRequest) Reset Uses

func (m *RangeRequest) Reset()

func (*RangeRequest) Size Uses

func (m *RangeRequest) Size() (n int)

func (*RangeRequest) String Uses

func (m *RangeRequest) String() string

func (*RangeRequest) Unmarshal Uses

func (m *RangeRequest) Unmarshal(dAtA []byte) error

type RangeRequest_SortOrder Uses

type RangeRequest_SortOrder int32
const (
    RangeRequest_NONE    RangeRequest_SortOrder = 0
    RangeRequest_ASCEND  RangeRequest_SortOrder = 1
    RangeRequest_DESCEND RangeRequest_SortOrder = 2
)

func (RangeRequest_SortOrder) EnumDescriptor Uses

func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int)

func (RangeRequest_SortOrder) String Uses

func (x RangeRequest_SortOrder) String() string

type RangeRequest_SortTarget Uses

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 Uses

func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int)

func (RangeRequest_SortTarget) String Uses

func (x RangeRequest_SortTarget) String() string

type RangeResponse Uses

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 is empty when count is requested.
    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"`
    // count is set to the number of keys within the range when requested.
    Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
}

func (*RangeResponse) Descriptor Uses

func (*RangeResponse) Descriptor() ([]byte, []int)

func (*RangeResponse) GetCount Uses

func (m *RangeResponse) GetCount() int64

func (*RangeResponse) GetHeader Uses

func (m *RangeResponse) GetHeader() *ResponseHeader

func (*RangeResponse) GetKvs Uses

func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue

func (*RangeResponse) GetMore Uses

func (m *RangeResponse) GetMore() bool

func (*RangeResponse) Marshal Uses

func (m *RangeResponse) Marshal() (dAtA []byte, err error)

func (*RangeResponse) MarshalTo Uses

func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error)

func (*RangeResponse) ProtoMessage Uses

func (*RangeResponse) ProtoMessage()

func (*RangeResponse) Reset Uses

func (m *RangeResponse) Reset()

func (*RangeResponse) Size Uses

func (m *RangeResponse) Size() (n int)

func (*RangeResponse) String Uses

func (m *RangeResponse) String() string

func (*RangeResponse) Unmarshal Uses

func (m *RangeResponse) Unmarshal(dAtA []byte) error

type Request Uses

type Request struct {
    ID               uint64 `protobuf:"varint,1,opt,name=ID" json:"ID"`
    Method           string `protobuf:"bytes,2,opt,name=Method" json:"Method"`
    Path             string `protobuf:"bytes,3,opt,name=Path" json:"Path"`
    Val              string `protobuf:"bytes,4,opt,name=Val" json:"Val"`
    Dir              bool   `protobuf:"varint,5,opt,name=Dir" json:"Dir"`
    PrevValue        string `protobuf:"bytes,6,opt,name=PrevValue" json:"PrevValue"`
    PrevIndex        uint64 `protobuf:"varint,7,opt,name=PrevIndex" json:"PrevIndex"`
    PrevExist        *bool  `protobuf:"varint,8,opt,name=PrevExist" json:"PrevExist,omitempty"`
    Expiration       int64  `protobuf:"varint,9,opt,name=Expiration" json:"Expiration"`
    Wait             bool   `protobuf:"varint,10,opt,name=Wait" json:"Wait"`
    Since            uint64 `protobuf:"varint,11,opt,name=Since" json:"Since"`
    Recursive        bool   `protobuf:"varint,12,opt,name=Recursive" json:"Recursive"`
    Sorted           bool   `protobuf:"varint,13,opt,name=Sorted" json:"Sorted"`
    Quorum           bool   `protobuf:"varint,14,opt,name=Quorum" json:"Quorum"`
    Time             int64  `protobuf:"varint,15,opt,name=Time" json:"Time"`
    Stream           bool   `protobuf:"varint,16,opt,name=Stream" json:"Stream"`
    Refresh          *bool  `protobuf:"varint,17,opt,name=Refresh" json:"Refresh,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

func (*Request) Descriptor Uses

func (*Request) Descriptor() ([]byte, []int)

func (*Request) Marshal Uses

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo Uses

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) Size Uses

func (m *Request) Size() (n int)

func (*Request) String Uses

func (m *Request) String() string

func (*Request) Unmarshal Uses

func (m *Request) Unmarshal(dAtA []byte) error

type RequestHeader Uses

type RequestHeader struct {
    ID  uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    // username is a username that is associated with an auth token of gRPC connection
    Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
    // auth_revision is a revision number of auth.authStore. It is not related to mvcc
    AuthRevision uint64 `protobuf:"varint,3,opt,name=auth_revision,json=authRevision,proto3" json:"auth_revision,omitempty"`
}

func (*RequestHeader) Descriptor Uses

func (*RequestHeader) Descriptor() ([]byte, []int)

func (*RequestHeader) Marshal Uses

func (m *RequestHeader) Marshal() (dAtA []byte, err error)

func (*RequestHeader) MarshalTo Uses

func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error)

func (*RequestHeader) ProtoMessage Uses

func (*RequestHeader) ProtoMessage()

func (*RequestHeader) Reset Uses

func (m *RequestHeader) Reset()

func (*RequestHeader) Size Uses

func (m *RequestHeader) Size() (n int)

func (*RequestHeader) String Uses

func (m *RequestHeader) String() string

func (*RequestHeader) Unmarshal Uses

func (m *RequestHeader) Unmarshal(dAtA []byte) error

type RequestOp Uses

type RequestOp struct {
    // request is a union of request types accepted by a transaction.
    //
    // Types that are valid to be assigned to Request:
    //	*RequestOp_RequestRange
    //	*RequestOp_RequestPut
    //	*RequestOp_RequestDeleteRange
    //	*RequestOp_RequestTxn
    Request isRequestOp_Request `protobuf_oneof:"request"`
}

func (*RequestOp) Descriptor Uses

func (*RequestOp) Descriptor() ([]byte, []int)

func (*RequestOp) GetRequest Uses

func (m *RequestOp) GetRequest() isRequestOp_Request

func (*RequestOp) GetRequestDeleteRange Uses

func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest

func (*RequestOp) GetRequestPut Uses

func (m *RequestOp) GetRequestPut() *PutRequest

func (*RequestOp) GetRequestRange Uses

func (m *RequestOp) GetRequestRange() *RangeRequest

func (