etcdserverpb

package
v3.3.27+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEtcdserver = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEtcdserver   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRaftInternal = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRaftInternal   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRpc   = fmt.Errorf("proto: integer overflow")
)
View Source
var AlarmRequest_AlarmAction_name = map[int32]string{
	0: "GET",
	1: "ACTIVATE",
	2: "DEACTIVATE",
}
View Source
var AlarmRequest_AlarmAction_value = map[string]int32{
	"GET":        0,
	"ACTIVATE":   1,
	"DEACTIVATE": 2,
}
View Source
var AlarmType_name = map[int32]string{
	0: "NONE",
	1: "NOSPACE",
	2: "CORRUPT",
}
View Source
var AlarmType_value = map[string]int32{
	"NONE":    0,
	"NOSPACE": 1,
	"CORRUPT": 2,
}
View Source
var Compare_CompareResult_name = map[int32]string{
	0: "EQUAL",
	1: "GREATER",
	2: "LESS",
	3: "NOT_EQUAL",
}
View Source
var Compare_CompareResult_value = map[string]int32{
	"EQUAL":     0,
	"GREATER":   1,
	"LESS":      2,
	"NOT_EQUAL": 3,
}
View Source
var Compare_CompareTarget_name = map[int32]string{
	0: "VERSION",
	1: "CREATE",
	2: "MOD",
	3: "VALUE",
	4: "LEASE",
}
View Source
var Compare_CompareTarget_value = map[string]int32{
	"VERSION": 0,
	"CREATE":  1,
	"MOD":     2,
	"VALUE":   3,
	"LEASE":   4,
}
View Source
var RangeRequest_SortOrder_name = map[int32]string{
	0: "NONE",
	1: "ASCEND",
	2: "DESCEND",
}
View Source
var RangeRequest_SortOrder_value = map[string]int32{
	"NONE":    0,
	"ASCEND":  1,
	"DESCEND": 2,
}
View Source
var RangeRequest_SortTarget_name = map[int32]string{
	0: "KEY",
	1: "VERSION",
	2: "CREATE",
	3: "MOD",
	4: "VALUE",
}
View Source
var RangeRequest_SortTarget_value = map[string]int32{
	"KEY":     0,
	"VERSION": 1,
	"CREATE":  2,
	"MOD":     3,
	"VALUE":   4,
}
View Source
var WatchCreateRequest_FilterType_name = map[int32]string{
	0: "NOPUT",
	1: "NODELETE",
}
View Source
var WatchCreateRequest_FilterType_value = map[string]int32{
	"NOPUT":    0,
	"NODELETE": 1,
}

Functions

func NewLoggablePutRequest

func NewLoggablePutRequest(request *PutRequest) *loggablePutRequest

func NewLoggableTxnRequest

func NewLoggableTxnRequest(request *TxnRequest) *txnRequestStringer

func RegisterAuthServer

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

func RegisterClusterServer

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

func RegisterKVServer

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

func RegisterLeaseServer

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

func RegisterMaintenanceServer

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

func RegisterWatchServer

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

Types

type AlarmMember

type AlarmMember struct {
	// memberID is the ID of the member associated with the raised alarm.
	MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"`
	// alarm is the type of alarm which has been raised.
	Alarm                AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*AlarmMember) Descriptor

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

func (*AlarmMember) GetAlarm

func (m *AlarmMember) GetAlarm() AlarmType

func (*AlarmMember) GetMemberID

func (m *AlarmMember) GetMemberID() uint64

func (*AlarmMember) Marshal

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

func (*AlarmMember) MarshalTo

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

func (*AlarmMember) MarshalToSizedBuffer

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

func (*AlarmMember) ProtoMessage

func (*AlarmMember) ProtoMessage()

func (*AlarmMember) Reset

func (m *AlarmMember) Reset()

func (*AlarmMember) Size

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

func (*AlarmMember) String

func (m *AlarmMember) String() string

func (*AlarmMember) Unmarshal

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

func (*AlarmMember) XXX_DiscardUnknown

func (m *AlarmMember) XXX_DiscardUnknown()

func (*AlarmMember) XXX_Marshal

func (m *AlarmMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AlarmMember) XXX_Merge

func (m *AlarmMember) XXX_Merge(src proto.Message)

func (*AlarmMember) XXX_Size

func (m *AlarmMember) XXX_Size() int

func (*AlarmMember) XXX_Unmarshal

func (m *AlarmMember) XXX_Unmarshal(b []byte) error

type AlarmRequest

type AlarmRequest struct {
	// action is the kind of alarm request to issue. The action
	// may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
	// raised alarm.
	Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"`
	// memberID is the ID of the member associated with the alarm. If memberID is 0, the
	// alarm request covers all members.
	MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"`
	// alarm is the type of alarm to consider for this request.
	Alarm                AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*AlarmRequest) Descriptor

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

func (*AlarmRequest) GetAction

func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction

func (*AlarmRequest) GetAlarm

func (m *AlarmRequest) GetAlarm() AlarmType

func (*AlarmRequest) GetMemberID

func (m *AlarmRequest) GetMemberID() uint64

func (*AlarmRequest) Marshal

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

func (*AlarmRequest) MarshalTo

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

func (*AlarmRequest) MarshalToSizedBuffer

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

func (*AlarmRequest) ProtoMessage

func (*AlarmRequest) ProtoMessage()

func (*AlarmRequest) Reset

func (m *AlarmRequest) Reset()

func (*AlarmRequest) Size

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

func (*AlarmRequest) String

func (m *AlarmRequest) String() string

func (*AlarmRequest) Unmarshal

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

func (*AlarmRequest) XXX_DiscardUnknown

func (m *AlarmRequest) XXX_DiscardUnknown()

func (*AlarmRequest) XXX_Marshal

func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AlarmRequest) XXX_Merge

func (m *AlarmRequest) XXX_Merge(src proto.Message)

func (*AlarmRequest) XXX_Size

func (m *AlarmRequest) XXX_Size() int

func (*AlarmRequest) XXX_Unmarshal

func (m *AlarmRequest) XXX_Unmarshal(b []byte) error

type AlarmRequest_AlarmAction

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

func (AlarmRequest_AlarmAction) EnumDescriptor

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

func (AlarmRequest_AlarmAction) String

func (x AlarmRequest_AlarmAction) String() string

type AlarmResponse

type AlarmResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// alarms is a list of alarms associated with the alarm request.
	Alarms               []*AlarmMember `protobuf:"bytes,2,rep,name=alarms,proto3" json:"alarms,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*AlarmResponse) Descriptor

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

func (*AlarmResponse) GetAlarms

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

func (*AlarmResponse) GetHeader

func (m *AlarmResponse) GetHeader() *ResponseHeader

func (*AlarmResponse) Marshal

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

func (*AlarmResponse) MarshalTo

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

func (*AlarmResponse) MarshalToSizedBuffer

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

func (*AlarmResponse) ProtoMessage

func (*AlarmResponse) ProtoMessage()

func (*AlarmResponse) Reset

func (m *AlarmResponse) Reset()

func (*AlarmResponse) Size

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

func (*AlarmResponse) String

func (m *AlarmResponse) String() string

func (*AlarmResponse) Unmarshal

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

func (*AlarmResponse) XXX_DiscardUnknown

func (m *AlarmResponse) XXX_DiscardUnknown()

func (*AlarmResponse) XXX_Marshal

func (m *AlarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AlarmResponse) XXX_Merge

func (m *AlarmResponse) XXX_Merge(src proto.Message)

func (*AlarmResponse) XXX_Size

func (m *AlarmResponse) XXX_Size() int

func (*AlarmResponse) XXX_Unmarshal

func (m *AlarmResponse) XXX_Unmarshal(b []byte) error

type AlarmType

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

func (AlarmType) EnumDescriptor

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

func (AlarmType) String

func (x AlarmType) String() string

type AuthClient

type AuthClient interface {
	// AuthEnable enables authentication.
	AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error)
	// AuthDisable disables authentication.
	AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error)
	// Authenticate processes an authenticate request.
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
	// UserAdd adds a new user.
	UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error)
	// UserGet gets detailed user information.
	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.
	RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error)
	// RoleGet gets detailed role information.
	RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error)
	// RoleList gets lists of all roles.
	RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error)
	// RoleDelete deletes a specified role.
	RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error)
	// RoleGrantPermission grants a permission of a specified key or range to a specified role.
	RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error)
	// RoleRevokePermission revokes a key or range permission of a specified role.
	RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthClient

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type AuthDisableRequest

type AuthDisableRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthDisableRequest) Descriptor

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

func (*AuthDisableRequest) Marshal

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

func (*AuthDisableRequest) MarshalTo

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

func (*AuthDisableRequest) MarshalToSizedBuffer

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

func (*AuthDisableRequest) ProtoMessage

func (*AuthDisableRequest) ProtoMessage()

func (*AuthDisableRequest) Reset

func (m *AuthDisableRequest) Reset()

func (*AuthDisableRequest) Size

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

func (*AuthDisableRequest) String

func (m *AuthDisableRequest) String() string

func (*AuthDisableRequest) Unmarshal

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

func (*AuthDisableRequest) XXX_DiscardUnknown

func (m *AuthDisableRequest) XXX_DiscardUnknown()

func (*AuthDisableRequest) XXX_Marshal

func (m *AuthDisableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthDisableRequest) XXX_Merge

func (m *AuthDisableRequest) XXX_Merge(src proto.Message)

func (*AuthDisableRequest) XXX_Size

func (m *AuthDisableRequest) XXX_Size() int

func (*AuthDisableRequest) XXX_Unmarshal

func (m *AuthDisableRequest) XXX_Unmarshal(b []byte) error

type AuthDisableResponse

type AuthDisableResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthDisableResponse) Descriptor

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

func (*AuthDisableResponse) GetHeader

func (m *AuthDisableResponse) GetHeader() *ResponseHeader

func (*AuthDisableResponse) Marshal

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

func (*AuthDisableResponse) MarshalTo

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

func (*AuthDisableResponse) MarshalToSizedBuffer

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

func (*AuthDisableResponse) ProtoMessage

func (*AuthDisableResponse) ProtoMessage()

func (*AuthDisableResponse) Reset

func (m *AuthDisableResponse) Reset()

func (*AuthDisableResponse) Size

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

func (*AuthDisableResponse) String

func (m *AuthDisableResponse) String() string

func (*AuthDisableResponse) Unmarshal

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

func (*AuthDisableResponse) XXX_DiscardUnknown

func (m *AuthDisableResponse) XXX_DiscardUnknown()

func (*AuthDisableResponse) XXX_Marshal

func (m *AuthDisableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthDisableResponse) XXX_Merge

func (m *AuthDisableResponse) XXX_Merge(src proto.Message)

func (*AuthDisableResponse) XXX_Size

func (m *AuthDisableResponse) XXX_Size() int

func (*AuthDisableResponse) XXX_Unmarshal

func (m *AuthDisableResponse) XXX_Unmarshal(b []byte) error

type AuthEnableRequest

type AuthEnableRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthEnableRequest) Descriptor

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

func (*AuthEnableRequest) Marshal

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

func (*AuthEnableRequest) MarshalTo

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

func (*AuthEnableRequest) MarshalToSizedBuffer

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

func (*AuthEnableRequest) ProtoMessage

func (*AuthEnableRequest) ProtoMessage()

func (*AuthEnableRequest) Reset

func (m *AuthEnableRequest) Reset()

func (*AuthEnableRequest) Size

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

func (*AuthEnableRequest) String

func (m *AuthEnableRequest) String() string

func (*AuthEnableRequest) Unmarshal

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

func (*AuthEnableRequest) XXX_DiscardUnknown

func (m *AuthEnableRequest) XXX_DiscardUnknown()

func (*AuthEnableRequest) XXX_Marshal

func (m *AuthEnableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthEnableRequest) XXX_Merge

func (m *AuthEnableRequest) XXX_Merge(src proto.Message)

func (*AuthEnableRequest) XXX_Size

func (m *AuthEnableRequest) XXX_Size() int

func (*AuthEnableRequest) XXX_Unmarshal

func (m *AuthEnableRequest) XXX_Unmarshal(b []byte) error

type AuthEnableResponse

type AuthEnableResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthEnableResponse) Descriptor

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

func (*AuthEnableResponse) GetHeader

func (m *AuthEnableResponse) GetHeader() *ResponseHeader

func (*AuthEnableResponse) Marshal

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

func (*AuthEnableResponse) MarshalTo

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

func (*AuthEnableResponse) MarshalToSizedBuffer

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

func (*AuthEnableResponse) ProtoMessage

func (*AuthEnableResponse) ProtoMessage()

func (*AuthEnableResponse) Reset

func (m *AuthEnableResponse) Reset()

func (*AuthEnableResponse) Size

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

func (*AuthEnableResponse) String

func (m *AuthEnableResponse) String() string

func (*AuthEnableResponse) Unmarshal

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

func (*AuthEnableResponse) XXX_DiscardUnknown

func (m *AuthEnableResponse) XXX_DiscardUnknown()

func (*AuthEnableResponse) XXX_Marshal

func (m *AuthEnableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthEnableResponse) XXX_Merge

func (m *AuthEnableResponse) XXX_Merge(src proto.Message)

func (*AuthEnableResponse) XXX_Size

func (m *AuthEnableResponse) XXX_Size() int

func (*AuthEnableResponse) XXX_Unmarshal

func (m *AuthEnableResponse) XXX_Unmarshal(b []byte) error

type AuthRoleAddRequest

type AuthRoleAddRequest struct {
	// name is the name of the role to add to the authentication system.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthRoleAddRequest) Descriptor

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

func (*AuthRoleAddRequest) GetName

func (m *AuthRoleAddRequest) GetName() string

func (*AuthRoleAddRequest) Marshal

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

func (*AuthRoleAddRequest) MarshalTo

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

func (*AuthRoleAddRequest) MarshalToSizedBuffer

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

func (*AuthRoleAddRequest) ProtoMessage

func (*AuthRoleAddRequest) ProtoMessage()

func (*AuthRoleAddRequest) Reset

func (m *AuthRoleAddRequest) Reset()

func (*AuthRoleAddRequest) Size

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

func (*AuthRoleAddRequest) String

func (m *AuthRoleAddRequest) String() string

func (*AuthRoleAddRequest) Unmarshal

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

func (*AuthRoleAddRequest) XXX_DiscardUnknown

func (m *AuthRoleAddRequest) XXX_DiscardUnknown()

func (*AuthRoleAddRequest) XXX_Marshal

func (m *AuthRoleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleAddRequest) XXX_Merge

func (m *AuthRoleAddRequest) XXX_Merge(src proto.Message)

func (*AuthRoleAddRequest) XXX_Size

func (m *AuthRoleAddRequest) XXX_Size() int

func (*AuthRoleAddRequest) XXX_Unmarshal

func (m *AuthRoleAddRequest) XXX_Unmarshal(b []byte) error

type AuthRoleAddResponse

type AuthRoleAddResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthRoleAddResponse) Descriptor

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

func (*AuthRoleAddResponse) GetHeader

func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader

func (*AuthRoleAddResponse) Marshal

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

func (*AuthRoleAddResponse) MarshalTo

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

func (*AuthRoleAddResponse) MarshalToSizedBuffer

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

func (*AuthRoleAddResponse) ProtoMessage

func (*AuthRoleAddResponse) ProtoMessage()

func (*AuthRoleAddResponse) Reset

func (m *AuthRoleAddResponse) Reset()

func (*AuthRoleAddResponse) Size

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

func (*AuthRoleAddResponse) String

func (m *AuthRoleAddResponse) String() string

func (*AuthRoleAddResponse) Unmarshal

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

func (*AuthRoleAddResponse) XXX_DiscardUnknown

func (m *AuthRoleAddResponse) XXX_DiscardUnknown()

func (*AuthRoleAddResponse) XXX_Marshal

func (m *AuthRoleAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleAddResponse) XXX_Merge

func (m *AuthRoleAddResponse) XXX_Merge(src proto.Message)

func (*AuthRoleAddResponse) XXX_Size

func (m *AuthRoleAddResponse) XXX_Size() int

func (*AuthRoleAddResponse) XXX_Unmarshal

func (m *AuthRoleAddResponse) XXX_Unmarshal(b []byte) error

type AuthRoleDeleteRequest

type AuthRoleDeleteRequest struct {
	Role                 string   `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthRoleDeleteRequest) Descriptor

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

func (*AuthRoleDeleteRequest) GetRole

func (m *AuthRoleDeleteRequest) GetRole() string

func (*AuthRoleDeleteRequest) Marshal

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

func (*AuthRoleDeleteRequest) MarshalTo

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

func (*AuthRoleDeleteRequest) MarshalToSizedBuffer

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

func (*AuthRoleDeleteRequest) ProtoMessage

func (*AuthRoleDeleteRequest) ProtoMessage()

func (*AuthRoleDeleteRequest) Reset

func (m *AuthRoleDeleteRequest) Reset()

func (*AuthRoleDeleteRequest) Size

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

func (*AuthRoleDeleteRequest) String

func (m *AuthRoleDeleteRequest) String() string

func (*AuthRoleDeleteRequest) Unmarshal

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

func (*AuthRoleDeleteRequest) XXX_DiscardUnknown

func (m *AuthRoleDeleteRequest) XXX_DiscardUnknown()

func (*AuthRoleDeleteRequest) XXX_Marshal

func (m *AuthRoleDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleDeleteRequest) XXX_Merge

func (m *AuthRoleDeleteRequest) XXX_Merge(src proto.Message)

func (*AuthRoleDeleteRequest) XXX_Size

func (m *AuthRoleDeleteRequest) XXX_Size() int

func (*AuthRoleDeleteRequest) XXX_Unmarshal

func (m *AuthRoleDeleteRequest) XXX_Unmarshal(b []byte) error

type AuthRoleDeleteResponse

type AuthRoleDeleteResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthRoleDeleteResponse) Descriptor

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

func (*AuthRoleDeleteResponse) GetHeader

func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader

func (*AuthRoleDeleteResponse) Marshal

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

func (*AuthRoleDeleteResponse) MarshalTo

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

func (*AuthRoleDeleteResponse) MarshalToSizedBuffer

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

func (*AuthRoleDeleteResponse) ProtoMessage

func (*AuthRoleDeleteResponse) ProtoMessage()

func (*AuthRoleDeleteResponse) Reset

func (m *AuthRoleDeleteResponse) Reset()

func (*AuthRoleDeleteResponse) Size

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

func (*AuthRoleDeleteResponse) String

func (m *AuthRoleDeleteResponse) String() string

func (*AuthRoleDeleteResponse) Unmarshal

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

func (*AuthRoleDeleteResponse) XXX_DiscardUnknown

func (m *AuthRoleDeleteResponse) XXX_DiscardUnknown()

func (*AuthRoleDeleteResponse) XXX_Marshal

func (m *AuthRoleDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleDeleteResponse) XXX_Merge

func (m *AuthRoleDeleteResponse) XXX_Merge(src proto.Message)

func (*AuthRoleDeleteResponse) XXX_Size

func (m *AuthRoleDeleteResponse) XXX_Size() int

func (*AuthRoleDeleteResponse) XXX_Unmarshal

func (m *AuthRoleDeleteResponse) XXX_Unmarshal(b []byte) error

type AuthRoleGetRequest

type AuthRoleGetRequest struct {
	Role                 string   `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthRoleGetRequest) Descriptor

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

func (*AuthRoleGetRequest) GetRole

func (m *AuthRoleGetRequest) GetRole() string

func (*AuthRoleGetRequest) Marshal

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

func (*AuthRoleGetRequest) MarshalTo

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

func (*AuthRoleGetRequest) MarshalToSizedBuffer

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

func (*AuthRoleGetRequest) ProtoMessage

func (*AuthRoleGetRequest) ProtoMessage()

func (*AuthRoleGetRequest) Reset

func (m *AuthRoleGetRequest) Reset()

func (*AuthRoleGetRequest) Size

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

func (*AuthRoleGetRequest) String

func (m *AuthRoleGetRequest) String() string

func (*AuthRoleGetRequest) Unmarshal

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

func (*AuthRoleGetRequest) XXX_DiscardUnknown

func (m *AuthRoleGetRequest) XXX_DiscardUnknown()

func (*AuthRoleGetRequest) XXX_Marshal

func (m *AuthRoleGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleGetRequest) XXX_Merge

func (m *AuthRoleGetRequest) XXX_Merge(src proto.Message)

func (*AuthRoleGetRequest) XXX_Size

func (m *AuthRoleGetRequest) XXX_Size() int

func (*AuthRoleGetRequest) XXX_Unmarshal

func (m *AuthRoleGetRequest) XXX_Unmarshal(b []byte) error

type AuthRoleGetResponse

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

func (*AuthRoleGetResponse) Descriptor

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

func (*AuthRoleGetResponse) GetHeader

func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader

func (*AuthRoleGetResponse) GetPerm

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

func (*AuthRoleGetResponse) Marshal

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

func (*AuthRoleGetResponse) MarshalTo

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

func (*AuthRoleGetResponse) MarshalToSizedBuffer

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

func (*AuthRoleGetResponse) ProtoMessage

func (*AuthRoleGetResponse) ProtoMessage()

func (*AuthRoleGetResponse) Reset

func (m *AuthRoleGetResponse) Reset()

func (*AuthRoleGetResponse) Size

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

func (*AuthRoleGetResponse) String

func (m *AuthRoleGetResponse) String() string

func (*AuthRoleGetResponse) Unmarshal

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

func (*AuthRoleGetResponse) XXX_DiscardUnknown

func (m *AuthRoleGetResponse) XXX_DiscardUnknown()

func (*AuthRoleGetResponse) XXX_Marshal

func (m *AuthRoleGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleGetResponse) XXX_Merge

func (m *AuthRoleGetResponse) XXX_Merge(src proto.Message)

func (*AuthRoleGetResponse) XXX_Size

func (m *AuthRoleGetResponse) XXX_Size() int

func (*AuthRoleGetResponse) XXX_Unmarshal

func (m *AuthRoleGetResponse) XXX_Unmarshal(b []byte) error

type AuthRoleGrantPermissionRequest

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

func (*AuthRoleGrantPermissionRequest) Descriptor

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

func (*AuthRoleGrantPermissionRequest) GetName

func (*AuthRoleGrantPermissionRequest) GetPerm

func (*AuthRoleGrantPermissionRequest) Marshal

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

func (*AuthRoleGrantPermissionRequest) MarshalTo

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

func (*AuthRoleGrantPermissionRequest) MarshalToSizedBuffer

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

func (*AuthRoleGrantPermissionRequest) ProtoMessage

func (*AuthRoleGrantPermissionRequest) ProtoMessage()

func (*AuthRoleGrantPermissionRequest) Reset

func (m *AuthRoleGrantPermissionRequest) Reset()

func (*AuthRoleGrantPermissionRequest) Size

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

func (*AuthRoleGrantPermissionRequest) String

func (*AuthRoleGrantPermissionRequest) Unmarshal

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

func (*AuthRoleGrantPermissionRequest) XXX_DiscardUnknown

func (m *AuthRoleGrantPermissionRequest) XXX_DiscardUnknown()

func (*AuthRoleGrantPermissionRequest) XXX_Marshal

func (m *AuthRoleGrantPermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleGrantPermissionRequest) XXX_Merge

func (m *AuthRoleGrantPermissionRequest) XXX_Merge(src proto.Message)

func (*AuthRoleGrantPermissionRequest) XXX_Size

func (m *AuthRoleGrantPermissionRequest) XXX_Size() int

func (*AuthRoleGrantPermissionRequest) XXX_Unmarshal

func (m *AuthRoleGrantPermissionRequest) XXX_Unmarshal(b []byte) error

type AuthRoleGrantPermissionResponse

type AuthRoleGrantPermissionResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthRoleGrantPermissionResponse) Descriptor

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

func (*AuthRoleGrantPermissionResponse) GetHeader

func (*AuthRoleGrantPermissionResponse) Marshal

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

func (*AuthRoleGrantPermissionResponse) MarshalTo

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

func (*AuthRoleGrantPermissionResponse) MarshalToSizedBuffer

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

func (*AuthRoleGrantPermissionResponse) ProtoMessage

func (*AuthRoleGrantPermissionResponse) ProtoMessage()

func (*AuthRoleGrantPermissionResponse) Reset

func (*AuthRoleGrantPermissionResponse) Size

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

func (*AuthRoleGrantPermissionResponse) String

func (*AuthRoleGrantPermissionResponse) Unmarshal

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

func (*AuthRoleGrantPermissionResponse) XXX_DiscardUnknown

func (m *AuthRoleGrantPermissionResponse) XXX_DiscardUnknown()

func (*AuthRoleGrantPermissionResponse) XXX_Marshal

func (m *AuthRoleGrantPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleGrantPermissionResponse) XXX_Merge

func (m *AuthRoleGrantPermissionResponse) XXX_Merge(src proto.Message)

func (*AuthRoleGrantPermissionResponse) XXX_Size

func (m *AuthRoleGrantPermissionResponse) XXX_Size() int

func (*AuthRoleGrantPermissionResponse) XXX_Unmarshal

func (m *AuthRoleGrantPermissionResponse) XXX_Unmarshal(b []byte) error

type AuthRoleListRequest

type AuthRoleListRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthRoleListRequest) Descriptor

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

func (*AuthRoleListRequest) Marshal

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

func (*AuthRoleListRequest) MarshalTo

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

func (*AuthRoleListRequest) MarshalToSizedBuffer

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

func (*AuthRoleListRequest) ProtoMessage

func (*AuthRoleListRequest) ProtoMessage()

func (*AuthRoleListRequest) Reset

func (m *AuthRoleListRequest) Reset()

func (*AuthRoleListRequest) Size

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

func (*AuthRoleListRequest) String

func (m *AuthRoleListRequest) String() string

func (*AuthRoleListRequest) Unmarshal

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

func (*AuthRoleListRequest) XXX_DiscardUnknown

func (m *AuthRoleListRequest) XXX_DiscardUnknown()

func (*AuthRoleListRequest) XXX_Marshal

func (m *AuthRoleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleListRequest) XXX_Merge

func (m *AuthRoleListRequest) XXX_Merge(src proto.Message)

func (*AuthRoleListRequest) XXX_Size

func (m *AuthRoleListRequest) XXX_Size() int

func (*AuthRoleListRequest) XXX_Unmarshal

func (m *AuthRoleListRequest) XXX_Unmarshal(b []byte) error

type AuthRoleListResponse

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

func (*AuthRoleListResponse) Descriptor

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

func (*AuthRoleListResponse) GetHeader

func (m *AuthRoleListResponse) GetHeader() *ResponseHeader

func (*AuthRoleListResponse) GetRoles

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

func (*AuthRoleListResponse) Marshal

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

func (*AuthRoleListResponse) MarshalTo

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

func (*AuthRoleListResponse) MarshalToSizedBuffer

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

func (*AuthRoleListResponse) ProtoMessage

func (*AuthRoleListResponse) ProtoMessage()

func (*AuthRoleListResponse) Reset

func (m *AuthRoleListResponse) Reset()

func (*AuthRoleListResponse) Size

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

func (*AuthRoleListResponse) String

func (m *AuthRoleListResponse) String() string

func (*AuthRoleListResponse) Unmarshal

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

func (*AuthRoleListResponse) XXX_DiscardUnknown

func (m *AuthRoleListResponse) XXX_DiscardUnknown()

func (*AuthRoleListResponse) XXX_Marshal

func (m *AuthRoleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleListResponse) XXX_Merge

func (m *AuthRoleListResponse) XXX_Merge(src proto.Message)

func (*AuthRoleListResponse) XXX_Size

func (m *AuthRoleListResponse) XXX_Size() int

func (*AuthRoleListResponse) XXX_Unmarshal

func (m *AuthRoleListResponse) XXX_Unmarshal(b []byte) error

type AuthRoleRevokePermissionRequest

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

func (*AuthRoleRevokePermissionRequest) Descriptor

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

func (*AuthRoleRevokePermissionRequest) GetKey

func (*AuthRoleRevokePermissionRequest) GetRangeEnd

func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() string

func (*AuthRoleRevokePermissionRequest) GetRole

func (*AuthRoleRevokePermissionRequest) Marshal

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

func (*AuthRoleRevokePermissionRequest) MarshalTo

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

func (*AuthRoleRevokePermissionRequest) MarshalToSizedBuffer

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

func (*AuthRoleRevokePermissionRequest) ProtoMessage

func (*AuthRoleRevokePermissionRequest) ProtoMessage()

func (*AuthRoleRevokePermissionRequest) Reset

func (*AuthRoleRevokePermissionRequest) Size

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

func (*AuthRoleRevokePermissionRequest) String

func (*AuthRoleRevokePermissionRequest) Unmarshal

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

func (*AuthRoleRevokePermissionRequest) XXX_DiscardUnknown

func (m *AuthRoleRevokePermissionRequest) XXX_DiscardUnknown()

func (*AuthRoleRevokePermissionRequest) XXX_Marshal

func (m *AuthRoleRevokePermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleRevokePermissionRequest) XXX_Merge

func (m *AuthRoleRevokePermissionRequest) XXX_Merge(src proto.Message)

func (*AuthRoleRevokePermissionRequest) XXX_Size

func (m *AuthRoleRevokePermissionRequest) XXX_Size() int

func (*AuthRoleRevokePermissionRequest) XXX_Unmarshal

func (m *AuthRoleRevokePermissionRequest) XXX_Unmarshal(b []byte) error

type AuthRoleRevokePermissionResponse

type AuthRoleRevokePermissionResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthRoleRevokePermissionResponse) Descriptor

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

func (*AuthRoleRevokePermissionResponse) GetHeader

func (*AuthRoleRevokePermissionResponse) Marshal

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

func (*AuthRoleRevokePermissionResponse) MarshalTo

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

func (*AuthRoleRevokePermissionResponse) MarshalToSizedBuffer

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

func (*AuthRoleRevokePermissionResponse) ProtoMessage

func (*AuthRoleRevokePermissionResponse) ProtoMessage()

func (*AuthRoleRevokePermissionResponse) Reset

func (*AuthRoleRevokePermissionResponse) Size

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

func (*AuthRoleRevokePermissionResponse) String

func (*AuthRoleRevokePermissionResponse) Unmarshal

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

func (*AuthRoleRevokePermissionResponse) XXX_DiscardUnknown

func (m *AuthRoleRevokePermissionResponse) XXX_DiscardUnknown()

func (*AuthRoleRevokePermissionResponse) XXX_Marshal

func (m *AuthRoleRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRoleRevokePermissionResponse) XXX_Merge

func (*AuthRoleRevokePermissionResponse) XXX_Size

func (m *AuthRoleRevokePermissionResponse) XXX_Size() int

func (*AuthRoleRevokePermissionResponse) XXX_Unmarshal

func (m *AuthRoleRevokePermissionResponse) XXX_Unmarshal(b []byte) error

type AuthServer

type AuthServer interface {
	// AuthEnable enables authentication.
	AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
	// AuthDisable disables authentication.
	AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
	// Authenticate processes an authenticate request.
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	// UserAdd adds a new user.
	UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
	// UserGet gets detailed user information.
	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.
	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)
}

AuthServer is the server API for Auth service.

type AuthUserAddRequest

type AuthUserAddRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthUserAddRequest) Descriptor

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

func (*AuthUserAddRequest) GetName

func (m *AuthUserAddRequest) GetName() string

func (*AuthUserAddRequest) GetPassword

func (m *AuthUserAddRequest) GetPassword() string

func (*AuthUserAddRequest) Marshal

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

func (*AuthUserAddRequest) MarshalTo

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

func (*AuthUserAddRequest) MarshalToSizedBuffer

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

func (*AuthUserAddRequest) ProtoMessage

func (*AuthUserAddRequest) ProtoMessage()

func (*AuthUserAddRequest) Reset

func (m *AuthUserAddRequest) Reset()

func (*AuthUserAddRequest) Size

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

func (*AuthUserAddRequest) String

func (m *AuthUserAddRequest) String() string

func (*AuthUserAddRequest) Unmarshal

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

func (*AuthUserAddRequest) XXX_DiscardUnknown

func (m *AuthUserAddRequest) XXX_DiscardUnknown()

func (*AuthUserAddRequest) XXX_Marshal

func (m *AuthUserAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserAddRequest) XXX_Merge

func (m *AuthUserAddRequest) XXX_Merge(src proto.Message)

func (*AuthUserAddRequest) XXX_Size

func (m *AuthUserAddRequest) XXX_Size() int

func (*AuthUserAddRequest) XXX_Unmarshal

func (m *AuthUserAddRequest) XXX_Unmarshal(b []byte) error

type AuthUserAddResponse

type AuthUserAddResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthUserAddResponse) Descriptor

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

func (*AuthUserAddResponse) GetHeader

func (m *AuthUserAddResponse) GetHeader() *ResponseHeader

func (*AuthUserAddResponse) Marshal

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

func (*AuthUserAddResponse) MarshalTo

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

func (*AuthUserAddResponse) MarshalToSizedBuffer

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

func (*AuthUserAddResponse) ProtoMessage

func (*AuthUserAddResponse) ProtoMessage()

func (*AuthUserAddResponse) Reset

func (m *AuthUserAddResponse) Reset()

func (*AuthUserAddResponse) Size

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

func (*AuthUserAddResponse) String

func (m *AuthUserAddResponse) String() string

func (*AuthUserAddResponse) Unmarshal

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

func (*AuthUserAddResponse) XXX_DiscardUnknown

func (m *AuthUserAddResponse) XXX_DiscardUnknown()

func (*AuthUserAddResponse) XXX_Marshal

func (m *AuthUserAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserAddResponse) XXX_Merge

func (m *AuthUserAddResponse) XXX_Merge(src proto.Message)

func (*AuthUserAddResponse) XXX_Size

func (m *AuthUserAddResponse) XXX_Size() int

func (*AuthUserAddResponse) XXX_Unmarshal

func (m *AuthUserAddResponse) XXX_Unmarshal(b []byte) error

type AuthUserChangePasswordRequest

type AuthUserChangePasswordRequest struct {
	// name is the name of the user whose password is being changed.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// password is the new password for the user.
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthUserChangePasswordRequest) Descriptor

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

func (*AuthUserChangePasswordRequest) GetName

func (*AuthUserChangePasswordRequest) GetPassword

func (m *AuthUserChangePasswordRequest) GetPassword() string

func (*AuthUserChangePasswordRequest) Marshal

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

func (*AuthUserChangePasswordRequest) MarshalTo

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

func (*AuthUserChangePasswordRequest) MarshalToSizedBuffer

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

func (*AuthUserChangePasswordRequest) ProtoMessage

func (*AuthUserChangePasswordRequest) ProtoMessage()

func (*AuthUserChangePasswordRequest) Reset

func (m *AuthUserChangePasswordRequest) Reset()

func (*AuthUserChangePasswordRequest) Size

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

func (*AuthUserChangePasswordRequest) String

func (*AuthUserChangePasswordRequest) Unmarshal

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

func (*AuthUserChangePasswordRequest) XXX_DiscardUnknown

func (m *AuthUserChangePasswordRequest) XXX_DiscardUnknown()

func (*AuthUserChangePasswordRequest) XXX_Marshal

func (m *AuthUserChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserChangePasswordRequest) XXX_Merge

func (m *AuthUserChangePasswordRequest) XXX_Merge(src proto.Message)

func (*AuthUserChangePasswordRequest) XXX_Size

func (m *AuthUserChangePasswordRequest) XXX_Size() int

func (*AuthUserChangePasswordRequest) XXX_Unmarshal

func (m *AuthUserChangePasswordRequest) XXX_Unmarshal(b []byte) error

type AuthUserChangePasswordResponse

type AuthUserChangePasswordResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthUserChangePasswordResponse) Descriptor

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

func (*AuthUserChangePasswordResponse) GetHeader

func (*AuthUserChangePasswordResponse) Marshal

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

func (*AuthUserChangePasswordResponse) MarshalTo

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

func (*AuthUserChangePasswordResponse) MarshalToSizedBuffer

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

func (*AuthUserChangePasswordResponse) ProtoMessage

func (*AuthUserChangePasswordResponse) ProtoMessage()

func (*AuthUserChangePasswordResponse) Reset

func (m *AuthUserChangePasswordResponse) Reset()

func (*AuthUserChangePasswordResponse) Size

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

func (*AuthUserChangePasswordResponse) String

func (*AuthUserChangePasswordResponse) Unmarshal

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

func (*AuthUserChangePasswordResponse) XXX_DiscardUnknown

func (m *AuthUserChangePasswordResponse) XXX_DiscardUnknown()

func (*AuthUserChangePasswordResponse) XXX_Marshal

func (m *AuthUserChangePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserChangePasswordResponse) XXX_Merge

func (m *AuthUserChangePasswordResponse) XXX_Merge(src proto.Message)

func (*AuthUserChangePasswordResponse) XXX_Size

func (m *AuthUserChangePasswordResponse) XXX_Size() int

func (*AuthUserChangePasswordResponse) XXX_Unmarshal

func (m *AuthUserChangePasswordResponse) XXX_Unmarshal(b []byte) error

type AuthUserDeleteRequest

type AuthUserDeleteRequest struct {
	// name is the name of the user to delete.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthUserDeleteRequest) Descriptor

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

func (*AuthUserDeleteRequest) GetName

func (m *AuthUserDeleteRequest) GetName() string

func (*AuthUserDeleteRequest) Marshal

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

func (*AuthUserDeleteRequest) MarshalTo

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

func (*AuthUserDeleteRequest) MarshalToSizedBuffer

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

func (*AuthUserDeleteRequest) ProtoMessage

func (*AuthUserDeleteRequest) ProtoMessage()

func (*AuthUserDeleteRequest) Reset

func (m *AuthUserDeleteRequest) Reset()

func (*AuthUserDeleteRequest) Size

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

func (*AuthUserDeleteRequest) String

func (m *AuthUserDeleteRequest) String() string

func (*AuthUserDeleteRequest) Unmarshal

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

func (*AuthUserDeleteRequest) XXX_DiscardUnknown

func (m *AuthUserDeleteRequest) XXX_DiscardUnknown()

func (*AuthUserDeleteRequest) XXX_Marshal

func (m *AuthUserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserDeleteRequest) XXX_Merge

func (m *AuthUserDeleteRequest) XXX_Merge(src proto.Message)

func (*AuthUserDeleteRequest) XXX_Size

func (m *AuthUserDeleteRequest) XXX_Size() int

func (*AuthUserDeleteRequest) XXX_Unmarshal

func (m *AuthUserDeleteRequest) XXX_Unmarshal(b []byte) error

type AuthUserDeleteResponse

type AuthUserDeleteResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthUserDeleteResponse) Descriptor

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

func (*AuthUserDeleteResponse) GetHeader

func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader

func (*AuthUserDeleteResponse) Marshal

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

func (*AuthUserDeleteResponse) MarshalTo

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

func (*AuthUserDeleteResponse) MarshalToSizedBuffer

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

func (*AuthUserDeleteResponse) ProtoMessage

func (*AuthUserDeleteResponse) ProtoMessage()

func (*AuthUserDeleteResponse) Reset

func (m *AuthUserDeleteResponse) Reset()

func (*AuthUserDeleteResponse) Size

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

func (*AuthUserDeleteResponse) String

func (m *AuthUserDeleteResponse) String() string

func (*AuthUserDeleteResponse) Unmarshal

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

func (*AuthUserDeleteResponse) XXX_DiscardUnknown

func (m *AuthUserDeleteResponse) XXX_DiscardUnknown()

func (*AuthUserDeleteResponse) XXX_Marshal

func (m *AuthUserDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserDeleteResponse) XXX_Merge

func (m *AuthUserDeleteResponse) XXX_Merge(src proto.Message)

func (*AuthUserDeleteResponse) XXX_Size

func (m *AuthUserDeleteResponse) XXX_Size() int

func (*AuthUserDeleteResponse) XXX_Unmarshal

func (m *AuthUserDeleteResponse) XXX_Unmarshal(b []byte) error

type AuthUserGetRequest

type AuthUserGetRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthUserGetRequest) Descriptor

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

func (*AuthUserGetRequest) GetName

func (m *AuthUserGetRequest) GetName() string

func (*AuthUserGetRequest) Marshal

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

func (*AuthUserGetRequest) MarshalTo

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

func (*AuthUserGetRequest) MarshalToSizedBuffer

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

func (*AuthUserGetRequest) ProtoMessage

func (*AuthUserGetRequest) ProtoMessage()

func (*AuthUserGetRequest) Reset

func (m *AuthUserGetRequest) Reset()

func (*AuthUserGetRequest) Size

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

func (*AuthUserGetRequest) String

func (m *AuthUserGetRequest) String() string

func (*AuthUserGetRequest) Unmarshal

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

func (*AuthUserGetRequest) XXX_DiscardUnknown

func (m *AuthUserGetRequest) XXX_DiscardUnknown()

func (*AuthUserGetRequest) XXX_Marshal

func (m *AuthUserGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserGetRequest) XXX_Merge

func (m *AuthUserGetRequest) XXX_Merge(src proto.Message)

func (*AuthUserGetRequest) XXX_Size

func (m *AuthUserGetRequest) XXX_Size() int

func (*AuthUserGetRequest) XXX_Unmarshal

func (m *AuthUserGetRequest) XXX_Unmarshal(b []byte) error

type AuthUserGetResponse

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

func (*AuthUserGetResponse) Descriptor

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

func (*AuthUserGetResponse) GetHeader

func (m *AuthUserGetResponse) GetHeader() *ResponseHeader

func (*AuthUserGetResponse) GetRoles

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

func (*AuthUserGetResponse) Marshal

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

func (*AuthUserGetResponse) MarshalTo

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

func (*AuthUserGetResponse) MarshalToSizedBuffer

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

func (*AuthUserGetResponse) ProtoMessage

func (*AuthUserGetResponse) ProtoMessage()

func (*AuthUserGetResponse) Reset

func (m *AuthUserGetResponse) Reset()

func (*AuthUserGetResponse) Size

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

func (*AuthUserGetResponse) String

func (m *AuthUserGetResponse) String() string

func (*AuthUserGetResponse) Unmarshal

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

func (*AuthUserGetResponse) XXX_DiscardUnknown

func (m *AuthUserGetResponse) XXX_DiscardUnknown()

func (*AuthUserGetResponse) XXX_Marshal

func (m *AuthUserGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserGetResponse) XXX_Merge

func (m *AuthUserGetResponse) XXX_Merge(src proto.Message)

func (*AuthUserGetResponse) XXX_Size

func (m *AuthUserGetResponse) XXX_Size() int

func (*AuthUserGetResponse) XXX_Unmarshal

func (m *AuthUserGetResponse) XXX_Unmarshal(b []byte) error

type AuthUserGrantRoleRequest

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

func (*AuthUserGrantRoleRequest) Descriptor

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

func (*AuthUserGrantRoleRequest) GetRole

func (m *AuthUserGrantRoleRequest) GetRole() string

func (*AuthUserGrantRoleRequest) GetUser

func (m *AuthUserGrantRoleRequest) GetUser() string

func (*AuthUserGrantRoleRequest) Marshal

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

func (*AuthUserGrantRoleRequest) MarshalTo

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

func (*AuthUserGrantRoleRequest) MarshalToSizedBuffer

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

func (*AuthUserGrantRoleRequest) ProtoMessage

func (*AuthUserGrantRoleRequest) ProtoMessage()

func (*AuthUserGrantRoleRequest) Reset

func (m *AuthUserGrantRoleRequest) Reset()

func (*AuthUserGrantRoleRequest) Size

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

func (*AuthUserGrantRoleRequest) String

func (m *AuthUserGrantRoleRequest) String() string

func (*AuthUserGrantRoleRequest) Unmarshal

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

func (*AuthUserGrantRoleRequest) XXX_DiscardUnknown

func (m *AuthUserGrantRoleRequest) XXX_DiscardUnknown()

func (*AuthUserGrantRoleRequest) XXX_Marshal

func (m *AuthUserGrantRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserGrantRoleRequest) XXX_Merge

func (m *AuthUserGrantRoleRequest) XXX_Merge(src proto.Message)

func (*AuthUserGrantRoleRequest) XXX_Size

func (m *AuthUserGrantRoleRequest) XXX_Size() int

func (*AuthUserGrantRoleRequest) XXX_Unmarshal

func (m *AuthUserGrantRoleRequest) XXX_Unmarshal(b []byte) error

type AuthUserGrantRoleResponse

type AuthUserGrantRoleResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthUserGrantRoleResponse) Descriptor

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

func (*AuthUserGrantRoleResponse) GetHeader

func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader

func (*AuthUserGrantRoleResponse) Marshal

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

func (*AuthUserGrantRoleResponse) MarshalTo

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

func (*AuthUserGrantRoleResponse) MarshalToSizedBuffer

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

func (*AuthUserGrantRoleResponse) ProtoMessage

func (*AuthUserGrantRoleResponse) ProtoMessage()

func (*AuthUserGrantRoleResponse) Reset

func (m *AuthUserGrantRoleResponse) Reset()

func (*AuthUserGrantRoleResponse) Size

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

func (*AuthUserGrantRoleResponse) String

func (m *AuthUserGrantRoleResponse) String() string

func (*AuthUserGrantRoleResponse) Unmarshal

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

func (*AuthUserGrantRoleResponse) XXX_DiscardUnknown

func (m *AuthUserGrantRoleResponse) XXX_DiscardUnknown()

func (*AuthUserGrantRoleResponse) XXX_Marshal

func (m *AuthUserGrantRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserGrantRoleResponse) XXX_Merge

func (m *AuthUserGrantRoleResponse) XXX_Merge(src proto.Message)

func (*AuthUserGrantRoleResponse) XXX_Size

func (m *AuthUserGrantRoleResponse) XXX_Size() int

func (*AuthUserGrantRoleResponse) XXX_Unmarshal

func (m *AuthUserGrantRoleResponse) XXX_Unmarshal(b []byte) error

type AuthUserListRequest

type AuthUserListRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthUserListRequest) Descriptor

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

func (*AuthUserListRequest) Marshal

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

func (*AuthUserListRequest) MarshalTo

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

func (*AuthUserListRequest) MarshalToSizedBuffer

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

func (*AuthUserListRequest) ProtoMessage

func (*AuthUserListRequest) ProtoMessage()

func (*AuthUserListRequest) Reset

func (m *AuthUserListRequest) Reset()

func (*AuthUserListRequest) Size

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

func (*AuthUserListRequest) String

func (m *AuthUserListRequest) String() string

func (*AuthUserListRequest) Unmarshal

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

func (*AuthUserListRequest) XXX_DiscardUnknown

func (m *AuthUserListRequest) XXX_DiscardUnknown()

func (*AuthUserListRequest) XXX_Marshal

func (m *AuthUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserListRequest) XXX_Merge

func (m *AuthUserListRequest) XXX_Merge(src proto.Message)

func (*AuthUserListRequest) XXX_Size

func (m *AuthUserListRequest) XXX_Size() int

func (*AuthUserListRequest) XXX_Unmarshal

func (m *AuthUserListRequest) XXX_Unmarshal(b []byte) error

type AuthUserListResponse

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

func (*AuthUserListResponse) Descriptor

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

func (*AuthUserListResponse) GetHeader

func (m *AuthUserListResponse) GetHeader() *ResponseHeader

func (*AuthUserListResponse) GetUsers

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

func (*AuthUserListResponse) Marshal

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

func (*AuthUserListResponse) MarshalTo

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

func (*AuthUserListResponse) MarshalToSizedBuffer

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

func (*AuthUserListResponse) ProtoMessage

func (*AuthUserListResponse) ProtoMessage()

func (*AuthUserListResponse) Reset

func (m *AuthUserListResponse) Reset()

func (*AuthUserListResponse) Size

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

func (*AuthUserListResponse) String

func (m *AuthUserListResponse) String() string

func (*AuthUserListResponse) Unmarshal

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

func (*AuthUserListResponse) XXX_DiscardUnknown

func (m *AuthUserListResponse) XXX_DiscardUnknown()

func (*AuthUserListResponse) XXX_Marshal

func (m *AuthUserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserListResponse) XXX_Merge

func (m *AuthUserListResponse) XXX_Merge(src proto.Message)

func (*AuthUserListResponse) XXX_Size

func (m *AuthUserListResponse) XXX_Size() int

func (*AuthUserListResponse) XXX_Unmarshal

func (m *AuthUserListResponse) XXX_Unmarshal(b []byte) error

type AuthUserRevokeRoleRequest

type AuthUserRevokeRoleRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Role                 string   `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthUserRevokeRoleRequest) Descriptor

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

