2018-01-18 21:49:20 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2020-05-14 22:45:10 +00:00
|
|
|
// versions:
|
2021-05-03 23:56:06 +00:00
|
|
|
// protoc-gen-go v1.25.0
|
|
|
|
// protoc v3.15.8
|
2019-04-12 21:54:35 +00:00
|
|
|
// source: sdk/plugin/pb/backend.proto
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
package pb
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
import (
|
2019-04-13 03:13:14 +00:00
|
|
|
context "context"
|
2018-09-22 21:58:39 +00:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
2019-04-12 21:54:35 +00:00
|
|
|
logical "github.com/hashicorp/vault/sdk/logical"
|
2018-01-18 21:49:20 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2019-07-08 23:02:20 +00:00
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
2020-05-14 22:45:10 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
2021-05-03 23:56:06 +00:00
|
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
2020-05-14 22:45:10 +00:00
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2018-01-18 21:49:20 +00:00
|
|
|
)
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2018-01-18 21:49:20 +00:00
|
|
|
|
|
|
|
type Empty struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Empty) Reset() {
|
|
|
|
*x = Empty{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Empty) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*Empty) ProtoMessage() {}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{0}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
type Header struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Header []string `sentinel:"" protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *Header) Reset() {
|
|
|
|
*x = Header{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *Header) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Header) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Header) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Header.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Header) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Header) GetHeader() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Header
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ProtoError struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-02-15 22:20:50 +00:00
|
|
|
// Error type can be one of:
|
|
|
|
// ErrTypeUnknown uint32 = iota
|
|
|
|
// ErrTypeUserError
|
|
|
|
// ErrTypeInternalError
|
|
|
|
// ErrTypeCodedError
|
|
|
|
// ErrTypeStatusBadRequest
|
|
|
|
// ErrTypeUnsupportedOperation
|
|
|
|
// ErrTypeUnsupportedPath
|
|
|
|
// ErrTypeInvalidRequest
|
|
|
|
// ErrTypePermissionDenied
|
|
|
|
// ErrTypeMultiAuthzPending
|
2021-05-03 23:56:06 +00:00
|
|
|
// ErrTypeUnrecoverable
|
2020-05-14 22:45:10 +00:00
|
|
|
ErrType uint32 `sentinel:"" protobuf:"varint,1,opt,name=err_type,json=errType,proto3" json:"err_type,omitempty"`
|
|
|
|
ErrMsg string `sentinel:"" protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
|
|
|
|
ErrCode int64 `sentinel:"" protobuf:"varint,3,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ProtoError) Reset() {
|
|
|
|
*x = ProtoError{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ProtoError) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*ProtoError) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ProtoError) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use ProtoError.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ProtoError) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ProtoError) GetErrType() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ErrType
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ProtoError) GetErrMsg() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ErrMsg
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ProtoError) GetErrCode() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ErrCode
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Paths is the structure of special paths that is used for SpecialPaths.
|
|
|
|
type Paths struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// Root are the paths that require a root token to access
|
2018-07-11 00:49:48 +00:00
|
|
|
Root []string `sentinel:"" protobuf:"bytes,1,rep,name=root,proto3" json:"root,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Unauthenticated are the paths that can be accessed without any auth.
|
2018-07-11 00:49:48 +00:00
|
|
|
Unauthenticated []string `sentinel:"" protobuf:"bytes,2,rep,name=unauthenticated,proto3" json:"unauthenticated,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// LocalStorage are paths (prefixes) that are local to this instance; this
|
|
|
|
// indicates that these paths should not be replicated
|
2018-07-11 00:49:48 +00:00
|
|
|
LocalStorage []string `sentinel:"" protobuf:"bytes,3,rep,name=local_storage,json=localStorage,proto3" json:"local_storage,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// SealWrapStorage are storage paths that, when using a capable seal,
|
|
|
|
// should be seal wrapped with extra encryption. It is exact matching
|
|
|
|
// unless it ends with '/' in which case it will be treated as a prefix.
|
2020-05-14 22:45:10 +00:00
|
|
|
SealWrapStorage []string `sentinel:"" protobuf:"bytes,4,rep,name=seal_wrap_storage,json=sealWrapStorage,proto3" json:"seal_wrap_storage,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Paths) Reset() {
|
|
|
|
*x = Paths{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Paths) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Paths) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Paths) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Paths.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Paths) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Paths) GetRoot() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Root
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Paths) GetUnauthenticated() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Unauthenticated
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Paths) GetLocalStorage() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.LocalStorage
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Paths) GetSealWrapStorage() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.SealWrapStorage
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Request struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// ID is the uuid associated with each request
|
2018-07-11 00:49:48 +00:00
|
|
|
ID string `sentinel:"" protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// If set, the name given to the replication secondary where this request
|
|
|
|
// originated
|
2018-07-11 00:49:48 +00:00
|
|
|
ReplicationCluster string `sentinel:"" protobuf:"bytes,2,opt,name=ReplicationCluster,proto3" json:"ReplicationCluster,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Operation is the requested operation type
|
2018-07-11 00:49:48 +00:00
|
|
|
Operation string `sentinel:"" protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Path is the part of the request path not consumed by the
|
|
|
|
// routing. As an example, if the original request path is "prod/aws/foo"
|
|
|
|
// and the AWS logical backend is mounted at "prod/aws/", then the
|
|
|
|
// final path is "foo" since the mount prefix is trimmed.
|
2018-07-11 00:49:48 +00:00
|
|
|
Path string `sentinel:"" protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
|
2018-01-26 01:19:27 +00:00
|
|
|
// Request data is a JSON object that must have keys with string type.
|
2018-07-11 00:49:48 +00:00
|
|
|
Data string `sentinel:"" protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Secret will be non-nil only for Revoke and Renew operations
|
|
|
|
// to represent the secret that was returned prior.
|
2018-07-11 00:49:48 +00:00
|
|
|
Secret *Secret `sentinel:"" protobuf:"bytes,6,opt,name=secret,proto3" json:"secret,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Auth will be non-nil only for Renew operations
|
|
|
|
// to represent the auth that was returned prior.
|
2018-07-11 00:49:48 +00:00
|
|
|
Auth *Auth `sentinel:"" protobuf:"bytes,7,opt,name=auth,proto3" json:"auth,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Headers will contain the http headers from the request. This value will
|
|
|
|
// be used in the audit broker to ensure we are auditing only the allowed
|
|
|
|
// headers.
|
2018-07-11 00:49:48 +00:00
|
|
|
Headers map[string]*Header `sentinel:"" protobuf:"bytes,8,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// ClientToken is provided to the core so that the identity
|
|
|
|
// can be verified and ACLs applied. This value is passed
|
|
|
|
// through to the logical backends but after being salted and
|
|
|
|
// hashed.
|
2018-07-11 00:49:48 +00:00
|
|
|
ClientToken string `sentinel:"" protobuf:"bytes,9,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// ClientTokenAccessor is provided to the core so that the it can get
|
|
|
|
// logged as part of request audit logging.
|
2018-07-11 00:49:48 +00:00
|
|
|
ClientTokenAccessor string `sentinel:"" protobuf:"bytes,10,opt,name=client_token_accessor,json=clientTokenAccessor,proto3" json:"client_token_accessor,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// DisplayName is provided to the logical backend to help associate
|
|
|
|
// dynamic secrets with the source entity. This is not a sensitive
|
|
|
|
// name, but is useful for operators.
|
2018-07-11 00:49:48 +00:00
|
|
|
DisplayName string `sentinel:"" protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// MountPoint is provided so that a logical backend can generate
|
|
|
|
// paths relative to itself. The `Path` is effectively the client
|
|
|
|
// request path with the MountPoint trimmed off.
|
2018-07-11 00:49:48 +00:00
|
|
|
MountPoint string `sentinel:"" protobuf:"bytes,12,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// MountType is provided so that a logical backend can make decisions
|
|
|
|
// based on the specific mount type (e.g., if a mount type has different
|
|
|
|
// aliases, generating different defaults depending on the alias)
|
2018-07-11 00:49:48 +00:00
|
|
|
MountType string `sentinel:"" protobuf:"bytes,13,opt,name=mount_type,json=mountType,proto3" json:"mount_type,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// MountAccessor is provided so that identities returned by the authentication
|
|
|
|
// backends can be tied to the mount it belongs to.
|
2018-07-11 00:49:48 +00:00
|
|
|
MountAccessor string `sentinel:"" protobuf:"bytes,14,opt,name=mount_accessor,json=mountAccessor,proto3" json:"mount_accessor,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// WrapInfo contains requested response wrapping parameters
|
2018-07-11 00:49:48 +00:00
|
|
|
WrapInfo *RequestWrapInfo `sentinel:"" protobuf:"bytes,15,opt,name=wrap_info,json=wrapInfo,proto3" json:"wrap_info,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// ClientTokenRemainingUses represents the allowed number of uses left on the
|
|
|
|
// token supplied
|
2018-07-11 00:49:48 +00:00
|
|
|
ClientTokenRemainingUses int64 `sentinel:"" protobuf:"varint,16,opt,name=client_token_remaining_uses,json=clientTokenRemainingUses,proto3" json:"client_token_remaining_uses,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// EntityID is the identity of the caller extracted out of the token used
|
|
|
|
// to make this request
|
2018-07-11 00:49:48 +00:00
|
|
|
EntityID string `sentinel:"" protobuf:"bytes,17,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// PolicyOverride indicates that the requestor wishes to override
|
|
|
|
// soft-mandatory Sentinel policies
|
2018-07-11 00:49:48 +00:00
|
|
|
PolicyOverride bool `sentinel:"" protobuf:"varint,18,opt,name=policy_override,json=policyOverride,proto3" json:"policy_override,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Whether the request is unauthenticated, as in, had no client token
|
|
|
|
// attached. Useful in some situations where the client token is not made
|
|
|
|
// accessible.
|
2018-07-11 00:49:48 +00:00
|
|
|
Unauthenticated bool `sentinel:"" protobuf:"varint,19,opt,name=unauthenticated,proto3" json:"unauthenticated,omitempty"`
|
2018-02-17 01:41:01 +00:00
|
|
|
// Connection will be non-nil only for credential providers to
|
|
|
|
// inspect the connection information and potentially use it for
|
|
|
|
// authentication/protection.
|
2020-05-14 22:45:10 +00:00
|
|
|
Connection *Connection `sentinel:"" protobuf:"bytes,20,opt,name=connection,proto3" json:"connection,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) Reset() {
|
|
|
|
*x = Request{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Request) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Request) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Request.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetReplicationCluster() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ReplicationCluster
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetOperation() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Operation
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetPath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Path
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetData() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
2018-01-23 01:56:34 +00:00
|
|
|
return ""
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetSecret() *Secret {
|
|
|
|
if x != nil {
|
|
|
|
return x.Secret
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetAuth() *Auth {
|
|
|
|
if x != nil {
|
|
|
|
return x.Auth
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetHeaders() map[string]*Header {
|
|
|
|
if x != nil {
|
|
|
|
return x.Headers
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetClientToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientToken
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetClientTokenAccessor() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientTokenAccessor
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetDisplayName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.DisplayName
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetMountPoint() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MountPoint
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetMountType() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MountType
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetMountAccessor() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MountAccessor
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetWrapInfo() *RequestWrapInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.WrapInfo
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetClientTokenRemainingUses() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientTokenRemainingUses
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetEntityID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.EntityID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetPolicyOverride() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.PolicyOverride
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetUnauthenticated() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Unauthenticated
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Request) GetConnection() *Connection {
|
|
|
|
if x != nil {
|
|
|
|
return x.Connection
|
2018-02-17 01:41:01 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
type Auth struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-07-11 00:49:48 +00:00
|
|
|
LeaseOptions *LeaseOptions `sentinel:"" protobuf:"bytes,1,opt,name=lease_options,json=leaseOptions,proto3" json:"lease_options,omitempty"`
|
2018-01-26 01:19:27 +00:00
|
|
|
// InternalData is a JSON object that is stored with the auth struct.
|
2018-01-18 21:49:20 +00:00
|
|
|
// This will be sent back during a Renew/Revoke for storing internal data
|
|
|
|
// used for those operations.
|
2018-07-11 00:49:48 +00:00
|
|
|
InternalData string `sentinel:"" protobuf:"bytes,2,opt,name=internal_data,json=internalData,proto3" json:"internal_data,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// DisplayName is a non-security sensitive identifier that is
|
|
|
|
// applicable to this Auth. It is used for logging and prefixing
|
|
|
|
// of dynamic secrets. For example, DisplayName may be "armon" for
|
|
|
|
// the github credential backend. If the client token is used to
|
|
|
|
// generate a SQL credential, the user may be "github-armon-uuid".
|
|
|
|
// This is to help identify the source without using audit tables.
|
2018-07-11 00:49:48 +00:00
|
|
|
DisplayName string `sentinel:"" protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Policies is the list of policies that the authenticated user
|
|
|
|
// is associated with.
|
2018-07-11 00:49:48 +00:00
|
|
|
Policies []string `sentinel:"" protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Metadata is used to attach arbitrary string-type metadata to
|
|
|
|
// an authenticated user. This metadata will be outputted into the
|
|
|
|
// audit log.
|
2018-07-11 00:49:48 +00:00
|
|
|
Metadata map[string]string `sentinel:"" protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// ClientToken is the token that is generated for the authentication.
|
|
|
|
// This will be filled in by Vault core when an auth structure is
|
|
|
|
// returned. Setting this manually will have no effect.
|
2018-07-11 00:49:48 +00:00
|
|
|
ClientToken string `sentinel:"" protobuf:"bytes,6,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Accessor is the identifier for the ClientToken. This can be used
|
|
|
|
// to perform management functionalities (especially revocation) when
|
|
|
|
// ClientToken in the audit logs are obfuscated. Accessor can be used
|
|
|
|
// to revoke a ClientToken and to lookup the capabilities of the ClientToken,
|
|
|
|
// both without actually knowing the ClientToken.
|
2018-07-11 00:49:48 +00:00
|
|
|
Accessor string `sentinel:"" protobuf:"bytes,7,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Period indicates that the token generated using this Auth object
|
|
|
|
// should never expire. The token should be renewed within the duration
|
|
|
|
// specified by this period.
|
2018-07-11 00:49:48 +00:00
|
|
|
Period int64 `sentinel:"" protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Number of allowed uses of the issued token
|
2018-07-11 00:49:48 +00:00
|
|
|
NumUses int64 `sentinel:"" protobuf:"varint,9,opt,name=num_uses,json=numUses,proto3" json:"num_uses,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// EntityID is the identifier of the entity in identity store to which the
|
|
|
|
// identity of the authenticating client belongs to.
|
2018-07-11 00:49:48 +00:00
|
|
|
EntityID string `sentinel:"" protobuf:"bytes,10,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Alias is the information about the authenticated client returned by
|
|
|
|
// the auth backend
|
2018-07-11 00:49:48 +00:00
|
|
|
Alias *logical.Alias `sentinel:"" protobuf:"bytes,11,opt,name=alias,proto3" json:"alias,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// GroupAliases are the informational mappings of external groups which an
|
|
|
|
// authenticated user belongs to. This is used to check if there are
|
|
|
|
// mappings groups for the group aliases in identity store. For all the
|
|
|
|
// matching groups, the entity ID of the user will be added.
|
2018-07-11 00:49:48 +00:00
|
|
|
GroupAliases []*logical.Alias `sentinel:"" protobuf:"bytes,12,rep,name=group_aliases,json=groupAliases,proto3" json:"group_aliases,omitempty"`
|
2018-05-09 22:39:55 +00:00
|
|
|
// If set, restricts usage of the certificates to client IPs falling within
|
|
|
|
// the range of the specified CIDR(s).
|
2018-09-20 16:45:49 +00:00
|
|
|
BoundCIDRs []string `sentinel:"" protobuf:"bytes,13,rep,name=bound_cidrs,json=boundCidrs,proto3" json:"bound_cidrs,omitempty"`
|
2018-09-18 03:03:00 +00:00
|
|
|
// TokenPolicies and IdentityPolicies break down the list in Policies to
|
|
|
|
// help determine where a policy was sourced
|
2018-09-22 21:58:39 +00:00
|
|
|
TokenPolicies []string `sentinel:"" protobuf:"bytes,14,rep,name=token_policies,json=tokenPolicies,proto3" json:"token_policies,omitempty"`
|
|
|
|
IdentityPolicies []string `sentinel:"" protobuf:"bytes,15,rep,name=identity_policies,json=identityPolicies,proto3" json:"identity_policies,omitempty"`
|
|
|
|
// Explicit maximum lifetime for the token. Unlike normal TTLs, the maximum
|
|
|
|
// TTL is a hard limit and cannot be exceeded, also counts for periodic tokens.
|
2018-10-15 16:56:24 +00:00
|
|
|
ExplicitMaxTTL int64 `sentinel:"" protobuf:"varint,16,opt,name=explicit_max_ttl,json=explicitMaxTtl,proto3" json:"explicit_max_ttl,omitempty"`
|
|
|
|
// TokenType is the type of token being requested
|
2019-06-14 14:17:04 +00:00
|
|
|
TokenType uint32 `sentinel:"" protobuf:"varint,17,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
|
|
|
|
// Whether the default policy should be added automatically by core
|
2020-05-14 22:45:10 +00:00
|
|
|
NoDefaultPolicy bool `sentinel:"" protobuf:"varint,18,opt,name=no_default_policy,json=noDefaultPolicy,proto3" json:"no_default_policy,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) Reset() {
|
|
|
|
*x = Auth{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Auth) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Auth) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Auth.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Auth) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetLeaseOptions() *LeaseOptions {
|
|
|
|
if x != nil {
|
|
|
|
return x.LeaseOptions
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetInternalData() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.InternalData
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
2018-01-23 01:56:34 +00:00
|
|
|
return ""
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetDisplayName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.DisplayName
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetPolicies() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Policies
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetMetadata() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Metadata
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetClientToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientToken
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetAccessor() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Accessor
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetPeriod() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Period
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetNumUses() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.NumUses
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetEntityID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.EntityID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetAlias() *logical.Alias {
|
|
|
|
if x != nil {
|
|
|
|
return x.Alias
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetGroupAliases() []*logical.Alias {
|
|
|
|
if x != nil {
|
|
|
|
return x.GroupAliases
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetBoundCIDRs() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.BoundCIDRs
|
2018-05-09 22:39:55 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetTokenPolicies() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.TokenPolicies
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetIdentityPolicies() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.IdentityPolicies
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetExplicitMaxTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ExplicitMaxTTL
|
2018-09-22 21:58:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetTokenType() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TokenType
|
2018-10-15 16:56:24 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Auth) GetNoDefaultPolicy() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NoDefaultPolicy
|
2019-06-14 14:17:04 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-09-18 03:03:00 +00:00
|
|
|
type TokenEntry struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ID string `sentinel:"" protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Accessor string `sentinel:"" protobuf:"bytes,2,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
|
|
|
Parent string `sentinel:"" protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
|
|
Policies []string `sentinel:"" protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty"`
|
|
|
|
Path string `sentinel:"" protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
Meta map[string]string `sentinel:"" protobuf:"bytes,6,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
DisplayName string `sentinel:"" protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
|
|
|
NumUses int64 `sentinel:"" protobuf:"varint,8,opt,name=num_uses,json=numUses,proto3" json:"num_uses,omitempty"`
|
|
|
|
CreationTime int64 `sentinel:"" protobuf:"varint,9,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
|
|
|
|
TTL int64 `sentinel:"" protobuf:"varint,10,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
ExplicitMaxTTL int64 `sentinel:"" protobuf:"varint,11,opt,name=explicit_max_ttl,json=explicitMaxTtl,proto3" json:"explicit_max_ttl,omitempty"`
|
|
|
|
Role string `sentinel:"" protobuf:"bytes,12,opt,name=role,proto3" json:"role,omitempty"`
|
|
|
|
Period int64 `sentinel:"" protobuf:"varint,13,opt,name=period,proto3" json:"period,omitempty"`
|
|
|
|
EntityID string `sentinel:"" protobuf:"bytes,14,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
|
|
|
BoundCIDRs []string `sentinel:"" protobuf:"bytes,15,rep,name=bound_cidrs,json=boundCidrs,proto3" json:"bound_cidrs,omitempty"`
|
|
|
|
NamespaceID string `sentinel:"" protobuf:"bytes,16,opt,name=namespace_id,json=namespaceID,proto3" json:"namespace_id,omitempty"`
|
|
|
|
CubbyholeID string `sentinel:"" protobuf:"bytes,17,opt,name=cubbyhole_id,json=cubbyholeId,proto3" json:"cubbyhole_id,omitempty"`
|
|
|
|
Type uint32 `sentinel:"" protobuf:"varint,18,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TokenEntry) Reset() {
|
|
|
|
*x = TokenEntry{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TokenEntry) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*TokenEntry) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TokenEntry) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use TokenEntry.ProtoReflect.Descriptor instead.
|
2018-09-18 03:03:00 +00:00
|
|
|
func (*TokenEntry) Descriptor() ([]byte, []int) {
|
2020-05-14 22:45:10 +00:00
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{6}
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ID
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetAccessor() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Accessor
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetParent() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Parent
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetPolicies() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Policies
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetPath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Path
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetMeta() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Meta
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetDisplayName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.DisplayName
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetNumUses() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.NumUses
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetCreationTime() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CreationTime
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TTL
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetExplicitMaxTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ExplicitMaxTTL
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetRole() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Role
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetPeriod() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Period
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetEntityID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.EntityID
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetBoundCIDRs() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.BoundCIDRs
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetNamespaceID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.NamespaceID
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetCubbyholeID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.CubbyholeID
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TokenEntry) GetType() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
2018-10-15 16:56:24 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
type LeaseOptions struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2021-05-03 23:56:06 +00:00
|
|
|
TTL int64 `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
|
|
|
|
Renewable bool `sentinel:"" protobuf:"varint,2,opt,name=renewable,proto3" json:"renewable,omitempty"`
|
|
|
|
Increment int64 `sentinel:"" protobuf:"varint,3,opt,name=increment,proto3" json:"increment,omitempty"`
|
|
|
|
IssueTime *timestamppb.Timestamp `sentinel:"" protobuf:"bytes,4,opt,name=issue_time,json=issueTime,proto3" json:"issue_time,omitempty"`
|
|
|
|
MaxTTL int64 `sentinel:"" protobuf:"varint,5,opt,name=MaxTTL,proto3" json:"MaxTTL,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *LeaseOptions) Reset() {
|
|
|
|
*x = LeaseOptions{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[7]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *LeaseOptions) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*LeaseOptions) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *LeaseOptions) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[7]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use LeaseOptions.ProtoReflect.Descriptor instead.
|
|
|
|
func (*LeaseOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{7}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *LeaseOptions) GetTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TTL
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *LeaseOptions) GetRenewable() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Renewable
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *LeaseOptions) GetIncrement() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Increment
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-05-03 23:56:06 +00:00
|
|
|
func (x *LeaseOptions) GetIssueTime() *timestamppb.Timestamp {
|
2020-05-14 22:45:10 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.IssueTime
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *LeaseOptions) GetMaxTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.MaxTTL
|
2018-04-03 16:20:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
type Secret struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-07-11 00:49:48 +00:00
|
|
|
LeaseOptions *LeaseOptions `sentinel:"" protobuf:"bytes,1,opt,name=lease_options,json=leaseOptions,proto3" json:"lease_options,omitempty"`
|
2018-01-26 01:19:27 +00:00
|
|
|
// InternalData is a JSON object that is stored with the secret.
|
2018-01-18 21:49:20 +00:00
|
|
|
// This will be sent back during a Renew/Revoke for storing internal data
|
|
|
|
// used for those operations.
|
2018-07-11 00:49:48 +00:00
|
|
|
InternalData string `sentinel:"" protobuf:"bytes,2,opt,name=internal_data,json=internalData,proto3" json:"internal_data,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// LeaseID is the ID returned to the user to manage this secret.
|
|
|
|
// This is generated by Vault core. Any set value will be ignored.
|
|
|
|
// For requests, this will always be blank.
|
2020-05-14 22:45:10 +00:00
|
|
|
LeaseID string `sentinel:"" protobuf:"bytes,3,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Secret) Reset() {
|
|
|
|
*x = Secret{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[8]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Secret) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Secret) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Secret) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[8]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Secret.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Secret) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{8}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Secret) GetLeaseOptions() *LeaseOptions {
|
|
|
|
if x != nil {
|
|
|
|
return x.LeaseOptions
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Secret) GetInternalData() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.InternalData
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
2018-01-23 01:56:34 +00:00
|
|
|
return ""
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Secret) GetLeaseID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.LeaseID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type Response struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// Secret, if not nil, denotes that this response represents a secret.
|
2018-07-11 00:49:48 +00:00
|
|
|
Secret *Secret `sentinel:"" protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Auth, if not nil, contains the authentication information for
|
|
|
|
// this response. This is only checked and means something for
|
|
|
|
// credential backends.
|
2018-07-11 00:49:48 +00:00
|
|
|
Auth *Auth `sentinel:"" protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
|
2018-01-26 01:19:27 +00:00
|
|
|
// Response data is a JSON object that must have string keys. For
|
2018-01-18 21:49:20 +00:00
|
|
|
// secrets, this data is sent down to the user as-is. To store internal
|
|
|
|
// data that you don't want the user to see, store it in
|
|
|
|
// Secret.InternalData.
|
2018-07-11 00:49:48 +00:00
|
|
|
Data string `sentinel:"" protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Redirect is an HTTP URL to redirect to for further authentication.
|
|
|
|
// This is only valid for credential backends. This will be blanked
|
|
|
|
// for any logical backend and ignored.
|
2018-07-11 00:49:48 +00:00
|
|
|
Redirect string `sentinel:"" protobuf:"bytes,4,opt,name=redirect,proto3" json:"redirect,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Warnings allow operations or backends to return warnings in response
|
|
|
|
// to user actions without failing the action outright.
|
2018-07-11 00:49:48 +00:00
|
|
|
Warnings []string `sentinel:"" protobuf:"bytes,5,rep,name=warnings,proto3" json:"warnings,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Information for wrapping the response in a cubbyhole
|
2019-02-05 21:02:15 +00:00
|
|
|
WrapInfo *ResponseWrapInfo `sentinel:"" protobuf:"bytes,6,opt,name=wrap_info,json=wrapInfo,proto3" json:"wrap_info,omitempty"`
|
|
|
|
// Headers will contain the http headers from the response. This value will
|
|
|
|
// be used in the audit broker to ensure we are auditing only the allowed
|
|
|
|
// headers.
|
2020-05-14 22:45:10 +00:00
|
|
|
Headers map[string]*Header `sentinel:"" protobuf:"bytes,7,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) Reset() {
|
|
|
|
*x = Response{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[9]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Response) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[9]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{9}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetSecret() *Secret {
|
|
|
|
if x != nil {
|
|
|
|
return x.Secret
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetAuth() *Auth {
|
|
|
|
if x != nil {
|
|
|
|
return x.Auth
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetData() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
2018-01-23 01:56:34 +00:00
|
|
|
return ""
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetRedirect() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Redirect
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetWarnings() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Warnings
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetWrapInfo() *ResponseWrapInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.WrapInfo
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Response) GetHeaders() map[string]*Header {
|
|
|
|
if x != nil {
|
|
|
|
return x.Headers
|
2019-02-05 21:02:15 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
type ResponseWrapInfo struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// Setting to non-zero specifies that the response should be wrapped.
|
|
|
|
// Specifies the desired TTL of the wrapping token.
|
2018-07-11 00:49:48 +00:00
|
|
|
TTL int64 `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// The token containing the wrapped response
|
2018-07-11 00:49:48 +00:00
|
|
|
Token string `sentinel:"" protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// The token accessor for the wrapped response token
|
2018-07-11 00:49:48 +00:00
|
|
|
Accessor string `sentinel:"" protobuf:"bytes,3,opt,name=accessor,proto3" json:"accessor,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// The creation time. This can be used with the TTL to figure out an
|
|
|
|
// expected expiration.
|
2021-05-03 23:56:06 +00:00
|
|
|
CreationTime *timestamppb.Timestamp `sentinel:"" protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// If the contained response is the output of a token creation call, the
|
|
|
|
// created token's accessor will be accessible here
|
2018-07-11 00:49:48 +00:00
|
|
|
WrappedAccessor string `sentinel:"" protobuf:"bytes,5,opt,name=wrapped_accessor,json=wrappedAccessor,proto3" json:"wrapped_accessor,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// WrappedEntityID is the entity identifier of the caller who initiated the
|
|
|
|
// wrapping request
|
2018-07-11 00:49:48 +00:00
|
|
|
WrappedEntityID string `sentinel:"" protobuf:"bytes,6,opt,name=wrapped_entity_id,json=wrappedEntityID,proto3" json:"wrapped_entity_id,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// The format to use. This doesn't get returned, it's only internal.
|
2018-07-11 00:49:48 +00:00
|
|
|
Format string `sentinel:"" protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// CreationPath is the original request path that was used to create
|
|
|
|
// the wrapped response.
|
2018-07-11 00:49:48 +00:00
|
|
|
CreationPath string `sentinel:"" protobuf:"bytes,8,opt,name=creation_path,json=creationPath,proto3" json:"creation_path,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// Controls seal wrapping behavior downstream for specific use cases
|
2020-05-14 22:45:10 +00:00
|
|
|
SealWrap bool `sentinel:"" protobuf:"varint,9,opt,name=seal_wrap,json=sealWrap,proto3" json:"seal_wrap,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) Reset() {
|
|
|
|
*x = ResponseWrapInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[10]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*ResponseWrapInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ResponseWrapInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[10]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use ResponseWrapInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ResponseWrapInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{10}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TTL
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Token
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetAccessor() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Accessor
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-05-03 23:56:06 +00:00
|
|
|
func (x *ResponseWrapInfo) GetCreationTime() *timestamppb.Timestamp {
|
2020-05-14 22:45:10 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.CreationTime
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetWrappedAccessor() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.WrappedAccessor
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetWrappedEntityID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.WrappedEntityID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetFormat() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Format
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetCreationPath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.CreationPath
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapInfo) GetSealWrap() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.SealWrap
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type RequestWrapInfo struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// Setting to non-zero specifies that the response should be wrapped.
|
|
|
|
// Specifies the desired TTL of the wrapping token.
|
2018-07-11 00:49:48 +00:00
|
|
|
TTL int64 `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// The format to use for the wrapped response; if not specified it's a bare
|
|
|
|
// token
|
2018-07-11 00:49:48 +00:00
|
|
|
Format string `sentinel:"" protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
// A flag to conforming backends that data for a given request should be
|
|
|
|
// seal wrapped
|
2020-05-14 22:45:10 +00:00
|
|
|
SealWrap bool `sentinel:"" protobuf:"varint,3,opt,name=seal_wrap,json=sealWrap,proto3" json:"seal_wrap,omitempty"`
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *RequestWrapInfo) Reset() {
|
|
|
|
*x = RequestWrapInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[11]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *RequestWrapInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*RequestWrapInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *RequestWrapInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[11]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use RequestWrapInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RequestWrapInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{11}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *RequestWrapInfo) GetTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TTL
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *RequestWrapInfo) GetFormat() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Format
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *RequestWrapInfo) GetSealWrap() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.SealWrap
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
// HandleRequestArgs is the args for HandleRequest method.
|
|
|
|
type HandleRequestArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
StorageID uint32 `sentinel:"" protobuf:"varint,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
|
|
|
|
Request *Request `sentinel:"" protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleRequestArgs) Reset() {
|
|
|
|
*x = HandleRequestArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[12]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *HandleRequestArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*HandleRequestArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *HandleRequestArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[12]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use HandleRequestArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*HandleRequestArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{12}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleRequestArgs) GetStorageID() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StorageID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleRequestArgs) GetRequest() *Request {
|
|
|
|
if x != nil {
|
|
|
|
return x.Request
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// HandleRequestReply is the reply for HandleRequest method.
|
|
|
|
type HandleRequestReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Response *Response `sentinel:"" protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
|
|
|
|
Err *ProtoError `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleRequestReply) Reset() {
|
|
|
|
*x = HandleRequestReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[13]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *HandleRequestReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*HandleRequestReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *HandleRequestReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[13]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use HandleRequestReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*HandleRequestReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{13}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleRequestReply) GetResponse() *Response {
|
|
|
|
if x != nil {
|
|
|
|
return x.Response
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleRequestReply) GetErr() *ProtoError {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-07-05 23:55:40 +00:00
|
|
|
// InitializeArgs is the args for Initialize method.
|
|
|
|
type InitializeArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *InitializeArgs) Reset() {
|
|
|
|
*x = InitializeArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[14]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *InitializeArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*InitializeArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *InitializeArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[14]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use InitializeArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*InitializeArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{14}
|
|
|
|
}
|
2019-07-05 23:55:40 +00:00
|
|
|
|
|
|
|
// InitializeReply is the reply for Initialize method.
|
|
|
|
type InitializeReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-07-05 23:55:40 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Err *ProtoError `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *InitializeReply) Reset() {
|
|
|
|
*x = InitializeReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[15]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *InitializeReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*InitializeReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *InitializeReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[15]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use InitializeReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*InitializeReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{15}
|
|
|
|
}
|
2019-07-05 23:55:40 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *InitializeReply) GetErr() *ProtoError {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2019-07-05 23:55:40 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// SpecialPathsReply is the reply for SpecialPaths method.
|
|
|
|
type SpecialPathsReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Paths *Paths `sentinel:"" protobuf:"bytes,1,opt,name=paths,proto3" json:"paths,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SpecialPathsReply) Reset() {
|
|
|
|
*x = SpecialPathsReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[16]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *SpecialPathsReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*SpecialPathsReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SpecialPathsReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[16]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use SpecialPathsReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SpecialPathsReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{16}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SpecialPathsReply) GetPaths() *Paths {
|
|
|
|
if x != nil {
|
|
|
|
return x.Paths
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// HandleExistenceCheckArgs is the args for HandleExistenceCheck method.
|
|
|
|
type HandleExistenceCheckArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
StorageID uint32 `sentinel:"" protobuf:"varint,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
|
|
|
|
Request *Request `sentinel:"" protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckArgs) Reset() {
|
|
|
|
*x = HandleExistenceCheckArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[17]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *HandleExistenceCheckArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*HandleExistenceCheckArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *HandleExistenceCheckArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[17]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use HandleExistenceCheckArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*HandleExistenceCheckArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{17}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckArgs) GetStorageID() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StorageID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckArgs) GetRequest() *Request {
|
|
|
|
if x != nil {
|
|
|
|
return x.Request
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// HandleExistenceCheckReply is the reply for HandleExistenceCheck method.
|
|
|
|
type HandleExistenceCheckReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
CheckFound bool `sentinel:"" protobuf:"varint,1,opt,name=check_found,json=checkFound,proto3" json:"check_found,omitempty"`
|
|
|
|
Exists bool `sentinel:"" protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
|
|
|
|
Err *ProtoError `sentinel:"" protobuf:"bytes,3,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckReply) Reset() {
|
|
|
|
*x = HandleExistenceCheckReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[18]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *HandleExistenceCheckReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*HandleExistenceCheckReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *HandleExistenceCheckReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[18]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use HandleExistenceCheckReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*HandleExistenceCheckReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{18}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckReply) GetCheckFound() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.CheckFound
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckReply) GetExists() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exists
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *HandleExistenceCheckReply) GetErr() *ProtoError {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetupArgs is the args for Setup method.
|
|
|
|
type SetupArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
BrokerID uint32 `sentinel:"" protobuf:"varint,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
|
|
|
|
Config map[string]string `sentinel:"" protobuf:"bytes,2,rep,name=Config,proto3" json:"Config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
BackendUUID string `sentinel:"" protobuf:"bytes,3,opt,name=backendUUID,proto3" json:"backendUUID,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SetupArgs) Reset() {
|
|
|
|
*x = SetupArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[19]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *SetupArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*SetupArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SetupArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[19]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use SetupArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SetupArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{19}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SetupArgs) GetBrokerID() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.BrokerID
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SetupArgs) GetConfig() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Config
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SetupArgs) GetBackendUUID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.BackendUUID
|
2018-03-21 19:04:27 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// SetupReply is the reply for Setup method.
|
|
|
|
type SetupReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Err string `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SetupReply) Reset() {
|
|
|
|
*x = SetupReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[20]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *SetupReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*SetupReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SetupReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[20]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use SetupReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SetupReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{20}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *SetupReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// TypeReply is the reply for the Type method.
|
|
|
|
type TypeReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Type uint32 `sentinel:"" protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TypeReply) Reset() {
|
|
|
|
*x = TypeReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[21]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *TypeReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*TypeReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TypeReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[21]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use TypeReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*TypeReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{21}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TypeReply) GetType() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type InvalidateKeyArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Key string `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *InvalidateKeyArgs) Reset() {
|
|
|
|
*x = InvalidateKeyArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[22]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *InvalidateKeyArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*InvalidateKeyArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *InvalidateKeyArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[22]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use InvalidateKeyArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*InvalidateKeyArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{22}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *InvalidateKeyArgs) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageEntry struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Key string `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Value []byte `sentinel:"" protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
SealWrap bool `sentinel:"" protobuf:"varint,3,opt,name=seal_wrap,json=sealWrap,proto3" json:"seal_wrap,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageEntry) Reset() {
|
|
|
|
*x = StorageEntry{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[23]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageEntry) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageEntry) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageEntry) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[23]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageEntry.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageEntry) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{23}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageEntry) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageEntry) GetValue() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageEntry) GetSealWrap() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.SealWrap
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageListArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Prefix string `sentinel:"" protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageListArgs) Reset() {
|
|
|
|
*x = StorageListArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[24]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageListArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageListArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageListArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[24]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageListArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageListArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{24}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageListArgs) GetPrefix() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Prefix
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageListReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Keys []string `sentinel:"" protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
|
|
Err string `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageListReply) Reset() {
|
|
|
|
*x = StorageListReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[25]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageListReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageListReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageListReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[25]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageListReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageListReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{25}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageListReply) GetKeys() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Keys
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageListReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageGetArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Key string `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageGetArgs) Reset() {
|
|
|
|
*x = StorageGetArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[26]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageGetArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageGetArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageGetArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[26]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageGetArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageGetArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{26}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageGetArgs) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageGetReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Entry *StorageEntry `sentinel:"" protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
|
|
|
|
Err string `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageGetReply) Reset() {
|
|
|
|
*x = StorageGetReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[27]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageGetReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageGetReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageGetReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[27]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageGetReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageGetReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{27}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageGetReply) GetEntry() *StorageEntry {
|
|
|
|
if x != nil {
|
|
|
|
return x.Entry
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageGetReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StoragePutArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Entry *StorageEntry `sentinel:"" protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StoragePutArgs) Reset() {
|
|
|
|
*x = StoragePutArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[28]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StoragePutArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StoragePutArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StoragePutArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[28]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StoragePutArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StoragePutArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{28}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StoragePutArgs) GetEntry() *StorageEntry {
|
|
|
|
if x != nil {
|
|
|
|
return x.Entry
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type StoragePutReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Err string `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StoragePutReply) Reset() {
|
|
|
|
*x = StoragePutReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[29]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StoragePutReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StoragePutReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StoragePutReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[29]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StoragePutReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StoragePutReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{29}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StoragePutReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageDeleteArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Key string `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageDeleteArgs) Reset() {
|
|
|
|
*x = StorageDeleteArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[30]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageDeleteArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageDeleteArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageDeleteArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[30]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageDeleteArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageDeleteArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{30}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageDeleteArgs) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageDeleteReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Err string `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageDeleteReply) Reset() {
|
|
|
|
*x = StorageDeleteReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[31]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *StorageDeleteReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*StorageDeleteReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *StorageDeleteReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[31]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use StorageDeleteReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StorageDeleteReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{31}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *StorageDeleteReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type TTLReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 17:19:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
TTL int64 `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TTLReply) Reset() {
|
|
|
|
*x = TTLReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[32]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *TTLReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*TTLReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TTLReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[32]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use TTLReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*TTLReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{32}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TTLReply) GetTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TTL
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaintedReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Tainted bool `sentinel:"" protobuf:"varint,1,opt,name=tainted,proto3" json:"tainted,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TaintedReply) Reset() {
|
|
|
|
*x = TaintedReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[33]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *TaintedReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*TaintedReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TaintedReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[33]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use TaintedReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*TaintedReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{33}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *TaintedReply) GetTainted() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Tainted
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type CachingDisabledReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Disabled bool `sentinel:"" protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *CachingDisabledReply) Reset() {
|
|
|
|
*x = CachingDisabledReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[34]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *CachingDisabledReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*CachingDisabledReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CachingDisabledReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[34]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use CachingDisabledReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CachingDisabledReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{34}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *CachingDisabledReply) GetDisabled() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Disabled
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReplicationStateReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
State int32 `sentinel:"" protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ReplicationStateReply) Reset() {
|
|
|
|
*x = ReplicationStateReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[35]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *ReplicationStateReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*ReplicationStateReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ReplicationStateReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[35]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use ReplicationStateReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ReplicationStateReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{35}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ReplicationStateReply) GetState() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.State
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResponseWrapDataArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Data string `sentinel:"" protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
TTL int64 `sentinel:"" protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"`
|
|
|
|
JWT bool `sentinel:"" protobuf:"varint,3,opt,name=JWT,proto3" json:"JWT,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataArgs) Reset() {
|
|
|
|
*x = ResponseWrapDataArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[36]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *ResponseWrapDataArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*ResponseWrapDataArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ResponseWrapDataArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[36]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use ResponseWrapDataArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ResponseWrapDataArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{36}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataArgs) GetData() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
2018-01-23 01:56:34 +00:00
|
|
|
return ""
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataArgs) GetTTL() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TTL
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataArgs) GetJWT() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.JWT
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResponseWrapDataReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
WrapInfo *ResponseWrapInfo `sentinel:"" protobuf:"bytes,1,opt,name=wrap_info,json=wrapInfo,proto3" json:"wrap_info,omitempty"`
|
|
|
|
Err string `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataReply) Reset() {
|
|
|
|
*x = ResponseWrapDataReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[37]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *ResponseWrapDataReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*ResponseWrapDataReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ResponseWrapDataReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[37]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use ResponseWrapDataReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ResponseWrapDataReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{37}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataReply) GetWrapInfo() *ResponseWrapInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.WrapInfo
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ResponseWrapDataReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type MlockEnabledReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Enabled bool `sentinel:"" protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *MlockEnabledReply) Reset() {
|
|
|
|
*x = MlockEnabledReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[38]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *MlockEnabledReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*MlockEnabledReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *MlockEnabledReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[38]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use MlockEnabledReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*MlockEnabledReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{38}
|
|
|
|
}
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *MlockEnabledReply) GetEnabled() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Enabled
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-02-02 23:17:12 +00:00
|
|
|
type LocalMountReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-05-03 19:38:53 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Local bool `sentinel:"" protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *LocalMountReply) Reset() {
|
|
|
|
*x = LocalMountReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[39]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *LocalMountReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*LocalMountReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *LocalMountReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[39]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-02-02 23:17:12 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use LocalMountReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*LocalMountReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{39}
|
|
|
|
}
|
2018-02-02 23:17:12 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *LocalMountReply) GetLocal() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Local
|
2018-02-02 23:17:12 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
type EntityInfoArgs struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-06-04 00:48:12 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
EntityID string `sentinel:"" protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EntityInfoArgs) Reset() {
|
|
|
|
*x = EntityInfoArgs{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[40]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *EntityInfoArgs) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*EntityInfoArgs) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EntityInfoArgs) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[40]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use EntityInfoArgs.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EntityInfoArgs) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{40}
|
|
|
|
}
|
2018-06-04 00:48:12 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EntityInfoArgs) GetEntityID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.EntityID
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type EntityInfoReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-06-04 00:48:12 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Entity *logical.Entity `sentinel:"" protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
|
|
|
Err string `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EntityInfoReply) Reset() {
|
|
|
|
*x = EntityInfoReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[41]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *EntityInfoReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*EntityInfoReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EntityInfoReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[41]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use EntityInfoReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EntityInfoReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{41}
|
|
|
|
}
|
2018-06-04 00:48:12 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EntityInfoReply) GetEntity() *logical.Entity {
|
|
|
|
if x != nil {
|
|
|
|
return x.Entity
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EntityInfoReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-01-06 18:16:52 +00:00
|
|
|
type GroupsForEntityReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-01-06 18:16:52 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
Groups []*logical.Group `sentinel:"" protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
|
|
|
|
Err string `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2020-01-06 18:16:52 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *GroupsForEntityReply) Reset() {
|
|
|
|
*x = GroupsForEntityReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[42]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-01-06 18:16:52 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *GroupsForEntityReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-01-06 18:16:52 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*GroupsForEntityReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GroupsForEntityReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[42]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-01-06 18:16:52 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use GroupsForEntityReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GroupsForEntityReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{42}
|
|
|
|
}
|
2020-01-06 18:16:52 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *GroupsForEntityReply) GetGroups() []*logical.Group {
|
|
|
|
if x != nil {
|
|
|
|
return x.Groups
|
2020-01-06 18:16:52 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *GroupsForEntityReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2020-01-06 18:16:52 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-08-03 16:32:17 +00:00
|
|
|
type PluginEnvReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-08-03 16:32:17 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
PluginEnvironment *logical.PluginEnvironment `sentinel:"" protobuf:"bytes,1,opt,name=plugin_environment,json=pluginEnvironment,proto3" json:"plugin_environment,omitempty"`
|
|
|
|
Err string `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
|
2018-08-03 16:32:17 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PluginEnvReply) Reset() {
|
|
|
|
*x = PluginEnvReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[43]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-08-03 16:32:17 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *PluginEnvReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-08-03 16:32:17 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*PluginEnvReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PluginEnvReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[43]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-08-03 16:32:17 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use PluginEnvReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PluginEnvReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{43}
|
|
|
|
}
|
2018-08-03 16:32:17 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PluginEnvReply) GetPluginEnvironment() *logical.PluginEnvironment {
|
|
|
|
if x != nil {
|
|
|
|
return x.PluginEnvironment
|
2018-08-03 16:32:17 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PluginEnvReply) GetErr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Err
|
2018-08-03 16:32:17 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-27 18:28:00 +00:00
|
|
|
type GeneratePasswordFromPolicyRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
PolicyName string `sentinel:"" protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyRequest) Reset() {
|
|
|
|
*x = GeneratePasswordFromPolicyRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[44]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GeneratePasswordFromPolicyRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[44]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use GeneratePasswordFromPolicyRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GeneratePasswordFromPolicyRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{44}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyRequest) GetPolicyName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.PolicyName
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type GeneratePasswordFromPolicyReply struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Password string `sentinel:"" protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyReply) Reset() {
|
|
|
|
*x = GeneratePasswordFromPolicyReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[45]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GeneratePasswordFromPolicyReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[45]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use GeneratePasswordFromPolicyReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GeneratePasswordFromPolicyReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{45}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GeneratePasswordFromPolicyReply) GetPassword() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Password
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-02-17 01:41:01 +00:00
|
|
|
type Connection struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-02-17 01:41:01 +00:00
|
|
|
// RemoteAddr is the network address that sent the request.
|
2020-05-14 22:45:10 +00:00
|
|
|
RemoteAddr string `sentinel:"" protobuf:"bytes,1,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
|
2018-02-17 01:41:01 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Connection) Reset() {
|
|
|
|
*x = Connection{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-05-27 18:28:00 +00:00
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[46]
|
2020-05-14 22:45:10 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Connection) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*Connection) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Connection) ProtoReflect() protoreflect.Message {
|
2020-05-27 18:28:00 +00:00
|
|
|
mi := &file_sdk_plugin_pb_backend_proto_msgTypes[46]
|
2020-05-14 22:45:10 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use Connection.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Connection) Descriptor() ([]byte, []int) {
|
2020-05-27 18:28:00 +00:00
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescGZIP(), []int{46}
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
2018-02-17 01:41:01 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *Connection) GetRemoteAddr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.RemoteAddr
|
2018-02-17 01:41:01 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
var File_sdk_plugin_pb_backend_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_sdk_plugin_pb_backend_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x1b, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x70, 0x62, 0x2f,
|
|
|
|
0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
|
|
|
|
0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
|
|
|
0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x1a, 0x1a, 0x73, 0x64, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2f,
|
|
|
|
0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18,
|
|
|
|
0x73, 0x64, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67,
|
|
|
|
0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74,
|
|
|
|
0x79, 0x22, 0x20, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68,
|
|
|
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x61,
|
|
|
|
0x64, 0x65, 0x72, 0x22, 0x5b, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x72, 0x72, 0x6f,
|
|
|
|
0x72, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x72, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x0d, 0x52, 0x07, 0x65, 0x72, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07,
|
|
|
|
0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65,
|
|
|
|
0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x72, 0x72, 0x5f, 0x63, 0x6f, 0x64,
|
|
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65,
|
|
|
|
0x22, 0x96, 0x01, 0x0a, 0x05, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f,
|
|
|
|
0x6f, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x12, 0x28,
|
|
|
|
0x0a, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65,
|
|
|
|
0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65,
|
|
|
|
0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61,
|
|
|
|
0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52,
|
|
|
|
0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a,
|
|
|
|
0x11, 0x73, 0x65, 0x61, 0x6c, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61,
|
|
|
|
0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x61, 0x6c, 0x57, 0x72,
|
|
|
|
0x61, 0x70, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x22, 0xbf, 0x06, 0x0a, 0x07, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x12, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c,
|
|
|
|
0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
|
|
|
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x06, 0x73,
|
|
|
|
0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
|
|
|
|
0x1c, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e,
|
|
|
|
0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x32, 0x0a,
|
|
|
|
0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64,
|
|
|
|
0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
|
|
0x73, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
|
|
|
|
0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x0a, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70,
|
|
|
|
0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
|
|
|
0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d,
|
|
|
|
0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
|
|
|
|
0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6d,
|
|
|
|
0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x0e, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
|
0x6f, 0x72, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x72, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18,
|
|
|
|
0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x57, 0x72, 0x61, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x77, 0x72, 0x61, 0x70,
|
|
|
|
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3d, 0x0a, 0x1b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x75,
|
|
|
|
0x73, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
|
|
|
0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x55,
|
|
|
|
0x73, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64,
|
|
|
|
0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64,
|
|
|
|
0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72,
|
|
|
|
0x69, 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x6f, 0x6c, 0x69, 0x63,
|
|
|
|
0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x6e, 0x61,
|
|
|
|
0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01,
|
|
|
|
0x28, 0x08, 0x52, 0x0f, 0x75, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61,
|
|
|
|
0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f,
|
|
|
|
0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e,
|
|
|
|
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x1a, 0x46, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e,
|
|
|
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
|
|
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe6, 0x05, 0x0a, 0x04,
|
|
|
|
0x41, 0x75, 0x74, 0x68, 0x12, 0x35, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x6c,
|
|
|
|
0x65, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69,
|
|
|
|
0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61,
|
|
|
|
0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,
|
|
|
|
0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18,
|
|
|
|
0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12,
|
|
|
|
0x32, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28,
|
|
|
|
0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x4d, 0x65, 0x74, 0x61,
|
|
|
|
0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
|
|
|
|
0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
|
|
|
0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
|
0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
|
0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x08, 0x20, 0x01,
|
|
|
|
0x28, 0x03, 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x75,
|
|
|
|
0x6d, 0x5f, 0x75, 0x73, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x75,
|
|
|
|
0x6d, 0x55, 0x73, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f,
|
|
|
|
0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
|
|
|
|
0x49, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28,
|
|
|
|
0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x6c, 0x69, 0x61,
|
|
|
|
0x73, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x33, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75,
|
|
|
|
0x70, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
|
|
0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52,
|
|
|
|
0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x1f, 0x0a,
|
|
|
|
0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03,
|
|
|
|
0x28, 0x09, 0x52, 0x0a, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x69, 0x64, 0x72, 0x73, 0x12, 0x25,
|
|
|
|
0x0a, 0x0e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
|
|
|
|
0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x6f, 0x6c,
|
|
|
|
0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
|
|
|
|
0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09,
|
|
|
|
0x52, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,
|
|
|
|
0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x5f, 0x6d,
|
|
|
|
0x61, 0x78, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, 0x78,
|
|
|
|
0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x4d, 0x61, 0x78, 0x54, 0x74, 0x6c, 0x12, 0x1d, 0x0a, 0x0a,
|
|
|
|
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0d,
|
|
|
|
0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x6e,
|
|
|
|
0x6f, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
|
|
|
0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6e, 0x6f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c,
|
|
|
|
0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64,
|
|
|
|
0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
|
|
|
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
|
|
0x3a, 0x02, 0x38, 0x01, 0x22, 0xca, 0x04, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x45, 0x6e,
|
|
|
|
0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12,
|
|
|
|
0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63,
|
|
|
|
0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63,
|
|
|
|
0x69, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18,
|
|
|
|
0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
|
|
|
0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
|
|
|
|
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
|
|
|
|
0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x75, 0x6d, 0x5f,
|
|
|
|
0x75, 0x73, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x55,
|
|
|
|
0x73, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
|
|
|
|
0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18,
|
|
|
|
0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78,
|
|
|
|
0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x0b,
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x4d, 0x61,
|
|
|
|
0x78, 0x54, 0x74, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69,
|
|
|
|
0x6f, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64,
|
|
|
|
0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a,
|
|
|
|
0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x73, 0x18, 0x0f, 0x20, 0x03,
|
|
|
|
0x28, 0x09, 0x52, 0x0a, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x69, 0x64, 0x72, 0x73, 0x12, 0x21,
|
|
|
|
0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x10,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49,
|
|
|
|
0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x75, 0x62, 0x62, 0x79, 0x68, 0x6f, 0x6c, 0x65, 0x5f, 0x69,
|
|
|
|
0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x62, 0x62, 0x79, 0x68, 0x6f,
|
|
|
|
0x6c, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x12, 0x20, 0x01,
|
|
|
|
0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61,
|
|
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
|
|
|
0x01, 0x22, 0xaf, 0x01, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f,
|
|
|
|
0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x54, 0x54, 0x4c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
0x03, 0x54, 0x54, 0x4c, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x62, 0x6c,
|
|
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x62,
|
|
|
|
0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18,
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74,
|
|
|
|
0x12, 0x39, 0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04,
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
|
|
|
0x52, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x4d,
|
|
|
|
0x61, 0x78, 0x54, 0x54, 0x4c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x4d, 0x61, 0x78,
|
|
|
|
0x54, 0x54, 0x4c, 0x22, 0x7f, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x35, 0x0a,
|
|
|
|
0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x4f,
|
|
|
|
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
|
|
|
|
0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74,
|
|
|
|
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61,
|
|
|
|
0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x65, 0x61,
|
|
|
|
0x73, 0x65, 0x49, 0x64, 0x22, 0xc8, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x06, 0x73,
|
|
|
|
0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61,
|
|
|
|
0x75, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72,
|
|
|
|
0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72,
|
|
|
|
0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18,
|
|
|
|
0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12,
|
|
|
|
0x31, 0x0a, 0x09, 0x77, 0x72, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x57, 0x72, 0x61, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x77, 0x72, 0x61, 0x70, 0x49, 0x6e,
|
|
|
|
0x66, 0x6f, 0x12, 0x33, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07,
|
|
|
|
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x46, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65,
|
|
|
|
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
|
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x65,
|
|
|
|
0x61, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
|
|
|
|
0xc8, 0x02, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70,
|
|
|
|
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x54, 0x54, 0x4c, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x03, 0x52, 0x03, 0x54, 0x54, 0x4c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
|
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
|
|
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65,
|
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x77, 0x72, 0x61,
|
|
|
|
0x70, 0x70, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x05, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x41, 0x63, 0x63, 0x65,
|
|
|
|
0x73, 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x5f,
|
|
|
|
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x0f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64,
|
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1b, 0x0a,
|
|
|
|
0x09, 0x73, 0x65, 0x61, 0x6c, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
0x52, 0x08, 0x73, 0x65, 0x61, 0x6c, 0x57, 0x72, 0x61, 0x70, 0x22, 0x58, 0x0a, 0x0f, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x72, 0x61, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a,
|
|
|
|
0x03, 0x54, 0x54, 0x4c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x54, 0x54, 0x4c, 0x12,
|
|
|
|
0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x61, 0x6c, 0x5f,
|
|
|
|
0x77, 0x72, 0x61, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, 0x61, 0x6c,
|
|
|
|
0x57, 0x72, 0x61, 0x70, 0x22, 0x59, 0x0a, 0x11, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x72, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x6f,
|
|
|
|
0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73,
|
|
|
|
0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
|
|
|
0x60, 0x0a, 0x12, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
0x20, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x03, 0x65, 0x72,
|
|
|
|
0x72, 0x22, 0x10, 0x0a, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x41,
|
|
|
|
0x72, 0x67, 0x73, 0x22, 0x33, 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a,
|
|
|
|
0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x72,
|
|
|
|
0x72, 0x6f, 0x72, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x34, 0x0a, 0x11, 0x53, 0x70, 0x65, 0x63,
|
|
|
|
0x69, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1f, 0x0a,
|
|
|
|
0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x22, 0x60,
|
|
|
|
0x0a, 0x18, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63,
|
|
|
|
0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x72, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74,
|
|
|
|
0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09,
|
|
|
|
0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x07, 0x72, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e,
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x22, 0x76, 0x0a, 0x19, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x65,
|
|
|
|
0x6e, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1f, 0x0a,
|
|
|
|
0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x08, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x16,
|
|
|
|
0x0a, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06,
|
|
|
|
0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x03, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x72,
|
|
|
|
0x72, 0x6f, 0x72, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0xb8, 0x01, 0x0a, 0x09, 0x53, 0x65, 0x74,
|
|
|
|
0x75, 0x70, 0x41, 0x72, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72,
|
|
|
|
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x72, 0x6f, 0x6b, 0x65,
|
|
|
|
0x72, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x72,
|
|
|
|
0x67, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06,
|
|
|
|
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
|
|
|
|
0x64, 0x55, 0x55, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x61, 0x63,
|
|
|
|
0x6b, 0x65, 0x6e, 0x64, 0x55, 0x55, 0x49, 0x44, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66,
|
|
|
|
0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
|
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
|
|
|
0x02, 0x38, 0x01, 0x22, 0x1e, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x75, 0x70, 0x52, 0x65, 0x70, 0x6c,
|
|
|
|
0x79, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
|
|
0x65, 0x72, 0x72, 0x22, 0x1f, 0x0a, 0x09, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04,
|
|
|
|
0x74, 0x79, 0x70, 0x65, 0x22, 0x25, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
|
|
|
|
0x74, 0x65, 0x4b, 0x65, 0x79, 0x41, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x53, 0x0a, 0x0c, 0x53,
|
|
|
|
0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
|
|
|
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
|
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61,
|
|
|
|
0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x61, 0x6c, 0x5f, 0x77, 0x72, 0x61, 0x70,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, 0x61, 0x6c, 0x57, 0x72, 0x61, 0x70,
|
|
|
|
0x22, 0x29, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x41,
|
|
|
|
0x72, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x38, 0x0a, 0x10, 0x53,
|
|
|
|
0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
|
|
|
|
0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b,
|
|
|
|
0x65, 0x79, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x22, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
|
|
|
0x47, 0x65, 0x74, 0x41, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x4b, 0x0a, 0x0f, 0x53, 0x74, 0x6f,
|
|
|
|
0x72, 0x61, 0x67, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x0a, 0x05,
|
|
|
|
0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65,
|
|
|
|
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x38, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67,
|
|
|
|
0x65, 0x50, 0x75, 0x74, 0x41, 0x72, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72,
|
|
|
|
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f,
|
|
|
|
0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79,
|
|
|
|
0x22, 0x23, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x75, 0x74, 0x52, 0x65,
|
|
|
|
0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x25, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
|
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
|
|
|
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x26, 0x0a, 0x12,
|
|
|
|
0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70,
|
|
|
|
0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x03, 0x65, 0x72, 0x72, 0x22, 0x1c, 0x0a, 0x08, 0x54, 0x54, 0x4c, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x54, 0x54, 0x4c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x54,
|
|
|
|
0x54, 0x4c, 0x22, 0x28, 0x0a, 0x0c, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70,
|
|
|
|
0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x22, 0x32, 0x0a, 0x14,
|
|
|
|
0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52,
|
|
|
|
0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
|
|
|
0x22, 0x2d, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
|
|
|
|
0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22,
|
|
|
|
0x4e, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70, 0x44,
|
|
|
|
0x61, 0x74, 0x61, 0x41, 0x72, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x54,
|
|
|
|
0x54, 0x4c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x54, 0x54, 0x4c, 0x12, 0x10, 0x0a,
|
|
|
|
0x03, 0x4a, 0x57, 0x54, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x4a, 0x57, 0x54, 0x22,
|
|
|
|
0x5c, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70, 0x44,
|
|
|
|
0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x31, 0x0a, 0x09, 0x77, 0x72, 0x61, 0x70,
|
|
|
|
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70, 0x49, 0x6e, 0x66,
|
|
|
|
0x6f, 0x52, 0x08, 0x77, 0x72, 0x61, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x65,
|
|
|
|
0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x72, 0x72, 0x22, 0x2d, 0x0a,
|
|
|
|
0x11, 0x4d, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70,
|
|
|
|
0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x27, 0x0a, 0x0f,
|
|
|
|
0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
|
|
|
0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x22, 0x2d, 0x0a, 0x0e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49,
|
|
|
|
0x6e, 0x66, 0x6f, 0x41, 0x72, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x69, 0x74,
|
|
|
|
0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69,
|
|
|
|
0x74, 0x79, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x0f, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e,
|
|
|
|
0x66, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x27, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74,
|
|
|
|
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61,
|
|
|
|
0x6c, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65,
|
|
|
|
0x72, 0x72, 0x22, 0x50, 0x0a, 0x14, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x45,
|
|
|
|
0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x67, 0x72,
|
|
|
|
0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67,
|
|
|
|
0x69, 0x63, 0x61, 0x6c, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75,
|
|
|
|
0x70, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x03, 0x65, 0x72, 0x72, 0x22, 0x6d, 0x0a, 0x0e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6e,
|
|
|
|
0x76, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x49, 0x0a, 0x12, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
|
|
|
|
0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x50, 0x6c, 0x75,
|
|
|
|
0x67, 0x69, 0x6e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x11,
|
|
|
|
0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
|
|
|
|
0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
2020-05-27 18:28:00 +00:00
|
|
|
0x65, 0x72, 0x72, 0x22, 0x44, 0x0a, 0x21, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x50,
|
|
|
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
|
|
|
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69,
|
|
|
|
0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70,
|
|
|
|
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x1f, 0x47, 0x65, 0x6e,
|
|
|
|
0x65, 0x72, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x72, 0x6f,
|
|
|
|
0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
|
0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2d, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e,
|
|
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65,
|
|
|
|
0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d,
|
|
|
|
0x6f, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x32, 0xa5, 0x03, 0x0a, 0x07, 0x42, 0x61, 0x63, 0x6b,
|
|
|
|
0x65, 0x6e, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65,
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x16, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65,
|
|
|
|
0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a, 0x0c, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x50, 0x61,
|
|
|
|
0x74, 0x68, 0x73, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15,
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x73,
|
|
|
|
0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x53, 0x0a, 0x14, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x45,
|
|
|
|
0x78, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1c, 0x2e,
|
|
|
|
0x70, 0x62, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x65, 0x6e,
|
|
|
|
0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x1d, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x65,
|
|
|
|
0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1f, 0x0a, 0x07, 0x43, 0x6c,
|
|
|
|
0x65, 0x61, 0x6e, 0x75, 0x70, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
|
|
|
|
0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x31, 0x0a, 0x0d, 0x49,
|
|
|
|
0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x15, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x41,
|
|
|
|
0x72, 0x67, 0x73, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x26,
|
|
|
|
0x0a, 0x05, 0x53, 0x65, 0x74, 0x75, 0x70, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x74,
|
|
|
|
0x75, 0x70, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x74, 0x75,
|
|
|
|
0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x35, 0x0a, 0x0a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61,
|
|
|
|
0x6c, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61,
|
|
|
|
0x6c, 0x69, 0x7a, 0x65, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e,
|
|
|
|
0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x0a,
|
|
|
|
0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
|
|
|
|
0x1a, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x32,
|
|
|
|
0xd5, 0x01, 0x0a, 0x07, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x4c,
|
|
|
|
0x69, 0x73, 0x74, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
|
|
|
0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74,
|
|
|
|
0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2e,
|
|
|
|
0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61,
|
|
|
|
0x67, 0x65, 0x47, 0x65, 0x74, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53,
|
|
|
|
0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2e,
|
|
|
|
0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61,
|
|
|
|
0x67, 0x65, 0x50, 0x75, 0x74, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53,
|
|
|
|
0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x75, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x37,
|
|
|
|
0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74,
|
|
|
|
0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x1a,
|
|
|
|
0x16, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x65,
|
|
|
|
0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x32, 0xb1, 0x05, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74,
|
|
|
|
0x65, 0x6d, 0x56, 0x69, 0x65, 0x77, 0x12, 0x2a, 0x0a, 0x0f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c,
|
|
|
|
0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x54, 0x54, 0x4c, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45,
|
|
|
|
0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x54, 0x4c, 0x52, 0x65, 0x70,
|
|
|
|
0x6c, 0x79, 0x12, 0x26, 0x0a, 0x0b, 0x4d, 0x61, 0x78, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x54, 0x54,
|
|
|
|
0x4c, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0c, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x54, 0x54, 0x4c, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x0a, 0x07, 0x54, 0x61,
|
|
|
|
0x69, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
|
|
|
|
0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70,
|
|
|
|
0x6c, 0x79, 0x12, 0x36, 0x0a, 0x0f, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x73,
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
|
|
|
|
0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x73,
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x38, 0x0a, 0x10, 0x52, 0x65,
|
|
|
|
0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x09,
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
|
|
|
0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
|
|
|
|
0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x57, 0x72, 0x61, 0x70, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70, 0x44, 0x61, 0x74, 0x61, 0x41, 0x72,
|
|
|
|
0x67, 0x73, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x57, 0x72, 0x61, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a,
|
|
|
|
0x0c, 0x4d, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x09, 0x2e,
|
|
|
|
0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x6c,
|
|
|
|
0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
|
|
|
|
0x2c, 0x0a, 0x0a, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x09, 0x2e,
|
|
|
|
0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f,
|
|
|
|
0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x35, 0x0a,
|
|
|
|
0x0a, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x67, 0x73, 0x1a,
|
|
|
|
0x13, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
|
|
|
0x65, 0x70, 0x6c, 0x79, 0x12, 0x2a, 0x0a, 0x09, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6e,
|
|
|
|
0x76, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6e, 0x76, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
|
|
|
0x12, 0x3f, 0x0a, 0x0f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x45, 0x6e, 0x74,
|
|
|
|
0x69, 0x74, 0x79, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49,
|
|
|
|
0x6e, 0x66, 0x6f, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x72, 0x6f,
|
|
|
|
0x75, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x70, 0x6c,
|
|
|
|
0x79, 0x12, 0x68, 0x0a, 0x1a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73,
|
|
|
|
0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,
|
|
|
|
0x25, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73,
|
|
|
|
0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x6e, 0x65,
|
|
|
|
0x72, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x72, 0x6f, 0x6d,
|
|
|
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x2a, 0x5a, 0x28, 0x67,
|
|
|
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63,
|
|
|
|
0x6f, 0x72, 0x70, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x6c,
|
|
|
|
0x75, 0x67, 0x69, 0x6e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_sdk_plugin_pb_backend_proto_rawDescOnce sync.Once
|
|
|
|
file_sdk_plugin_pb_backend_proto_rawDescData = file_sdk_plugin_pb_backend_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_sdk_plugin_pb_backend_proto_rawDescGZIP() []byte {
|
|
|
|
file_sdk_plugin_pb_backend_proto_rawDescOnce.Do(func() {
|
|
|
|
file_sdk_plugin_pb_backend_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_plugin_pb_backend_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_sdk_plugin_pb_backend_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2020-05-27 18:28:00 +00:00
|
|
|
var file_sdk_plugin_pb_backend_proto_msgTypes = make([]protoimpl.MessageInfo, 52)
|
2020-05-14 22:45:10 +00:00
|
|
|
var file_sdk_plugin_pb_backend_proto_goTypes = []interface{}{
|
2020-05-27 18:28:00 +00:00
|
|
|
(*Empty)(nil), // 0: pb.Empty
|
|
|
|
(*Header)(nil), // 1: pb.Header
|
|
|
|
(*ProtoError)(nil), // 2: pb.ProtoError
|
|
|
|
(*Paths)(nil), // 3: pb.Paths
|
|
|
|
(*Request)(nil), // 4: pb.Request
|
|
|
|
(*Auth)(nil), // 5: pb.Auth
|
|
|
|
(*TokenEntry)(nil), // 6: pb.TokenEntry
|
|
|
|
(*LeaseOptions)(nil), // 7: pb.LeaseOptions
|
|
|
|
(*Secret)(nil), // 8: pb.Secret
|
|
|
|
(*Response)(nil), // 9: pb.Response
|
|
|
|
(*ResponseWrapInfo)(nil), // 10: pb.ResponseWrapInfo
|
|
|
|
(*RequestWrapInfo)(nil), // 11: pb.RequestWrapInfo
|
|
|
|
(*HandleRequestArgs)(nil), // 12: pb.HandleRequestArgs
|
|
|
|
(*HandleRequestReply)(nil), // 13: pb.HandleRequestReply
|
|
|
|
(*InitializeArgs)(nil), // 14: pb.InitializeArgs
|
|
|
|
(*InitializeReply)(nil), // 15: pb.InitializeReply
|
|
|
|
(*SpecialPathsReply)(nil), // 16: pb.SpecialPathsReply
|
|
|
|
(*HandleExistenceCheckArgs)(nil), // 17: pb.HandleExistenceCheckArgs
|
|
|
|
(*HandleExistenceCheckReply)(nil), // 18: pb.HandleExistenceCheckReply
|
|
|
|
(*SetupArgs)(nil), // 19: pb.SetupArgs
|
|
|
|
(*SetupReply)(nil), // 20: pb.SetupReply
|
|
|
|
(*TypeReply)(nil), // 21: pb.TypeReply
|
|
|
|
(*InvalidateKeyArgs)(nil), // 22: pb.InvalidateKeyArgs
|
|
|
|
(*StorageEntry)(nil), // 23: pb.StorageEntry
|
|
|
|
(*StorageListArgs)(nil), // 24: pb.StorageListArgs
|
|
|
|
(*StorageListReply)(nil), // 25: pb.StorageListReply
|
|
|
|
(*StorageGetArgs)(nil), // 26: pb.StorageGetArgs
|
|
|
|
(*StorageGetReply)(nil), // 27: pb.StorageGetReply
|
|
|
|
(*StoragePutArgs)(nil), // 28: pb.StoragePutArgs
|
|
|
|
(*StoragePutReply)(nil), // 29: pb.StoragePutReply
|
|
|
|
(*StorageDeleteArgs)(nil), // 30: pb.StorageDeleteArgs
|
|
|
|
(*StorageDeleteReply)(nil), // 31: pb.StorageDeleteReply
|
|
|
|
(*TTLReply)(nil), // 32: pb.TTLReply
|
|
|
|
(*TaintedReply)(nil), // 33: pb.TaintedReply
|
|
|
|
(*CachingDisabledReply)(nil), // 34: pb.CachingDisabledReply
|
|
|
|
(*ReplicationStateReply)(nil), // 35: pb.ReplicationStateReply
|
|
|
|
(*ResponseWrapDataArgs)(nil), // 36: pb.ResponseWrapDataArgs
|
|
|
|
(*ResponseWrapDataReply)(nil), // 37: pb.ResponseWrapDataReply
|
|
|
|
(*MlockEnabledReply)(nil), // 38: pb.MlockEnabledReply
|
|
|
|
(*LocalMountReply)(nil), // 39: pb.LocalMountReply
|
|
|
|
(*EntityInfoArgs)(nil), // 40: pb.EntityInfoArgs
|
|
|
|
(*EntityInfoReply)(nil), // 41: pb.EntityInfoReply
|
|
|
|
(*GroupsForEntityReply)(nil), // 42: pb.GroupsForEntityReply
|
|
|
|
(*PluginEnvReply)(nil), // 43: pb.PluginEnvReply
|
|
|
|
(*GeneratePasswordFromPolicyRequest)(nil), // 44: pb.GeneratePasswordFromPolicyRequest
|
|
|
|
(*GeneratePasswordFromPolicyReply)(nil), // 45: pb.GeneratePasswordFromPolicyReply
|
|
|
|
(*Connection)(nil), // 46: pb.Connection
|
|
|
|
nil, // 47: pb.Request.HeadersEntry
|
|
|
|
nil, // 48: pb.Auth.MetadataEntry
|
|
|
|
nil, // 49: pb.TokenEntry.MetaEntry
|
|
|
|
nil, // 50: pb.Response.HeadersEntry
|
|
|
|
nil, // 51: pb.SetupArgs.ConfigEntry
|
|
|
|
(*logical.Alias)(nil), // 52: logical.Alias
|
2021-05-03 23:56:06 +00:00
|
|
|
(*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp
|
2020-05-27 18:28:00 +00:00
|
|
|
(*logical.Entity)(nil), // 54: logical.Entity
|
|
|
|
(*logical.Group)(nil), // 55: logical.Group
|
|
|
|
(*logical.PluginEnvironment)(nil), // 56: logical.PluginEnvironment
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
|
|
|
var file_sdk_plugin_pb_backend_proto_depIDxs = []int32{
|
|
|
|
8, // 0: pb.Request.secret:type_name -> pb.Secret
|
|
|
|
5, // 1: pb.Request.auth:type_name -> pb.Auth
|
2020-05-27 18:28:00 +00:00
|
|
|
47, // 2: pb.Request.headers:type_name -> pb.Request.HeadersEntry
|
2020-05-14 22:45:10 +00:00
|
|
|
11, // 3: pb.Request.wrap_info:type_name -> pb.RequestWrapInfo
|
2020-05-27 18:28:00 +00:00
|
|
|
46, // 4: pb.Request.connection:type_name -> pb.Connection
|
2020-05-14 22:45:10 +00:00
|
|
|
7, // 5: pb.Auth.lease_options:type_name -> pb.LeaseOptions
|
2020-05-27 18:28:00 +00:00
|
|
|
48, // 6: pb.Auth.metadata:type_name -> pb.Auth.MetadataEntry
|
|
|
|
52, // 7: pb.Auth.alias:type_name -> logical.Alias
|
|
|
|
52, // 8: pb.Auth.group_aliases:type_name -> logical.Alias
|
|
|
|
49, // 9: pb.TokenEntry.meta:type_name -> pb.TokenEntry.MetaEntry
|
|
|
|
53, // 10: pb.LeaseOptions.issue_time:type_name -> google.protobuf.Timestamp
|
2020-05-14 22:45:10 +00:00
|
|
|
7, // 11: pb.Secret.lease_options:type_name -> pb.LeaseOptions
|
|
|
|
8, // 12: pb.Response.secret:type_name -> pb.Secret
|
|
|
|
5, // 13: pb.Response.auth:type_name -> pb.Auth
|
|
|
|
10, // 14: pb.Response.wrap_info:type_name -> pb.ResponseWrapInfo
|
2020-05-27 18:28:00 +00:00
|
|
|
50, // 15: pb.Response.headers:type_name -> pb.Response.HeadersEntry
|
|
|
|
53, // 16: pb.ResponseWrapInfo.creation_time:type_name -> google.protobuf.Timestamp
|
2020-05-14 22:45:10 +00:00
|
|
|
4, // 17: pb.HandleRequestArgs.request:type_name -> pb.Request
|
|
|
|
9, // 18: pb.HandleRequestReply.response:type_name -> pb.Response
|
|
|
|
2, // 19: pb.HandleRequestReply.err:type_name -> pb.ProtoError
|
|
|
|
2, // 20: pb.InitializeReply.err:type_name -> pb.ProtoError
|
|
|
|
3, // 21: pb.SpecialPathsReply.paths:type_name -> pb.Paths
|
|
|
|
4, // 22: pb.HandleExistenceCheckArgs.request:type_name -> pb.Request
|
|
|
|
2, // 23: pb.HandleExistenceCheckReply.err:type_name -> pb.ProtoError
|
2020-05-27 18:28:00 +00:00
|
|
|
51, // 24: pb.SetupArgs.Config:type_name -> pb.SetupArgs.ConfigEntry
|
2020-05-14 22:45:10 +00:00
|
|
|
23, // 25: pb.StorageGetReply.entry:type_name -> pb.StorageEntry
|
|
|
|
23, // 26: pb.StoragePutArgs.entry:type_name -> pb.StorageEntry
|
|
|
|
10, // 27: pb.ResponseWrapDataReply.wrap_info:type_name -> pb.ResponseWrapInfo
|
2020-05-27 18:28:00 +00:00
|
|
|
54, // 28: pb.EntityInfoReply.entity:type_name -> logical.Entity
|
|
|
|
55, // 29: pb.GroupsForEntityReply.groups:type_name -> logical.Group
|
|
|
|
56, // 30: pb.PluginEnvReply.plugin_environment:type_name -> logical.PluginEnvironment
|
2020-05-14 22:45:10 +00:00
|
|
|
1, // 31: pb.Request.HeadersEntry.value:type_name -> pb.Header
|
|
|
|
1, // 32: pb.Response.HeadersEntry.value:type_name -> pb.Header
|
|
|
|
12, // 33: pb.Backend.HandleRequest:input_type -> pb.HandleRequestArgs
|
|
|
|
0, // 34: pb.Backend.SpecialPaths:input_type -> pb.Empty
|
|
|
|
17, // 35: pb.Backend.HandleExistenceCheck:input_type -> pb.HandleExistenceCheckArgs
|
|
|
|
0, // 36: pb.Backend.Cleanup:input_type -> pb.Empty
|
|
|
|
22, // 37: pb.Backend.InvalidateKey:input_type -> pb.InvalidateKeyArgs
|
|
|
|
19, // 38: pb.Backend.Setup:input_type -> pb.SetupArgs
|
|
|
|
14, // 39: pb.Backend.Initialize:input_type -> pb.InitializeArgs
|
|
|
|
0, // 40: pb.Backend.Type:input_type -> pb.Empty
|
|
|
|
24, // 41: pb.Storage.List:input_type -> pb.StorageListArgs
|
|
|
|
26, // 42: pb.Storage.Get:input_type -> pb.StorageGetArgs
|
|
|
|
28, // 43: pb.Storage.Put:input_type -> pb.StoragePutArgs
|
|
|
|
30, // 44: pb.Storage.Delete:input_type -> pb.StorageDeleteArgs
|
|
|
|
0, // 45: pb.SystemView.DefaultLeaseTTL:input_type -> pb.Empty
|
|
|
|
0, // 46: pb.SystemView.MaxLeaseTTL:input_type -> pb.Empty
|
|
|
|
0, // 47: pb.SystemView.Tainted:input_type -> pb.Empty
|
|
|
|
0, // 48: pb.SystemView.CachingDisabled:input_type -> pb.Empty
|
|
|
|
0, // 49: pb.SystemView.ReplicationState:input_type -> pb.Empty
|
|
|
|
36, // 50: pb.SystemView.ResponseWrapData:input_type -> pb.ResponseWrapDataArgs
|
|
|
|
0, // 51: pb.SystemView.MlockEnabled:input_type -> pb.Empty
|
|
|
|
0, // 52: pb.SystemView.LocalMount:input_type -> pb.Empty
|
|
|
|
40, // 53: pb.SystemView.EntityInfo:input_type -> pb.EntityInfoArgs
|
|
|
|
0, // 54: pb.SystemView.PluginEnv:input_type -> pb.Empty
|
|
|
|
40, // 55: pb.SystemView.GroupsForEntity:input_type -> pb.EntityInfoArgs
|
2020-05-27 18:28:00 +00:00
|
|
|
44, // 56: pb.SystemView.GeneratePasswordFromPolicy:input_type -> pb.GeneratePasswordFromPolicyRequest
|
|
|
|
13, // 57: pb.Backend.HandleRequest:output_type -> pb.HandleRequestReply
|
|
|
|
16, // 58: pb.Backend.SpecialPaths:output_type -> pb.SpecialPathsReply
|
|
|
|
18, // 59: pb.Backend.HandleExistenceCheck:output_type -> pb.HandleExistenceCheckReply
|
|
|
|
0, // 60: pb.Backend.Cleanup:output_type -> pb.Empty
|
|
|
|
0, // 61: pb.Backend.InvalidateKey:output_type -> pb.Empty
|
|
|
|
20, // 62: pb.Backend.Setup:output_type -> pb.SetupReply
|
|
|
|
15, // 63: pb.Backend.Initialize:output_type -> pb.InitializeReply
|
|
|
|
21, // 64: pb.Backend.Type:output_type -> pb.TypeReply
|
|
|
|
25, // 65: pb.Storage.List:output_type -> pb.StorageListReply
|
|
|
|
27, // 66: pb.Storage.Get:output_type -> pb.StorageGetReply
|
|
|
|
29, // 67: pb.Storage.Put:output_type -> pb.StoragePutReply
|
|
|
|
31, // 68: pb.Storage.Delete:output_type -> pb.StorageDeleteReply
|
|
|
|
32, // 69: pb.SystemView.DefaultLeaseTTL:output_type -> pb.TTLReply
|
|
|
|
32, // 70: pb.SystemView.MaxLeaseTTL:output_type -> pb.TTLReply
|
|
|
|
33, // 71: pb.SystemView.Tainted:output_type -> pb.TaintedReply
|
|
|
|
34, // 72: pb.SystemView.CachingDisabled:output_type -> pb.CachingDisabledReply
|
|
|
|
35, // 73: pb.SystemView.ReplicationState:output_type -> pb.ReplicationStateReply
|
|
|
|
37, // 74: pb.SystemView.ResponseWrapData:output_type -> pb.ResponseWrapDataReply
|
|
|
|
38, // 75: pb.SystemView.MlockEnabled:output_type -> pb.MlockEnabledReply
|
|
|
|
39, // 76: pb.SystemView.LocalMount:output_type -> pb.LocalMountReply
|
|
|
|
41, // 77: pb.SystemView.EntityInfo:output_type -> pb.EntityInfoReply
|
|
|
|
43, // 78: pb.SystemView.PluginEnv:output_type -> pb.PluginEnvReply
|
|
|
|
42, // 79: pb.SystemView.GroupsForEntity:output_type -> pb.GroupsForEntityReply
|
|
|
|
45, // 80: pb.SystemView.GeneratePasswordFromPolicy:output_type -> pb.GeneratePasswordFromPolicyReply
|
|
|
|
57, // [57:81] is the sub-list for method output_type
|
|
|
|
33, // [33:57] is the sub-list for method input_type
|
2020-05-14 22:45:10 +00:00
|
|
|
33, // [33:33] is the sub-list for extension type_name
|
|
|
|
33, // [33:33] is the sub-list for extension extendee
|
|
|
|
0, // [0:33] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_sdk_plugin_pb_backend_proto_init() }
|
|
|
|
func file_sdk_plugin_pb_backend_proto_init() {
|
|
|
|
if File_sdk_plugin_pb_backend_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Empty); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Header); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ProtoError); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Paths); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Request); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Auth); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*TokenEntry); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*LeaseOptions); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Secret); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Response); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ResponseWrapInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*RequestWrapInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*HandleRequestArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*HandleRequestReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*InitializeArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*InitializeReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SpecialPathsReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*HandleExistenceCheckArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*HandleExistenceCheckReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SetupArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SetupReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*TypeReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*InvalidateKeyArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageEntry); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageListArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageListReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageGetArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageGetReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StoragePutArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StoragePutReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageDeleteArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StorageDeleteReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*TTLReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*TaintedReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CachingDisabledReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ReplicationStateReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ResponseWrapDataArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ResponseWrapDataReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*MlockEnabledReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*LocalMountReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EntityInfoArgs); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EntityInfoReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GroupsForEntityReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PluginEnvReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {
|
2020-05-27 18:28:00 +00:00
|
|
|
switch v := v.(*GeneratePasswordFromPolicyRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GeneratePasswordFromPolicyReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_sdk_plugin_pb_backend_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {
|
2020-05-14 22:45:10 +00:00
|
|
|
switch v := v.(*Connection); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_sdk_plugin_pb_backend_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2020-05-27 18:28:00 +00:00
|
|
|
NumMessages: 52,
|
2020-05-14 22:45:10 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 3,
|
|
|
|
},
|
|
|
|
GoTypes: file_sdk_plugin_pb_backend_proto_goTypes,
|
|
|
|
DependencyIndexes: file_sdk_plugin_pb_backend_proto_depIDxs,
|
|
|
|
MessageInfos: file_sdk_plugin_pb_backend_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_sdk_plugin_pb_backend_proto = out.File
|
|
|
|
file_sdk_plugin_pb_backend_proto_rawDesc = nil
|
|
|
|
file_sdk_plugin_pb_backend_proto_goTypes = nil
|
|
|
|
file_sdk_plugin_pb_backend_proto_depIDxs = nil
|
2019-02-05 21:02:15 +00:00
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
2020-05-14 22:45:10 +00:00
|
|
|
var _ grpc.ClientConnInterface
|
2018-01-18 21:49:20 +00:00
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
2020-05-14 22:45:10 +00:00
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
2018-01-18 21:49:20 +00:00
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// BackendClient is the client API for Backend service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2018-01-18 21:49:20 +00:00
|
|
|
type BackendClient interface {
|
2018-02-15 22:20:50 +00:00
|
|
|
// HandleRequest is used to handle a request and generate a response.
|
|
|
|
// The plugins must check the operation type and handle appropriately.
|
2018-01-18 21:49:20 +00:00
|
|
|
HandleRequest(ctx context.Context, in *HandleRequestArgs, opts ...grpc.CallOption) (*HandleRequestReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// SpecialPaths is a list of paths that are special in some way.
|
|
|
|
// See PathType for the types of special paths. The key is the type
|
|
|
|
// of the special path, and the value is a list of paths for this type.
|
|
|
|
// This is not a regular expression but is an exact match. If the path
|
|
|
|
// ends in '*' then it is a prefix-based match. The '*' can only appear
|
|
|
|
// at the end.
|
2018-01-18 21:49:20 +00:00
|
|
|
SpecialPaths(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SpecialPathsReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// HandleExistenceCheck is used to handle a request and generate a response
|
|
|
|
// indicating whether the given path exists or not; this is used to
|
|
|
|
// understand whether the request must have a Create or Update capability
|
|
|
|
// ACL applied. The first bool indicates whether an existence check
|
|
|
|
// function was found for the backend; the second indicates whether, if an
|
|
|
|
// existence check function was found, the item exists or not.
|
2018-01-18 21:49:20 +00:00
|
|
|
HandleExistenceCheck(ctx context.Context, in *HandleExistenceCheckArgs, opts ...grpc.CallOption) (*HandleExistenceCheckReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// Cleanup is invoked during an unmount of a backend to allow it to
|
|
|
|
// handle any cleanup like connection closing or releasing of file handles.
|
|
|
|
// Cleanup is called right before Vault closes the plugin process.
|
2018-01-18 21:49:20 +00:00
|
|
|
Cleanup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// InvalidateKey may be invoked when an object is modified that belongs
|
|
|
|
// to the backend. The backend can use this to clear any caches or reset
|
|
|
|
// internal state as needed.
|
2018-01-18 21:49:20 +00:00
|
|
|
InvalidateKey(ctx context.Context, in *InvalidateKeyArgs, opts ...grpc.CallOption) (*Empty, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// Setup is used to set up the backend based on the provided backend
|
|
|
|
// configuration. The plugin's setup implementation should use the provided
|
|
|
|
// broker_id to create a connection back to Vault for use with the Storage
|
|
|
|
// and SystemView clients.
|
2018-01-18 21:49:20 +00:00
|
|
|
Setup(ctx context.Context, in *SetupArgs, opts ...grpc.CallOption) (*SetupReply, error)
|
2019-07-05 23:55:40 +00:00
|
|
|
// Initialize is invoked just after mounting a backend to allow it to
|
|
|
|
// handle any initialization tasks that need to be performed.
|
|
|
|
Initialize(ctx context.Context, in *InitializeArgs, opts ...grpc.CallOption) (*InitializeReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// Type returns the BackendType for the particular backend
|
2018-01-18 21:49:20 +00:00
|
|
|
Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeReply, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type backendClient struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
cc grpc.ClientConnInterface
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func NewBackendClient(cc grpc.ClientConnInterface) BackendClient {
|
2018-01-18 21:49:20 +00:00
|
|
|
return &backendClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *backendClient) HandleRequest(ctx context.Context, in *HandleRequestArgs, opts ...grpc.CallOption) (*HandleRequestReply, error) {
|
|
|
|
out := new(HandleRequestReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/HandleRequest", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *backendClient) SpecialPaths(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SpecialPathsReply, error) {
|
|
|
|
out := new(SpecialPathsReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/SpecialPaths", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *backendClient) HandleExistenceCheck(ctx context.Context, in *HandleExistenceCheckArgs, opts ...grpc.CallOption) (*HandleExistenceCheckReply, error) {
|
|
|
|
out := new(HandleExistenceCheckReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/HandleExistenceCheck", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *backendClient) Cleanup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
out := new(Empty)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/Cleanup", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *backendClient) InvalidateKey(ctx context.Context, in *InvalidateKeyArgs, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
out := new(Empty)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/InvalidateKey", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *backendClient) Setup(ctx context.Context, in *SetupArgs, opts ...grpc.CallOption) (*SetupReply, error) {
|
|
|
|
out := new(SetupReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/Setup", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-07-05 23:55:40 +00:00
|
|
|
func (c *backendClient) Initialize(ctx context.Context, in *InitializeArgs, opts ...grpc.CallOption) (*InitializeReply, error) {
|
|
|
|
out := new(InitializeReply)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/Initialize", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
func (c *backendClient) Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeReply, error) {
|
|
|
|
out := new(TypeReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Backend/Type", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// BackendServer is the server API for Backend service.
|
2018-01-18 21:49:20 +00:00
|
|
|
type BackendServer interface {
|
2018-02-15 22:20:50 +00:00
|
|
|
// HandleRequest is used to handle a request and generate a response.
|
|
|
|
// The plugins must check the operation type and handle appropriately.
|
2018-01-18 21:49:20 +00:00
|
|
|
HandleRequest(context.Context, *HandleRequestArgs) (*HandleRequestReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// SpecialPaths is a list of paths that are special in some way.
|
|
|
|
// See PathType for the types of special paths. The key is the type
|
|
|
|
// of the special path, and the value is a list of paths for this type.
|
|
|
|
// This is not a regular expression but is an exact match. If the path
|
|
|
|
// ends in '*' then it is a prefix-based match. The '*' can only appear
|
|
|
|
// at the end.
|
2018-01-18 21:49:20 +00:00
|
|
|
SpecialPaths(context.Context, *Empty) (*SpecialPathsReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// HandleExistenceCheck is used to handle a request and generate a response
|
|
|
|
// indicating whether the given path exists or not; this is used to
|
|
|
|
// understand whether the request must have a Create or Update capability
|
|
|
|
// ACL applied. The first bool indicates whether an existence check
|
|
|
|
// function was found for the backend; the second indicates whether, if an
|
|
|
|
// existence check function was found, the item exists or not.
|
2018-01-18 21:49:20 +00:00
|
|
|
HandleExistenceCheck(context.Context, *HandleExistenceCheckArgs) (*HandleExistenceCheckReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// Cleanup is invoked during an unmount of a backend to allow it to
|
|
|
|
// handle any cleanup like connection closing or releasing of file handles.
|
|
|
|
// Cleanup is called right before Vault closes the plugin process.
|
2018-01-18 21:49:20 +00:00
|
|
|
Cleanup(context.Context, *Empty) (*Empty, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// InvalidateKey may be invoked when an object is modified that belongs
|
|
|
|
// to the backend. The backend can use this to clear any caches or reset
|
|
|
|
// internal state as needed.
|
2018-01-18 21:49:20 +00:00
|
|
|
InvalidateKey(context.Context, *InvalidateKeyArgs) (*Empty, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// Setup is used to set up the backend based on the provided backend
|
|
|
|
// configuration. The plugin's setup implementation should use the provided
|
|
|
|
// broker_id to create a connection back to Vault for use with the Storage
|
|
|
|
// and SystemView clients.
|
2018-01-18 21:49:20 +00:00
|
|
|
Setup(context.Context, *SetupArgs) (*SetupReply, error)
|
2019-07-05 23:55:40 +00:00
|
|
|
// Initialize is invoked just after mounting a backend to allow it to
|
|
|
|
// handle any initialization tasks that need to be performed.
|
|
|
|
Initialize(context.Context, *InitializeArgs) (*InitializeReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// Type returns the BackendType for the particular backend
|
2018-01-18 21:49:20 +00:00
|
|
|
Type(context.Context, *Empty) (*TypeReply, error)
|
|
|
|
}
|
|
|
|
|
2019-07-08 23:02:20 +00:00
|
|
|
// UnimplementedBackendServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedBackendServer struct {
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) HandleRequest(context.Context, *HandleRequestArgs) (*HandleRequestReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method HandleRequest not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) SpecialPaths(context.Context, *Empty) (*SpecialPathsReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SpecialPaths not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) HandleExistenceCheck(context.Context, *HandleExistenceCheckArgs) (*HandleExistenceCheckReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method HandleExistenceCheck not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) Cleanup(context.Context, *Empty) (*Empty, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Cleanup not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) InvalidateKey(context.Context, *InvalidateKeyArgs) (*Empty, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method InvalidateKey not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) Setup(context.Context, *SetupArgs) (*SetupReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Setup not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) Initialize(context.Context, *InitializeArgs) (*InitializeReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Initialize not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedBackendServer) Type(context.Context, *Empty) (*TypeReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Type not implemented")
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
func RegisterBackendServer(s *grpc.Server, srv BackendServer) {
|
|
|
|
s.RegisterService(&_Backend_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Backend_HandleRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(HandleRequestArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).HandleRequest(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/HandleRequest",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).HandleRequest(ctx, req.(*HandleRequestArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Backend_SpecialPaths_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).SpecialPaths(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/SpecialPaths",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).SpecialPaths(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Backend_HandleExistenceCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(HandleExistenceCheckArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).HandleExistenceCheck(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/HandleExistenceCheck",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).HandleExistenceCheck(ctx, req.(*HandleExistenceCheckArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Backend_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).Cleanup(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/Cleanup",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).Cleanup(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Backend_InvalidateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(InvalidateKeyArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).InvalidateKey(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/InvalidateKey",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).InvalidateKey(ctx, req.(*InvalidateKeyArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Backend_Setup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SetupArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).Setup(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/Setup",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).Setup(ctx, req.(*SetupArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-07-05 23:55:40 +00:00
|
|
|
func _Backend_Initialize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(InitializeArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).Initialize(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/Initialize",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).Initialize(ctx, req.(*InitializeArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
func _Backend_Type_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(BackendServer).Type(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Backend/Type",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(BackendServer).Type(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _Backend_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "pb.Backend",
|
|
|
|
HandlerType: (*BackendServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "HandleRequest",
|
|
|
|
Handler: _Backend_HandleRequest_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "SpecialPaths",
|
|
|
|
Handler: _Backend_SpecialPaths_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "HandleExistenceCheck",
|
|
|
|
Handler: _Backend_HandleExistenceCheck_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Cleanup",
|
|
|
|
Handler: _Backend_Cleanup_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "InvalidateKey",
|
|
|
|
Handler: _Backend_InvalidateKey_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Setup",
|
|
|
|
Handler: _Backend_Setup_Handler,
|
|
|
|
},
|
2019-07-05 23:55:40 +00:00
|
|
|
{
|
|
|
|
MethodName: "Initialize",
|
|
|
|
Handler: _Backend_Initialize_Handler,
|
|
|
|
},
|
2018-01-18 21:49:20 +00:00
|
|
|
{
|
|
|
|
MethodName: "Type",
|
|
|
|
Handler: _Backend_Type_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2019-04-12 21:54:35 +00:00
|
|
|
Metadata: "sdk/plugin/pb/backend.proto",
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// StorageClient is the client API for Storage service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2018-01-18 21:49:20 +00:00
|
|
|
type StorageClient interface {
|
|
|
|
List(ctx context.Context, in *StorageListArgs, opts ...grpc.CallOption) (*StorageListReply, error)
|
|
|
|
Get(ctx context.Context, in *StorageGetArgs, opts ...grpc.CallOption) (*StorageGetReply, error)
|
|
|
|
Put(ctx context.Context, in *StoragePutArgs, opts ...grpc.CallOption) (*StoragePutReply, error)
|
|
|
|
Delete(ctx context.Context, in *StorageDeleteArgs, opts ...grpc.CallOption) (*StorageDeleteReply, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type storageClient struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
cc grpc.ClientConnInterface
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func NewStorageClient(cc grpc.ClientConnInterface) StorageClient {
|
2018-01-18 21:49:20 +00:00
|
|
|
return &storageClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *storageClient) List(ctx context.Context, in *StorageListArgs, opts ...grpc.CallOption) (*StorageListReply, error) {
|
|
|
|
out := new(StorageListReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Storage/List", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *storageClient) Get(ctx context.Context, in *StorageGetArgs, opts ...grpc.CallOption) (*StorageGetReply, error) {
|
|
|
|
out := new(StorageGetReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Storage/Get", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *storageClient) Put(ctx context.Context, in *StoragePutArgs, opts ...grpc.CallOption) (*StoragePutReply, error) {
|
|
|
|
out := new(StoragePutReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Storage/Put", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *storageClient) Delete(ctx context.Context, in *StorageDeleteArgs, opts ...grpc.CallOption) (*StorageDeleteReply, error) {
|
|
|
|
out := new(StorageDeleteReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.Storage/Delete", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// StorageServer is the server API for Storage service.
|
2018-01-18 21:49:20 +00:00
|
|
|
type StorageServer interface {
|
|
|
|
List(context.Context, *StorageListArgs) (*StorageListReply, error)
|
|
|
|
Get(context.Context, *StorageGetArgs) (*StorageGetReply, error)
|
|
|
|
Put(context.Context, *StoragePutArgs) (*StoragePutReply, error)
|
|
|
|
Delete(context.Context, *StorageDeleteArgs) (*StorageDeleteReply, error)
|
|
|
|
}
|
|
|
|
|
2019-07-08 23:02:20 +00:00
|
|
|
// UnimplementedStorageServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedStorageServer struct {
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedStorageServer) List(context.Context, *StorageListArgs) (*StorageListReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedStorageServer) Get(context.Context, *StorageGetArgs) (*StorageGetReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedStorageServer) Put(context.Context, *StoragePutArgs) (*StoragePutReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Put not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedStorageServer) Delete(context.Context, *StorageDeleteArgs) (*StorageDeleteReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
func RegisterStorageServer(s *grpc.Server, srv StorageServer) {
|
|
|
|
s.RegisterService(&_Storage_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Storage_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StorageListArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StorageServer).List(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Storage/List",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StorageServer).List(ctx, req.(*StorageListArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Storage_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StorageGetArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StorageServer).Get(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Storage/Get",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StorageServer).Get(ctx, req.(*StorageGetArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Storage_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StoragePutArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StorageServer).Put(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Storage/Put",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StorageServer).Put(ctx, req.(*StoragePutArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Storage_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StorageDeleteArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StorageServer).Delete(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.Storage/Delete",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StorageServer).Delete(ctx, req.(*StorageDeleteArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _Storage_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "pb.Storage",
|
|
|
|
HandlerType: (*StorageServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "List",
|
|
|
|
Handler: _Storage_List_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Get",
|
|
|
|
Handler: _Storage_Get_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Put",
|
|
|
|
Handler: _Storage_Put_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Delete",
|
|
|
|
Handler: _Storage_Delete_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2019-04-12 21:54:35 +00:00
|
|
|
Metadata: "sdk/plugin/pb/backend.proto",
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// SystemViewClient is the client API for SystemView service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2018-01-18 21:49:20 +00:00
|
|
|
type SystemViewClient interface {
|
2018-02-15 22:20:50 +00:00
|
|
|
// DefaultLeaseTTL returns the default lease TTL set in Vault configuration
|
2018-01-18 21:49:20 +00:00
|
|
|
DefaultLeaseTTL(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// MaxLeaseTTL returns the max lease TTL set in Vault configuration; backend
|
|
|
|
// authors should take care not to issue credentials that last longer than
|
|
|
|
// this value, as Vault will revoke them
|
2018-01-18 21:49:20 +00:00
|
|
|
MaxLeaseTTL(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error)
|
2018-02-17 01:41:01 +00:00
|
|
|
// Tainted, returns true if the mount is tainted. A mount is tainted if it is in the
|
2018-02-15 22:20:50 +00:00
|
|
|
// process of being unmounted. This should only be used in special
|
|
|
|
// circumstances; a primary use-case is as a guard in revocation functions.
|
|
|
|
// If revocation of a backend's leases fails it can keep the unmounting
|
|
|
|
// process from being successful. If the reason for this failure is not
|
|
|
|
// relevant when the mount is tainted (for instance, saving a CRL to disk
|
|
|
|
// when the stored CRL will be removed during the unmounting process
|
|
|
|
// anyways), we can ignore the errors to allow unmounting to complete.
|
2018-01-18 21:49:20 +00:00
|
|
|
Tainted(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TaintedReply, error)
|
2018-02-17 01:41:01 +00:00
|
|
|
// CachingDisabled returns true if caching is disabled. If true, no caches
|
|
|
|
// should be used, despite known slowdowns.
|
2018-01-18 21:49:20 +00:00
|
|
|
CachingDisabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CachingDisabledReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// ReplicationState indicates the state of cluster replication
|
2018-01-18 21:49:20 +00:00
|
|
|
ReplicationState(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReplicationStateReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// ResponseWrapData wraps the given data in a cubbyhole and returns the
|
|
|
|
// token used to unwrap.
|
2018-01-18 21:49:20 +00:00
|
|
|
ResponseWrapData(ctx context.Context, in *ResponseWrapDataArgs, opts ...grpc.CallOption) (*ResponseWrapDataReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// MlockEnabled returns the configuration setting for enabling mlock on
|
|
|
|
// plugins.
|
2018-01-18 21:49:20 +00:00
|
|
|
MlockEnabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MlockEnabledReply, error)
|
2018-02-17 01:41:01 +00:00
|
|
|
// LocalMount, when run from a system view attached to a request, indicates
|
|
|
|
// whether the request is affecting a local mount or not
|
2018-02-02 23:17:12 +00:00
|
|
|
LocalMount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LocalMountReply, error)
|
2018-06-04 00:48:12 +00:00
|
|
|
// EntityInfo returns the basic entity information for the given entity id
|
|
|
|
EntityInfo(ctx context.Context, in *EntityInfoArgs, opts ...grpc.CallOption) (*EntityInfoReply, error)
|
2018-08-03 16:32:17 +00:00
|
|
|
// PluginEnv returns Vault environment information used by plugins
|
|
|
|
PluginEnv(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PluginEnvReply, error)
|
2020-01-06 18:16:52 +00:00
|
|
|
// GroupsForEntity returns the group membership information for the given
|
|
|
|
// entity id
|
|
|
|
GroupsForEntity(ctx context.Context, in *EntityInfoArgs, opts ...grpc.CallOption) (*GroupsForEntityReply, error)
|
2020-05-27 18:28:00 +00:00
|
|
|
// GeneratePasswordFromPolicy generates a password from an existing password policy
|
|
|
|
GeneratePasswordFromPolicy(ctx context.Context, in *GeneratePasswordFromPolicyRequest, opts ...grpc.CallOption) (*GeneratePasswordFromPolicyReply, error)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type systemViewClient struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
cc grpc.ClientConnInterface
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func NewSystemViewClient(cc grpc.ClientConnInterface) SystemViewClient {
|
2018-01-18 21:49:20 +00:00
|
|
|
return &systemViewClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) DefaultLeaseTTL(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error) {
|
|
|
|
out := new(TTLReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/DefaultLeaseTTL", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) MaxLeaseTTL(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error) {
|
|
|
|
out := new(TTLReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/MaxLeaseTTL", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) Tainted(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TaintedReply, error) {
|
|
|
|
out := new(TaintedReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/Tainted", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) CachingDisabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CachingDisabledReply, error) {
|
|
|
|
out := new(CachingDisabledReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/CachingDisabled", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) ReplicationState(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReplicationStateReply, error) {
|
|
|
|
out := new(ReplicationStateReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/ReplicationState", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) ResponseWrapData(ctx context.Context, in *ResponseWrapDataArgs, opts ...grpc.CallOption) (*ResponseWrapDataReply, error) {
|
|
|
|
out := new(ResponseWrapDataReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/ResponseWrapData", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *systemViewClient) MlockEnabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MlockEnabledReply, error) {
|
|
|
|
out := new(MlockEnabledReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/MlockEnabled", in, out, opts...)
|
2018-01-18 21:49:20 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-02-02 23:17:12 +00:00
|
|
|
func (c *systemViewClient) LocalMount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LocalMountReply, error) {
|
|
|
|
out := new(LocalMountReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/LocalMount", in, out, opts...)
|
2018-02-02 23:17:12 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
func (c *systemViewClient) EntityInfo(ctx context.Context, in *EntityInfoArgs, opts ...grpc.CallOption) (*EntityInfoReply, error) {
|
|
|
|
out := new(EntityInfoReply)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/EntityInfo", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-08-03 16:32:17 +00:00
|
|
|
func (c *systemViewClient) PluginEnv(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PluginEnvReply, error) {
|
|
|
|
out := new(PluginEnvReply)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/PluginEnv", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-01-06 18:16:52 +00:00
|
|
|
func (c *systemViewClient) GroupsForEntity(ctx context.Context, in *EntityInfoArgs, opts ...grpc.CallOption) (*GroupsForEntityReply, error) {
|
|
|
|
out := new(GroupsForEntityReply)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/GroupsForEntity", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-05-27 18:28:00 +00:00
|
|
|
func (c *systemViewClient) GeneratePasswordFromPolicy(ctx context.Context, in *GeneratePasswordFromPolicyRequest, opts ...grpc.CallOption) (*GeneratePasswordFromPolicyReply, error) {
|
|
|
|
out := new(GeneratePasswordFromPolicyReply)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.SystemView/GeneratePasswordFromPolicy", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// SystemViewServer is the server API for SystemView service.
|
2018-01-18 21:49:20 +00:00
|
|
|
type SystemViewServer interface {
|
2018-02-15 22:20:50 +00:00
|
|
|
// DefaultLeaseTTL returns the default lease TTL set in Vault configuration
|
2018-01-18 21:49:20 +00:00
|
|
|
DefaultLeaseTTL(context.Context, *Empty) (*TTLReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// MaxLeaseTTL returns the max lease TTL set in Vault configuration; backend
|
|
|
|
// authors should take care not to issue credentials that last longer than
|
|
|
|
// this value, as Vault will revoke them
|
2018-01-18 21:49:20 +00:00
|
|
|
MaxLeaseTTL(context.Context, *Empty) (*TTLReply, error)
|
2018-02-17 01:41:01 +00:00
|
|
|
// Tainted, returns true if the mount is tainted. A mount is tainted if it is in the
|
2018-02-15 22:20:50 +00:00
|
|
|
// process of being unmounted. This should only be used in special
|
|
|
|
// circumstances; a primary use-case is as a guard in revocation functions.
|
|
|
|
// If revocation of a backend's leases fails it can keep the unmounting
|
|
|
|
// process from being successful. If the reason for this failure is not
|
|
|
|
// relevant when the mount is tainted (for instance, saving a CRL to disk
|
|
|
|
// when the stored CRL will be removed during the unmounting process
|
|
|
|
// anyways), we can ignore the errors to allow unmounting to complete.
|
2018-01-18 21:49:20 +00:00
|
|
|
Tainted(context.Context, *Empty) (*TaintedReply, error)
|
2018-02-17 01:41:01 +00:00
|
|
|
// CachingDisabled returns true if caching is disabled. If true, no caches
|
|
|
|
// should be used, despite known slowdowns.
|
2018-01-18 21:49:20 +00:00
|
|
|
CachingDisabled(context.Context, *Empty) (*CachingDisabledReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// ReplicationState indicates the state of cluster replication
|
2018-01-18 21:49:20 +00:00
|
|
|
ReplicationState(context.Context, *Empty) (*ReplicationStateReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// ResponseWrapData wraps the given data in a cubbyhole and returns the
|
|
|
|
// token used to unwrap.
|
2018-01-18 21:49:20 +00:00
|
|
|
ResponseWrapData(context.Context, *ResponseWrapDataArgs) (*ResponseWrapDataReply, error)
|
2018-02-15 22:20:50 +00:00
|
|
|
// MlockEnabled returns the configuration setting for enabling mlock on
|
|
|
|
// plugins.
|
2018-01-18 21:49:20 +00:00
|
|
|
MlockEnabled(context.Context, *Empty) (*MlockEnabledReply, error)
|
2018-02-17 01:41:01 +00:00
|
|
|
// LocalMount, when run from a system view attached to a request, indicates
|
|
|
|
// whether the request is affecting a local mount or not
|
2018-02-02 23:17:12 +00:00
|
|
|
LocalMount(context.Context, *Empty) (*LocalMountReply, error)
|
2018-06-04 00:48:12 +00:00
|
|
|
// EntityInfo returns the basic entity information for the given entity id
|
|
|
|
EntityInfo(context.Context, *EntityInfoArgs) (*EntityInfoReply, error)
|
2018-08-03 16:32:17 +00:00
|
|
|
// PluginEnv returns Vault environment information used by plugins
|
|
|
|
PluginEnv(context.Context, *Empty) (*PluginEnvReply, error)
|
2020-01-06 18:16:52 +00:00
|
|
|
// GroupsForEntity returns the group membership information for the given
|
|
|
|
// entity id
|
|
|
|
GroupsForEntity(context.Context, *EntityInfoArgs) (*GroupsForEntityReply, error)
|
2020-05-27 18:28:00 +00:00
|
|
|
// GeneratePasswordFromPolicy generates a password from an existing password policy
|
|
|
|
GeneratePasswordFromPolicy(context.Context, *GeneratePasswordFromPolicyRequest) (*GeneratePasswordFromPolicyReply, error)
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|
|
|
|
|
2019-07-08 23:02:20 +00:00
|
|
|
// UnimplementedSystemViewServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedSystemViewServer struct {
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) DefaultLeaseTTL(context.Context, *Empty) (*TTLReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DefaultLeaseTTL not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) MaxLeaseTTL(context.Context, *Empty) (*TTLReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method MaxLeaseTTL not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) Tainted(context.Context, *Empty) (*TaintedReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Tainted not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) CachingDisabled(context.Context, *Empty) (*CachingDisabledReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CachingDisabled not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) ReplicationState(context.Context, *Empty) (*ReplicationStateReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReplicationState not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) ResponseWrapData(context.Context, *ResponseWrapDataArgs) (*ResponseWrapDataReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ResponseWrapData not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) MlockEnabled(context.Context, *Empty) (*MlockEnabledReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method MlockEnabled not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) LocalMount(context.Context, *Empty) (*LocalMountReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LocalMount not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) EntityInfo(context.Context, *EntityInfoArgs) (*EntityInfoReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method EntityInfo not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) PluginEnv(context.Context, *Empty) (*PluginEnvReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method PluginEnv not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedSystemViewServer) GroupsForEntity(context.Context, *EntityInfoArgs) (*GroupsForEntityReply, error) {
|
2020-01-06 18:16:52 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GroupsForEntity not implemented")
|
|
|
|
}
|
2020-05-27 18:28:00 +00:00
|
|
|
func (*UnimplementedSystemViewServer) GeneratePasswordFromPolicy(context.Context, *GeneratePasswordFromPolicyRequest) (*GeneratePasswordFromPolicyReply, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GeneratePasswordFromPolicy not implemented")
|
|
|
|
}
|
2019-07-08 23:02:20 +00:00
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
func RegisterSystemViewServer(s *grpc.Server, srv SystemViewServer) {
|
|
|
|
s.RegisterService(&_SystemView_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_DefaultLeaseTTL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).DefaultLeaseTTL(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/DefaultLeaseTTL",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).DefaultLeaseTTL(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_MaxLeaseTTL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).MaxLeaseTTL(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/MaxLeaseTTL",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).MaxLeaseTTL(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_Tainted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).Tainted(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/Tainted",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).Tainted(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_CachingDisabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).CachingDisabled(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/CachingDisabled",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).CachingDisabled(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_ReplicationState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).ReplicationState(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/ReplicationState",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).ReplicationState(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_ResponseWrapData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ResponseWrapDataArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).ResponseWrapData(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/ResponseWrapData",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).ResponseWrapData(ctx, req.(*ResponseWrapDataArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _SystemView_MlockEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).MlockEnabled(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/MlockEnabled",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).MlockEnabled(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-02-02 23:17:12 +00:00
|
|
|
func _SystemView_LocalMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).LocalMount(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/LocalMount",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).LocalMount(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
func _SystemView_EntityInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(EntityInfoArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).EntityInfo(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/EntityInfo",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).EntityInfo(ctx, req.(*EntityInfoArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-08-03 16:32:17 +00:00
|
|
|
func _SystemView_PluginEnv_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).PluginEnv(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/PluginEnv",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).PluginEnv(ctx, req.(*Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-01-06 18:16:52 +00:00
|
|
|
func _SystemView_GroupsForEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(EntityInfoArgs)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).GroupsForEntity(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/GroupsForEntity",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).GroupsForEntity(ctx, req.(*EntityInfoArgs))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-05-27 18:28:00 +00:00
|
|
|
func _SystemView_GeneratePasswordFromPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GeneratePasswordFromPolicyRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(SystemViewServer).GeneratePasswordFromPolicy(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pb.SystemView/GeneratePasswordFromPolicy",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(SystemViewServer).GeneratePasswordFromPolicy(ctx, req.(*GeneratePasswordFromPolicyRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-01-18 21:49:20 +00:00
|
|
|
var _SystemView_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "pb.SystemView",
|
|
|
|
HandlerType: (*SystemViewServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "DefaultLeaseTTL",
|
|
|
|
Handler: _SystemView_DefaultLeaseTTL_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "MaxLeaseTTL",
|
|
|
|
Handler: _SystemView_MaxLeaseTTL_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Tainted",
|
|
|
|
Handler: _SystemView_Tainted_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "CachingDisabled",
|
|
|
|
Handler: _SystemView_CachingDisabled_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "ReplicationState",
|
|
|
|
Handler: _SystemView_ReplicationState_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "ResponseWrapData",
|
|
|
|
Handler: _SystemView_ResponseWrapData_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "MlockEnabled",
|
|
|
|
Handler: _SystemView_MlockEnabled_Handler,
|
|
|
|
},
|
2018-02-02 23:17:12 +00:00
|
|
|
{
|
|
|
|
MethodName: "LocalMount",
|
|
|
|
Handler: _SystemView_LocalMount_Handler,
|
|
|
|
},
|
2018-06-04 00:48:12 +00:00
|
|
|
{
|
|
|
|
MethodName: "EntityInfo",
|
|
|
|
Handler: _SystemView_EntityInfo_Handler,
|
|
|
|
},
|
2018-08-03 16:32:17 +00:00
|
|
|
{
|
|
|
|
MethodName: "PluginEnv",
|
|
|
|
Handler: _SystemView_PluginEnv_Handler,
|
|
|
|
},
|
2020-01-06 18:16:52 +00:00
|
|
|
{
|
|
|
|
MethodName: "GroupsForEntity",
|
|
|
|
Handler: _SystemView_GroupsForEntity_Handler,
|
|
|
|
},
|
2020-05-27 18:28:00 +00:00
|
|
|
{
|
|
|
|
MethodName: "GeneratePasswordFromPolicy",
|
|
|
|
Handler: _SystemView_GeneratePasswordFromPolicy_Handler,
|
|
|
|
},
|
2018-01-18 21:49:20 +00:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2019-04-12 21:54:35 +00:00
|
|
|
Metadata: "sdk/plugin/pb/backend.proto",
|
2018-01-18 21:49:20 +00:00
|
|
|
}
|