Documentation ¶
Index ¶
- func NormalizeIdentifier(ct identity.CredentialsType, match string) string
- func QueryForCredentials(con *pop.Connection, where ...Where) (map[uuid.UUID](map[identity.CredentialsType]identity.Credentials), error)
- func WithTransaction(ctx context.Context, tx *pop.Connection) context.Context
- type IdentityPersister
- func (p *IdentityPersister) CountIdentities(ctx context.Context) (n int64, err error)
- func (p *IdentityPersister) CreateIdentities(ctx context.Context, identities ...*identity.Identity) (err error)
- func (p *IdentityPersister) CreateIdentity(ctx context.Context, ident *identity.Identity) (err error)
- func (p *IdentityPersister) DeleteIdentities(ctx context.Context, ids []uuid.UUID) (err error)
- func (p *IdentityPersister) DeleteIdentity(ctx context.Context, id uuid.UUID) (err error)
- func (p *IdentityPersister) FindByCredentialsIdentifier(ctx context.Context, ct identity.CredentialsType, match string) (_ *identity.Identity, _ *identity.Credentials, err error)
- func (p *IdentityPersister) FindIdentityByCredentialIdentifier(ctx context.Context, identifier string, caseSensitive bool) (_ *identity.Identity, err error)
- func (p *IdentityPersister) FindIdentityByWebauthnUserHandle(ctx context.Context, userHandle []byte) (_ *identity.Identity, err error)
- func (p *IdentityPersister) FindRecoveryAddressByValue(ctx context.Context, via identity.RecoveryAddressType, value string) (_ *identity.RecoveryAddress, err error)
- func (p *IdentityPersister) FindVerifiableAddressByValue(ctx context.Context, via string, value string) (_ *identity.VerifiableAddress, err error)
- func (p *IdentityPersister) GetConnection(ctx context.Context) *pop.Connection
- func (p *IdentityPersister) GetIdentity(ctx context.Context, id uuid.UUID, expand identity.Expandables) (_ *identity.Identity, err error)
- func (p *IdentityPersister) GetIdentityConfidential(ctx context.Context, id uuid.UUID) (res *identity.Identity, err error)
- func (p *IdentityPersister) HydrateIdentityAssociations(ctx context.Context, i *identity.Identity, expand identity.Expandables) (err error)
- func (p *IdentityPersister) InjectTraitsSchemaURL(ctx context.Context, i *identity.Identity) (err error)
- func (p *IdentityPersister) ListIdentities(ctx context.Context, params identity.ListIdentityParameters) (_ []identity.Identity, nextPage *keysetpagination.Paginator, err error)
- func (p *IdentityPersister) ListRecoveryAddresses(ctx context.Context, page, itemsPerPage int) (a []identity.RecoveryAddress, err error)
- func (p *IdentityPersister) ListVerifiableAddresses(ctx context.Context, page, itemsPerPage int) (a []identity.VerifiableAddress, err error)
- func (p *IdentityPersister) NetworkID(ctx context.Context) uuid.UUID
- func (p *IdentityPersister) Transaction(ctx context.Context, ...) error
- func (p *IdentityPersister) UpdateIdentity(ctx context.Context, i *identity.Identity) (err error)
- func (p *IdentityPersister) UpdateIdentityColumns(ctx context.Context, i *identity.Identity, columns ...string) (err error)
- func (p *IdentityPersister) UpdateVerifiableAddress(ctx context.Context, address *identity.VerifiableAddress) (err error)
- func (p *IdentityPersister) VerifyAddress(ctx context.Context, code string) (err error)
- func (p IdentityPersister) WithNetworkID(nid uuid.UUID) identity.PrivilegedPool
- type Where
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeIdentifier ¶
func NormalizeIdentifier(ct identity.CredentialsType, match string) string
func QueryForCredentials ¶
func QueryForCredentials(con *pop.Connection, where ...Where) (map[uuid.UUID](map[identity.CredentialsType]identity.Credentials), error)
QueryForCredentials queries for identity credentials with custom WHERE clauses, returning the results resolved by the owning identity's UUID.
Types ¶
type IdentityPersister ¶
type IdentityPersister struct {
// contains filtered or unexported fields
}
func NewPersister ¶
func NewPersister(r dependencies, c *pop.Connection) *IdentityPersister
func (*IdentityPersister) CountIdentities ¶
func (p *IdentityPersister) CountIdentities(ctx context.Context) (n int64, err error)
func (*IdentityPersister) CreateIdentities ¶
func (*IdentityPersister) CreateIdentity ¶
func (*IdentityPersister) DeleteIdentities ¶ added in v1.3.0
func (*IdentityPersister) DeleteIdentity ¶
func (*IdentityPersister) FindByCredentialsIdentifier ¶
func (p *IdentityPersister) FindByCredentialsIdentifier(ctx context.Context, ct identity.CredentialsType, match string) (_ *identity.Identity, _ *identity.Credentials, err error)
func (*IdentityPersister) FindIdentityByCredentialIdentifier ¶ added in v1.1.0
func (*IdentityPersister) FindIdentityByWebauthnUserHandle ¶ added in v1.2.0
func (*IdentityPersister) FindRecoveryAddressByValue ¶
func (p *IdentityPersister) FindRecoveryAddressByValue(ctx context.Context, via identity.RecoveryAddressType, value string) (_ *identity.RecoveryAddress, err error)
func (*IdentityPersister) FindVerifiableAddressByValue ¶
func (p *IdentityPersister) FindVerifiableAddressByValue(ctx context.Context, via string, value string) (_ *identity.VerifiableAddress, err error)
func (*IdentityPersister) GetConnection ¶
func (p *IdentityPersister) GetConnection(ctx context.Context) *pop.Connection
func (*IdentityPersister) GetIdentity ¶
func (p *IdentityPersister) GetIdentity(ctx context.Context, id uuid.UUID, expand identity.Expandables) (_ *identity.Identity, err error)
func (*IdentityPersister) GetIdentityConfidential ¶
func (*IdentityPersister) HydrateIdentityAssociations ¶
func (p *IdentityPersister) HydrateIdentityAssociations(ctx context.Context, i *identity.Identity, expand identity.Expandables) (err error)
func (*IdentityPersister) InjectTraitsSchemaURL ¶
func (*IdentityPersister) ListIdentities ¶
func (p *IdentityPersister) ListIdentities(ctx context.Context, params identity.ListIdentityParameters) (_ []identity.Identity, nextPage *keysetpagination.Paginator, err error)
func (*IdentityPersister) ListRecoveryAddresses ¶
func (p *IdentityPersister) ListRecoveryAddresses(ctx context.Context, page, itemsPerPage int) (a []identity.RecoveryAddress, err error)
func (*IdentityPersister) ListVerifiableAddresses ¶
func (p *IdentityPersister) ListVerifiableAddresses(ctx context.Context, page, itemsPerPage int) (a []identity.VerifiableAddress, err error)
func (*IdentityPersister) NetworkID ¶
func (p *IdentityPersister) NetworkID(ctx context.Context) uuid.UUID
func (*IdentityPersister) Transaction ¶
func (*IdentityPersister) UpdateIdentity ¶
func (*IdentityPersister) UpdateIdentityColumns ¶ added in v1.3.0
func (*IdentityPersister) UpdateVerifiableAddress ¶
func (p *IdentityPersister) UpdateVerifiableAddress(ctx context.Context, address *identity.VerifiableAddress) (err error)
func (*IdentityPersister) VerifyAddress ¶
func (p *IdentityPersister) VerifyAddress(ctx context.Context, code string) (err error)
func (IdentityPersister) WithNetworkID ¶
func (p IdentityPersister) WithNetworkID(nid uuid.UUID) identity.PrivilegedPool
Click to show internal directories.
Click to hide internal directories.