func (*AuthUserRevokeRoleRequest) GetName

func (m *AuthUserRevokeRoleRequest) GetName() string

func (*AuthUserRevokeRoleRequest) GetRole

func (m *AuthUserRevokeRoleRequest) GetRole() string

func (*AuthUserRevokeRoleRequest) Marshal

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

func (*AuthUserRevokeRoleRequest) MarshalTo

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

func (*AuthUserRevokeRoleRequest) MarshalToSizedBuffer

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

func (*AuthUserRevokeRoleRequest) ProtoMessage

func (*AuthUserRevokeRoleRequest) ProtoMessage()

func (*AuthUserRevokeRoleRequest) Reset

func (m *AuthUserRevokeRoleRequest) Reset()

func (*AuthUserRevokeRoleRequest) Size

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

func (*AuthUserRevokeRoleRequest) String

func (m *AuthUserRevokeRoleRequest) String() string

func (*AuthUserRevokeRoleRequest) Unmarshal

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

func (*AuthUserRevokeRoleRequest) XXX_DiscardUnknown

func (m *AuthUserRevokeRoleRequest) XXX_DiscardUnknown()

func (*AuthUserRevokeRoleRequest) XXX_Marshal

func (m *AuthUserRevokeRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserRevokeRoleRequest) XXX_Merge

func (m *AuthUserRevokeRoleRequest) XXX_Merge(src proto.Message)

func (*AuthUserRevokeRoleRequest) XXX_Size

func (m *AuthUserRevokeRoleRequest) XXX_Size() int

func (*AuthUserRevokeRoleRequest) XXX_Unmarshal

func (m *AuthUserRevokeRoleRequest) XXX_Unmarshal(b []byte) error

type AuthUserRevokeRoleResponse

type AuthUserRevokeRoleResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*AuthUserRevokeRoleResponse) Descriptor

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

func (*AuthUserRevokeRoleResponse) GetHeader

func (*AuthUserRevokeRoleResponse) Marshal

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

func (*AuthUserRevokeRoleResponse) MarshalTo

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

func (*AuthUserRevokeRoleResponse) MarshalToSizedBuffer

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

func (*AuthUserRevokeRoleResponse) ProtoMessage

func (*AuthUserRevokeRoleResponse) ProtoMessage()

func (*AuthUserRevokeRoleResponse) Reset

func (m *AuthUserRevokeRoleResponse) Reset()

func (*AuthUserRevokeRoleResponse) Size

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

func (*AuthUserRevokeRoleResponse) String

func (m *AuthUserRevokeRoleResponse) String() string

func (*AuthUserRevokeRoleResponse) Unmarshal

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

func (*AuthUserRevokeRoleResponse) XXX_DiscardUnknown

func (m *AuthUserRevokeRoleResponse) XXX_DiscardUnknown()

func (*AuthUserRevokeRoleResponse) XXX_Marshal

func (m *AuthUserRevokeRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthUserRevokeRoleResponse) XXX_Merge

func (m *AuthUserRevokeRoleResponse) XXX_Merge(src proto.Message)

func (*AuthUserRevokeRoleResponse) XXX_Size

func (m *AuthUserRevokeRoleResponse) XXX_Size() int

func (*AuthUserRevokeRoleResponse) XXX_Unmarshal

func (m *AuthUserRevokeRoleResponse) XXX_Unmarshal(b []byte) error

type AuthenticateRequest

type AuthenticateRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticateRequest) Descriptor

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

func (*AuthenticateRequest) GetName

func (m *AuthenticateRequest) GetName() string

func (*AuthenticateRequest) GetPassword

func (m *AuthenticateRequest) GetPassword() string

func (*AuthenticateRequest) Marshal

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

func (*AuthenticateRequest) MarshalTo

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

func (*AuthenticateRequest) MarshalToSizedBuffer

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

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) Reset

func (m *AuthenticateRequest) Reset()

func (*AuthenticateRequest) Size

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

func (*AuthenticateRequest) String

func (m *AuthenticateRequest) String() string

func (*AuthenticateRequest) Unmarshal

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

func (*AuthenticateRequest) XXX_DiscardUnknown

func (m *AuthenticateRequest) XXX_DiscardUnknown()

func (*AuthenticateRequest) XXX_Marshal

func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateRequest) XXX_Merge

func (m *AuthenticateRequest) XXX_Merge(src proto.Message)

func (*AuthenticateRequest) XXX_Size

func (m *AuthenticateRequest) XXX_Size() int

func (*AuthenticateRequest) XXX_Unmarshal

func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error

type AuthenticateResponse

type AuthenticateResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// token is an authorized token that can be used in succeeding RPCs
	Token                string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticateResponse) Descriptor

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

func (*AuthenticateResponse) GetHeader

func (m *AuthenticateResponse) GetHeader() *ResponseHeader

func (*AuthenticateResponse) GetToken

func (m *AuthenticateResponse) GetToken() string

func (*AuthenticateResponse) Marshal

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

func (*AuthenticateResponse) MarshalTo

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

func (*AuthenticateResponse) MarshalToSizedBuffer

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

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) Reset

func (m *AuthenticateResponse) Reset()

func (*AuthenticateResponse) Size

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

func (*AuthenticateResponse) String

func (m *AuthenticateResponse) String() string

func (*AuthenticateResponse) Unmarshal

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

func (*AuthenticateResponse) XXX_DiscardUnknown

func (m *AuthenticateResponse) XXX_DiscardUnknown()

func (*AuthenticateResponse) XXX_Marshal

func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateResponse) XXX_Merge

func (m *AuthenticateResponse) XXX_Merge(src proto.Message)

func (*AuthenticateResponse) XXX_Size

func (m *AuthenticateResponse) XXX_Size() int

func (*AuthenticateResponse) XXX_Unmarshal

func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error

type ClusterClient

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

ClusterClient is the client API for Cluster service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClusterClient

func NewClusterClient(cc *grpc.ClientConn) ClusterClient

type ClusterServer

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

ClusterServer is the server API for Cluster service.

type CompactionRequest

