identity

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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.

func WithTransaction

func WithTransaction(ctx context.Context, tx *pop.Connection) context.Context

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 (p *IdentityPersister) CreateIdentities(ctx context.Context, identities ...*identity.Identity) (err error)

func (*IdentityPersister) CreateIdentity

func (p *IdentityPersister) CreateIdentity(ctx context.Context, ident *identity.Identity) (err error)

func (*IdentityPersister) DeleteIdentity

func (p *IdentityPersister) DeleteIdentity(ctx context.Context, id uuid.UUID) (err error)

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 (p *IdentityPersister) FindIdentityByCredentialIdentifier(ctx context.Context, identifier string, caseSensitive bool) (_ *identity.Identity, err error)

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 (p *IdentityPersister) GetIdentityConfidential(ctx context.Context, id uuid.UUID) (res *identity.Identity, err error)

func (*IdentityPersister) HydrateIdentityAssociations

func (p *IdentityPersister) HydrateIdentityAssociations(ctx context.Context, i *identity.Identity, expand identity.Expandables) (err error)

func (*IdentityPersister) InjectTraitsSchemaURL

func (p *IdentityPersister) InjectTraitsSchemaURL(ctx context.Context, i *identity.Identity) (err error)

func (*IdentityPersister) ListIdentities

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 (p *IdentityPersister) Transaction(ctx context.Context, callback func(ctx context.Context, connection *pop.Connection) error) error

func (*IdentityPersister) UpdateIdentity

func (p *IdentityPersister) UpdateIdentity(ctx context.Context, i *identity.Identity) (err error)

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

type Where

type Where struct {
	Condition string
	Args      []interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL