2018-06-04 00:48:12 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2019-04-12 21:54:35 +00:00
|
|
|
// source: sdk/logical/identity.proto
|
2018-06-04 00:48:12 +00:00
|
|
|
|
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"
|
2019-02-01 16:23:40 +00:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
2019-02-05 21:02:15 +00:00
|
|
|
math "math"
|
2018-09-22 21:58:39 +00:00
|
|
|
)
|
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.
|
2019-04-13 03:13:14 +00:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2018-06-04 00:48:12 +00:00
|
|
|
|
|
|
|
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:"-"`
|
2019-05-28 21:31:50 +00:00
|
|
|
// Disabled is true if the entity is disabled.
|
|
|
|
Disabled bool `sentinel:"" protobuf:"varint,5,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
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) {
|
2019-04-12 21:54:35 +00:00
|
|
|
return fileDescriptor_4a34d35719c603a1, []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
|
|
|
|
}
|
|
|
|
|
2019-05-28 21:31:50 +00:00
|
|
|
func (m *Entity) GetDisabled() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Disabled
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
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) {
|
2019-04-12 21:54:35 +00:00
|
|
|
return fileDescriptor_4a34d35719c603a1, []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")
|
|
|
|
}
|
|
|
|
|
2019-04-12 21:54:35 +00:00
|
|
|
func init() { proto.RegisterFile("sdk/logical/identity.proto", fileDescriptor_4a34d35719c603a1) }
|
|
|
|
|
|
|
|
var fileDescriptor_4a34d35719c603a1 = []byte{
|
2019-05-28 21:31:50 +00:00
|
|
|
// 310 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xbf, 0x6a, 0xc3, 0x30,
|
|
|
|
0x10, 0xc6, 0x91, 0x9d, 0xbf, 0x57, 0x12, 0x8a, 0xe8, 0x60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