type CompactionRequest struct {
	// revision is the key-value store revision for the compaction operation.
	Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// physical is set so the RPC will wait until the compaction is physically
	// applied to the local database such that compacted entries are totally
	// removed from the backend database.
	Physical             bool     `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CompactionRequest compacts the key-value store up to a given revision. All superseded keys with a revision less than the compaction revision will be removed.

func (*CompactionRequest) Descriptor

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

func (*CompactionRequest) GetPhysical

func (m *CompactionRequest) GetPhysical() bool

func (*CompactionRequest) GetRevision

func (m *CompactionRequest) GetRevision() int64

func (*CompactionRequest) Marshal

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

func (*CompactionRequest) MarshalTo

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

func (*CompactionRequest) MarshalToSizedBuffer

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

func (*CompactionRequest) ProtoMessage

func (*CompactionRequest) ProtoMessage()

func (*CompactionRequest) Reset

func (m *CompactionRequest) Reset()

func (*CompactionRequest) Size

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

func (*CompactionRequest) String

func (m *CompactionRequest) String() string

func (*CompactionRequest) Unmarshal

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

func (*CompactionRequest) XXX_DiscardUnknown

func (m *CompactionRequest) XXX_DiscardUnknown()

func (*CompactionRequest) XXX_Marshal

func (m *CompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompactionRequest) XXX_Merge

func (m *CompactionRequest) XXX_Merge(src proto.Message)

func (*CompactionRequest) XXX_Size

func (m *CompactionRequest) XXX_Size() int

func (*CompactionRequest) XXX_Unmarshal

func (m *CompactionRequest) XXX_Unmarshal(b []byte) error

type CompactionResponse

type CompactionResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*CompactionResponse) Descriptor

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

func (*CompactionResponse) GetHeader

func (m *CompactionResponse) GetHeader() *ResponseHeader

func (*CompactionResponse) Marshal

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

func (*CompactionResponse) MarshalTo

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

func (*CompactionResponse) MarshalToSizedBuffer

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

func (*CompactionResponse) ProtoMessage

func (*CompactionResponse) ProtoMessage()

func (*CompactionResponse) Reset

func (m *CompactionResponse) Reset()

func (*CompactionResponse) Size

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

func (*CompactionResponse) String

func (m *CompactionResponse) String() string

func (*CompactionResponse) Unmarshal

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

func (*CompactionResponse) XXX_DiscardUnknown

func (m *CompactionResponse) XXX_DiscardUnknown()

func (*CompactionResponse) XXX_Marshal

func (m *CompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompactionResponse) XXX_Merge

func (m *CompactionResponse) XXX_Merge(src proto.Message)

func (*CompactionResponse) XXX_Size

func (m *CompactionResponse) XXX_Size() int

func (*CompactionResponse) XXX_Unmarshal

func (m *CompactionResponse) XXX_Unmarshal(b []byte) error

type Compare

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

func (*Compare) Descriptor

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

func (*Compare) GetCreateRevision

func (m *Compare) GetCreateRevision() int64

func (*Compare) GetKey

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

func (*Compare) GetLease

func (m *Compare) GetLease() int64

func (*Compare) GetModRevision

func (m *Compare) GetModRevision() int64

func (*Compare) GetRangeEnd

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

func (*Compare) GetResult

func (m *Compare) GetResult() Compare_CompareResult

func (*Compare) GetTarget

func (m *Compare) GetTarget() Compare_CompareTarget

func (*Compare) GetTargetUnion

func (m *Compare) GetTargetUnion() isCompare_TargetUnion

func (*Compare) GetValue

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

func (*Compare) GetVersion

func (m *Compare) GetVersion() int64

func (*Compare) Marshal

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

func (*Compare) MarshalTo

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

func (*Compare) MarshalToSizedBuffer

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

func (*Compare) ProtoMessage

func (*Compare) ProtoMessage()

func (*Compare) Reset

func (m *Compare) Reset()

func (*Compare) Size

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

func (*Compare) String

func (m *Compare) String() string

func (*Compare) Unmarshal

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

func (*Compare) XXX_DiscardUnknown

func (m *Compare) XXX_DiscardUnknown()

func (*Compare) XXX_Marshal

func (m *Compare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Compare) XXX_Merge

func (m *Compare) XXX_Merge(src proto.Message)

func (*Compare) XXX_OneofFuncs

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.

func (*Compare) XXX_Size

func (m *Compare) XXX_Size() int

func (*Compare) XXX_Unmarshal

func (m *Compare) XXX_Unmarshal(b []byte) error

type Compare_CompareResult

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

func (Compare_CompareResult) EnumDescriptor

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

func (Compare_CompareResult) String

func (x Compare_CompareResult) String() string

type Compare_CompareTarget

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

func (Compare_CompareTarget) EnumDescriptor

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

func (Compare_CompareTarget) String

func (x Compare_CompareTarget) String() string

type Compare_CreateRevision

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

func (*Compare_CreateRevision) MarshalTo

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

func (*Compare_CreateRevision) MarshalToSizedBuffer

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

func (*Compare_CreateRevision) Size

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

type Compare_Lease

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

func (*Compare_Lease) MarshalTo

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

func (*Compare_Lease) MarshalToSizedBuffer

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

func (*Compare_Lease) Size

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

type Compare_ModRevision

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

func (*Compare_ModRevision) MarshalTo

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

func (*Compare_ModRevision) MarshalToSizedBuffer

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

func (*Compare_ModRevision) Size

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

type Compare_Value

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

func (*Compare_Value) MarshalTo

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

func (*Compare_Value) MarshalToSizedBuffer

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

func (*Compare_Value) Size

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

type Compare_Version

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

func (*Compare_Version) MarshalTo

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

func (*Compare_Version) MarshalToSizedBuffer

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

func (*Compare_Version) Size

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

type DefragmentRequest

type DefragmentRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DefragmentRequest) Descriptor

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

func (*DefragmentRequest) Marshal

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

func (*DefragmentRequest) MarshalTo

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

func (*DefragmentRequest) MarshalToSizedBuffer

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

func (*DefragmentRequest) ProtoMessage

func (*DefragmentRequest) ProtoMessage()

func (*DefragmentRequest) Reset

func (m *DefragmentRequest) Reset()

func (*DefragmentRequest) Size

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

func (*DefragmentRequest) String

func (m *DefragmentRequest) String() string

func (*DefragmentRequest) Unmarshal

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

func (*DefragmentRequest) XXX_DiscardUnknown

func (m *DefragmentRequest) XXX_DiscardUnknown()

func (*DefragmentRequest) XXX_Marshal

func (m *DefragmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DefragmentRequest) XXX_Merge

func (m *DefragmentRequest) XXX_Merge(src proto.Message)

func (*DefragmentRequest) XXX_Size

func (m *DefragmentRequest) XXX_Size() int

func (*DefragmentRequest) XXX_Unmarshal

func (m *DefragmentRequest) XXX_Unmarshal(b []byte) error

type DefragmentResponse

type DefragmentResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*DefragmentResponse) Descriptor

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

func (*DefragmentResponse) GetHeader

func (m *DefragmentResponse) GetHeader() *ResponseHeader

func (*DefragmentResponse) Marshal

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

func (*DefragmentResponse) MarshalTo

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

func (*DefragmentResponse) MarshalToSizedBuffer

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

func (*DefragmentResponse) ProtoMessage

func (*DefragmentResponse) ProtoMessage()

func (*DefragmentResponse) Reset

func (m *DefragmentResponse) Reset()

func (*DefragmentResponse) Size

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

func (*DefragmentResponse) String

func (m *DefragmentResponse) String() string

func (*DefragmentResponse) Unmarshal

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

func (*DefragmentResponse) XXX_DiscardUnknown

func (m *DefragmentResponse) XXX_DiscardUnknown()

func (*DefragmentResponse) XXX_Marshal

func (m *DefragmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DefragmentResponse) XXX_Merge

func (m *DefragmentResponse) XXX_Merge(src proto.Message)

func (*DefragmentResponse) XXX_Size

func (m *DefragmentResponse) XXX_Size() int

func (*DefragmentResponse) XXX_Unmarshal

func (m *DefragmentResponse) XXX_Unmarshal(b []byte) error

type DeleteRangeRequest

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

func (*DeleteRangeRequest) Descriptor

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

func (*DeleteRangeRequest) GetKey

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

func (*DeleteRangeRequest) GetPrevKv

func (m *DeleteRangeRequest) GetPrevKv() bool

func (*DeleteRangeRequest) GetRangeEnd

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

func (*DeleteRangeRequest) Marshal

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

func (*DeleteRangeRequest) MarshalTo

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

func (*DeleteRangeRequest) MarshalToSizedBuffer

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

func (*DeleteRangeRequest) ProtoMessage

func (*DeleteRangeRequest) ProtoMessage()

func (*DeleteRangeRequest) Reset

func (m *DeleteRangeRequest) Reset()

func (*DeleteRangeRequest) Size

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

func (*DeleteRangeRequest) String

func (m *DeleteRangeRequest) String() string

func (*DeleteRangeRequest) Unmarshal

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

func (*DeleteRangeRequest) XXX_DiscardUnknown

func (m *DeleteRangeRequest) XXX_DiscardUnknown()

func (*DeleteRangeRequest) XXX_Marshal

func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteRangeRequest) XXX_Merge

func (m *DeleteRangeRequest) XXX_Merge(src proto.Message)

func (*DeleteRangeRequest) XXX_Size

func (m *DeleteRangeRequest) XXX_Size() int

func (*DeleteRangeRequest) XXX_Unmarshal

func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error

type DeleteRangeResponse

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

func (*DeleteRangeResponse) Descriptor

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

func (*DeleteRangeResponse) GetDeleted

func (m *DeleteRangeResponse) GetDeleted() int64

func (*DeleteRangeResponse) GetHeader

func (m *DeleteRangeResponse) GetHeader() *ResponseHeader

func (*DeleteRangeResponse) GetPrevKvs

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

func (*DeleteRangeResponse) Marshal

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

func (*DeleteRangeResponse) MarshalTo

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

func (*DeleteRangeResponse) MarshalToSizedBuffer

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

func (*DeleteRangeResponse) ProtoMessage

func (*DeleteRangeResponse) ProtoMessage()

func (*DeleteRangeResponse) Reset

func (m *DeleteRangeResponse) Reset()

func (*DeleteRangeResponse) Size

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

func (*DeleteRangeResponse) String

func (m *DeleteRangeResponse) String() string

func (*DeleteRangeResponse) Unmarshal

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

func (*DeleteRangeResponse) XXX_DiscardUnknown

func (m *DeleteRangeResponse) XXX_DiscardUnknown()

func (*DeleteRangeResponse) XXX_Marshal

func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteRangeResponse) XXX_Merge

func (m *DeleteRangeResponse) XXX_Merge(src proto.Message)

func (*DeleteRangeResponse) XXX_Size

func (m *DeleteRangeResponse) XXX_Size() int

func (*DeleteRangeResponse) XXX_Unmarshal

func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error

type EmptyResponse

type EmptyResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyResponse) Descriptor

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

func (*EmptyResponse) Marshal

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

func (*EmptyResponse) MarshalTo

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

func (*EmptyResponse) MarshalToSizedBuffer

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

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size

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

func (*EmptyResponse) String

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal

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

func (*EmptyResponse) XXX_DiscardUnknown

func (m *EmptyResponse) XXX_DiscardUnknown()

func (*EmptyResponse) XXX_Marshal

func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyResponse) XXX_Merge

func (m *EmptyResponse) XXX_Merge(src proto.Message)

func (*EmptyResponse) XXX_Size

func (m *EmptyResponse) XXX_Size() int

func (*EmptyResponse) XXX_Unmarshal

func (m *EmptyResponse) XXX_Unmarshal(b []byte) error

type HashKVRequest

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

func (*HashKVRequest) Descriptor

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

func (*HashKVRequest) GetRevision

func (m *HashKVRequest) GetRevision() int64

func (*HashKVRequest) Marshal

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

func (*HashKVRequest) MarshalTo

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

func (*HashKVRequest) MarshalToSizedBuffer

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

func (*HashKVRequest) ProtoMessage

func (*HashKVRequest) ProtoMessage()

func (*HashKVRequest) Reset

func (m *HashKVRequest) Reset()

func (*HashKVRequest) Size

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

func (*HashKVRequest) String

func (m *HashKVRequest) String() string

func (*HashKVRequest) Unmarshal

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

func (*HashKVRequest) XXX_DiscardUnknown

func (m *HashKVRequest) XXX_DiscardUnknown()

func (*HashKVRequest) XXX_Marshal

func (m *HashKVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashKVRequest) XXX_Merge

func (m *HashKVRequest) XXX_Merge(src proto.Message)

func (*HashKVRequest) XXX_Size

func (m *HashKVRequest) XXX_Size() int

func (*HashKVRequest) XXX_Unmarshal

func (m *HashKVRequest) XXX_Unmarshal(b []byte) error

type HashKVResponse

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

func (*HashKVResponse) Descriptor

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

func (*HashKVResponse) GetCompactRevision

func (m *HashKVResponse) GetCompactRevision() int64

func (*HashKVResponse) GetHash

func (m *HashKVResponse) GetHash() uint32

func (*HashKVResponse) GetHeader

func (m *HashKVResponse) GetHeader() *ResponseHeader

func (*HashKVResponse) Marshal

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

func (*HashKVResponse) MarshalTo

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

func (*HashKVResponse) MarshalToSizedBuffer

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

func (*HashKVResponse) ProtoMessage

func (*HashKVResponse) ProtoMessage()

func (*HashKVResponse) Reset

func (m *HashKVResponse) Reset()

func (*HashKVResponse) Size

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

func (*HashKVResponse) String

func (m *HashKVResponse) String() string

func (*HashKVResponse) Unmarshal

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

func (*HashKVResponse) XXX_DiscardUnknown

func (m *HashKVResponse) XXX_DiscardUnknown()

func (*HashKVResponse) XXX_Marshal

func (m *HashKVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashKVResponse) XXX_Merge

func (m *HashKVResponse) XXX_Merge(src proto.Message)

func (*HashKVResponse) XXX_Size

func (m *HashKVResponse) XXX_Size() int

func (*HashKVResponse) XXX_Unmarshal

func (m *HashKVResponse) XXX_Unmarshal(b []byte) error

type HashRequest

type HashRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HashRequest) Descriptor

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

func (*HashRequest) Marshal

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

func (*HashRequest) MarshalTo

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

func (*HashRequest) MarshalToSizedBuffer

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

func (*HashRequest) ProtoMessage

func (*HashRequest) ProtoMessage()

func (*HashRequest) Reset

func (m *HashRequest) Reset()

func (*HashRequest) Size

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

func (*HashRequest) String

func (m *HashRequest) String() string

func (*HashRequest) Unmarshal

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

func (*HashRequest) XXX_DiscardUnknown

func (m *HashRequest) XXX_DiscardUnknown()

func (*HashRequest) XXX_Marshal

func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashRequest) XXX_Merge

func (m *HashRequest) XXX_Merge(src proto.Message)

func (*HashRequest) XXX_Size

func (m *HashRequest) XXX_Size() int

func (*HashRequest) XXX_Unmarshal

func (m *HashRequest) XXX_Unmarshal(b []byte) error

type HashResponse

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

func (*HashResponse) Descriptor

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

func (*HashResponse) GetHash

func (m *HashResponse) GetHash() uint32

func (*HashResponse) GetHeader

func (m *HashResponse) GetHeader() *ResponseHeader

func (*HashResponse) Marshal

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

func (*HashResponse) MarshalTo

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

func (*HashResponse) MarshalToSizedBuffer

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

func (*HashResponse) ProtoMessage

func (*HashResponse) ProtoMessage()

func (*HashResponse) Reset

func (m *HashResponse) Reset()

func (*HashResponse) Size

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

func (*HashResponse) String

func (m *HashResponse) String() string

func (*HashResponse) Unmarshal

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

func (*HashResponse) XXX_DiscardUnknown

func (m *HashResponse) XXX_DiscardUnknown()

func (*HashResponse) XXX_Marshal

func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashResponse) XXX_Merge

func (m *HashResponse) XXX_Merge(src proto.Message)

func (*HashResponse) XXX_Size

func (m *HashResponse) XXX_Size() int

func (*HashResponse) XXX_Unmarshal

func (m *HashResponse) XXX_Unmarshal(b []byte) error

type InternalAuthenticateRequest

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

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

func (*InternalAuthenticateRequest) Descriptor

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

func (*InternalAuthenticateRequest) Marshal

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

func (*InternalAuthenticateRequest) MarshalTo

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

func (*InternalAuthenticateRequest) MarshalToSizedBuffer

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

func (*InternalAuthenticateRequest) ProtoMessage

func (*InternalAuthenticateRequest) ProtoMessage()

func (*InternalAuthenticateRequest) Reset

func (m *InternalAuthenticateRequest) Reset()

func (*InternalAuthenticateRequest) Size

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

func (*InternalAuthenticateRequest) String

func (m *InternalAuthenticateRequest) String() string

func (*InternalAuthenticateRequest) Unmarshal

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

func (*InternalAuthenticateRequest) XXX_DiscardUnknown

func (m *InternalAuthenticateRequest) XXX_DiscardUnknown()

func (*InternalAuthenticateRequest) XXX_Marshal

func (m *InternalAuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InternalAuthenticateRequest) XXX_Merge

func (m *InternalAuthenticateRequest) XXX_Merge(src proto.Message)

func (*InternalAuthenticateRequest) XXX_Size

func (m *InternalAuthenticateRequest) XXX_Size() int

func (*InternalAuthenticateRequest) XXX_Unmarshal

func (m *InternalAuthenticateRequest) XXX_Unmarshal(b []byte) error

type InternalRaftRequest

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

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

func (*InternalRaftRequest) Descriptor

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

func (*InternalRaftRequest) Marshal

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

func (*InternalRaftRequest) MarshalTo

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

func (*InternalRaftRequest) MarshalToSizedBuffer

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

func (*InternalRaftRequest) ProtoMessage

func (*InternalRaftRequest) ProtoMessage()

func (*InternalRaftRequest) Reset

func (m *InternalRaftRequest) Reset()

func (*InternalRaftRequest) Size

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

func (*InternalRaftRequest) String

func (m *InternalRaftRequest) String() string

func (*InternalRaftRequest) Unmarshal

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

func (*InternalRaftRequest) XXX_DiscardUnknown

func (m *InternalRaftRequest) XXX_DiscardUnknown()

func (*InternalRaftRequest) XXX_Marshal

func (m *InternalRaftRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InternalRaftRequest) XXX_Merge

func (m *InternalRaftRequest) XXX_Merge(src proto.Message)

func (*InternalRaftRequest) XXX_Size

func (m *InternalRaftRequest) XXX_Size() int

func (*InternalRaftRequest) XXX_Unmarshal

func (m *InternalRaftRequest) XXX_Unmarshal(b []byte) error

type InternalRaftStringer

type InternalRaftStringer struct {
	Request *InternalRaftRequest
}

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

func (*InternalRaftStringer) String

func (as *InternalRaftStringer) String() string

type KVClient

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

KVClient is the client API for KV service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKVClient

func NewKVClient(cc *grpc.ClientConn) KVClient

type KVServer

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

KVServer is the server API for KV service.

type LeaseClient

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

LeaseClient is the client API for Lease service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLeaseClient

func NewLeaseClient(cc *grpc.ClientConn) LeaseClient

type LeaseGrantRequest

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

func (*LeaseGrantRequest) Descriptor

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

func (*LeaseGrantRequest) GetID

func (m *LeaseGrantRequest) GetID() int64

func (*LeaseGrantRequest) GetTTL

func (m *LeaseGrantRequest) GetTTL() int64

func (*LeaseGrantRequest) Marshal

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

func (*LeaseGrantRequest) MarshalTo

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

func (*LeaseGrantRequest) MarshalToSizedBuffer

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

func (*LeaseGrantRequest) ProtoMessage

func (*LeaseGrantRequest) ProtoMessage()

func (*LeaseGrantRequest) Reset

func (m *LeaseGrantRequest) Reset()

func (*LeaseGrantRequest) Size

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

func (*LeaseGrantRequest) String

func (m *LeaseGrantRequest) String() string

func (*LeaseGrantRequest) Unmarshal

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

func (*LeaseGrantRequest) XXX_DiscardUnknown

func (m *LeaseGrantRequest) XXX_DiscardUnknown()

func (*LeaseGrantRequest) XXX_Marshal

func (m *LeaseGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseGrantRequest) XXX_Merge

func (m *LeaseGrantRequest) XXX_Merge(src proto.Message)

func (*LeaseGrantRequest) XXX_Size

func (m *LeaseGrantRequest) XXX_Size() int

func (*LeaseGrantRequest) XXX_Unmarshal

func (m *LeaseGrantRequest) XXX_Unmarshal(b []byte) error

type LeaseGrantResponse

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

func (*LeaseGrantResponse) Descriptor

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

func (*LeaseGrantResponse) GetError

func (m *LeaseGrantResponse) GetError() string

func (*LeaseGrantResponse) GetHeader

func (m *LeaseGrantResponse) GetHeader() *ResponseHeader

func (*LeaseGrantResponse) GetID

func (m *LeaseGrantResponse) GetID() int64

func (*LeaseGrantResponse) GetTTL

func (m *LeaseGrantResponse) GetTTL() int64

func (*LeaseGrantResponse) Marshal

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

func (*LeaseGrantResponse) MarshalTo

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

func (*LeaseGrantResponse) MarshalToSizedBuffer

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

func (*LeaseGrantResponse) ProtoMessage

func (*LeaseGrantResponse) ProtoMessage()

func (*LeaseGrantResponse) Reset

func (m *LeaseGrantResponse) Reset()

func (*LeaseGrantResponse) Size

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

func (*LeaseGrantResponse) String

func (m *LeaseGrantResponse) String() string

func (*LeaseGrantResponse) Unmarshal

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

func (*LeaseGrantResponse) XXX_DiscardUnknown

func (m *LeaseGrantResponse) XXX_DiscardUnknown()

func (*LeaseGrantResponse) XXX_Marshal

func (m *LeaseGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseGrantResponse) XXX_Merge

func (m *LeaseGrantResponse) XXX_Merge(src proto.Message)

func (*LeaseGrantResponse) XXX_Size

func (m *LeaseGrantResponse) XXX_Size() int

func (*LeaseGrantResponse) XXX_Unmarshal

func (m *LeaseGrantResponse) XXX_Unmarshal(b []byte) error

type LeaseKeepAliveRequest

type LeaseKeepAliveRequest struct {
	// ID is the lease ID for the lease to keep alive.
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LeaseKeepAliveRequest) Descriptor

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

func (*LeaseKeepAliveRequest) GetID

func (m *LeaseKeepAliveRequest) GetID() int64

func (*LeaseKeepAliveRequest) Marshal

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

func (*LeaseKeepAliveRequest) MarshalTo

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

func (*LeaseKeepAliveRequest) MarshalToSizedBuffer

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

func (*LeaseKeepAliveRequest) ProtoMessage

func (*LeaseKeepAliveRequest) ProtoMessage()

func (*LeaseKeepAliveRequest) Reset

func (m *LeaseKeepAliveRequest) Reset()

func (*LeaseKeepAliveRequest) Size

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

func (*LeaseKeepAliveRequest) String

func (m *LeaseKeepAliveRequest) String() string

func (*LeaseKeepAliveRequest) Unmarshal

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

func (*LeaseKeepAliveRequest) XXX_DiscardUnknown

func (m *LeaseKeepAliveRequest) XXX_DiscardUnknown()

func (*LeaseKeepAliveRequest) XXX_Marshal

func (m *LeaseKeepAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseKeepAliveRequest) XXX_Merge

func (m *LeaseKeepAliveRequest) XXX_Merge(src proto.Message)

func (*LeaseKeepAliveRequest) XXX_Size

func (m *LeaseKeepAliveRequest) XXX_Size() int

func (*LeaseKeepAliveRequest) XXX_Unmarshal

func (m *LeaseKeepAliveRequest) XXX_Unmarshal(b []byte) error

type LeaseKeepAliveResponse

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

func (*LeaseKeepAliveResponse) Descriptor

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

func (*LeaseKeepAliveResponse) GetHeader

func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader

func (*LeaseKeepAliveResponse) GetID

func (m *LeaseKeepAliveResponse) GetID() int64

func (*LeaseKeepAliveResponse) GetTTL

func (m *LeaseKeepAliveResponse) GetTTL() int64

func (*LeaseKeepAliveResponse) Marshal

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

func (*LeaseKeepAliveResponse) MarshalTo

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

func (*LeaseKeepAliveResponse) MarshalToSizedBuffer

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

func (*LeaseKeepAliveResponse) ProtoMessage

func (*LeaseKeepAliveResponse) ProtoMessage()

func (*LeaseKeepAliveResponse) Reset

func (m *LeaseKeepAliveResponse) Reset()

func (*LeaseKeepAliveResponse) Size

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

func (*LeaseKeepAliveResponse) String

func (m *LeaseKeepAliveResponse) String() string

func (*LeaseKeepAliveResponse) Unmarshal

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

func (*LeaseKeepAliveResponse) XXX_DiscardUnknown

func (m *LeaseKeepAliveResponse) XXX_DiscardUnknown()

func (*LeaseKeepAliveResponse) XXX_Marshal

func (m *LeaseKeepAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseKeepAliveResponse) XXX_Merge

func (m *LeaseKeepAliveResponse) XXX_Merge(src proto.Message)

func (*LeaseKeepAliveResponse) XXX_Size

func (m *LeaseKeepAliveResponse) XXX_Size() int

func (*LeaseKeepAliveResponse) XXX_Unmarshal

func (m *LeaseKeepAliveResponse) XXX_Unmarshal(b []byte) error

type LeaseLeasesRequest

type LeaseLeasesRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LeaseLeasesRequest) Descriptor

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

func (*LeaseLeasesRequest) Marshal

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

func (*LeaseLeasesRequest) MarshalTo

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

func (*LeaseLeasesRequest) MarshalToSizedBuffer

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

func (*LeaseLeasesRequest) ProtoMessage

func (*LeaseLeasesRequest) ProtoMessage()

func (*LeaseLeasesRequest) Reset

func (m *LeaseLeasesRequest) Reset()

func (*LeaseLeasesRequest) Size

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

func (*LeaseLeasesRequest) String

func (m *LeaseLeasesRequest) String() string

func (*LeaseLeasesRequest) Unmarshal

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

func (*LeaseLeasesRequest) XXX_DiscardUnknown

func (m *LeaseLeasesRequest) XXX_DiscardUnknown()

func (*LeaseLeasesRequest) XXX_Marshal

func (m *LeaseLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseLeasesRequest) XXX_Merge

func (m *LeaseLeasesRequest) XXX_Merge(src proto.Message)

func (*LeaseLeasesRequest) XXX_Size

func (m *LeaseLeasesRequest) XXX_Size() int

func (*LeaseLeasesRequest) XXX_Unmarshal

func (m *LeaseLeasesRequest) XXX_Unmarshal(b []byte) error

type LeaseLeasesResponse

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

func (*LeaseLeasesResponse) Descriptor

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

func (*LeaseLeasesResponse) GetHeader

func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader

func (*LeaseLeasesResponse) GetLeases

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

func (*LeaseLeasesResponse) Marshal

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

func (*LeaseLeasesResponse) MarshalTo

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

func (*LeaseLeasesResponse) MarshalToSizedBuffer

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

func (*LeaseLeasesResponse) ProtoMessage

func (*LeaseLeasesResponse) ProtoMessage()

func (*LeaseLeasesResponse) Reset

func (m *LeaseLeasesResponse) Reset()

func (*LeaseLeasesResponse) Size

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

func (*LeaseLeasesResponse) String

func (m *LeaseLeasesResponse) String() string

func (*LeaseLeasesResponse) Unmarshal

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

func (*LeaseLeasesResponse) XXX_DiscardUnknown

func (m *LeaseLeasesResponse) XXX_DiscardUnknown()

func (*LeaseLeasesResponse) XXX_Marshal

func (m *LeaseLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseLeasesResponse) XXX_Merge

func (m *LeaseLeasesResponse) XXX_Merge(src proto.Message)

func (*LeaseLeasesResponse) XXX_Size

func (m *LeaseLeasesResponse) XXX_Size() int

func (*LeaseLeasesResponse) XXX_Unmarshal

func (m *LeaseLeasesResponse) XXX_Unmarshal(b []byte) error

type LeaseRevokeRequest

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

func (*LeaseRevokeRequest) Descriptor

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

func (*LeaseRevokeRequest) GetID

func (m *LeaseRevokeRequest) GetID() int64

func (*LeaseRevokeRequest) Marshal

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

func (*LeaseRevokeRequest) MarshalTo

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

func (*LeaseRevokeRequest) MarshalToSizedBuffer

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

func (*LeaseRevokeRequest) ProtoMessage

func (*LeaseRevokeRequest) ProtoMessage()

func (*LeaseRevokeRequest) Reset

func (m *LeaseRevokeRequest) Reset()

func (*LeaseRevokeRequest) Size

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

func (*LeaseRevokeRequest) String

func (m *LeaseRevokeRequest) String() string

func (*LeaseRevokeRequest) Unmarshal

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

func (*LeaseRevokeRequest) XXX_DiscardUnknown

func (m *LeaseRevokeRequest) XXX_DiscardUnknown()

func (*LeaseRevokeRequest) XXX_Marshal

func (m *LeaseRevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseRevokeRequest) XXX_Merge

func (m *LeaseRevokeRequest) XXX_Merge(src proto.Message)

func (*LeaseRevokeRequest) XXX_Size

func (m *LeaseRevokeRequest) XXX_Size() int

func (*LeaseRevokeRequest) XXX_Unmarshal

func (m *LeaseRevokeRequest) XXX_Unmarshal(b []byte) error

type LeaseRevokeResponse

type LeaseRevokeResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*LeaseRevokeResponse) Descriptor

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

func (*LeaseRevokeResponse) GetHeader

func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader

func (*LeaseRevokeResponse) Marshal

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

func (*LeaseRevokeResponse) MarshalTo

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

func (*LeaseRevokeResponse) MarshalToSizedBuffer

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

func (*LeaseRevokeResponse) ProtoMessage

func (*LeaseRevokeResponse) ProtoMessage()

func (*LeaseRevokeResponse) Reset

func (m *LeaseRevokeResponse) Reset()

func (*LeaseRevokeResponse) Size

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

func (*LeaseRevokeResponse) String

func (m *LeaseRevokeResponse) String() string

func (*LeaseRevokeResponse) Unmarshal

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

func (*LeaseRevokeResponse) XXX_DiscardUnknown

func (m *LeaseRevokeResponse) XXX_DiscardUnknown()

func (*LeaseRevokeResponse) XXX_Marshal

func (m *LeaseRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseRevokeResponse) XXX_Merge

func (m *LeaseRevokeResponse) XXX_Merge(src proto.Message)

func (*LeaseRevokeResponse) XXX_Size

func (m *LeaseRevokeResponse) XXX_Size() int

func (*LeaseRevokeResponse) XXX_Unmarshal

func (m *LeaseRevokeResponse) XXX_Unmarshal(b []byte) error

type LeaseServer

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

LeaseServer is the server API for Lease service.

type LeaseStatus

type LeaseStatus struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LeaseStatus) Descriptor

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

func (*LeaseStatus) GetID

func (m *LeaseStatus) GetID() int64

func (*LeaseStatus) Marshal

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

func (*LeaseStatus) MarshalTo

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

func (*LeaseStatus) MarshalToSizedBuffer

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

func (*LeaseStatus) ProtoMessage

func (*LeaseStatus) ProtoMessage()

func (*LeaseStatus) Reset

func (m *LeaseStatus) Reset()

func (*LeaseStatus) Size

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

func (*LeaseStatus) String

func (m *LeaseStatus) String() string

func (*LeaseStatus) Unmarshal

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

func (*LeaseStatus) XXX_DiscardUnknown

func (m *LeaseStatus) XXX_DiscardUnknown()

func (*LeaseStatus) XXX_Marshal

func (m *LeaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseStatus) XXX_Merge

func (m *LeaseStatus) XXX_Merge(src proto.Message)

func (*LeaseStatus) XXX_Size

func (m *LeaseStatus) XXX_Size() int

func (*LeaseStatus) XXX_Unmarshal

func (m *LeaseStatus) XXX_Unmarshal(b []byte) error

type LeaseTimeToLiveRequest

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

func (*LeaseTimeToLiveRequest) Descriptor

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

func (*LeaseTimeToLiveRequest) GetID

func (m *LeaseTimeToLiveRequest) GetID() int64

func (*LeaseTimeToLiveRequest) GetKeys

func (m *LeaseTimeToLiveRequest) GetKeys() bool

func (*LeaseTimeToLiveRequest) Marshal

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

func (*LeaseTimeToLiveRequest) MarshalTo

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

func (*LeaseTimeToLiveRequest) MarshalToSizedBuffer

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

func (*LeaseTimeToLiveRequest) ProtoMessage

func (*LeaseTimeToLiveRequest) ProtoMessage()

func (*LeaseTimeToLiveRequest) Reset

func (m *LeaseTimeToLiveRequest) Reset()

func (*LeaseTimeToLiveRequest) Size

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

func (*LeaseTimeToLiveRequest) String

func (m *LeaseTimeToLiveRequest) String() string

func (*LeaseTimeToLiveRequest) Unmarshal

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

func (*LeaseTimeToLiveRequest) XXX_DiscardUnknown

func (m *LeaseTimeToLiveRequest) XXX_DiscardUnknown()

func (*LeaseTimeToLiveRequest) XXX_Marshal

func (m *LeaseTimeToLiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseTimeToLiveRequest) XXX_Merge

func (m *LeaseTimeToLiveRequest) XXX_Merge(src proto.Message)

func (*LeaseTimeToLiveRequest) XXX_Size

func (m *LeaseTimeToLiveRequest) XXX_Size() int

func (*LeaseTimeToLiveRequest) XXX_Unmarshal

func (m *LeaseTimeToLiveRequest) XXX_Unmarshal(b []byte) error

type LeaseTimeToLiveResponse

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

func (*LeaseTimeToLiveResponse) Descriptor

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

func (*LeaseTimeToLiveResponse) GetGrantedTTL

func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64

func (*LeaseTimeToLiveResponse) GetHeader

func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader

func (*LeaseTimeToLiveResponse) GetID

func (m *LeaseTimeToLiveResponse) GetID() int64

func (*LeaseTimeToLiveResponse) GetKeys

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

func (*LeaseTimeToLiveResponse) GetTTL

func (m *LeaseTimeToLiveResponse) GetTTL() int64

func (*LeaseTimeToLiveResponse) Marshal

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

func (*LeaseTimeToLiveResponse) MarshalTo

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

func (*LeaseTimeToLiveResponse) MarshalToSizedBuffer

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

func (*LeaseTimeToLiveResponse) ProtoMessage

func (*LeaseTimeToLiveResponse) ProtoMessage()

func (*LeaseTimeToLiveResponse) Reset

func (m *LeaseTimeToLiveResponse) Reset()

func (*LeaseTimeToLiveResponse) Size

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

func (*LeaseTimeToLiveResponse) String

func (m *LeaseTimeToLiveResponse) String() string

func (*LeaseTimeToLiveResponse) Unmarshal

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

func (*LeaseTimeToLiveResponse) XXX_DiscardUnknown

func (m *LeaseTimeToLiveResponse) XXX_DiscardUnknown()

func (*LeaseTimeToLiveResponse) XXX_Marshal

func (m *LeaseTimeToLiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseTimeToLiveResponse) XXX_Merge

func (m *LeaseTimeToLiveResponse) XXX_Merge(src proto.Message)

func (*LeaseTimeToLiveResponse) XXX_Size

func (m *LeaseTimeToLiveResponse) XXX_Size() int

func (*LeaseTimeToLiveResponse) XXX_Unmarshal

func (m *LeaseTimeToLiveResponse) XXX_Unmarshal(b []byte) error

type Lease_LeaseKeepAliveClient

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

type Lease_LeaseKeepAliveServer

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

type MaintenanceClient

type MaintenanceClient interface {
	// Alarm activates, deactivates, and queries alarms regarding cluster health.
	Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error)
	// Status gets the status of the member.
	Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	// Defragment defragments a member's backend database to recover storage space.
	Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error)
	// Hash computes the hash of the KV's backend.
	// This is designed for testing; do not use this in production when there
	// are ongoing transactions.
	Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
	// HashKV computes the hash of all MVCC keys up to a given revision.
	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)
}

MaintenanceClient is the client API for Maintenance service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMaintenanceClient

func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient

type MaintenanceServer

type MaintenanceServer interface {
	// Alarm activates, deactivates, and queries alarms regarding cluster health.
	Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
	// Status gets the status of the member.
	Status(context.Context, *StatusRequest) (*StatusResponse, error)
	// Defragment defragments a member's backend database to recover storage space.
	Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
	// Hash computes the hash of the KV's backend.
	// This is designed for testing; do not use this in production when there
	// are ongoing transactions.
	Hash(context.Context, *HashRequest) (*HashResponse, error)
	// HashKV computes the hash of all MVCC keys up to a given revision.
	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)
}

MaintenanceServer is the server API for Maintenance service.

type Maintenance_SnapshotClient

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

type Maintenance_SnapshotServer

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

type Member

type Member struct {
	// ID is the member ID for this member.
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// name is the human-readable name of the member. If the member is not started, the name will be an empty string.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// peerURLs is the list of URLs the member exposes to the cluster for communication.
	PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
	// clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
	ClientURLs           []string `protobuf:"bytes,4,rep,name=clientURLs,proto3" json:"clientURLs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Member) Descriptor

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

func (*Member) GetClientURLs

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

func (*Member) GetID

func (m *Member) GetID() uint64

func (*Member) GetName

func (m *Member) GetName() string

func (*Member) GetPeerURLs

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

func (*Member) Marshal

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

func (*Member) MarshalTo

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

func (*Member) MarshalToSizedBuffer

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

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (m *Member) Reset()

func (*Member) Size

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

func (*Member) String

func (m *Member) String() string

func (*Member) Unmarshal

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

func (*Member) XXX_DiscardUnknown

func (m *Member) XXX_DiscardUnknown()

func (*Member) XXX_Marshal

func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Member) XXX_Merge

