2018-06-04 00:48:12 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: logical/identity.proto
|
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
package logical
|
2018-06-04 00:48:12 +00:00
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
|
|
|
)
|
2018-06-04 00:48:12 +00:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
|
|
|
type Entity struct {
|
|
|
|
// ID is the unique identifier for the entity
|
2018-09-18 03:03:00 +00:00
|
|
|
ID string `sentinel:"" protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
2018-06-04 00:48:12 +00:00
|
|
|
// Name is the human-friendly unique identifier for the entity
|
2018-09-18 03:03:00 +00:00
|
|
|
Name string `sentinel:"" protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
2018-06-04 00:48:12 +00:00
|
|
|
// Aliases contains thhe alias mappings for the given entity
|
2018-09-18 03:03:00 +00:00
|
|
|
Aliases []*Alias `sentinel:"" protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
|
2018-07-23 16:45:06 +00:00
|
|
|
// Metadata represents the custom data tied to this entity
|
2018-09-18 03:03:00 +00:00
|
|
|
Metadata map[string]string `sentinel:"" protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2018-07-23 16:45:06 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} }
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Entity) ProtoMessage() {}
|
|
|
|
func (*Entity) Descriptor() ([]byte, []int) {
|
2018-09-22 21:58:39 +00:00
|
|
|
return fileDescriptor_04442ca37d5e30be, []int{0}
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
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)
|
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
func (m *Entity) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Entity.Merge(m, src)
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
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) GetID() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) GetAliases() []*Alias {
|
|
|
|
if m != nil {
|
|
|
|
return m.Aliases
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-23 16:45:06 +00:00
|
|
|
func (m *Entity) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
type Alias struct {
|
|
|
|
// MountType is the backend mount's type to which this identity belongs
|
2018-09-18 03:03:00 +00:00
|
|
|
MountType string `sentinel:"" protobuf:"bytes,1,opt,name=mount_type,json=mountType,proto3" json:"mount_type,omitempty"`
|
2018-06-04 00:48:12 +00:00
|
|
|
// MountAccessor is the identifier of the mount entry to which this
|
|
|
|
// identity belongs
|
2018-09-18 03:03:00 +00:00
|
|
|
MountAccessor string `sentinel:"" protobuf:"bytes,2,opt,name=mount_accessor,json=mountAccessor,proto3" json:"mount_accessor,omitempty"`
|
2018-06-04 00:48:12 +00:00
|
|
|
// Name is the identifier of this identity in its authentication source
|
2018-09-18 03:03:00 +00:00
|
|
|
Name string `sentinel:"" protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
2018-07-23 16:45:06 +00:00
|
|
|
// Metadata represents the custom data tied to this alias
|
2018-09-18 03:03:00 +00:00
|
|
|
Metadata map[string]string `sentinel:"" protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2018-07-23 16:45:06 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Alias) Reset() { *m = Alias{} }
|
|
|
|
func (m *Alias) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Alias) ProtoMessage() {}
|
|
|
|
func (*Alias) Descriptor() ([]byte, []int) {
|
2018-09-22 21:58:39 +00:00
|
|
|
return fileDescriptor_04442ca37d5e30be, []int{1}
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
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)
|
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
func (m *Alias) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Alias.Merge(m, src)
|
2018-06-04 00:48:12 +00:00
|
|
|
}
|
|
|
|
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) GetMountType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.MountType
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Alias) GetMountAccessor() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.MountAccessor
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Alias) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-07-23 16:45:06 +00:00
|
|
|
func (m *Alias) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-06-04 00:48:12 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Entity)(nil), "logical.Entity")
|
2018-07-23 16:45:06 +00:00
|
|
|
proto.RegisterMapType((map[string]string)(nil), "logical.Entity.MetadataEntry")
|
2018-06-04 00:48:12 +00:00
|
|
|
proto.RegisterType((*Alias)(nil), "logical.Alias")
|
2018-07-23 16:45:06 +00:00
|
|
|
proto.RegisterMapType((map[string]string)(nil), "logical.Alias.MetadataEntry")
|
|
|
|
}
|
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
func init() { proto.RegisterFile("logical/identity.proto", fileDescriptor_04442ca37d5e30be) }
|
2018-07-23 16:45:06 +00:00
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
var fileDescriptor_04442ca37d5e30be = []byte{
|
2018-07-23 16:45:06 +00:00
|
|
|
// 287 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x91, 0x4f, 0x4b, 0xc3, 0x40,
|
|
|
|
0x10, 0xc5, 0x49, 0xd2, 0x3f, 0x76, 0xa4, 0x45, 0x06, 0x91, 0x20, 0x16, 0x4a, 0x50, 0xc8, 0x29,
|
|
|
|
0x01, 0xbd, 0x54, 0x3d, 0x55, 0xda, 0x43, 0x0f, 0x5e, 0x82, 0x27, 0x2f, 0x32, 0x4d, 0x97, 0x66,
|
|
|
|
0x31, 0xc9, 0x86, 0x64, 0x52, 0xc8, 0x97, 0xf4, 0xec, 0xc7, 0x91, 0x6e, 0xb6, 0xc1, 0xe2, 0xd9,
|
|
|
|
0xdb, 0xec, 0xef, 0xcd, 0xce, 0xbe, 0x79, 0x0b, 0x57, 0xa9, 0xda, 0xc9, 0x98, 0xd2, 0x50, 0x6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