proto changes (#4503)
This commit is contained in:
parent
d51acbde68
commit
7549ea0d12
|
@ -1,12 +1,33 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: builtin/logical/database/dbplugin/database.proto
|
||||
|
||||
/*
|
||||
Package dbplugin is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
builtin/logical/database/dbplugin/database.proto
|
||||
|
||||
It has these top-level messages:
|
||||
InitializeRequest
|
||||
InitRequest
|
||||
CreateUserRequest
|
||||
RenewUserRequest
|
||||
RevokeUserRequest
|
||||
RotateRootCredentialsRequest
|
||||
Statements
|
||||
UsernameConfig
|
||||
InitResponse
|
||||
CreateUserResponse
|
||||
TypeResponse
|
||||
RotateRootCredentialsResponse
|
||||
Empty
|
||||
*/
|
||||
package dbplugin
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
|
@ -24,38 +45,15 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Deprecated: Do not use.
|
||||
type InitializeRequest struct {
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection" json:"verify_connection,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection" json:"verify_connection,omitempty"`
|
||||
}
|
||||
|
||||
func (m *InitializeRequest) Reset() { *m = InitializeRequest{} }
|
||||
func (m *InitializeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitializeRequest) ProtoMessage() {}
|
||||
func (*InitializeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{0}
|
||||
}
|
||||
func (m *InitializeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_InitializeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *InitializeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_InitializeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *InitializeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_InitializeRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *InitializeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_InitializeRequest.Size(m)
|
||||
}
|
||||
func (m *InitializeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_InitializeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_InitializeRequest proto.InternalMessageInfo
|
||||
func (m *InitializeRequest) Reset() { *m = InitializeRequest{} }
|
||||
func (m *InitializeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitializeRequest) ProtoMessage() {}
|
||||
func (*InitializeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *InitializeRequest) GetConfig() []byte {
|
||||
if m != nil {
|
||||
|
@ -72,36 +70,14 @@ func (m *InitializeRequest) GetVerifyConnection() bool {
|
|||
}
|
||||
|
||||
type InitRequest struct {
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection" json:"verify_connection,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection" json:"verify_connection,omitempty"`
|
||||
}
|
||||
|
||||
func (m *InitRequest) Reset() { *m = InitRequest{} }
|
||||
func (m *InitRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitRequest) ProtoMessage() {}
|
||||
func (*InitRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{1}
|
||||
}
|
||||
func (m *InitRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_InitRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_InitRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *InitRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_InitRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *InitRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_InitRequest.Size(m)
|
||||
}
|
||||
func (m *InitRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_InitRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_InitRequest proto.InternalMessageInfo
|
||||
func (m *InitRequest) Reset() { *m = InitRequest{} }
|
||||
func (m *InitRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitRequest) ProtoMessage() {}
|
||||
func (*InitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
func (m *InitRequest) GetConfig() []byte {
|
||||
if m != nil {
|
||||
|
@ -118,37 +94,15 @@ func (m *InitRequest) GetVerifyConnection() bool {
|
|||
}
|
||||
|
||||
type CreateUserRequest struct {
|
||||
Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"`
|
||||
UsernameConfig *UsernameConfig `protobuf:"bytes,2,opt,name=username_config,json=usernameConfig" json:"username_config,omitempty"`
|
||||
Expiration *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"`
|
||||
UsernameConfig *UsernameConfig `protobuf:"bytes,2,opt,name=username_config,json=usernameConfig" json:"username_config,omitempty"`
|
||||
Expiration *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"`
|
||||
}
|
||||
|
||||
func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} }
|
||||
func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateUserRequest) ProtoMessage() {}
|
||||
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{2}
|
||||
}
|
||||
func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateUserRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateUserRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CreateUserRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateUserRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *CreateUserRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateUserRequest.Size(m)
|
||||
}
|
||||
func (m *CreateUserRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateUserRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateUserRequest proto.InternalMessageInfo
|
||||
func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} }
|
||||
func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateUserRequest) ProtoMessage() {}
|
||||
func (*CreateUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
|
||||
func (m *CreateUserRequest) GetStatements() *Statements {
|
||||
if m != nil {
|
||||
|
@ -164,7 +118,7 @@ func (m *CreateUserRequest) GetUsernameConfig() *UsernameConfig {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *CreateUserRequest) GetExpiration() *timestamp.Timestamp {
|
||||
func (m *CreateUserRequest) GetExpiration() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
|
@ -172,37 +126,15 @@ func (m *CreateUserRequest) GetExpiration() *timestamp.Timestamp {
|
|||
}
|
||||
|
||||
type RenewUserRequest struct {
|
||||
Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"`
|
||||
Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
|
||||
Expiration *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"`
|
||||
Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
|
||||
Expiration *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RenewUserRequest) Reset() { *m = RenewUserRequest{} }
|
||||
func (m *RenewUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RenewUserRequest) ProtoMessage() {}
|
||||
func (*RenewUserRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{3}
|
||||
}
|
||||
func (m *RenewUserRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RenewUserRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RenewUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RenewUserRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RenewUserRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RenewUserRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *RenewUserRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_RenewUserRequest.Size(m)
|
||||
}
|
||||
func (m *RenewUserRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RenewUserRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RenewUserRequest proto.InternalMessageInfo
|
||||
func (m *RenewUserRequest) Reset() { *m = RenewUserRequest{} }
|
||||
func (m *RenewUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RenewUserRequest) ProtoMessage() {}
|
||||
func (*RenewUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
|
||||
func (m *RenewUserRequest) GetStatements() *Statements {
|
||||
if m != nil {
|
||||
|
@ -218,7 +150,7 @@ func (m *RenewUserRequest) GetUsername() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *RenewUserRequest) GetExpiration() *timestamp.Timestamp {
|
||||
func (m *RenewUserRequest) GetExpiration() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
|
@ -226,36 +158,14 @@ func (m *RenewUserRequest) GetExpiration() *timestamp.Timestamp {
|
|||
}
|
||||
|
||||
type RevokeUserRequest struct {
|
||||
Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"`
|
||||
Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"`
|
||||
Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RevokeUserRequest) Reset() { *m = RevokeUserRequest{} }
|
||||
func (m *RevokeUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RevokeUserRequest) ProtoMessage() {}
|
||||
func (*RevokeUserRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{4}
|
||||
}
|
||||
func (m *RevokeUserRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RevokeUserRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RevokeUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RevokeUserRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RevokeUserRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RevokeUserRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *RevokeUserRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_RevokeUserRequest.Size(m)
|
||||
}
|
||||
func (m *RevokeUserRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RevokeUserRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RevokeUserRequest proto.InternalMessageInfo
|
||||
func (m *RevokeUserRequest) Reset() { *m = RevokeUserRequest{} }
|
||||
func (m *RevokeUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RevokeUserRequest) ProtoMessage() {}
|
||||
func (*RevokeUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
|
||||
func (m *RevokeUserRequest) GetStatements() *Statements {
|
||||
if m != nil {
|
||||
|
@ -272,35 +182,13 @@ func (m *RevokeUserRequest) GetUsername() string {
|
|||
}
|
||||
|
||||
type RotateRootCredentialsRequest struct {
|
||||
Statements []string `protobuf:"bytes,1,rep,name=statements" json:"statements,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Statements []string `protobuf:"bytes,1,rep,name=statements" json:"statements,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RotateRootCredentialsRequest) Reset() { *m = RotateRootCredentialsRequest{} }
|
||||
func (m *RotateRootCredentialsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RotateRootCredentialsRequest) ProtoMessage() {}
|
||||
func (*RotateRootCredentialsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{5}
|
||||
}
|
||||
func (m *RotateRootCredentialsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RotateRootCredentialsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RotateRootCredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RotateRootCredentialsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RotateRootCredentialsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RotateRootCredentialsRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *RotateRootCredentialsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_RotateRootCredentialsRequest.Size(m)
|
||||
}
|
||||
func (m *RotateRootCredentialsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RotateRootCredentialsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RotateRootCredentialsRequest proto.InternalMessageInfo
|
||||
func (m *RotateRootCredentialsRequest) Reset() { *m = RotateRootCredentialsRequest{} }
|
||||
func (m *RotateRootCredentialsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RotateRootCredentialsRequest) ProtoMessage() {}
|
||||
func (*RotateRootCredentialsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
|
||||
func (m *RotateRootCredentialsRequest) GetStatements() []string {
|
||||
if m != nil {
|
||||
|
@ -311,47 +199,24 @@ func (m *RotateRootCredentialsRequest) GetStatements() []string {
|
|||
|
||||
type Statements struct {
|
||||
// DEPRECATED, will be removed in 0.12
|
||||
CreationStatements string `protobuf:"bytes,1,opt,name=creation_statements,json=creationStatements" json:"creation_statements,omitempty"` // Deprecated: Do not use.
|
||||
CreationStatements string `protobuf:"bytes,1,opt,name=creation_statements,json=creationStatements" json:"creation_statements,omitempty"`
|
||||
// DEPRECATED, will be removed in 0.12
|
||||
RevocationStatements string `protobuf:"bytes,2,opt,name=revocation_statements,json=revocationStatements" json:"revocation_statements,omitempty"` // Deprecated: Do not use.
|
||||
RevocationStatements string `protobuf:"bytes,2,opt,name=revocation_statements,json=revocationStatements" json:"revocation_statements,omitempty"`
|
||||
// DEPRECATED, will be removed in 0.12
|
||||
RollbackStatements string `protobuf:"bytes,3,opt,name=rollback_statements,json=rollbackStatements" json:"rollback_statements,omitempty"` // Deprecated: Do not use.
|
||||
RollbackStatements string `protobuf:"bytes,3,opt,name=rollback_statements,json=rollbackStatements" json:"rollback_statements,omitempty"`
|
||||
// DEPRECATED, will be removed in 0.12
|
||||
RenewStatements string `protobuf:"bytes,4,opt,name=renew_statements,json=renewStatements" json:"renew_statements,omitempty"` // Deprecated: Do not use.
|
||||
Creation []string `protobuf:"bytes,5,rep,name=creation" json:"creation,omitempty"`
|
||||
Revocation []string `protobuf:"bytes,6,rep,name=revocation" json:"revocation,omitempty"`
|
||||
Rollback []string `protobuf:"bytes,7,rep,name=rollback" json:"rollback,omitempty"`
|
||||
Renewal []string `protobuf:"bytes,8,rep,name=renewal" json:"renewal,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
RenewStatements string `protobuf:"bytes,4,opt,name=renew_statements,json=renewStatements" json:"renew_statements,omitempty"`
|
||||
Creation []string `protobuf:"bytes,5,rep,name=creation" json:"creation,omitempty"`
|
||||
Revocation []string `protobuf:"bytes,6,rep,name=revocation" json:"revocation,omitempty"`
|
||||
Rollback []string `protobuf:"bytes,7,rep,name=rollback" json:"rollback,omitempty"`
|
||||
Renewal []string `protobuf:"bytes,8,rep,name=renewal" json:"renewal,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Statements) Reset() { *m = Statements{} }
|
||||
func (m *Statements) String() string { return proto.CompactTextString(m) }
|
||||
func (*Statements) ProtoMessage() {}
|
||||
func (*Statements) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{6}
|
||||
}
|
||||
func (m *Statements) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Statements.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Statements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Statements.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Statements) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Statements.Merge(dst, src)
|
||||
}
|
||||
func (m *Statements) XXX_Size() int {
|
||||
return xxx_messageInfo_Statements.Size(m)
|
||||
}
|
||||
func (m *Statements) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Statements.DiscardUnknown(m)
|
||||
}
|
||||
func (m *Statements) Reset() { *m = Statements{} }
|
||||
func (m *Statements) String() string { return proto.CompactTextString(m) }
|
||||
func (*Statements) ProtoMessage() {}
|
||||
func (*Statements) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
|
||||
var xxx_messageInfo_Statements proto.InternalMessageInfo
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *Statements) GetCreationStatements() string {
|
||||
if m != nil {
|
||||
return m.CreationStatements
|
||||
|
@ -359,7 +224,6 @@ func (m *Statements) GetCreationStatements() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *Statements) GetRevocationStatements() string {
|
||||
if m != nil {
|
||||
return m.RevocationStatements
|
||||
|
@ -367,7 +231,6 @@ func (m *Statements) GetRevocationStatements() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *Statements) GetRollbackStatements() string {
|
||||
if m != nil {
|
||||
return m.RollbackStatements
|
||||
|
@ -375,7 +238,6 @@ func (m *Statements) GetRollbackStatements() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *Statements) GetRenewStatements() string {
|
||||
if m != nil {
|
||||
return m.RenewStatements
|
||||
|
@ -412,36 +274,14 @@ func (m *Statements) GetRenewal() []string {
|
|||
}
|
||||
|
||||
type UsernameConfig struct {
|
||||
DisplayName string `protobuf:"bytes,1,opt,name=DisplayName" json:"DisplayName,omitempty"`
|
||||
RoleName string `protobuf:"bytes,2,opt,name=RoleName" json:"RoleName,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
DisplayName string `protobuf:"bytes,1,opt,name=DisplayName" json:"DisplayName,omitempty"`
|
||||
RoleName string `protobuf:"bytes,2,opt,name=RoleName" json:"RoleName,omitempty"`
|
||||
}
|
||||
|
||||
func (m *UsernameConfig) Reset() { *m = UsernameConfig{} }
|
||||
func (m *UsernameConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*UsernameConfig) ProtoMessage() {}
|
||||
func (*UsernameConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{7}
|
||||
}
|
||||
func (m *UsernameConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UsernameConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UsernameConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UsernameConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *UsernameConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UsernameConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *UsernameConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_UsernameConfig.Size(m)
|
||||
}
|
||||
func (m *UsernameConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UsernameConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UsernameConfig proto.InternalMessageInfo
|
||||
func (m *UsernameConfig) Reset() { *m = UsernameConfig{} }
|
||||
func (m *UsernameConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*UsernameConfig) ProtoMessage() {}
|
||||
func (*UsernameConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
|
||||
func (m *UsernameConfig) GetDisplayName() string {
|
||||
if m != nil {
|
||||
|
@ -458,35 +298,13 @@ func (m *UsernameConfig) GetRoleName() string {
|
|||
}
|
||||
|
||||
type InitResponse struct {
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
}
|
||||
|
||||
func (m *InitResponse) Reset() { *m = InitResponse{} }
|
||||
func (m *InitResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitResponse) ProtoMessage() {}
|
||||
func (*InitResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{8}
|
||||
}
|
||||
func (m *InitResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_InitResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_InitResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *InitResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_InitResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *InitResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_InitResponse.Size(m)
|
||||
}
|
||||
func (m *InitResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_InitResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_InitResponse proto.InternalMessageInfo
|
||||
func (m *InitResponse) Reset() { *m = InitResponse{} }
|
||||
func (m *InitResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitResponse) ProtoMessage() {}
|
||||
func (*InitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||
|
||||
func (m *InitResponse) GetConfig() []byte {
|
||||
if m != nil {
|
||||
|
@ -496,36 +314,14 @@ func (m *InitResponse) GetConfig() []byte {
|
|||
}
|
||||
|
||||
type CreateUserResponse struct {
|
||||
Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
|
||||
}
|
||||
|
||||
func (m *CreateUserResponse) Reset() { *m = CreateUserResponse{} }
|
||||
func (m *CreateUserResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateUserResponse) ProtoMessage() {}
|
||||
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{9}
|
||||
}
|
||||
func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateUserResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateUserResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CreateUserResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateUserResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *CreateUserResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateUserResponse.Size(m)
|
||||
}
|
||||
func (m *CreateUserResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateUserResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateUserResponse proto.InternalMessageInfo
|
||||
func (m *CreateUserResponse) Reset() { *m = CreateUserResponse{} }
|
||||
func (m *CreateUserResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateUserResponse) ProtoMessage() {}
|
||||
func (*CreateUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
||||
|
||||
func (m *CreateUserResponse) GetUsername() string {
|
||||
if m != nil {
|
||||
|
@ -542,35 +338,13 @@ func (m *CreateUserResponse) GetPassword() string {
|
|||
}
|
||||
|
||||
type TypeResponse struct {
|
||||
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (m *TypeResponse) Reset() { *m = TypeResponse{} }
|
||||
func (m *TypeResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*TypeResponse) ProtoMessage() {}
|
||||
func (*TypeResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{10}
|
||||
}
|
||||
func (m *TypeResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TypeResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TypeResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TypeResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TypeResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *TypeResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_TypeResponse.Size(m)
|
||||
}
|
||||
func (m *TypeResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TypeResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TypeResponse proto.InternalMessageInfo
|
||||
func (m *TypeResponse) Reset() { *m = TypeResponse{} }
|
||||
func (m *TypeResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*TypeResponse) ProtoMessage() {}
|
||||
func (*TypeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
||||
|
||||
func (m *TypeResponse) GetType() string {
|
||||
if m != nil {
|
||||
|
@ -580,35 +354,13 @@ func (m *TypeResponse) GetType() string {
|
|||
}
|
||||
|
||||
type RotateRootCredentialsResponse struct {
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RotateRootCredentialsResponse) Reset() { *m = RotateRootCredentialsResponse{} }
|
||||
func (m *RotateRootCredentialsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*RotateRootCredentialsResponse) ProtoMessage() {}
|
||||
func (*RotateRootCredentialsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{11}
|
||||
}
|
||||
func (m *RotateRootCredentialsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RotateRootCredentialsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RotateRootCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RotateRootCredentialsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RotateRootCredentialsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RotateRootCredentialsResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *RotateRootCredentialsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_RotateRootCredentialsResponse.Size(m)
|
||||
}
|
||||
func (m *RotateRootCredentialsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RotateRootCredentialsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RotateRootCredentialsResponse proto.InternalMessageInfo
|
||||
func (m *RotateRootCredentialsResponse) Reset() { *m = RotateRootCredentialsResponse{} }
|
||||
func (m *RotateRootCredentialsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*RotateRootCredentialsResponse) ProtoMessage() {}
|
||||
func (*RotateRootCredentialsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
||||
|
||||
func (m *RotateRootCredentialsResponse) GetConfig() []byte {
|
||||
if m != nil {
|
||||
|
@ -618,34 +370,12 @@ func (m *RotateRootCredentialsResponse) GetConfig() []byte {
|
|||
}
|
||||
|
||||
type Empty struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Empty) Reset() { *m = Empty{} }
|
||||
func (m *Empty) String() string { return proto.CompactTextString(m) }
|
||||
func (*Empty) ProtoMessage() {}
|
||||
func (*Empty) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_database_f2e1151a5044e26a, []int{12}
|
||||
}
|
||||
func (m *Empty) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Empty.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Empty) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Empty.Merge(dst, src)
|
||||
}
|
||||
func (m *Empty) XXX_Size() int {
|
||||
return xxx_messageInfo_Empty.Size(m)
|
||||
}
|
||||
func (m *Empty) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Empty.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Empty proto.InternalMessageInfo
|
||||
func (m *Empty) Reset() { *m = Empty{} }
|
||||
func (m *Empty) String() string { return proto.CompactTextString(m) }
|
||||
func (*Empty) ProtoMessage() {}
|
||||
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*InitializeRequest)(nil), "dbplugin.InitializeRequest")
|
||||
|
@ -755,7 +485,6 @@ func (c *databaseClient) Close(ctx context.Context, in *Empty, opts ...grpc.Call
|
|||
return out, nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *databaseClient) Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*Empty, error) {
|
||||
out := new(Empty)
|
||||
err := grpc.Invoke(ctx, "/dbplugin.Database/Initialize", in, out, c.cc, opts...)
|
||||
|
@ -967,11 +696,9 @@ var _Database_serviceDesc = grpc.ServiceDesc{
|
|||
Metadata: "builtin/logical/database/dbplugin/database.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("builtin/logical/database/dbplugin/database.proto", fileDescriptor_database_f2e1151a5044e26a)
|
||||
}
|
||||
func init() { proto.RegisterFile("builtin/logical/database/dbplugin/database.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor_database_f2e1151a5044e26a = []byte{
|
||||
var fileDescriptor0 = []byte{
|
||||
// 694 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x51, 0x4f, 0x13, 0x4f,
|
||||
0x10, 0xcf, 0xb5, 0x05, 0xda, 0x81, 0x00, 0xdd, 0x3f, 0x90, 0xcb, 0xfd, 0x51, 0xc9, 0x3d, 0x20,
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: types.proto
|
||||
|
||||
/*
|
||||
Package forwarding is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
types.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Request
|
||||
URL
|
||||
HeaderEntry
|
||||
Response
|
||||
*/
|
||||
package forwarding
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -22,41 +34,19 @@ type Request struct {
|
|||
// Not used right now but reserving in case it turns out that streaming
|
||||
// makes things more economical on the gRPC side
|
||||
// uint64 id = 1;
|
||||
Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
|
||||
Url *URL `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
|
||||
HeaderEntries map[string]*HeaderEntry `protobuf:"bytes,4,rep,name=header_entries,json=headerEntries" json:"header_entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
|
||||
Host string `protobuf:"bytes,6,opt,name=host" json:"host,omitempty"`
|
||||
RemoteAddr string `protobuf:"bytes,7,opt,name=remote_addr,json=remoteAddr" json:"remote_addr,omitempty"`
|
||||
PeerCertificates [][]byte `protobuf:"bytes,8,rep,name=peer_certificates,json=peerCertificates,proto3" json:"peer_certificates,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
|
||||
Url *URL `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
|
||||
HeaderEntries map[string]*HeaderEntry `protobuf:"bytes,4,rep,name=header_entries,json=headerEntries" json:"header_entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
|
||||
Host string `protobuf:"bytes,6,opt,name=host" json:"host,omitempty"`
|
||||
RemoteAddr string `protobuf:"bytes,7,opt,name=remote_addr,json=remoteAddr" json:"remote_addr,omitempty"`
|
||||
PeerCertificates [][]byte `protobuf:"bytes,8,rep,name=peer_certificates,json=peerCertificates,proto3" json:"peer_certificates,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Request) Reset() { *m = Request{} }
|
||||
func (m *Request) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request) ProtoMessage() {}
|
||||
func (*Request) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_ead8d586f841b378, []int{0}
|
||||
}
|
||||
func (m *Request) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Request.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Request) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Request.Merge(dst, src)
|
||||
}
|
||||
func (m *Request) XXX_Size() int {
|
||||
return xxx_messageInfo_Request.Size(m)
|
||||
}
|
||||
func (m *Request) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Request.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Request proto.InternalMessageInfo
|
||||
func (m *Request) Reset() { *m = Request{} }
|
||||
func (m *Request) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request) ProtoMessage() {}
|
||||
func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *Request) GetMethod() string {
|
||||
if m != nil {
|
||||
|
@ -118,36 +108,14 @@ type URL struct {
|
|||
RawPath string `protobuf:"bytes,6,opt,name=raw_path,json=rawPath" json:"raw_path,omitempty"`
|
||||
// This also isn't needed right now, but we'll reserve the number
|
||||
// bool force_query = 7;
|
||||
RawQuery string `protobuf:"bytes,8,opt,name=raw_query,json=rawQuery" json:"raw_query,omitempty"`
|
||||
Fragment string `protobuf:"bytes,9,opt,name=fragment" json:"fragment,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
RawQuery string `protobuf:"bytes,8,opt,name=raw_query,json=rawQuery" json:"raw_query,omitempty"`
|
||||
Fragment string `protobuf:"bytes,9,opt,name=fragment" json:"fragment,omitempty"`
|
||||
}
|
||||
|
||||
func (m *URL) Reset() { *m = URL{} }
|
||||
func (m *URL) String() string { return proto.CompactTextString(m) }
|
||||
func (*URL) ProtoMessage() {}
|
||||
func (*URL) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_ead8d586f841b378, []int{1}
|
||||
}
|
||||
func (m *URL) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_URL.Unmarshal(m, b)
|
||||
}
|
||||
func (m *URL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_URL.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *URL) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_URL.Merge(dst, src)
|
||||
}
|
||||
func (m *URL) XXX_Size() int {
|
||||
return xxx_messageInfo_URL.Size(m)
|
||||
}
|
||||
func (m *URL) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_URL.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_URL proto.InternalMessageInfo
|
||||
func (m *URL) Reset() { *m = URL{} }
|
||||
func (m *URL) String() string { return proto.CompactTextString(m) }
|
||||
func (*URL) ProtoMessage() {}
|
||||
func (*URL) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
func (m *URL) GetScheme() string {
|
||||
if m != nil {
|
||||
|
@ -199,35 +167,13 @@ func (m *URL) GetFragment() string {
|
|||
}
|
||||
|
||||
type HeaderEntry struct {
|
||||
Values []string `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Values []string `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
|
||||
}
|
||||
|
||||
func (m *HeaderEntry) Reset() { *m = HeaderEntry{} }
|
||||
func (m *HeaderEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*HeaderEntry) ProtoMessage() {}
|
||||
func (*HeaderEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_ead8d586f841b378, []int{2}
|
||||
}
|
||||
func (m *HeaderEntry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HeaderEntry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HeaderEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HeaderEntry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *HeaderEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HeaderEntry.Merge(dst, src)
|
||||
}
|
||||
func (m *HeaderEntry) XXX_Size() int {
|
||||
return xxx_messageInfo_HeaderEntry.Size(m)
|
||||
}
|
||||
func (m *HeaderEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HeaderEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HeaderEntry proto.InternalMessageInfo
|
||||
func (m *HeaderEntry) Reset() { *m = HeaderEntry{} }
|
||||
func (m *HeaderEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*HeaderEntry) ProtoMessage() {}
|
||||
func (*HeaderEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
|
||||
func (m *HeaderEntry) GetValues() []string {
|
||||
if m != nil {
|
||||
|
@ -244,35 +190,13 @@ type Response struct {
|
|||
Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
|
||||
// Added in 0.6.2 to ensure that the content-type is set appropriately, as
|
||||
// well as any other information
|
||||
HeaderEntries map[string]*HeaderEntry `protobuf:"bytes,4,rep,name=header_entries,json=headerEntries" json:"header_entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
HeaderEntries map[string]*HeaderEntry `protobuf:"bytes,4,rep,name=header_entries,json=headerEntries" json:"header_entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
}
|
||||
|
||||
func (m *Response) Reset() { *m = Response{} }
|
||||
func (m *Response) String() string { return proto.CompactTextString(m) }
|
||||
func (*Response) ProtoMessage() {}
|
||||
func (*Response) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_ead8d586f841b378, []int{3}
|
||||
}
|
||||
func (m *Response) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Response.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Response) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Response.Merge(dst, src)
|
||||
}
|
||||
func (m *Response) XXX_Size() int {
|
||||
return xxx_messageInfo_Response.Size(m)
|
||||
}
|
||||
func (m *Response) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Response.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Response proto.InternalMessageInfo
|
||||
func (m *Response) Reset() { *m = Response{} }
|
||||
func (m *Response) String() string { return proto.CompactTextString(m) }
|
||||
func (*Response) ProtoMessage() {}
|
||||
func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
|
||||
func (m *Response) GetStatusCode() uint32 {
|
||||
if m != nil {
|
||||
|
@ -297,16 +221,14 @@ func (m *Response) GetHeaderEntries() map[string]*HeaderEntry {
|
|||
|
||||
func init() {
|
||||
proto.RegisterType((*Request)(nil), "forwarding.Request")
|
||||
proto.RegisterMapType((map[string]*HeaderEntry)(nil), "forwarding.Request.HeaderEntriesEntry")
|
||||
proto.RegisterType((*URL)(nil), "forwarding.URL")
|
||||
proto.RegisterType((*HeaderEntry)(nil), "forwarding.HeaderEntry")
|
||||
proto.RegisterType((*Response)(nil), "forwarding.Response")
|
||||
proto.RegisterMapType((map[string]*HeaderEntry)(nil), "forwarding.Response.HeaderEntriesEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor_types_ead8d586f841b378) }
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor_types_ead8d586f841b378 = []byte{
|
||||
var fileDescriptor0 = []byte{
|
||||
// 437 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xc1, 0x6e, 0xd4, 0x30,
|
||||
0x10, 0x95, 0xd7, 0xdb, 0xdd, 0x64, 0xd2, 0x42, 0xf1, 0x01, 0x4c, 0x39, 0x10, 0x56, 0x02, 0x22,
|
||||
|
|
|
@ -1,12 +1,23 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: types.proto
|
||||
|
||||
/*
|
||||
Package identity is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
types.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Group
|
||||
Entity
|
||||
Alias
|
||||
*/
|
||||
package identity
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
@ -37,9 +48,9 @@ type Group struct {
|
|||
// Metadata represents the custom data tied with this group
|
||||
Metadata map[string]string `sentinel:"" protobuf:"bytes,6,rep,name=metadata" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
// CreationTime is the time at which this group was created
|
||||
CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,7,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
||||
CreationTime *google_protobuf.Timestamp `sentinel:"" protobuf:"bytes,7,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
||||
// LastUpdateTime is the time at which this group was last modified
|
||||
LastUpdateTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,8,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
||||
LastUpdateTime *google_protobuf.Timestamp `sentinel:"" protobuf:"bytes,8,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
||||
// ModifyIndex tracks the number of updates to the group. It is useful to detect
|
||||
// updates to the groups.
|
||||
ModifyIndex uint64 `sentinel:"" protobuf:"varint,9,opt,name=modify_index,json=modifyIndex" json:"modify_index,omitempty"`
|
||||
|
@ -56,35 +67,13 @@ type Group struct {
|
|||
// Memberships of the internal groups can be managed over the API whereas
|
||||
// the memberships on the external group --for which a corresponding alias
|
||||
// will be set-- will be managed automatically.
|
||||
Type string `sentinel:"" protobuf:"bytes,12,opt,name=type" json:"type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Type string `sentinel:"" protobuf:"bytes,12,opt,name=type" json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Group) Reset() { *m = Group{} }
|
||||
func (m *Group) String() string { return proto.CompactTextString(m) }
|
||||
func (*Group) ProtoMessage() {}
|
||||
func (*Group) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_1c7cfeee3fdd186b, []int{0}
|
||||
}
|
||||
func (m *Group) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Group.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Group.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Group) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Group.Merge(dst, src)
|
||||
}
|
||||
func (m *Group) XXX_Size() int {
|
||||
return xxx_messageInfo_Group.Size(m)
|
||||
}
|
||||
func (m *Group) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Group.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Group proto.InternalMessageInfo
|
||||
func (m *Group) Reset() { *m = Group{} }
|
||||
func (m *Group) String() string { return proto.CompactTextString(m) }
|
||||
func (*Group) ProtoMessage() {}
|
||||
func (*Group) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *Group) GetID() string {
|
||||
if m != nil {
|
||||
|
@ -128,14 +117,14 @@ func (m *Group) GetMetadata() map[string]string {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Group) GetCreationTime() *timestamp.Timestamp {
|
||||
func (m *Group) GetCreationTime() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreationTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Group) GetLastUpdateTime() *timestamp.Timestamp {
|
||||
func (m *Group) GetLastUpdateTime() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.LastUpdateTime
|
||||
}
|
||||
|
@ -193,11 +182,11 @@ type Entity struct {
|
|||
// based on its metadata.
|
||||
Metadata map[string]string `sentinel:"" protobuf:"bytes,4,rep,name=metadata" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
// CreationTime is the time at which this entity is first created.
|
||||
CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,5,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
||||
CreationTime *google_protobuf.Timestamp `sentinel:"" protobuf:"bytes,5,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
||||
// LastUpdateTime is the most recent time at which the properties of this
|
||||
// entity got modified. This is helpful in filtering out entities based on
|
||||
// its age and to take action on them, if desired.
|
||||
LastUpdateTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
||||
LastUpdateTime *google_protobuf.Timestamp `sentinel:"" protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
||||
// MergedEntityIDs are the entities which got merged to this one. Entities
|
||||
// will be indexed based on all the entities that got merged into it. This
|
||||
// helps to apply the actions on this entity on the tokens that are merged
|
||||
|
@ -213,35 +202,13 @@ type Entity struct {
|
|||
BucketKeyHash string `sentinel:"" protobuf:"bytes,9,opt,name=bucket_key_hash,json=bucketKeyHash" json:"bucket_key_hash,omitempty"`
|
||||
// Disabled indicates whether tokens associated with the account should not
|
||||
// be able to be used
|
||||
Disabled bool `sentinel:"" protobuf:"varint,11,opt,name=disabled" json:"disabled,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Disabled bool `sentinel:"" protobuf:"varint,11,opt,name=disabled" json:"disabled,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Entity) Reset() { *m = Entity{} }
|
||||
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
||||
func (*Entity) ProtoMessage() {}
|
||||
func (*Entity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_1c7cfeee3fdd186b, []int{1}
|
||||
}
|
||||
func (m *Entity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Entity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Entity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Entity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Entity.Merge(dst, src)
|
||||
}
|
||||
func (m *Entity) XXX_Size() int {
|
||||
return xxx_messageInfo_Entity.Size(m)
|
||||
}
|
||||
func (m *Entity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Entity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Entity proto.InternalMessageInfo
|
||||
func (m *Entity) Reset() { *m = Entity{} }
|
||||
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
||||
func (*Entity) ProtoMessage() {}
|
||||
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
func (m *Entity) GetAliases() []*Alias {
|
||||
if m != nil {
|
||||
|
@ -271,14 +238,14 @@ func (m *Entity) GetMetadata() map[string]string {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Entity) GetCreationTime() *timestamp.Timestamp {
|
||||
func (m *Entity) GetCreationTime() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreationTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Entity) GetLastUpdateTime() *timestamp.Timestamp {
|
||||
func (m *Entity) GetLastUpdateTime() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.LastUpdateTime
|
||||
}
|
||||
|
@ -342,41 +309,19 @@ type Alias struct {
|
|||
// factor.
|
||||
Name string `sentinel:"" protobuf:"bytes,7,opt,name=name" json:"name,omitempty"`
|
||||
// CreationTime is the time at which this alias was first created
|
||||
CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,8,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
||||
CreationTime *google_protobuf.Timestamp `sentinel:"" protobuf:"bytes,8,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
||||
// LastUpdateTime is the most recent time at which the properties of this
|
||||
// alias got modified. This is helpful in filtering out aliases based
|
||||
// on its age and to take action on them, if desired.
|
||||
LastUpdateTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,9,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
||||
LastUpdateTime *google_protobuf.Timestamp `sentinel:"" protobuf:"bytes,9,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
||||
// MergedFromCanonicalIDs is the FIFO history of merging activity
|
||||
MergedFromCanonicalIDs []string `sentinel:"" protobuf:"bytes,10,rep,name=merged_from_canonical_ids,json=mergedFromCanonicalIds" json:"merged_from_canonical_ids,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Alias) Reset() { *m = Alias{} }
|
||||
func (m *Alias) String() string { return proto.CompactTextString(m) }
|
||||
func (*Alias) ProtoMessage() {}
|
||||
func (*Alias) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_1c7cfeee3fdd186b, []int{2}
|
||||
}
|
||||
func (m *Alias) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Alias.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Alias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Alias.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Alias) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Alias.Merge(dst, src)
|
||||
}
|
||||
func (m *Alias) XXX_Size() int {
|
||||
return xxx_messageInfo_Alias.Size(m)
|
||||
}
|
||||
func (m *Alias) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Alias.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Alias proto.InternalMessageInfo
|
||||
func (m *Alias) Reset() { *m = Alias{} }
|
||||
func (m *Alias) String() string { return proto.CompactTextString(m) }
|
||||
func (*Alias) ProtoMessage() {}
|
||||
func (*Alias) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
|
||||
func (m *Alias) GetID() string {
|
||||
if m != nil {
|
||||
|
@ -427,14 +372,14 @@ func (m *Alias) GetName() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *Alias) GetCreationTime() *timestamp.Timestamp {
|
||||
func (m *Alias) GetCreationTime() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreationTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Alias) GetLastUpdateTime() *timestamp.Timestamp {
|
||||
func (m *Alias) GetLastUpdateTime() *google_protobuf.Timestamp {
|
||||
if m != nil {
|
||||
return m.LastUpdateTime
|
||||
}
|
||||
|
@ -450,16 +395,13 @@ func (m *Alias) GetMergedFromCanonicalIDs() []string {
|
|||
|
||||
func init() {
|
||||
proto.RegisterType((*Group)(nil), "identity.Group")
|
||||
proto.RegisterMapType((map[string]string)(nil), "identity.Group.MetadataEntry")
|
||||
proto.RegisterType((*Entity)(nil), "identity.Entity")
|
||||
proto.RegisterMapType((map[string]string)(nil), "identity.Entity.MetadataEntry")
|
||||
proto.RegisterType((*Alias)(nil), "identity.Alias")
|
||||
proto.RegisterMapType((map[string]string)(nil), "identity.Alias.MetadataEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor_types_1c7cfeee3fdd186b) }
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor_types_1c7cfeee3fdd186b = []byte{
|
||||
var fileDescriptor0 = []byte{
|
||||
// 617 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xdd, 0x6e, 0xd3, 0x30,
|
||||
0x14, 0xc7, 0xd5, 0xa6, 0x1f, 0xe9, 0x69, 0xd7, 0x0d, 0x0b, 0x21, 0x53, 0x69, 0xd0, 0x4d, 0x1a,
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: types.proto
|
||||
|
||||
/*
|
||||
Package storagepacker is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
types.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Item
|
||||
Bucket
|
||||
*/
|
||||
package storagepacker
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import any "github.com/golang/protobuf/ptypes/any"
|
||||
import google_protobuf "github.com/golang/protobuf/ptypes/any"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
@ -20,36 +30,14 @@ var _ = math.Inf
|
|||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Item struct {
|
||||
ID string `sentinel:"" protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
||||
Message *any.Any `sentinel:"" protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ID string `sentinel:"" protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
||||
Message *google_protobuf.Any `sentinel:"" protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Item) Reset() { *m = Item{} }
|
||||
func (m *Item) String() string { return proto.CompactTextString(m) }
|
||||
func (*Item) ProtoMessage() {}
|
||||
func (*Item) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_a65077c1fb226c53, []int{0}
|
||||
}
|
||||
func (m *Item) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Item.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Item.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Item) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Item.Merge(dst, src)
|
||||
}
|
||||
func (m *Item) XXX_Size() int {
|
||||
return xxx_messageInfo_Item.Size(m)
|
||||
}
|
||||
func (m *Item) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Item.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Item proto.InternalMessageInfo
|
||||
func (m *Item) Reset() { *m = Item{} }
|
||||
func (m *Item) String() string { return proto.CompactTextString(m) }
|
||||
func (*Item) ProtoMessage() {}
|
||||
func (*Item) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *Item) GetID() string {
|
||||
if m != nil {
|
||||
|
@ -58,7 +46,7 @@ func (m *Item) GetID() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *Item) GetMessage() *any.Any {
|
||||
func (m *Item) GetMessage() *google_protobuf.Any {
|
||||
if m != nil {
|
||||
return m.Message
|
||||
}
|
||||
|
@ -66,36 +54,14 @@ func (m *Item) GetMessage() *any.Any {
|
|||
}
|
||||
|
||||
type Bucket struct {
|
||||
Key string `sentinel:"" protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
|
||||
Items []*Item `sentinel:"" protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Key string `sentinel:"" protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
|
||||
Items []*Item `sentinel:"" protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Bucket) Reset() { *m = Bucket{} }
|
||||
func (m *Bucket) String() string { return proto.CompactTextString(m) }
|
||||
func (*Bucket) ProtoMessage() {}
|
||||
func (*Bucket) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_a65077c1fb226c53, []int{1}
|
||||
}
|
||||
func (m *Bucket) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Bucket.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Bucket.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Bucket) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Bucket.Merge(dst, src)
|
||||
}
|
||||
func (m *Bucket) XXX_Size() int {
|
||||
return xxx_messageInfo_Bucket.Size(m)
|
||||
}
|
||||
func (m *Bucket) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Bucket.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Bucket proto.InternalMessageInfo
|
||||
func (m *Bucket) Reset() { *m = Bucket{} }
|
||||
func (m *Bucket) String() string { return proto.CompactTextString(m) }
|
||||
func (*Bucket) ProtoMessage() {}
|
||||
func (*Bucket) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
func (m *Bucket) GetKey() string {
|
||||
if m != nil {
|
||||
|
@ -116,9 +82,9 @@ func init() {
|
|||
proto.RegisterType((*Bucket)(nil), "storagepacker.Bucket")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor_types_a65077c1fb226c53) }
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor_types_a65077c1fb226c53 = []byte{
|
||||
var fileDescriptor0 = []byte{
|
||||
// 181 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0xa9, 0x2c, 0x48,
|
||||
0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2d, 0x2e, 0xc9, 0x2f, 0x4a, 0x4c, 0x4f,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,15 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: types.proto
|
||||
|
||||
/*
|
||||
Package physical is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
types.proto
|
||||
|
||||
It has these top-level messages:
|
||||
SealWrapEntry
|
||||
*/
|
||||
package physical
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -19,38 +28,16 @@ var _ = math.Inf
|
|||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type SealWrapEntry struct {
|
||||
Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
||||
IV []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"`
|
||||
HMAC []byte `protobuf:"bytes,3,opt,name=hmac,proto3" json:"hmac,omitempty"`
|
||||
Wrapped bool `protobuf:"varint,4,opt,name=wrapped" json:"wrapped,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
||||
IV []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"`
|
||||
HMAC []byte `protobuf:"bytes,3,opt,name=hmac,proto3" json:"hmac,omitempty"`
|
||||
Wrapped bool `protobuf:"varint,4,opt,name=wrapped" json:"wrapped,omitempty"`
|
||||
}
|
||||
|
||||
func (m *SealWrapEntry) Reset() { *m = SealWrapEntry{} }
|
||||
func (m *SealWrapEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*SealWrapEntry) ProtoMessage() {}
|
||||
func (*SealWrapEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_types_2aa4a028b7313b7f, []int{0}
|
||||
}
|
||||
func (m *SealWrapEntry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SealWrapEntry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SealWrapEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SealWrapEntry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SealWrapEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SealWrapEntry.Merge(dst, src)
|
||||
}
|
||||
func (m *SealWrapEntry) XXX_Size() int {
|
||||
return xxx_messageInfo_SealWrapEntry.Size(m)
|
||||
}
|
||||
func (m *SealWrapEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SealWrapEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SealWrapEntry proto.InternalMessageInfo
|
||||
func (m *SealWrapEntry) Reset() { *m = SealWrapEntry{} }
|
||||
func (m *SealWrapEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*SealWrapEntry) ProtoMessage() {}
|
||||
func (*SealWrapEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *SealWrapEntry) GetCiphertext() []byte {
|
||||
if m != nil {
|
||||
|
@ -84,9 +71,9 @@ func init() {
|
|||
proto.RegisterType((*SealWrapEntry)(nil), "physical.SealWrapEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor_types_2aa4a028b7313b7f) }
|
||||
func init() { proto.RegisterFile("types.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor_types_2aa4a028b7313b7f = []byte{
|
||||
var fileDescriptor0 = []byte{
|
||||
// 138 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0xa9, 0x2c, 0x48,
|
||||
0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x28, 0xc8, 0xa8, 0x2c, 0xce, 0x4c, 0x4e,
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: request_forwarding_service.proto
|
||||
|
||||
/*
|
||||
Package vault is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
request_forwarding_service.proto
|
||||
|
||||
It has these top-level messages:
|
||||
EchoRequest
|
||||
EchoReply
|
||||
*/
|
||||
package vault
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -31,35 +41,13 @@ type EchoRequest struct {
|
|||
ClusterAddr string `protobuf:"bytes,2,opt,name=cluster_addr,json=clusterAddr" json:"cluster_addr,omitempty"`
|
||||
// ClusterAddrs is used to send up a list of cluster addresses to a dr
|
||||
// primary from a dr secondary
|
||||
ClusterAddrs []string `protobuf:"bytes,3,rep,name=cluster_addrs,json=clusterAddrs" json:"cluster_addrs,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ClusterAddrs []string `protobuf:"bytes,3,rep,name=cluster_addrs,json=clusterAddrs" json:"cluster_addrs,omitempty"`
|
||||
}
|
||||
|
||||
func (m *EchoRequest) Reset() { *m = EchoRequest{} }
|
||||
func (m *EchoRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*EchoRequest) ProtoMessage() {}
|
||||
func (*EchoRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_request_forwarding_service_1258ceaeca6e374d, []int{0}
|
||||
}
|
||||
func (m *EchoRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_EchoRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_EchoRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *EchoRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EchoRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *EchoRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_EchoRequest.Size(m)
|
||||
}
|
||||
func (m *EchoRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EchoRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EchoRequest proto.InternalMessageInfo
|
||||
func (m *EchoRequest) Reset() { *m = EchoRequest{} }
|
||||
func (m *EchoRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*EchoRequest) ProtoMessage() {}
|
||||
func (*EchoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *EchoRequest) GetMessage() string {
|
||||
if m != nil {
|
||||
|
@ -83,37 +71,15 @@ func (m *EchoRequest) GetClusterAddrs() []string {
|
|||
}
|
||||
|
||||
type EchoReply struct {
|
||||
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
|
||||
ClusterAddrs []string `protobuf:"bytes,2,rep,name=cluster_addrs,json=clusterAddrs" json:"cluster_addrs,omitempty"`
|
||||
ReplicationState uint32 `protobuf:"varint,3,opt,name=replication_state,json=replicationState" json:"replication_state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
|
||||
ClusterAddrs []string `protobuf:"bytes,2,rep,name=cluster_addrs,json=clusterAddrs" json:"cluster_addrs,omitempty"`
|
||||
ReplicationState uint32 `protobuf:"varint,3,opt,name=replication_state,json=replicationState" json:"replication_state,omitempty"`
|
||||
}
|
||||
|
||||
func (m *EchoReply) Reset() { *m = EchoReply{} }
|
||||
func (m *EchoReply) String() string { return proto.CompactTextString(m) }
|
||||
func (*EchoReply) ProtoMessage() {}
|
||||
func (*EchoReply) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_request_forwarding_service_1258ceaeca6e374d, []int{1}
|
||||
}
|
||||
func (m *EchoReply) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_EchoReply.Unmarshal(m, b)
|
||||
}
|
||||
func (m *EchoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_EchoReply.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *EchoReply) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EchoReply.Merge(dst, src)
|
||||
}
|
||||
func (m *EchoReply) XXX_Size() int {
|
||||
return xxx_messageInfo_EchoReply.Size(m)
|
||||
}
|
||||
func (m *EchoReply) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EchoReply.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EchoReply proto.InternalMessageInfo
|
||||
func (m *EchoReply) Reset() { *m = EchoReply{} }
|
||||
func (m *EchoReply) String() string { return proto.CompactTextString(m) }
|
||||
func (*EchoReply) ProtoMessage() {}
|
||||
func (*EchoReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
func (m *EchoReply) GetMessage() string {
|
||||
if m != nil {
|
||||
|
@ -246,11 +212,9 @@ var _RequestForwarding_serviceDesc = grpc.ServiceDesc{
|
|||
Metadata: "request_forwarding_service.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("request_forwarding_service.proto", fileDescriptor_request_forwarding_service_1258ceaeca6e374d)
|
||||
}
|
||||
func init() { proto.RegisterFile("request_forwarding_service.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor_request_forwarding_service_1258ceaeca6e374d = []byte{
|
||||
var fileDescriptor0 = []byte{
|
||||
// 287 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xbf, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0xc6, 0x9b, 0x96, 0x3f, 0xaa, 0xdb, 0xa2, 0xd6, 0x30, 0x44, 0x99, 0x42, 0x58, 0x22, 0x21,
|
||||
|
|
Loading…
Reference in New Issue