func (m *Member) XXX_Merge(src proto.Message)

func (*Member) XXX_Size

func (m *Member) XXX_Size() int

func (*Member) XXX_Unmarshal

func (m *Member) XXX_Unmarshal(b []byte) error

type MemberAddRequest

type MemberAddRequest struct {
	// peerURLs is the list of URLs the added member will use to communicate with the cluster.
	PeerURLs             []string `protobuf:"bytes,1,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MemberAddRequest) Descriptor

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

func (*MemberAddRequest) GetPeerURLs

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

func (*MemberAddRequest) Marshal

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

func (*MemberAddRequest) MarshalTo

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

func (*MemberAddRequest) MarshalToSizedBuffer

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

func (*MemberAddRequest) ProtoMessage

func (*MemberAddRequest) ProtoMessage()

func (*MemberAddRequest) Reset

func (m *MemberAddRequest) Reset()

func (*MemberAddRequest) Size

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

func (*MemberAddRequest) String

func (m *MemberAddRequest) String() string

func (*MemberAddRequest) Unmarshal

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

func (*MemberAddRequest) XXX_DiscardUnknown

func (m *MemberAddRequest) XXX_DiscardUnknown()

func (*MemberAddRequest) XXX_Marshal

func (m *MemberAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberAddRequest) XXX_Merge

func (m *MemberAddRequest) XXX_Merge(src proto.Message)

func (*MemberAddRequest) XXX_Size

func (m *MemberAddRequest) XXX_Size() int

func (*MemberAddRequest) XXX_Unmarshal

func (m *MemberAddRequest) XXX_Unmarshal(b []byte) error

type MemberAddResponse

type MemberAddResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// member is the member information for the added member.
	Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
	// members is a list of all members after adding the new member.
	Members              []*Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*MemberAddResponse) Descriptor

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

func (*MemberAddResponse) GetHeader

func (m *MemberAddResponse) GetHeader() *ResponseHeader

func (*MemberAddResponse) GetMember

func (m *MemberAddResponse) GetMember() *Member

func (*MemberAddResponse) GetMembers

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

func (*MemberAddResponse) Marshal

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

func (*MemberAddResponse) MarshalTo

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

func (*MemberAddResponse) MarshalToSizedBuffer

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

func (*MemberAddResponse) ProtoMessage

func (*MemberAddResponse) ProtoMessage()

func (*MemberAddResponse) Reset

func (m *MemberAddResponse) Reset()

func (*MemberAddResponse) Size

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

func (*MemberAddResponse) String

func (m *MemberAddResponse) String() string

func (*MemberAddResponse) Unmarshal

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

func (*MemberAddResponse) XXX_DiscardUnknown

func (m *MemberAddResponse) XXX_DiscardUnknown()

func (*MemberAddResponse) XXX_Marshal

func (m *MemberAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberAddResponse) XXX_Merge

func (m *MemberAddResponse) XXX_Merge(src proto.Message)

func (*MemberAddResponse) XXX_Size

func (m *MemberAddResponse) XXX_Size() int

func (*MemberAddResponse) XXX_Unmarshal

func (m *MemberAddResponse) XXX_Unmarshal(b []byte) error

type MemberListRequest

type MemberListRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MemberListRequest) Descriptor

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

func (*MemberListRequest) Marshal

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

func (*MemberListRequest) MarshalTo

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

func (*MemberListRequest) MarshalToSizedBuffer

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

func (*MemberListRequest) ProtoMessage

func (*MemberListRequest) ProtoMessage()

func (*MemberListRequest) Reset

func (m *MemberListRequest) Reset()

func (*MemberListRequest) Size

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

func (*MemberListRequest) String

func (m *MemberListRequest) String() string

func (*MemberListRequest) Unmarshal

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

func (*MemberListRequest) XXX_DiscardUnknown

func (m *MemberListRequest) XXX_DiscardUnknown()

func (*MemberListRequest) XXX_Marshal

func (m *MemberListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberListRequest) XXX_Merge

func (m *MemberListRequest) XXX_Merge(src proto.Message)

func (*MemberListRequest) XXX_Size

func (m *MemberListRequest) XXX_Size() int

func (*MemberListRequest) XXX_Unmarshal

func (m *MemberListRequest) XXX_Unmarshal(b []byte) error

type MemberListResponse

type MemberListResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// members is a list of all members associated with the cluster.
	Members              []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*MemberListResponse) Descriptor

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

func (*MemberListResponse) GetHeader

func (m *MemberListResponse) GetHeader() *ResponseHeader

func (*MemberListResponse) GetMembers

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

func (*MemberListResponse) Marshal

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

func (*MemberListResponse) MarshalTo

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

func (*MemberListResponse) MarshalToSizedBuffer

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

func (*MemberListResponse) ProtoMessage

func (*MemberListResponse) ProtoMessage()

func (*MemberListResponse) Reset

func (m *MemberListResponse) Reset()

func (*MemberListResponse) Size

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

func (*MemberListResponse) String

func (m *MemberListResponse) String() string

func (*MemberListResponse) Unmarshal

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

func (*MemberListResponse) XXX_DiscardUnknown

func (m *MemberListResponse) XXX_DiscardUnknown()

func (*MemberListResponse) XXX_Marshal

func (m *MemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberListResponse) XXX_Merge

func (m *MemberListResponse) XXX_Merge(src proto.Message)

func (*MemberListResponse) XXX_Size

func (m *MemberListResponse) XXX_Size() int

func (*MemberListResponse) XXX_Unmarshal

func (m *MemberListResponse) XXX_Unmarshal(b []byte) error

type MemberRemoveRequest

type MemberRemoveRequest struct {
	// ID is the member ID of the member to remove.
	ID                   uint64   `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MemberRemoveRequest) Descriptor

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

