2017-10-11 17:21:20 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2018-06-04 14:19:26 +00:00
|
|
|
// source: helper/identity/types.proto
|
2017-10-11 17:21:20 +00:00
|
|
|
|
2018-06-04 14:19:26 +00:00
|
|
|
package identity // import "github.com/hashicorp/vault/helper/identity"
|
2017-10-11 17:21:20 +00:00
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
2018-05-03 19:38:53 +00:00
|
|
|
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
2017-10-11 17:21:20 +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
|
|
|
|
|
|
|
|
// Group represents an identity group.
|
|
|
|
type Group struct {
|
|
|
|
// ID is the unique identifier for this group
|
2017-10-23 21:45:05 +00:00
|
|
|
ID string `sentinel:"" protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Name is the unique name for this group
|
2017-10-23 21:45:05 +00:00
|
|
|
Name string `sentinel:"" protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Policies are the vault policies to be granted to members of this group
|
2017-10-23 21:45:05 +00:00
|
|
|
Policies []string `sentinel:"" protobuf:"bytes,3,rep,name=policies" json:"policies,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// ParentGroupIDs are the identifiers of those groups to which this group is a
|
|
|
|
// member of. These will serve as references to the parent group in the
|
|
|
|
// hierarchy.
|
2017-10-23 21:45:05 +00:00
|
|
|
ParentGroupIDs []string `sentinel:"" protobuf:"bytes,4,rep,name=parent_group_ids,json=parentGroupIds" json:"parent_group_ids,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// MemberEntityIDs are the identifiers of entities which are members of this
|
|
|
|
// group
|
2017-10-23 21:45:05 +00:00
|
|
|
MemberEntityIDs []string `sentinel:"" protobuf:"bytes,5,rep,name=member_entity_ids,json=memberEntityIDs" json:"member_entity_ids,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Metadata represents the custom data tied with this group
|
2017-10-23 21:45:05 +00:00
|
|
|
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"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// CreationTime is the time at which this group was created
|
2018-05-03 19:38:53 +00:00
|
|
|
CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,7,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// LastUpdateTime is the time at which this group was last modified
|
2018-05-03 19:38:53 +00:00
|
|
|
LastUpdateTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,8,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// ModifyIndex tracks the number of updates to the group. It is useful to detect
|
|
|
|
// updates to the groups.
|
2017-10-23 21:45:05 +00:00
|
|
|
ModifyIndex uint64 `sentinel:"" protobuf:"varint,9,opt,name=modify_index,json=modifyIndex" json:"modify_index,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// BucketKeyHash is the MD5 hash of the storage bucket key into which this
|
|
|
|
// group is stored in the underlying storage. This is useful to find all
|
|
|
|
// the groups belonging to a particular bucket during invalidation of the
|
|
|
|
// storage key.
|
2017-10-23 21:45:05 +00:00
|
|
|
BucketKeyHash string `sentinel:"" protobuf:"bytes,10,opt,name=bucket_key_hash,json=bucketKeyHash" json:"bucket_key_hash,omitempty"`
|
2017-11-02 20:05:48 +00:00
|
|
|
// Alias is used to mark this group as an internal mapping of a group that
|
|
|
|
// is external to the identity store. Alias can only be set if the 'type'
|
|
|
|
// is set to 'external'.
|
|
|
|
Alias *Alias `sentinel:"" protobuf:"bytes,11,opt,name=alias" json:"alias,omitempty"`
|
|
|
|
// Type indicates if this group is an internal group or an external group.
|
|
|
|
// 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.
|
2018-05-03 19:38:53 +00:00
|
|
|
Type string `sentinel:"" protobuf:"bytes,12,opt,name=type" json:"type,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) Reset() { *m = Group{} }
|
|
|
|
func (m *Group) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Group) ProtoMessage() {}
|
|
|
|
func (*Group) Descriptor() ([]byte, []int) {
|
2018-06-04 14:19:26 +00:00
|
|
|
return fileDescriptor_types_d1c3c8d60c8e2caa, []int{0}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
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)
|
2017-10-11 17:21:20 +00:00
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
var xxx_messageInfo_Group proto.InternalMessageInfo
|
2017-10-11 17:21:20 +00:00
|
|
|
|
|
|
|
func (m *Group) GetID() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetPolicies() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Policies
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetParentGroupIDs() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ParentGroupIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetMemberEntityIDs() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.MemberEntityIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
func (m *Group) GetCreationTime() *timestamp.Timestamp {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.CreationTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
func (m *Group) GetLastUpdateTime() *timestamp.Timestamp {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.LastUpdateTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetModifyIndex() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ModifyIndex
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetBucketKeyHash() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.BucketKeyHash
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-11-02 20:05:48 +00:00
|
|
|
func (m *Group) GetAlias() *Alias {
|
|
|
|
if m != nil {
|
|
|
|
return m.Alias
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Group) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-10-11 17:21:20 +00:00
|
|
|
// Entity represents an entity that gets persisted and indexed.
|
|
|
|
// Entity is fundamentally composed of zero or many aliases.
|
|
|
|
type Entity struct {
|
|
|
|
// Aliases are the identities that this entity is made of. This can be
|
|
|
|
// empty as well to favor being able to create the entity first and then
|
|
|
|
// incrementally adding aliases.
|
2017-10-23 21:45:05 +00:00
|
|
|
Aliases []*Alias `sentinel:"" protobuf:"bytes,1,rep,name=aliases" json:"aliases,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// ID is the unique identifier of the entity which always be a UUID. This
|
|
|
|
// should never be allowed to be updated.
|
2017-10-23 21:45:05 +00:00
|
|
|
ID string `sentinel:"" protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Name is a unique identifier of the entity which is intended to be
|
|
|
|
// human-friendly. The default name might not be human friendly since it
|
|
|
|
// gets suffixed by a UUID, but it can optionally be updated, unlike the ID
|
|
|
|
// field.
|
2017-10-23 21:45:05 +00:00
|
|
|
Name string `sentinel:"" protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Metadata represents the explicit metadata which is set by the
|
|
|
|
// clients. This is useful to tie any information pertaining to the
|
|
|
|
// aliases. This is a non-unique field of entity, meaning multiple
|
|
|
|
// entities can have the same metadata set. Entities will be indexed based
|
|
|
|
// on this explicit metadata. This enables virtual groupings of entities
|
|
|
|
// based on its metadata.
|
2017-10-23 21:45:05 +00:00
|
|
|
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"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// CreationTime is the time at which this entity is first created.
|
2018-05-03 19:38:53 +00:00
|
|
|
CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,5,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// 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.
|
2018-05-03 19:38:53 +00:00
|
|
|
LastUpdateTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// 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
|
|
|
|
// to the merged entities. Merged entities will be deleted entirely and
|
|
|
|
// this is the only trackable trail of its earlier presence.
|
2017-10-23 21:45:05 +00:00
|
|
|
MergedEntityIDs []string `sentinel:"" protobuf:"bytes,7,rep,name=merged_entity_ids,json=mergedEntityIDs" json:"merged_entity_ids,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Policies the entity is entitled to
|
2017-10-23 21:45:05 +00:00
|
|
|
Policies []string `sentinel:"" protobuf:"bytes,8,rep,name=policies" json:"policies,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// BucketKeyHash is the MD5 hash of the storage bucket key into which this
|
|
|
|
// entity is stored in the underlying storage. This is useful to find all
|
|
|
|
// the entities belonging to a particular bucket during invalidation of the
|
|
|
|
// storage key.
|
2017-10-23 21:45:05 +00:00
|
|
|
BucketKeyHash string `sentinel:"" protobuf:"bytes,9,opt,name=bucket_key_hash,json=bucketKeyHash" json:"bucket_key_hash,omitempty"`
|
2018-04-14 01:49:40 +00:00
|
|
|
// Disabled indicates whether tokens associated with the account should not
|
|
|
|
// be able to be used
|
2018-05-03 19:38:53 +00:00
|
|
|
Disabled bool `sentinel:"" protobuf:"varint,11,opt,name=disabled" json:"disabled,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2017-10-11 17:21:20 +00:00
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +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-06-04 14:19:26 +00:00
|
|
|
return fileDescriptor_types_d1c3c8d60c8e2caa, []int{1}
|
2018-05-03 19:38:53 +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)
|
|
|
|
}
|
|
|
|
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
|
2017-10-11 17:21:20 +00:00
|
|
|
|
|
|
|
func (m *Entity) GetAliases() []*Alias {
|
|
|
|
if m != nil {
|
|
|
|
return m.Aliases
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
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) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
func (m *Entity) GetCreationTime() *timestamp.Timestamp {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.CreationTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
func (m *Entity) GetLastUpdateTime() *timestamp.Timestamp {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.LastUpdateTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) GetMergedEntityIDs() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.MergedEntityIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) GetPolicies() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Policies
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) GetBucketKeyHash() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.BucketKeyHash
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-14 01:49:40 +00:00
|
|
|
func (m *Entity) GetDisabled() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Disabled
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2017-10-11 17:21:20 +00:00
|
|
|
// Alias represents the alias that gets stored inside of the
|
|
|
|
// entity object in storage and also represents in an in-memory index of an
|
|
|
|
// alias object.
|
|
|
|
type Alias struct {
|
|
|
|
// ID is the unique identifier that represents this alias
|
2017-10-23 21:45:05 +00:00
|
|
|
ID string `sentinel:"" protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
2017-11-02 20:05:48 +00:00
|
|
|
// CanonicalID is the entity identifier to which this alias belongs to
|
|
|
|
CanonicalID string `sentinel:"" protobuf:"bytes,2,opt,name=canonical_id,json=canonicalId" json:"canonical_id,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// MountType is the backend mount's type to which this alias belongs to.
|
|
|
|
// This enables categorically querying aliases of specific backend types.
|
2017-10-23 21:45:05 +00:00
|
|
|
MountType string `sentinel:"" protobuf:"bytes,3,opt,name=mount_type,json=mountType" json:"mount_type,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// MountAccessor is the backend mount's accessor to which this alias
|
|
|
|
// belongs to.
|
2017-10-23 21:45:05 +00:00
|
|
|
MountAccessor string `sentinel:"" protobuf:"bytes,4,opt,name=mount_accessor,json=mountAccessor" json:"mount_accessor,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// MountPath is the backend mount's path to which the Maccessor belongs to. This
|
|
|
|
// field is not used for any operational purposes. This is only returned when
|
|
|
|
// alias is read, only as a nicety.
|
2017-10-23 21:45:05 +00:00
|
|
|
MountPath string `sentinel:"" protobuf:"bytes,5,opt,name=mount_path,json=mountPath" json:"mount_path,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Metadata is the explicit metadata that clients set against an entity
|
|
|
|
// which enables virtual grouping of aliases. Aliases will be indexed
|
|
|
|
// against their metadata.
|
2017-10-23 21:45:05 +00:00
|
|
|
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"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// Name is the identifier of this alias in its authentication source.
|
2017-11-02 20:05:48 +00:00
|
|
|
// This does not uniquely identify an alias in Vault. This in conjunction
|
|
|
|
// with MountAccessor form to be the factors that represent an alias in a
|
2017-10-11 17:21:20 +00:00
|
|
|
// unique way. Aliases will be indexed based on this combined uniqueness
|
|
|
|
// factor.
|
2017-10-23 21:45:05 +00:00
|
|
|
Name string `sentinel:"" protobuf:"bytes,7,opt,name=name" json:"name,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// CreationTime is the time at which this alias was first created
|
2018-05-03 19:38:53 +00:00
|
|
|
CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,8,opt,name=creation_time,json=creationTime" json:"creation_time,omitempty"`
|
2017-10-11 17:21:20 +00:00
|
|
|
// 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.
|
2018-05-03 19:38:53 +00:00
|
|
|
LastUpdateTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,9,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
2017-11-02 20:05:48 +00:00
|
|
|
// 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"`
|
2018-05-03 19:38:53 +00:00
|
|
|
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) {
|
2018-06-04 14:19:26 +00:00
|
|
|
return fileDescriptor_types_d1c3c8d60c8e2caa, []int{2}
|
2018-05-03 19:38:53 +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)
|
|
|
|
}
|
|
|
|
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)
|
2017-10-11 17:21:20 +00:00
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
var xxx_messageInfo_Alias proto.InternalMessageInfo
|
2017-10-11 17:21:20 +00:00
|
|
|
|
|
|
|
func (m *Alias) GetID() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-11-02 20:05:48 +00:00
|
|
|
func (m *Alias) GetCanonicalID() string {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
2017-11-02 20:05:48 +00:00
|
|
|
return m.CanonicalID
|
2017-10-11 17:21:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
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) GetMountPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.MountPath
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Alias) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Alias) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
func (m *Alias) GetCreationTime() *timestamp.Timestamp {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.CreationTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-03 19:38:53 +00:00
|
|
|
func (m *Alias) GetLastUpdateTime() *timestamp.Timestamp {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.LastUpdateTime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-11-02 20:05:48 +00:00
|
|
|
func (m *Alias) GetMergedFromCanonicalIDs() []string {
|
2017-10-11 17:21:20 +00:00
|
|
|
if m != nil {
|
2017-11-02 20:05:48 +00:00
|
|
|
return m.MergedFromCanonicalIDs
|
2017-10-11 17:21:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Group)(nil), "identity.Group")
|
2018-05-03 19:38:53 +00:00
|
|
|
proto.RegisterMapType((map[string]string)(nil), "identity.Group.MetadataEntry")
|
2017-10-11 17:21:20 +00:00
|
|
|
proto.RegisterType((*Entity)(nil), "identity.Entity")
|
2018-05-03 19:38:53 +00:00
|
|
|
proto.RegisterMapType((map[string]string)(nil), "identity.Entity.MetadataEntry")
|
2017-10-11 17:21:20 +00:00
|
|
|
proto.RegisterType((*Alias)(nil), "identity.Alias")
|
2018-05-03 19:38:53 +00:00
|
|
|
proto.RegisterMapType((map[string]string)(nil), "identity.Alias.MetadataEntry")
|
2017-10-11 17:21:20 +00:00
|
|
|
}
|
|
|
|
|
2018-06-04 14:19:26 +00:00
|
|
|
func init() { proto.RegisterFile("helper/identity/types.proto", fileDescriptor_types_d1c3c8d60c8e2caa) }
|
|
|
|
|
|
|
|
var fileDescriptor_types_d1c3c8d60c8e2caa = []byte{
|
|
|
|
// 656 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x5d, 0x6f, 0xd3, 0x3c,
|
|
|
|
0x14, 0xc7, 0xd5, 0xa6, 0x2f, 0xe9, 0x69, 0xd7, 0xed, 0xb1, 0x1e, 0xa1, 0x50, 0x34, 0xe8, 0x26,
|
|
|
|
0x0d, 0x95, 0x09, 0x25, 0xd2, 0xb8, 0x61, 0xe3, 0x02, 0x0d, 0x18, 0x30, 0x21, 0x24, 0x14, 0x8d,
|
|
|
|
0x1b, 0x6e, 0x22, 0x37, 0xf1, 0x1a, 0x6b, 0x49, 0x1c, 0xc5, 0xce, 0x44, 0xbe, 0x0e, 0x5f, 0x8d,
|
|
|
|
0x6b, 0xbe, 0x03, 0xf2, 0x71, 0xd3, 0x96, 0x75, 0xbc, 0x4c, 0xdb, 0x9d, 0xfd, 0x3f, 0x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