package
0.21.0
Repository: https://github.com/infrahq/infra.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package querybuilder is a small package which provides a single type for building sql queries.
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AssignIdentityToGroups updates the identity's group membership relations based on the provider user's groups and returns the identity's current groups after the update has persisted them.
ClaimPasswordResetToken deletes the password reset token, and returns the user ID that was associated with the token.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreateOrganization creates a new organization, and initializes it with settings, an infra provider, a connector user, and a grant for the connector.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: accept only id instead of options struct.
No description provided by the author
No description provided by the author
No description provided by the author
GetAccessKey by any unique field.
GetAccessKeyByKeyID using the keyID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GrantsMaxUpdateIndex returns the maximum update_index all the grants that match the query.
InfraConnectorIdentity returns the connector identity for the organization set in the db context.
InfraProvider returns the infra provider for the organization set in the tx.
No description provided by the author
No description provided by the author
No description provided by the author
ListenForNotify starts listening for notification on one or more postgres channels for notifications that a grant has changed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDB creates a new database connection and runs any required database migrations before returning the connection.
No description provided by the author
ProvisionProviderUser directly creates a provider user and an identity (if the identity does not exist already) This is used exclusively for SCIM provisioning and initial sign-up.
No description provided by the author
No description provided by the author
No description provided by the author
RemoveUsersFromGroup removes any user ID listed in idsToRemove from the group with ID groupID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateDestinationLastSeenAt sets dest.LastSeenAt to now and then updates the row in the database.
No description provided by the author
No description provided by the author
UpdateIdentityLastSeenAt sets user.LastSeenAt to now and then updates the user row in the database.
No description provided by the author
No description provided by the author
No description provided by the author
TODO: move this to access package?.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

DB wraps the underlying database and provides access to the default org, and settings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Internal Pagination Data.
No description provided by the author
Transaction is a database transaction with metadata about the request that was given this transaction.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
ReadTxn can perform read queries and contains metadata about the request.
No description provided by the author
No description provided by the author
No description provided by the author
WriteTxn extends ReadTxn by adding write queries.

# Type aliases

StdlibTxn is a transaction that uses only the methods from the database/sql package.