func (*MemberRemoveRequest) GetID

func (m *MemberRemoveRequest) GetID() uint64

func (*MemberRemoveRequest) Marshal

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

func (*MemberRemoveRequest) MarshalTo

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

func (*MemberRemoveRequest) MarshalToSizedBuffer

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

func (*MemberRemoveRequest) ProtoMessage

func (*MemberRemoveRequest) ProtoMessage()

func (*MemberRemoveRequest) Reset

func (m *MemberRemoveRequest) Reset()

func (*MemberRemoveRequest) Size

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

func (*MemberRemoveRequest) String

func (m *MemberRemoveRequest) String() string

func (*MemberRemoveRequest) Unmarshal

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

func (*MemberRemoveRequest) XXX_DiscardUnknown

func (m *MemberRemoveRequest) XXX_DiscardUnknown()

func (*MemberRemoveRequest) XXX_Marshal

func (m *MemberRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberRemoveRequest) XXX_Merge

func (m *MemberRemoveRequest) XXX_Merge(src proto.Message)

func (*MemberRemoveRequest) XXX_Size

func (m *MemberRemoveRequest) XXX_Size() int

func (*MemberRemoveRequest) XXX_Unmarshal

func (m *MemberRemoveRequest) XXX_Unmarshal(b []byte) error

type MemberRemoveResponse

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

func (*MemberRemoveResponse) Descriptor

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

func (*MemberRemoveResponse) GetHeader

func (m *MemberRemoveResponse) GetHeader() *ResponseHeader

func (*MemberRemoveResponse) GetMembers

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

func (*MemberRemoveResponse) Marshal

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

func (*MemberRemoveResponse) MarshalTo

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

func (*MemberRemoveResponse) MarshalToSizedBuffer

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

func (*MemberRemoveResponse) ProtoMessage

func (*MemberRemoveResponse) ProtoMessage()

func (*MemberRemoveResponse) Reset

func (m *MemberRemoveResponse) Reset()

func (*MemberRemoveResponse) Size

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

func (*MemberRemoveResponse) String

func (m *MemberRemoveResponse) String() string

func (*MemberRemoveResponse) Unmarshal

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

func (*MemberRemoveResponse) XXX_DiscardUnknown

func (m *MemberRemoveResponse) XXX_DiscardUnknown()

func (*MemberRemoveResponse) XXX_Marshal

func (m *MemberRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberRemoveResponse) XXX_Merge

func (m *MemberRemoveResponse) XXX_Merge(src proto.Message)

func (*MemberRemoveResponse) XXX_Size

func (m *MemberRemoveResponse) XXX_Size() int

func (*MemberRemoveResponse) XXX_Unmarshal

func (m *MemberRemoveResponse) XXX_Unmarshal(b []byte) error

type MemberUpdateRequest

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

func (*MemberUpdateRequest) Descriptor

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

func (*MemberUpdateRequest) GetID

func (m *MemberUpdateRequest) GetID() uint64

func (*MemberUpdateRequest) GetPeerURLs

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

func (*MemberUpdateRequest) Marshal

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

func (*MemberUpdateRequest) MarshalTo

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

func (*MemberUpdateRequest) MarshalToSizedBuffer

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

func (*MemberUpdateRequest) ProtoMessage

func (*MemberUpdateRequest) ProtoMessage()

func (*MemberUpdateRequest) Reset

func (m *MemberUpdateRequest) Reset()

func (*MemberUpdateRequest) Size

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

func (*MemberUpdateRequest) String

func (m *MemberUpdateRequest) String() string

func (*MemberUpdateRequest) Unmarshal

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

func (*MemberUpdateRequest) XXX_DiscardUnknown

func (m *MemberUpdateRequest) XXX_DiscardUnknown()

func (*MemberUpdateRequest) XXX_Marshal

func (m *MemberUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberUpdateRequest) XXX_Merge

func (m *MemberUpdateRequest) XXX_Merge(src proto.Message)

func (*MemberUpdateRequest) XXX_Size

func (m *MemberUpdateRequest) XXX_Size() int

func (*MemberUpdateRequest) XXX_Unmarshal

func (m *MemberUpdateRequest) XXX_Unmarshal(b []byte) error

type MemberUpdateResponse

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

func (*MemberUpdateResponse) Descriptor

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

func (*MemberUpdateResponse) GetHeader

func (m *MemberUpdateResponse) GetHeader() *ResponseHeader

func (*MemberUpdateResponse) GetMembers

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

func (*MemberUpdateResponse) Marshal

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

func (*MemberUpdateResponse) MarshalTo

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

func (*MemberUpdateResponse) MarshalToSizedBuffer

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

func (*MemberUpdateResponse) ProtoMessage

func (*MemberUpdateResponse) ProtoMessage()

func (*MemberUpdateResponse) Reset

func (m *MemberUpdateResponse) Reset()

func (*MemberUpdateResponse) Size

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

func (*MemberUpdateResponse) String

func (m *MemberUpdateResponse) String() string

func (*MemberUpdateResponse) Unmarshal

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

func (*MemberUpdateResponse) XXX_DiscardUnknown

func (m *MemberUpdateResponse) XXX_DiscardUnknown()

func (*MemberUpdateResponse) XXX_Marshal

func (m *MemberUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberUpdateResponse) XXX_Merge

func (m *MemberUpdateResponse) XXX_Merge(src proto.Message)

func (*MemberUpdateResponse) XXX_Size

func (m *MemberUpdateResponse) XXX_Size() int

func (*MemberUpdateResponse) XXX_Unmarshal

func (m *MemberUpdateResponse) XXX_Unmarshal(b []byte) error

type Metadata

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

func (*Metadata) Descriptor

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

func (*Metadata) Marshal

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

func (*Metadata) MarshalTo

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

func (*Metadata) MarshalToSizedBuffer

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

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

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

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Unmarshal

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

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge

func (m *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

func (m *Metadata) XXX_Unmarshal(b []byte) error

type MoveLeaderRequest

type MoveLeaderRequest struct {
	// targetID is the node ID for the new leader.
	TargetID             uint64   `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MoveLeaderRequest) Descriptor

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

func (*MoveLeaderRequest) GetTargetID

func (m *MoveLeaderRequest) GetTargetID() uint64

func (*MoveLeaderRequest) Marshal

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

func (*MoveLeaderRequest) MarshalTo

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

func (*MoveLeaderRequest) MarshalToSizedBuffer

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

func (*MoveLeaderRequest) ProtoMessage

func (*MoveLeaderRequest) ProtoMessage()

func (*MoveLeaderRequest) Reset

func (m *MoveLeaderRequest) Reset()

func (*MoveLeaderRequest) Size

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

func (*MoveLeaderRequest) String

func (m *MoveLeaderRequest) String() string

func (*MoveLeaderRequest) Unmarshal

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

func (*MoveLeaderRequest) XXX_DiscardUnknown

func (m *MoveLeaderRequest) XXX_DiscardUnknown()

func (*MoveLeaderRequest) XXX_Marshal

func (m *MoveLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MoveLeaderRequest) XXX_Merge

func (m *MoveLeaderRequest) XXX_Merge(src proto.Message)

func (*MoveLeaderRequest) XXX_Size

func (m *MoveLeaderRequest) XXX_Size() int

func (*MoveLeaderRequest) XXX_Unmarshal

func (m *MoveLeaderRequest) XXX_Unmarshal(b []byte) error

type MoveLeaderResponse

type MoveLeaderResponse struct {
	Header               *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*MoveLeaderResponse) Descriptor

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

func (*MoveLeaderResponse) GetHeader

func (m *MoveLeaderResponse) GetHeader() *ResponseHeader

func (*MoveLeaderResponse) Marshal

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

func (*MoveLeaderResponse) MarshalTo

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

func (*MoveLeaderResponse) MarshalToSizedBuffer

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

func (*MoveLeaderResponse) ProtoMessage

func (*MoveLeaderResponse) ProtoMessage()

func (*MoveLeaderResponse) Reset

func (m *MoveLeaderResponse) Reset()

func (*MoveLeaderResponse) Size

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

func (*MoveLeaderResponse) String

func (m *MoveLeaderResponse) String() string

func (*MoveLeaderResponse) Unmarshal

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

func (*MoveLeaderResponse) XXX_DiscardUnknown

func (m *MoveLeaderResponse) XXX_DiscardUnknown()

func (*MoveLeaderResponse) XXX_Marshal

func (m *MoveLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MoveLeaderResponse) XXX_Merge

func (m *MoveLeaderResponse) XXX_Merge(src proto.Message)

func (*MoveLeaderResponse) XXX_Size

func (m *MoveLeaderResponse) XXX_Size() int

func (*MoveLeaderResponse) XXX_Unmarshal

func (m *MoveLeaderResponse) XXX_Unmarshal(b []byte) error

type PutRequest

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

func (*PutRequest) Descriptor

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

func (*PutRequest) GetIgnoreLease

func (m *PutRequest) GetIgnoreLease() bool

func (*PutRequest) GetIgnoreValue

func (m *PutRequest) GetIgnoreValue() bool

func (*PutRequest) GetKey

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

func (*PutRequest) GetLease

func (m *PutRequest) GetLease() int64

func (*PutRequest) GetPrevKv

func (m *PutRequest) GetPrevKv() bool

func (*PutRequest) GetValue

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

func (*PutRequest) Marshal

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

func (*PutRequest) MarshalTo

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

func (*PutRequest) MarshalToSizedBuffer

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

func (*PutRequest) ProtoMessage

func (*PutRequest) ProtoMessage()

func (*PutRequest) Reset

func (m *PutRequest) Reset()

func (*PutRequest) Size

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

func (*PutRequest) String

func (m *PutRequest) String() string

func (*PutRequest) Unmarshal

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

func (*PutRequest) XXX_DiscardUnknown

func (m *PutRequest) XXX_DiscardUnknown()

func (*PutRequest) XXX_Marshal

func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutRequest) XXX_Merge

func (m *PutRequest) XXX_Merge(src proto.Message)

func (*PutRequest) XXX_Size

func (m *PutRequest) XXX_Size() int

func (*PutRequest) XXX_Unmarshal

func (m *PutRequest) XXX_Unmarshal(b []byte) error

type PutResponse

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

func (*PutResponse) Descriptor

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

func (*PutResponse) GetHeader

func (m *PutResponse) GetHeader() *ResponseHeader

func (*PutResponse) GetPrevKv

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

func (*PutResponse) Marshal

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

func (*PutResponse) MarshalTo

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

func (*PutResponse) MarshalToSizedBuffer

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

func (*PutResponse) ProtoMessage

func (*PutResponse) ProtoMessage()

func (*PutResponse) Reset

func (m *PutResponse) Reset()

func (*PutResponse) Size

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

func (*PutResponse) String

func (m *PutResponse) String() string

func (*PutResponse) Unmarshal

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

func (*PutResponse) XXX_DiscardUnknown

func (m *PutResponse) XXX_DiscardUnknown()

func (*PutResponse) XXX_Marshal

func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutResponse) XXX_Merge

func (m *PutResponse) XXX_Merge(src proto.Message)

func (*PutResponse) XXX_Size

func (m *PutResponse) XXX_Size() int

func (*PutResponse) XXX_Unmarshal

func (m *PutResponse) XXX_Unmarshal(b []byte) error

type RangeRequest

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

func (*RangeRequest) Descriptor

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

func (*RangeRequest) GetCountOnly

func (m *RangeRequest) GetCountOnly() bool

func (*RangeRequest) GetKey

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

func (*RangeRequest) GetKeysOnly

func (m *RangeRequest) GetKeysOnly() bool

func (*RangeRequest) GetLimit

func (m *RangeRequest) GetLimit() int64

func (*RangeRequest) GetMaxCreateRevision

func (m *RangeRequest) GetMaxCreateRevision() int64

func (*RangeRequest) GetMaxModRevision

func (m *RangeRequest) GetMaxModRevision() int64

func (*RangeRequest) GetMinCreateRevision

func (m *RangeRequest) GetMinCreateRevision() int64

func (*RangeRequest) GetMinModRevision

func (m *RangeRequest) GetMinModRevision() int64

func (*RangeRequest) GetRangeEnd

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

func (*RangeRequest) GetRevision

func (m *RangeRequest) GetRevision() int64

func (*RangeRequest) GetSerializable

func (m *RangeRequest) GetSerializable() bool

func (*RangeRequest) GetSortOrder

func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder

func (*RangeRequest) GetSortTarget

func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget

func (*RangeRequest) Marshal

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

func (*RangeRequest) MarshalTo

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

func (*RangeRequest) MarshalToSizedBuffer

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

func (*RangeRequest) ProtoMessage

func (*RangeRequest) ProtoMessage()

func (*RangeRequest) Reset

func (m *RangeRequest) Reset()

func (*RangeRequest) Size

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

func (*RangeRequest) String

func (m *RangeRequest) String() string

func (*RangeRequest) Unmarshal

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

func (*RangeRequest) XXX_DiscardUnknown

func (m *RangeRequest) XXX_DiscardUnknown()

func (*RangeRequest) XXX_Marshal

func (m *RangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RangeRequest) XXX_Merge

func (m *RangeRequest) XXX_Merge(src proto.Message)

func (*RangeRequest) XXX_Size

func (m *RangeRequest) XXX_Size() int

func (*RangeRequest) XXX_Unmarshal

func (m *RangeRequest) XXX_Unmarshal(b []byte) error

type RangeRequest_SortOrder

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

func (RangeRequest_SortOrder) EnumDescriptor

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

func (RangeRequest_SortOrder) String

func (x RangeRequest_SortOrder) String() string

type RangeRequest_SortTarget

type RangeRequest_SortTarget int32
const (
	RangeRequest_KEY     RangeRequest_SortTarget = 0
	RangeRequest_VERSION RangeRequest_SortTarget = 1
	RangeRequest_CREATE  RangeRequest_SortTarget = 2
	RangeRequest_MOD     RangeRequest_SortTarget = 3
	RangeRequest_VALUE   RangeRequest_SortTarget = 4
)

func (RangeRequest_SortTarget) EnumDescriptor

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

func (RangeRequest_SortTarget) String

func (x RangeRequest_SortTarget) String() string

type RangeResponse

type RangeResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// kvs is the list of key-value pairs matched by the range request.
	// kvs is empty when count is requested.
	Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"`
	// more indicates if there are more keys to return in the requested range.
	More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
	// count is set to the number of keys within the range when requested.
	Count                int64    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RangeResponse) Descriptor

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

func (*RangeResponse) GetCount

func (m *RangeResponse) GetCount() int64

func (*RangeResponse) GetHeader

func (m *RangeResponse) GetHeader() *ResponseHeader

func (*RangeResponse) GetKvs

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

func (*RangeResponse) GetMore

func (m *RangeResponse) GetMore() bool

func (*RangeResponse) Marshal

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

func (*RangeResponse) MarshalTo

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

func (*RangeResponse) MarshalToSizedBuffer

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

func (*RangeResponse) ProtoMessage

func (*RangeResponse) ProtoMessage()

func (*RangeResponse) Reset

func (m *RangeResponse) Reset()

func (*RangeResponse) Size

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

func (*RangeResponse) String

func (m *RangeResponse) String() string

func (*RangeResponse) Unmarshal

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

func (*RangeResponse) XXX_DiscardUnknown

func (m *RangeResponse) XXX_DiscardUnknown()

func (*RangeResponse) XXX_Marshal

func (m *RangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RangeResponse) XXX_Merge

func (m *RangeResponse) XXX_Merge(src proto.Message)

func (*RangeResponse) XXX_Size

func (m *RangeResponse) XXX_Size() int

func (*RangeResponse) XXX_Unmarshal

func (m *RangeResponse) XXX_Unmarshal(b []byte) error

type Request

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_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) Marshal

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

