Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + var ErrNoEntityAttachedToToken = errors.New("string contains entity template directives but no entity was provided") + var ErrNoGroupsAttachedToToken = errors.New("string contains groups template directives but no groups were provided") + var ErrTemplateValueNotFound = errors.New("no value could be found for one of the template directives") + var ErrUnbalancedTemplatingCharacter = errors.New("unbalanced templating characters") + func PopulateString(p *PopulateStringInput) (bool, string, error) + type Alias struct + CanonicalID string + CreationTime *timestamp.Timestamp + ID string + LastUpdateTime *timestamp.Timestamp + MergedFromCanonicalIDs []string + Metadata map[string]string + MountAccessor string + MountPath string + MountType string + Name string + NamespaceID string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Alias) Descriptor() ([]byte, []int) + func (*Alias) ProtoMessage() + func (a *Alias) SentinelKeys() []string + func (m *Alias) GetCanonicalID() string + func (m *Alias) GetCreationTime() *timestamp.Timestamp + func (m *Alias) GetID() string + func (m *Alias) GetLastUpdateTime() *timestamp.Timestamp + func (m *Alias) GetMergedFromCanonicalIDs() []string + func (m *Alias) GetMetadata() map[string]string + func (m *Alias) GetMountAccessor() string + func (m *Alias) GetMountPath() string + func (m *Alias) GetMountType() string + func (m *Alias) GetName() string + func (m *Alias) GetNamespaceID() string + func (m *Alias) Reset() + func (m *Alias) String() string + func (m *Alias) XXX_DiscardUnknown() + func (m *Alias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Alias) XXX_Merge(src proto.Message) + func (m *Alias) XXX_Size() int + func (m *Alias) XXX_Unmarshal(b []byte) error + func (p *Alias) Clone() (*Alias, error) + func (p *Alias) SentinelGet(key string) (interface{}, error) + type Entity struct + Aliases []*Alias + BucketKeyHash string + CreationTime *timestamp.Timestamp + Disabled bool + ID string + LastUpdateTime *timestamp.Timestamp + MFASecrets map[string]*mfa.Secret + MergedEntityIDs []string + Metadata map[string]string + Name string + NamespaceID string + Policies []string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Entity) Descriptor() ([]byte, []int) + func (*Entity) ProtoMessage() + func (e *Entity) Clone() (*Entity, error) + func (e *Entity) SentinelGet(key string) (interface{}, error) + func (e *Entity) SentinelKeys() []string + func (m *Entity) GetAliases() []*Alias + func (m *Entity) GetBucketKeyHash() string + func (m *Entity) GetCreationTime() *timestamp.Timestamp + func (m *Entity) GetDisabled() bool + func (m *Entity) GetID() string + func (m *Entity) GetLastUpdateTime() *timestamp.Timestamp + func (m *Entity) GetMFASecrets() map[string]*mfa.Secret + func (m *Entity) GetMergedEntityIDs() []string + func (m *Entity) GetMetadata() map[string]string + func (m *Entity) GetName() string + func (m *Entity) GetNamespaceID() string + func (m *Entity) GetPolicies() []string + func (m *Entity) Reset() + func (m *Entity) String() string + func (m *Entity) XXX_DiscardUnknown() + func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Entity) XXX_Merge(src proto.Message) + func (m *Entity) XXX_Size() int + func (m *Entity) XXX_Unmarshal(b []byte) error + type EntityStorageEntry struct + BucketKeyHash string + CreationTime *timestamp.Timestamp + ID string + LastUpdateTime *timestamp.Timestamp + MFASecrets map[string]*mfa.Secret + MergedEntityIDs []string + Metadata map[string]string + Name string + Personas []*PersonaIndexEntry + Policies []string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EntityStorageEntry) Descriptor() ([]byte, []int) + func (*EntityStorageEntry) ProtoMessage() + func (m *EntityStorageEntry) GetBucketKeyHash() string + func (m *EntityStorageEntry) GetCreationTime() *timestamp.Timestamp + func (m *EntityStorageEntry) GetID() string + func (m *EntityStorageEntry) GetLastUpdateTime() *timestamp.Timestamp + func (m *EntityStorageEntry) GetMFASecrets() map[string]*mfa.Secret + func (m *EntityStorageEntry) GetMergedEntityIDs() []string + func (m *EntityStorageEntry) GetMetadata() map[string]string + func (m *EntityStorageEntry) GetName() string + func (m *EntityStorageEntry) GetPersonas() []*PersonaIndexEntry + func (m *EntityStorageEntry) GetPolicies() []string + func (m *EntityStorageEntry) Reset() + func (m *EntityStorageEntry) String() string + func (m *EntityStorageEntry) XXX_DiscardUnknown() + func (m *EntityStorageEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EntityStorageEntry) XXX_Merge(src proto.Message) + func (m *EntityStorageEntry) XXX_Size() int + func (m *EntityStorageEntry) XXX_Unmarshal(b []byte) error + type Group struct + Alias *Alias + BucketKeyHash string + CreationTime *timestamp.Timestamp + ID string + LastUpdateTime *timestamp.Timestamp + MemberEntityIDs []string + Metadata map[string]string + ModifyIndex uint64 + Name string + NamespaceID string + ParentGroupIDs []string + Policies []string + Type string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Group) Descriptor() ([]byte, []int) + func (*Group) ProtoMessage() + func (g *Group) Clone() (*Group, error) + func (g *Group) SentinelGet(key string) (interface{}, error) + func (g *Group) SentinelKeys() []string + func (m *Group) GetAlias() *Alias + func (m *Group) GetBucketKeyHash() string + func (m *Group) GetCreationTime() *timestamp.Timestamp + func (m *Group) GetID() string + func (m *Group) GetLastUpdateTime() *timestamp.Timestamp + func (m *Group) GetMemberEntityIDs() []string + func (m *Group) GetMetadata() map[string]string + func (m *Group) GetModifyIndex() uint64 + func (m *Group) GetName() string + func (m *Group) GetNamespaceID() string + func (m *Group) GetParentGroupIDs() []string + func (m *Group) GetPolicies() []string + func (m *Group) GetType() string + func (m *Group) Reset() + func (m *Group) String() string + func (m *Group) XXX_DiscardUnknown() + func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Group) XXX_Merge(src proto.Message) + func (m *Group) XXX_Size() int + func (m *Group) XXX_Unmarshal(b []byte) error + type PersonaIndexEntry struct + CreationTime *timestamp.Timestamp + EntityID string + ID string + LastUpdateTime *timestamp.Timestamp + MergedFromEntityIDs []string + Metadata map[string]string + MountAccessor string + MountPath string + MountType string + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*PersonaIndexEntry) Descriptor() ([]byte, []int) + func (*PersonaIndexEntry) ProtoMessage() + func (m *PersonaIndexEntry) GetCreationTime() *timestamp.Timestamp + func (m *PersonaIndexEntry) GetEntityID() string + func (m *PersonaIndexEntry) GetID() string + func (m *PersonaIndexEntry) GetLastUpdateTime() *timestamp.Timestamp + func (m *PersonaIndexEntry) GetMergedFromEntityIDs() []string + func (m *PersonaIndexEntry) GetMetadata() map[string]string + func (m *PersonaIndexEntry) GetMountAccessor() string + func (m *PersonaIndexEntry) GetMountPath() string + func (m *PersonaIndexEntry) GetMountType() string + func (m *PersonaIndexEntry) GetName() string + func (m *PersonaIndexEntry) Reset() + func (m *PersonaIndexEntry) String() string + func (m *PersonaIndexEntry) XXX_DiscardUnknown() + func (m *PersonaIndexEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PersonaIndexEntry) XXX_Merge(src proto.Message) + func (m *PersonaIndexEntry) XXX_Size() int + func (m *PersonaIndexEntry) XXX_Unmarshal(b []byte) error + type PopulateStringInput struct + Entity *Entity + Groups []*Group + Namespace *namespace.Namespace + String string + ValidityCheckOnly bool