func (*Request) MarshalTo

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

func (*Request) MarshalToSizedBuffer

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

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

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

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

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type RequestHeader

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

func (*RequestHeader) Descriptor

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

func (*RequestHeader) Marshal

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

func (*RequestHeader) MarshalTo

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

func (*RequestHeader) MarshalToSizedBuffer

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

func (*RequestHeader) ProtoMessage

func (*RequestHeader) ProtoMessage()

func (*RequestHeader) Reset

func (m *RequestHeader) Reset()

func (*RequestHeader) Size

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

func (*RequestHeader) String

func (m *RequestHeader) String() string

func (*RequestHeader) Unmarshal

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

func (*RequestHeader) XXX_DiscardUnknown

func (m *RequestHeader) XXX_DiscardUnknown()

func (*RequestHeader) XXX_Marshal

func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestHeader) XXX_Merge

func (m *RequestHeader) XXX_Merge(src proto.Message)

func (*RequestHeader) XXX_Size

func (m *RequestHeader) XXX_Size() int

func (*RequestHeader) XXX_Unmarshal

func (m *RequestHeader) XXX_Unmarshal(b []byte) error

type RequestOp

type RequestOp struct {
	// request is a union of request types accepted by a transaction.
	//
	// Types that are valid to be assigned to Request:
	//	*RequestOp_RequestRange
	//	*RequestOp_RequestPut
	//	*RequestOp_RequestDeleteRange
	//	*RequestOp_RequestTxn
	Request              isRequestOp_Request `protobuf_oneof:"request"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*RequestOp) Descriptor

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

func (*RequestOp) GetRequest

func (m *RequestOp) GetRequest() isRequestOp_Request

func (*RequestOp) GetRequestDeleteRange

func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest

func (*RequestOp) GetRequestPut

func (m *RequestOp) GetRequestPut() *PutRequest

func (*RequestOp) GetRequestRange

func (m *RequestOp) GetRequestRange() *RangeRequest

func (*RequestOp) GetRequestTxn

func (m *RequestOp) GetRequestTxn() *TxnRequest

func (*RequestOp) Marshal

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

func (*RequestOp) MarshalTo

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

func (*RequestOp) MarshalToSizedBuffer

func (m *RequestOp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestOp) ProtoMessage

func (*RequestOp) ProtoMessage()

func (*RequestOp) Reset

func (m *RequestOp) Reset()

func (*RequestOp) Size

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

func (*RequestOp) String

func (m *RequestOp) String() string

func (*RequestOp) Unmarshal

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

func (*RequestOp) XXX_DiscardUnknown

func (m *RequestOp) XXX_DiscardUnknown()

func (*RequestOp) XXX_Marshal

func (m *RequestOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestOp) XXX_Merge

func (m *RequestOp) XXX_Merge(src proto.Message)

func (*RequestOp) XXX_OneofFuncs

func (*RequestOp) 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.

func (*RequestOp) XXX_Size

func (m *RequestOp) XXX_Size() int

func (*RequestOp) XXX_Unmarshal

func (m *RequestOp) XXX_Unmarshal(b []byte) error

type RequestOp_RequestDeleteRange

type RequestOp_RequestDeleteRange struct {
	RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,proto3,oneof"`
}

func (*RequestOp_RequestDeleteRange) MarshalTo

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

func (*RequestOp_RequestDeleteRange) MarshalToSizedBuffer

func (m *RequestOp_RequestDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestOp_RequestDeleteRange) Size

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

type RequestOp_RequestPut

type RequestOp_RequestPut struct {
	RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,proto3,oneof"`
}

func (*RequestOp_RequestPut) MarshalTo

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

func (*RequestOp_RequestPut) MarshalToSizedBuffer

func (m *RequestOp_RequestPut) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestOp_RequestPut) Size

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

type RequestOp_RequestRange

type RequestOp_RequestRange struct {
	RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,proto3,oneof"`
}

func (*RequestOp_RequestRange) MarshalTo

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

func (*RequestOp_RequestRange) MarshalToSizedBuffer

func (m *RequestOp_RequestRange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestOp_RequestRange) Size

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

type RequestOp_RequestTxn

type RequestOp_RequestTxn struct {
	RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,proto3,oneof"`
}

func (*RequestOp_RequestTxn) MarshalTo

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

func (*RequestOp_RequestTxn) MarshalToSizedBuffer

func (m *RequestOp_RequestTxn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestOp_RequestTxn) Size

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

type ResponseHeader

type ResponseHeader struct {
	// cluster_id is the ID of the cluster which sent the response.
	ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// member_id is the ID of the member which sent the response.
	MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// revision is the key-value store revision when the request was applied.
	// For watch progress responses, the header.revision indicates progress. All future events
	// recieved in this stream are guaranteed to have a higher revision number than the
	// header.revision number.
	Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// raft_term is the raft term when the request was applied.
	RaftTerm             uint64   `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResponseHeader) Descriptor

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

func (*ResponseHeader) GetClusterId

func (m *ResponseHeader) GetClusterId() uint64

func (*ResponseHeader) GetMemberId

func (m *ResponseHeader) GetMemberId() uint64

func (*ResponseHeader) GetRaftTerm

func (m *ResponseHeader) GetRaftTerm() uint64

func (*ResponseHeader) GetRevision

func (m *ResponseHeader) GetRevision() int64

func (*ResponseHeader) Marshal

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

func (*ResponseHeader) MarshalTo

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

func (*ResponseHeader) MarshalToSizedBuffer

func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseHeader) ProtoMessage

func (*ResponseHeader) ProtoMessage()

func (*ResponseHeader) Reset

func (m *ResponseHeader) Reset()

func (*ResponseHeader) Size

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

func (*ResponseHeader) String

func (m *ResponseHeader) String() string

func (*ResponseHeader) Unmarshal

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

func (*ResponseHeader) XXX_DiscardUnknown

func (m *ResponseHeader) XXX_DiscardUnknown()

func (*ResponseHeader) XXX_Marshal

func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseHeader) XXX_Merge

func (m *ResponseHeader) XXX_Merge(src proto.Message)

func (*ResponseHeader) XXX_Size

func (m *ResponseHeader) XXX_Size() int

func (*ResponseHeader) XXX_Unmarshal

func (m *ResponseHeader) XXX_Unmarshal(b []byte) error

type ResponseOp

type ResponseOp struct {
	// response is a union of response types returned by a transaction.
	//
	// Types that are valid to be assigned to Response:
	//	*ResponseOp_ResponseRange
	//	*ResponseOp_ResponsePut
	//	*ResponseOp_ResponseDeleteRange
	//	*ResponseOp_ResponseTxn
	Response             isResponseOp_Response `protobuf_oneof:"response"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ResponseOp) Descriptor

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

func (*ResponseOp) GetResponse

func (m *ResponseOp) GetResponse() isResponseOp_Response

func (*ResponseOp) GetResponseDeleteRange

func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse

func (*ResponseOp) GetResponsePut

func (m *ResponseOp) GetResponsePut() *PutResponse

func (*ResponseOp) GetResponseRange

func (m *ResponseOp) GetResponseRange() *RangeResponse

func (*ResponseOp) GetResponseTxn

func (m *ResponseOp) GetResponseTxn() *TxnResponse

func (*ResponseOp) Marshal

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

func (*ResponseOp) MarshalTo

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

func (*ResponseOp) MarshalToSizedBuffer

func (m *ResponseOp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseOp) ProtoMessage

func (*ResponseOp) ProtoMessage()

func (*ResponseOp) Reset

func (m *ResponseOp) Reset()

func (*ResponseOp) Size

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

func (*ResponseOp) String

func (m *ResponseOp) String() string

func (*ResponseOp) Unmarshal

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

func (*ResponseOp) XXX_DiscardUnknown

func (m *ResponseOp) XXX_DiscardUnknown()

func (*ResponseOp) XXX_Marshal

func (m *ResponseOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseOp) XXX_Merge

func (m *ResponseOp) XXX_Merge(src proto.Message)

func (*ResponseOp) XXX_OneofFuncs

func (*ResponseOp) 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.

func (*ResponseOp) XXX_Size

func (m *ResponseOp) XXX_Size() int

func (*ResponseOp) XXX_Unmarshal

func (m *ResponseOp) XXX_Unmarshal(b []byte) error

type ResponseOp_ResponseDeleteRange

type ResponseOp_ResponseDeleteRange struct {
	ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,proto3,oneof"`
}

func (*ResponseOp_ResponseDeleteRange) MarshalTo

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

func (*ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer

func (m *ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseOp_ResponseDeleteRange) Size

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

type ResponseOp_ResponsePut

type ResponseOp_ResponsePut struct {
	ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,proto3,oneof"`
}

func (*ResponseOp_ResponsePut) MarshalTo

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

func (*ResponseOp_ResponsePut) MarshalToSizedBuffer

func (m *ResponseOp_ResponsePut) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseOp_ResponsePut) Size

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

type ResponseOp_ResponseRange

type ResponseOp_ResponseRange struct {
	ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,proto3,oneof"`
}

func (*ResponseOp_ResponseRange) MarshalTo

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

func (*ResponseOp_ResponseRange) MarshalToSizedBuffer

func (m *ResponseOp_ResponseRange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseOp_ResponseRange) Size

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

type ResponseOp_ResponseTxn

type ResponseOp_ResponseTxn struct {
	ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,proto3,oneof"`
}

func (*ResponseOp_ResponseTxn) MarshalTo

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

func (*ResponseOp_ResponseTxn) MarshalToSizedBuffer

func (m *ResponseOp_ResponseTxn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseOp_ResponseTxn) Size

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

type SnapshotRequest

type SnapshotRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SnapshotRequest) Descriptor

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

func (*SnapshotRequest) Marshal

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

func (*SnapshotRequest) MarshalTo

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

func (*SnapshotRequest) MarshalToSizedBuffer

func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotRequest) ProtoMessage

func (*SnapshotRequest) ProtoMessage()

func (*SnapshotRequest) Reset

func (m *SnapshotRequest) Reset()

func (*SnapshotRequest) Size

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

func (*SnapshotRequest) String

func (m *SnapshotRequest) String() string

func (*SnapshotRequest) Unmarshal

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

func (*SnapshotRequest) XXX_DiscardUnknown

func (m *SnapshotRequest) XXX_DiscardUnknown()

func (*SnapshotRequest) XXX_Marshal

func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotRequest) XXX_Merge

func (m *SnapshotRequest) XXX_Merge(src proto.Message)

func (*SnapshotRequest) XXX_Size

func (m *SnapshotRequest) XXX_Size() int

func (*SnapshotRequest) XXX_Unmarshal

func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error

type SnapshotResponse

type SnapshotResponse struct {
	// header has the current key-value store information. The first header in the snapshot
	// stream indicates the point in time of the snapshot.
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// remaining_bytes is the number of blob bytes to be sent after this message
	RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"`
	// blob contains the next chunk of the snapshot in the snapshot stream.
	Blob                 []byte   `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SnapshotResponse) Descriptor

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

func (*SnapshotResponse) GetBlob

func (m *SnapshotResponse) GetBlob() []byte

func (*SnapshotResponse) GetHeader

func (m *SnapshotResponse) GetHeader() *ResponseHeader

func (*SnapshotResponse) GetRemainingBytes

func (m *SnapshotResponse) GetRemainingBytes() uint64

func (*SnapshotResponse) Marshal

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

func (*SnapshotResponse) MarshalTo

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

func (*SnapshotResponse) MarshalToSizedBuffer

func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotResponse) ProtoMessage

func (*SnapshotResponse) ProtoMessage()

func (*SnapshotResponse) Reset

func (m *SnapshotResponse) Reset()

func (*SnapshotResponse) Size

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

func (*SnapshotResponse) String

func (m *SnapshotResponse) String() string

func (*SnapshotResponse) Unmarshal

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

func (*SnapshotResponse) XXX_DiscardUnknown

func (m *SnapshotResponse) XXX_DiscardUnknown()

func (*SnapshotResponse) XXX_Marshal

func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotResponse) XXX_Merge

func (m *SnapshotResponse) XXX_Merge(src proto.Message)

func (*SnapshotResponse) XXX_Size

func (m *SnapshotResponse) XXX_Size() int

func (*SnapshotResponse) XXX_Unmarshal

func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error

type StatusRequest

type StatusRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusRequest) Descriptor

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

func (*StatusRequest) Marshal

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

func (*StatusRequest) MarshalTo

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

func (*StatusRequest) MarshalToSizedBuffer

func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset

func (m *StatusRequest) Reset()

func (*StatusRequest) Size

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

func (*StatusRequest) String

func (m *StatusRequest) String() string

func (*StatusRequest) Unmarshal

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

func (*StatusRequest) XXX_DiscardUnknown

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal

func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusRequest) XXX_Merge

func (m *StatusRequest) XXX_Merge(src proto.Message)

func (*StatusRequest) XXX_Size

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal

func (m *StatusRequest) XXX_Unmarshal(b []byte) error

type StatusResponse

type StatusResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// version is the cluster protocol version used by the responding member.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// dbSize is the size of the backend database, in bytes, of the responding member.
	DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"`
	// leader is the member ID which the responding member believes is the current leader.
	Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"`
	// raftIndex is the current raft index of the responding member.
	RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"`
	// raftTerm is the current raft term of the responding member.
	RaftTerm             uint64   `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusResponse) Descriptor

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

func (*StatusResponse) GetDbSize

func (m *StatusResponse) GetDbSize() int64

func (*StatusResponse) GetHeader

func (m *StatusResponse) GetHeader() *ResponseHeader

func (*StatusResponse) GetLeader

func (m *StatusResponse) GetLeader() uint64

func (*StatusResponse) GetRaftIndex

func (m *StatusResponse) GetRaftIndex() uint64

func (*StatusResponse) GetRaftTerm

func (m *StatusResponse) GetRaftTerm() uint64

func (*StatusResponse) GetVersion

func (m *StatusResponse) GetVersion() string

func (*StatusResponse) Marshal

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

func (*StatusResponse) MarshalTo

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

func (*StatusResponse) MarshalToSizedBuffer

func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) Size

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

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) Unmarshal

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

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusResponse) XXX_Merge

func (m *StatusResponse) XXX_Merge(src proto.Message)

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

func (m *StatusResponse) XXX_Unmarshal(b []byte) error

type TxnRequest

type TxnRequest struct {
	// compare is a list of predicates representing a conjunction of terms.
	// If the comparisons succeed, then the success requests will be processed in order,
	// and the response will contain their respective responses in order.
	// If the comparisons fail, then the failure requests will be processed in order,
	// and the response will contain their respective responses in order.
	Compare []*Compare `protobuf:"bytes,1,rep,name=compare,proto3" json:"compare,omitempty"`
	// success is a list of requests which will be applied when compare evaluates to true.
	Success []*RequestOp `protobuf:"bytes,2,rep,name=success,proto3" json:"success,omitempty"`
	// failure is a list of requests which will be applied when compare evaluates to false.
	Failure              []*RequestOp `protobuf:"bytes,3,rep,name=failure,proto3" json:"failure,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

From google paxosdb paper: Our implementation hinges around a powerful primitive which we call MultiOp. All other database operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically and consists of three components: 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check for the absence or presence of a value, or compare with a given value. Two different tests in the guard may apply to the same or different entries in the database. All tests in the guard are applied and MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise it executes f op (see item 3 below). 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or lookup operation, and applies to a single database entry. Two different operations in the list may apply to the same or different entries in the database. These operations are executed if guard evaluates to true. 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.

func (*TxnRequest) Descriptor

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

func (*TxnRequest) GetCompare

func (m *TxnRequest) GetCompare() []*Compare

func (*TxnRequest) GetFailure

func (m *TxnRequest) GetFailure() []*RequestOp

func (*TxnRequest) GetSuccess

func (m *TxnRequest) GetSuccess() []*RequestOp

func (*TxnRequest) Marshal

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

func (*TxnRequest) MarshalTo

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

func (*TxnRequest) MarshalToSizedBuffer

func (m *TxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxnRequest) ProtoMessage

func (*TxnRequest) ProtoMessage()

func (*TxnRequest) Reset

func (m *TxnRequest) Reset()

func (*TxnRequest) Size

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

func (*TxnRequest) String

func (m *TxnRequest) String() string

func (*TxnRequest) Unmarshal

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

func (*TxnRequest) XXX_DiscardUnknown

func (m *TxnRequest) XXX_DiscardUnknown()

func (*TxnRequest) XXX_Marshal

func (m *TxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxnRequest) XXX_Merge

func (m *TxnRequest) XXX_Merge(src proto.Message)

func (*TxnRequest) XXX_Size

func (m *TxnRequest) XXX_Size() int

func (*TxnRequest) XXX_Unmarshal

func (m *TxnRequest) XXX_Unmarshal(b []byte) error

type TxnResponse

type TxnResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// succeeded is set to true if the compare evaluated to true or false otherwise.
	Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
	// responses is a list of responses corresponding to the results from applying
	// success if succeeded is true or failure if succeeded is false.
	Responses            []*ResponseOp `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*TxnResponse) Descriptor

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

func (*TxnResponse) GetHeader

func (m *TxnResponse) GetHeader() *ResponseHeader

func (*TxnResponse) GetResponses

func (m *TxnResponse) GetResponses() []*ResponseOp

func (*TxnResponse) GetSucceeded

func (m *TxnResponse) GetSucceeded() bool

func (*TxnResponse) Marshal

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

func (*TxnResponse) MarshalTo

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

func (*TxnResponse) MarshalToSizedBuffer

func (m *TxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxnResponse) ProtoMessage

func (*TxnResponse) ProtoMessage()

func (*TxnResponse) Reset

func (m *TxnResponse) Reset()

func (*TxnResponse) Size

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

func (*TxnResponse) String

func (m *TxnResponse) String() string

func (*TxnResponse) Unmarshal

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

func (*TxnResponse) XXX_DiscardUnknown

func (m *TxnResponse) XXX_DiscardUnknown()

func (*TxnResponse) XXX_Marshal

func (m *TxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxnResponse) XXX_Merge

func (m *TxnResponse) XXX_Merge(src proto.Message)

func (*TxnResponse) XXX_Size

func (m *TxnResponse) XXX_Size() int

func (*TxnResponse) XXX_Unmarshal

func (m *TxnResponse) XXX_Unmarshal(b []byte) error

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServer) AuthDisable

func (*UnimplementedAuthServer) AuthEnable

func (*UnimplementedAuthServer) Authenticate

func (*UnimplementedAuthServer) RoleAdd

func (*UnimplementedAuthServer) RoleDelete

func (*UnimplementedAuthServer) RoleGet

func (*UnimplementedAuthServer) RoleGrantPermission

func (*UnimplementedAuthServer) RoleList

func (*UnimplementedAuthServer) RoleRevokePermission

func (*UnimplementedAuthServer) UserAdd

func (*UnimplementedAuthServer) UserChangePassword

func (*UnimplementedAuthServer) UserDelete

func (*UnimplementedAuthServer) UserGet

func (*UnimplementedAuthServer) UserGrantRole

func (*UnimplementedAuthServer) UserList

func (*UnimplementedAuthServer) UserRevokeRole

type UnimplementedClusterServer

type UnimplementedClusterServer struct {
}

UnimplementedClusterServer can be embedded to have forward compatible implementations.

func (*UnimplementedClusterServer) MemberAdd

func (*UnimplementedClusterServer) MemberList

func (*UnimplementedClusterServer) MemberRemove

func (*UnimplementedClusterServer) MemberUpdate

type UnimplementedKVServer

type UnimplementedKVServer struct {
}

UnimplementedKVServer can be embedded to have forward compatible implementations.

func (*UnimplementedKVServer) Compact

func (*UnimplementedKVServer) DeleteRange

func (*UnimplementedKVServer) Put

func (*UnimplementedKVServer) Range

func (*UnimplementedKVServer) Txn

type UnimplementedLeaseServer

type UnimplementedLeaseServer struct {
}

UnimplementedLeaseServer can be embedded to have forward compatible implementations.

func (*UnimplementedLeaseServer) LeaseGrant

func (*UnimplementedLeaseServer) LeaseKeepAlive

func (*UnimplementedLeaseServer) LeaseLeases

func (*UnimplementedLeaseServer) LeaseRevoke

func (*UnimplementedLeaseServer) LeaseTimeToLive

type UnimplementedMaintenanceServer

type UnimplementedMaintenanceServer struct {
}

UnimplementedMaintenanceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMaintenanceServer) Alarm

func (*UnimplementedMaintenanceServer) Defragment

func (*UnimplementedMaintenanceServer) Hash

func (*UnimplementedMaintenanceServer) HashKV

func (*UnimplementedMaintenanceServer) MoveLeader

func (*UnimplementedMaintenanceServer) Snapshot

func (*UnimplementedMaintenanceServer) Status

type UnimplementedWatchServer

type UnimplementedWatchServer struct {
}

UnimplementedWatchServer can be embedded to have forward compatible implementations.

func (*UnimplementedWatchServer) Watch

type WatchCancelRequest

type WatchCancelRequest struct {
	// watch_id is the watcher id to cancel so that no more events are transmitted.
	WatchId              int64    `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WatchCancelRequest) Descriptor

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

func (*WatchCancelRequest) GetWatchId

func (m *WatchCancelRequest) GetWatchId() int64

func (*WatchCancelRequest) Marshal

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

func (*WatchCancelRequest) MarshalTo

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

func (*WatchCancelRequest) MarshalToSizedBuffer

func (m *WatchCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchCancelRequest) ProtoMessage

func (*WatchCancelRequest) ProtoMessage()

func (*WatchCancelRequest) Reset

func (m *WatchCancelRequest) Reset()

func (*WatchCancelRequest) Size

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

func (*WatchCancelRequest) String

func (m *WatchCancelRequest) String() string

func (*WatchCancelRequest) Unmarshal

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

func (*WatchCancelRequest) XXX_DiscardUnknown

func (m *WatchCancelRequest) XXX_DiscardUnknown()

func (*WatchCancelRequest) XXX_Marshal

func (m *WatchCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchCancelRequest) XXX_Merge

func (m *WatchCancelRequest) XXX_Merge(src proto.Message)

func (*WatchCancelRequest) XXX_Size

func (m *WatchCancelRequest) XXX_Size() int

func (*WatchCancelRequest) XXX_Unmarshal

func (m *WatchCancelRequest) XXX_Unmarshal(b []byte) error

type WatchClient

type WatchClient interface {
	// Watch watches for events happening or that have happened. Both input and output
	// are streams; the input stream is for creating and canceling watchers and the output
	// stream sends events. One watch RPC can watch on multiple key ranges, streaming events
	// for several watches at once. The entire event history can be watched starting from the
	// last compaction revision.
	Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error)
}

WatchClient is the client API for Watch service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWatchClient

func NewWatchClient(cc *grpc.ClientConn) WatchClient

type WatchCreateRequest

type WatchCreateRequest struct {
	// key is the key to register for watching.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// range_end is the end of the range [key, range_end) to watch. If range_end is not given,
	// only the key argument is watched. If range_end is equal to '\0', all keys greater than
	// or equal to the key argument are watched.
	// If the range_end is one bit larger than the given key,
	// then all keys with the prefix (the given key) will be watched.
	RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
	// start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
	StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"`
	// progress_notify is set so that the etcd server will periodically send a WatchResponse with
	// no events to the new watcher if there are no recent events. It is useful when clients
	// wish to recover a disconnected watcher starting from a recent known revision.
	// The etcd server may decide how often it will send notifications based on current load.
	ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"`
	// filters filter the events at server side before it sends back to the watcher.
	Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,proto3,enum=etcdserverpb.WatchCreateRequest_FilterType" json:"filters,omitempty"`
	// If prev_kv is set, created watcher gets the previous KV before the event happens.
	// If the previous KV is already compacted, nothing will be returned.
	PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
	// If watch_id is provided and non-zero, it will be assigned to this watcher.
	// Since creating a watcher in etcd is not a synchronous operation,
	// this can be used ensure that ordering is correct when creating multiple
	// watchers on the same stream. Creating a watcher with an ID already in
	// use on the stream will cause an error to be returned.
	WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
	// fragment enables splitting large revisions into multiple watch responses.
	Fragment             bool     `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WatchCreateRequest) Descriptor

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

func (*WatchCreateRequest) GetFilters

func (*WatchCreateRequest) GetFragment

func (m *WatchCreateRequest) GetFragment() bool

func (*WatchCreateRequest) GetKey

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

func (*WatchCreateRequest) GetPrevKv

func (m *WatchCreateRequest) GetPrevKv() bool

func (*WatchCreateRequest) GetProgressNotify

func (m *WatchCreateRequest) GetProgressNotify() bool

func (*WatchCreateRequest) GetRangeEnd

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

func (*WatchCreateRequest) GetStartRevision

func (m *WatchCreateRequest) GetStartRevision() int64

func (*WatchCreateRequest) GetWatchId

func (m *WatchCreateRequest) GetWatchId() int64

func (*WatchCreateRequest) Marshal

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

func (*WatchCreateRequest) MarshalTo

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

func (*WatchCreateRequest) MarshalToSizedBuffer

func (m *WatchCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchCreateRequest) ProtoMessage

func (*WatchCreateRequest) ProtoMessage()

func (*WatchCreateRequest) Reset

func (m *WatchCreateRequest) Reset()

func (*WatchCreateRequest) Size

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

func (*WatchCreateRequest) String

func (m *WatchCreateRequest) String() string

func (*WatchCreateRequest) Unmarshal

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

func (*WatchCreateRequest) XXX_DiscardUnknown

func (m *WatchCreateRequest) XXX_DiscardUnknown()

func (*WatchCreateRequest) XXX_Marshal

func (m *WatchCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchCreateRequest) XXX_Merge

func (m *WatchCreateRequest) XXX_Merge(src proto.Message)

func (*WatchCreateRequest) XXX_Size

func (m *WatchCreateRequest) XXX_Size() int

func (*WatchCreateRequest) XXX_Unmarshal

func (m *WatchCreateRequest) XXX_Unmarshal(b []byte) error

type WatchCreateRequest_FilterType

type WatchCreateRequest_FilterType int32
const (
	// filter out put event.
	WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0
	// filter out delete event.
	WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1
)

func (WatchCreateRequest_FilterType) EnumDescriptor

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

func (WatchCreateRequest_FilterType) String

type WatchProgressRequest

type WatchProgressRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Requests the a watch stream progress status be sent in the watch response stream as soon as possible.

func (*WatchProgressRequest) Descriptor

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

func (*WatchProgressRequest) Marshal

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

func (*WatchProgressRequest) MarshalTo

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

func (*WatchProgressRequest) MarshalToSizedBuffer

func (m *WatchProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchProgressRequest) ProtoMessage

func (*WatchProgressRequest) ProtoMessage()

func (*WatchProgressRequest) Reset

func (m *WatchProgressRequest) Reset()

func (*WatchProgressRequest) Size

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

func (*WatchProgressRequest) String

func (m *WatchProgressRequest) String() string

func (*WatchProgressRequest) Unmarshal

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

func (*WatchProgressRequest) XXX_DiscardUnknown

func (m *WatchProgressRequest) XXX_DiscardUnknown()

func (*WatchProgressRequest) XXX_Marshal

func (m *WatchProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchProgressRequest) XXX_Merge

func (m *WatchProgressRequest) XXX_Merge(src proto.Message)

func (*WatchProgressRequest) XXX_Size

func (m *WatchProgressRequest) XXX_Size() int

func (*WatchProgressRequest) XXX_Unmarshal

func (m *WatchProgressRequest) XXX_Unmarshal(b []byte) error

type WatchRequest

type WatchRequest struct {
	// request_union is a request to either create a new watcher or cancel an existing watcher.
	//
	// Types that are valid to be assigned to RequestUnion:
	//	*WatchRequest_CreateRequest
	//	*WatchRequest_CancelRequest
	//	*WatchRequest_ProgressRequest
	RequestUnion         isWatchRequest_RequestUnion `protobuf_oneof:"request_union"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*WatchRequest) Descriptor

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

func (*WatchRequest) GetCancelRequest

func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest

func (*WatchRequest) GetCreateRequest

func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest

func (*WatchRequest) GetProgressRequest

func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest

func (*WatchRequest) GetRequestUnion

func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion

func (*WatchRequest) Marshal

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

func (*WatchRequest) MarshalTo

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

func (*WatchRequest) MarshalToSizedBuffer

func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset

func (m *WatchRequest) Reset()

func (*WatchRequest) Size

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

func (*WatchRequest) String

func (m *WatchRequest) String() string

func (*WatchRequest) Unmarshal

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

func (*WatchRequest) XXX_DiscardUnknown

func (m *WatchRequest) XXX_DiscardUnknown()

func (*WatchRequest) XXX_Marshal

func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchRequest) XXX_Merge

func (m *WatchRequest) XXX_Merge(src proto.Message)

func (*WatchRequest) XXX_OneofFuncs

func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*WatchRequest) XXX_Size

func (m *WatchRequest) XXX_Size() int

func (*WatchRequest) XXX_Unmarshal

func (m *WatchRequest) XXX_Unmarshal(b []byte) error

type WatchRequest_CancelRequest

type WatchRequest_CancelRequest struct {
	CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3,oneof"`
}

func (*WatchRequest_CancelRequest) MarshalTo

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

func (*WatchRequest_CancelRequest) MarshalToSizedBuffer

func (m *WatchRequest_CancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchRequest_CancelRequest) Size

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

type WatchRequest_CreateRequest

type WatchRequest_CreateRequest struct {
	CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,proto3,oneof"`
}

func (*WatchRequest_CreateRequest) MarshalTo

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

func (*WatchRequest_CreateRequest) MarshalToSizedBuffer

func (m *WatchRequest_CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchRequest_CreateRequest) Size

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

type WatchRequest_ProgressRequest

type WatchRequest_ProgressRequest struct {
	ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,proto3,oneof"`
}

func (*WatchRequest_ProgressRequest) MarshalTo

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

func (*WatchRequest_ProgressRequest) MarshalToSizedBuffer

func (m *WatchRequest_ProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchRequest_ProgressRequest) Size

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

type WatchResponse

type WatchResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// watch_id is the ID of the watcher that corresponds to the response.
	WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
	// created is set to true if the response is for a create watch request.
	// The client should record the watch_id and expect to receive events for
	// the created watcher from the same stream.
	// All events sent to the created watcher will attach with the same watch_id.
	Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
	// canceled is set to true if the response is for a cancel watch request.
	// No further events will be sent to the canceled watcher.
	Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"`
	// compact_revision is set to the minimum index if a watcher tries to watch
	// at a compacted index.
	//
	// This happens when creating a watcher at a compacted revision or the watcher cannot
	// catch up with the progress of the key-value store.
	//
	// The client should treat the watcher as canceled and should not try to create any
	// watcher with the same start_revision again.
	CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
	// cancel_reason indicates the reason for canceling the watcher.
	CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
	// framgment is true if large watch response was split over multiple responses.
	Fragment             bool            `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"`
	Events               []*mvccpb.Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*WatchResponse) Descriptor

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

func (*WatchResponse) GetCancelReason

func (m *WatchResponse) GetCancelReason() string

func (*WatchResponse) GetCanceled

func (m *WatchResponse) GetCanceled() bool

func (*WatchResponse) GetCompactRevision

func (m *WatchResponse) GetCompactRevision() int64

func (*WatchResponse) GetCreated

func (m *WatchResponse) GetCreated() bool

func (*WatchResponse) GetEvents

func (m *WatchResponse) GetEvents() []*mvccpb.Event

func (*WatchResponse) GetFragment

func (m *WatchResponse) GetFragment() bool

func (*WatchResponse) GetHeader

func (m *WatchResponse) GetHeader() *ResponseHeader

func (*WatchResponse) GetWatchId

func (m *WatchResponse) GetWatchId() int64

func (*WatchResponse) Marshal

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

func (*WatchResponse) MarshalTo

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

func (*WatchResponse) MarshalToSizedBuffer

func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) Reset

func (m *WatchResponse) Reset()

func (*WatchResponse) Size

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

func (*WatchResponse) String

func (m *WatchResponse) String() string

func (*WatchResponse) Unmarshal

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

func (*WatchResponse) XXX_DiscardUnknown

func (m *WatchResponse) XXX_DiscardUnknown()

func (*WatchResponse) XXX_Marshal

func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchResponse) XXX_Merge

func (m *WatchResponse) XXX_Merge(src proto.Message)

func (*WatchResponse) XXX_Size

func (m *WatchResponse) XXX_Size() int

func (*WatchResponse) XXX_Unmarshal

func (m *WatchResponse) XXX_Unmarshal(b []byte) error

type WatchServer

type WatchServer interface {
	// Watch watches for events happening or that have happened. Both input and output
	// are streams; the input stream is for creating and canceling watchers and the output
	// stream sends events. One watch RPC can watch on multiple key ranges, streaming events
	// for several watches at once. The entire event history can be watched starting from the
	// last compaction revision.
	Watch(Watch_WatchServer) error
}

WatchServer is the server API for Watch service.

type Watch_WatchClient

type Watch_WatchClient interface {
	Send(*WatchRequest) error
	Recv() (*WatchResponse, error)
	grpc.ClientStream
}

type Watch_WatchServer

type Watch_WatchServer interface {
	Send(*WatchResponse) error
	Recv() (*WatchRequest, error)
	grpc.ServerStream
}

Directories

Path Synopsis
Package etcdserverpb is a reverse proxy.
Package etcdserverpb is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL