Versions in this module Expand all Collapse all v0 v0.0.0 Oct 23, 2026 Changes in this version + const MaxRRsetBatch + var ErrAuditUnavailable = errors.New("database: audit storage unavailable") + var ErrBrowseLeaseLost = errors.New("database: browse lease lost") + var ErrConflict = errors.New("database: conflict") + var ErrDatabaseUnavailable = errors.New("database: unavailable") + var ErrForbidden = errors.New("database: forbidden") + var ErrIncompatibleSchema = errors.New("database: incompatible schema") + var ErrInstallationUnavailable = errors.New("database: installation unavailable") + var ErrInvalid = errors.New("database: invalid input") + var ErrMigrationDrift = errors.New("database: migration drift") + var ErrNotFound = errors.New("database: not found") + var ErrReadOnlyDatabase = errors.New("database: primary is not writable") + var ErrUnauthenticated = errors.New("database: unauthenticated") + var ErrUnsupportedPostgreSQL = errors.New("database: unsupported PostgreSQL version") + func CheckRuntimeCompatibility(ctx context.Context, database runtimeQueryRower) error + func Migrate(ctx context.Context, conn *pgx.Conn) error + func ValidBrowserSession(secret string) bool + type APIToken struct + CreatedAt pgtype.Timestamptz + Digest []byte + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + RevokedAt pgtype.Timestamptz + type Actor struct + Handle string + IdentityID string + Kind string + Operator bool + RequestID string + TokenID string + type AddGroupMembershipParams struct + AddedByIdentityID string + GroupID string + IdentityID string + type AuditEvent struct + Action string + ActorIdentityID *string + ActorTokenID *string + DeadlineAt pgtype.Timestamptz + Details []byte + EventKind string + ID string + IntentEventID *string + IntentEventKind *string + MatchedDelegationIDs []string + OccurredAt pgtype.Timestamptz + OperationID *string + RRsetSummary []byte + RequestDigest []byte + RequestID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + TargetID string + TargetKind string + type AuditListOptions struct + Action *string + ActorID *string + After *page.Key + Limit int + Result *string + TargetID *string + TargetKind *string + type AuditPage struct + Items []AuditRecord + Next *page.Key + type AuditRecord struct + Action string + ActorID *string + Details json.RawMessage + ID string + OccurredAt time.Time + RequestID string + Result string + TargetID string + TargetKind string + type AuthenticateTokenParams struct + CredentialDigest []byte + IsSession bool + type AuthenticateTokenRow struct + Handle string + IdentityID string + IsOperator bool + Kind string + TokenID string + type AuthorizationDecision struct + Actor Actor + Allowed bool + Denied []DeniedRRsetTuple + MatchedDelegationIDs []string + ZoneBindingID string + type AuthorizationDenialInput struct + Action string + Details map[string]any + RequestDigest []byte + TargetID string + TargetKind string + type AuthorizeRRsetBatchParams struct + CredentialDigest []byte + IsSession bool + PowerDNSZoneID string + Tuples []byte + Upstream string + type AuthorizeRRsetBatchRow struct + Allowed bool + BatchIndex int32 + ChangeKind string + IdentityHandle string + IdentityID string + IdentityKind string + IsOperator bool + MatchedDelegationIDs []string + Owner string + RecordType string + TokenID string + ZoneBindingID string + type BootstrapInput struct + DisplayName string + Handle string + TokenLabel string + type BootstrapResult struct + Identity Identity + InstallationID string + Token CreatedToken + type BrowseChange struct + ChangedAt pgtype.Timestamptz + Lease *string + LeaseUntil pgtype.Timestamptz + Name string + Operation string + Processed bool + ReadyAt pgtype.Timestamptz + Type string + Zone string + type BrowseChangeClaim struct + Name string + Operation string + Type string + type BrowseClaim struct + Lease string + Zone string + ZoneID string + type BrowseOptions struct + Cursor string + Match string + Name string + Type string + type BrowsePage struct + Error *string + Items []json.RawMessage + LastRefreshedAt *time.Time + NextCursor *string + State string + type BrowseRrset struct + Generation string + Name string + Payload []byte + Type string + Zone string + type BrowseWorker struct + func NewBrowseWorker(store *Store, client *upstream.Client, upstreamID string, ready func() bool) *BrowseWorker + func (w *BrowseWorker) Run(ctx context.Context) error + type BrowseZone struct + CursorKey []byte + Error *string + FullLease *string + FullLeaseUntil pgtype.Timestamptz + FullRequested bool + FullStartedAt pgtype.Timestamptz + Generation *string + ID string + LastViewedAt pgtype.Timestamptz + RefreshedAt pgtype.Timestamptz + RetryAt pgtype.Timestamptz + Revision int64 + Upstream string + ZoneID string + type BrowserSession struct + CreatedAt pgtype.Timestamptz + Digest []byte + ExpiresAt pgtype.Timestamptz + TokenID string + type CloseOverdueDNSIntentsParams struct + EventIDs []string + RowLimit int32 + type CreateAPITokenParams struct + Digest []byte + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + type CreateAPITokenRow struct + CreatedAt pgtype.Timestamptz + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + RevokedAt pgtype.Timestamptz + Status string + type CreateBrowserSessionParams struct + SessionDigest []byte + TokenDigest []byte + type CreateDelegationChangeKindParams struct + ChangeKind string + DelegationID string + type CreateDelegationParams struct + CreatedByIdentityID string + GranteeGroupID string + GranteeIdentityID string + ID string + ZoneBindingID string + type CreateDelegationRecordTypeParams struct + DelegationID string + RecordType string + type CreateDelegationSelectorParams struct + DelegationID string + Kind string + Position int16 + SQLLikePattern string + Selector string + type CreateGroupParams struct + DisplayName *string + Handle string + ID string + type CreateIdentityParams struct + DisplayName *string + Handle string + ID string + Kind string + type CreateOperatorIdentityParams struct + DisplayName *string + Handle string + ID string + type CreateZoneBindingParams struct + CreatedByIdentityID string + Generation int64 + ID string + PowerDNSZoneID string + Upstream string + ZoneName string + type CreatedBrowserSession struct + ExpiresAt time.Time + Secret string + type CreatedToken struct + Secret string + Token TokenMetadata + type DBTX interface + Exec func(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query func(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow func(context.Context, string, ...interface{}) pgx.Row + type DNSIntent struct + Deadline time.Time + EventID string + OperationID string + type DNSIntentInput struct + Action string + Deadline time.Time + MatchedDelegationIDs []string + RRsets []RRsetTuple + RequestDigest []byte + TargetID string + TargetKind string + type DNSOutcome struct + EventKind string + ID string + IntentEventID string + OccurredAt pgtype.Timestamptz + OperationID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + type DNSOutcomeInput struct + IntentEventID string + OperationID string + ResponseClass string + ResponseCode *int + ResponseDigest []byte + Result string + type Delegation struct + CreatedAt pgtype.Timestamptz + CreatedByIdentityID string + GranteeGroupID *string + GranteeIdentityID *string + ID string + RevokedAt pgtype.Timestamptz + RevokedByIdentityID *string + ZoneBindingID string + type DelegationChangeKind struct + ChangeKind string + DelegationID string + type DelegationCreate struct + ChangeKinds *[]string + GranteeGroupID *string + GranteeIdentityID *string + RecordTypes *[]string + Selectors []DelegationSelectorInput + ZoneBindingID string + type DelegationDetails struct + ChangeKinds []string + CreatedAt pgtype.Timestamptz + GranteeID string + GranteeKind string + ID string + RecordTypes []string + RevokedAt pgtype.Timestamptz + Selectors []DelegationSelectorInput + ZoneBindingID string + ZoneID string + ZoneName string + type DelegationListOptions struct + Active *bool + After *page.Key + GranteeID *string + Limit int + ZoneBindingID *string + type DelegationPage struct + Items []DelegationDetails + Next *page.Key + type DelegationRecordType struct + DelegationID string + RecordType string + type DelegationSelector struct + DelegationID string + Kind string + Position int16 + SQLLikePattern string + Selector string + type DelegationSelectorInput struct + Kind delegationdomain.SelectorKind + Value string + type DeniedRRsetTuple struct + ChangeKind string + Index int + Owner string + RecordType string + type GetAPITokenMetadataParams struct + ID string + IdentityID string + type GetAPITokenMetadataRow struct + CreatedAt pgtype.Timestamptz + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + RevokedAt pgtype.Timestamptz + Status string + type GetActiveZoneBindingByUpstreamZoneIDForUpdateParams struct + PowerDNSZoneID string + Upstream string + type GetAuditEventByIDRow struct + Action string + ActorIdentityID *string + ActorTokenID *string + DeadlineAt pgtype.Timestamptz + Details []byte + EventKind string + ID string + IntentEventID *string + MatchedDelegationIDs []string + OccurredAt pgtype.Timestamptz + OperationID *string + RRsetSummary []byte + RequestDigest []byte + RequestID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + TargetID string + TargetKind string + type GetBootstrapStateRow struct + Identities int64 + Installations int64 + type GetBrowseZoneParams struct + Upstream string + ZoneID string + type GetDNSOutcomeByOperationIDRow struct + EventKind string + ID string + IntentEventID string + OccurredAt pgtype.Timestamptz + OperationID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + type GetDelegationDetailsRow struct + CreatedAt pgtype.Timestamptz + GranteeID string + GranteeKind string + ID string + RevokedAt pgtype.Timestamptz + ZoneBindingID string + type GetGroupMembershipParams struct + GroupID string + IdentityID string + type GetInstallationMetadataRow struct + InitializedAt pgtype.Timestamptz + InstallationID string + RestoreFinalizedAt pgtype.Timestamptz + RestoreRequired bool + type GetZoneDeletionReconciliationStateRow struct + ConfirmedAbsent bool + HasAttempt bool + HasPending bool + HasRetryable bool + HasSucceeded bool + LatestResult string + type Group struct + CreatedAt pgtype.Timestamptz + DisplayName *string + Enabled bool + Handle string + ID string + UpdatedAt pgtype.Timestamptz + type GroupCreate struct + DisplayName *string + Handle string + type GroupListOptions struct + After *page.Key + Enabled *bool + Handle *string + HandlePrefix *string + Limit int + type GroupMembership struct + AddedByIdentityID string + CreatedAt pgtype.Timestamptz + GroupID string + IdentityID string + type GroupPage struct + Items []Group + Next *page.Key + type GroupPatch struct + DisplayName NullableStringPatch + Enabled *bool + type Identity struct + CreatedAt pgtype.Timestamptz + DisplayName *string + Enabled bool + Handle string + ID string + IsOperator bool + Kind string + UpdatedAt pgtype.Timestamptz + type IdentityCreate struct + DisplayName *string + Handle string + Kind string + type IdentityListOptions struct + After *page.Key + Enabled *bool + Handle *string + HandlePrefix *string + Kind *string + Limit int + Operator *bool + type IdentityPage struct + Items []Identity + Next *page.Key + type IdentityPatch struct + DisplayName NullableStringPatch + Enabled *bool + Operator *bool + type InsertAuthorizationDeniedAuditParams struct + Action string + ActorIdentityID string + ActorTokenID string + Details []byte + ID string + RequestDigest []byte + RequestID string + TargetID string + TargetKind string + type InsertAuthorizationDeniedAuditRow struct + Action string + ActorIdentityID *string + ActorTokenID *string + DeadlineAt pgtype.Timestamptz + Details []byte + EventKind string + ID string + IntentEventID *string + MatchedDelegationIDs []string + OccurredAt pgtype.Timestamptz + OperationID *string + RRsetSummary []byte + RequestDigest []byte + RequestID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + TargetID string + TargetKind string + type InsertDNSIntentParams struct + Action string + ActorIdentityID string + ActorTokenID string + DeadlineAt pgtype.Timestamptz + ID string + MatchedDelegationIDs []string + OperationID string + RRsetSummary []byte + RequestDigest []byte + RequestID string + TargetID string + TargetKind string + type InsertDNSIntentRow struct + Action string + ActorIdentityID *string + ActorTokenID *string + DeadlineAt pgtype.Timestamptz + Details []byte + EventKind string + ID string + IntentEventID *string + MatchedDelegationIDs []string + OccurredAt pgtype.Timestamptz + OperationID *string + RRsetSummary []byte + RequestDigest []byte + RequestID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + TargetID string + TargetKind string + type InsertDNSOutcomeParams struct + ID string + IntentEventID string + OperationID string + ResponseClass string + ResponseCode *int32 + ResponseDigest []byte + Result string + type InsertManagementAuditParams struct + Action string + ActorIdentityID string + ActorTokenID string + Details []byte + ID string + RequestID string + Result string + TargetID string + TargetKind string + type InsertManagementAuditRow struct + Action string + ActorIdentityID *string + ActorTokenID *string + DeadlineAt pgtype.Timestamptz + Details []byte + EventKind string + ID string + IntentEventID *string + MatchedDelegationIDs []string + OccurredAt pgtype.Timestamptz + OperationID *string + RRsetSummary []byte + RequestDigest []byte + RequestID string + ResponseClass *string + ResponseCode *int32 + ResponseDigest []byte + Result string + TargetID string + TargetKind string + type InstallationMetadata struct + InitializedAt pgtype.Timestamptz + InstallationID string + RestoreFinalizedAt pgtype.Timestamptz + RestoreRequired bool + Singleton bool + type ListAPITokensParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + IdentityID string + RowLimit int32 + type ListAPITokensRow struct + CreatedAt pgtype.Timestamptz + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + RevokedAt pgtype.Timestamptz + Status string + type ListActiveZoneBindingCandidatesParams struct + PowerDNSZoneID string + Upstream string + ZoneName string + type ListAuditRecordsParams struct + Action string + ActorID string + AfterID string + AfterOccurredAt pgtype.Timestamptz + Result string + RowLimit int32 + TargetID string + TargetKind string + type ListAuditRecordsRow struct + Action string + ActorID string + Details []byte + ID string + OccurredAt pgtype.Timestamptz + RequestID string + Result string + TargetID string + TargetKind string + type ListBrowseRRsetsByTypeParams struct + AfterName string + AfterType string + Generation string + NameFrom string + NameThrough string + Type string + Zone string + type ListBrowseRRsetsByTypeRow struct + Name string + Payload []byte + Type string + type ListBrowseRRsetsParams struct + AfterName string + AfterType string + Generation string + NameFrom string + NameThrough string + Zone string + type ListBrowseRRsetsRow struct + Name string + Payload []byte + Type string + type ListDelegationDetailsParams struct + Active *bool + AfterCreatedAt pgtype.Timestamptz + AfterID string + GranteeID string + RowLimit int32 + ZoneBindingID string + type ListDelegationDetailsRow struct + CreatedAt pgtype.Timestamptz + GranteeID string + GranteeKind string + ID string + RevokedAt pgtype.Timestamptz + ZoneBindingID string + type ListEffectiveDelegationDetailsParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + IdentityID string + RowLimit int32 + type ListEffectiveDelegationDetailsRow struct + CreatedAt pgtype.Timestamptz + GranteeID string + GranteeKind string + ID string + PowerDNSZoneID string + RevokedAt pgtype.Timestamptz + ZoneBindingID string + ZoneName string + type ListGroupMembersParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + GroupID string + HandlePrefix *string + RowLimit int32 + type ListGroupsParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + Enabled *bool + Handle *string + HandlePrefix *string + RowLimit int32 + type ListIdentitiesParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + Enabled *bool + Handle *string + HandlePrefix *string + IsOperator *bool + Kind *string + RowLimit int32 + type ListIdentityAssignmentDetailsParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + IdentityID string + RowLimit int32 + type ListIdentityAssignmentDetailsRow struct + BindingStatus string + CreatedAt pgtype.Timestamptz + Effective bool + GranteeID string + GranteeKind string + GroupEnabled *bool + GroupHandle *string + ID string + IdentityEnabled bool + PowerDNSZoneID string + RevokedAt pgtype.Timestamptz + ZoneBindingID string + ZoneName string + type ListIdentityGroupsParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + HandlePrefix *string + IdentityID string + RowLimit int32 + type ListZoneBindingsParams struct + AfterCreatedAt pgtype.Timestamptz + AfterID string + RowLimit int32 + Status string + ZoneName string + type NextZoneBindingGenerationParams struct + Upstream string + ZoneName string + type NullableStringPatch struct + Set bool + Value *string + type OperatorCredential struct + Identity Identity + Secret string + Token TokenMetadata + type OperatorGuard struct + Singleton bool + type OperatorRecoveryInput struct + Handle string + IdentityID string + TokenLabel string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AddGroupMembership(ctx context.Context, arg AddGroupMembershipParams) (int64, error) + func (q *Queries) AuthenticateToken(ctx context.Context, arg AuthenticateTokenParams) (AuthenticateTokenRow, error) + func (q *Queries) AuthorizeRRsetBatch(ctx context.Context, arg AuthorizeRRsetBatchParams) ([]AuthorizeRRsetBatchRow, error) + func (q *Queries) BrowseHasPending(ctx context.Context, zone string) (bool, error) + func (q *Queries) CloseOverdueDNSIntents(ctx context.Context, arg CloseOverdueDNSIntentsParams) ([]string, error) + func (q *Queries) CountEnabledOperators(ctx context.Context) (int64, error) + func (q *Queries) CreateAPIToken(ctx context.Context, arg CreateAPITokenParams) (CreateAPITokenRow, error) + func (q *Queries) CreateBrowserSession(ctx context.Context, arg CreateBrowserSessionParams) (pgtype.Timestamptz, error) + func (q *Queries) CreateDelegation(ctx context.Context, arg CreateDelegationParams) (Delegation, error) + func (q *Queries) CreateDelegationChangeKind(ctx context.Context, arg CreateDelegationChangeKindParams) error + func (q *Queries) CreateDelegationRecordType(ctx context.Context, arg CreateDelegationRecordTypeParams) error + func (q *Queries) CreateDelegationSelector(ctx context.Context, arg CreateDelegationSelectorParams) error + func (q *Queries) CreateGroup(ctx context.Context, arg CreateGroupParams) (Group, error) + func (q *Queries) CreateIdentity(ctx context.Context, arg CreateIdentityParams) (Identity, error) + func (q *Queries) CreateInstallationMetadata(ctx context.Context, installationID string) (InstallationMetadata, error) + func (q *Queries) CreateOperatorIdentity(ctx context.Context, arg CreateOperatorIdentityParams) (Identity, error) + func (q *Queries) CreateZoneBinding(ctx context.Context, arg CreateZoneBindingParams) (ZoneBinding, error) + func (q *Queries) DeleteBrowserSession(ctx context.Context, digest []byte) error + func (q *Queries) DeleteExpiredBrowserSessions(ctx context.Context) error + func (q *Queries) FinalizeInstallationRestore(ctx context.Context) (InstallationMetadata, error) + func (q *Queries) GetAPITokenMetadata(ctx context.Context, arg GetAPITokenMetadataParams) (GetAPITokenMetadataRow, error) + func (q *Queries) GetActiveZoneBindingByUpstreamZoneIDForUpdate(ctx context.Context, arg GetActiveZoneBindingByUpstreamZoneIDForUpdateParams) (ZoneBinding, error) + func (q *Queries) GetAuditEventByID(ctx context.Context, id string) (GetAuditEventByIDRow, error) + func (q *Queries) GetBootstrapState(ctx context.Context) (GetBootstrapStateRow, error) + func (q *Queries) GetBrowseZone(ctx context.Context, arg GetBrowseZoneParams) (BrowseZone, error) + func (q *Queries) GetDNSOutcomeByOperationID(ctx context.Context, operationID string) (GetDNSOutcomeByOperationIDRow, error) + func (q *Queries) GetDelegationByID(ctx context.Context, id string) (Delegation, error) + func (q *Queries) GetDelegationDetails(ctx context.Context, id string) (GetDelegationDetailsRow, error) + func (q *Queries) GetDelegationForUpdate(ctx context.Context, id string) (Delegation, error) + func (q *Queries) GetGroupByID(ctx context.Context, id string) (Group, error) + func (q *Queries) GetGroupForUpdate(ctx context.Context, id string) (Group, error) + func (q *Queries) GetGroupMembership(ctx context.Context, arg GetGroupMembershipParams) (GroupMembership, error) + func (q *Queries) GetIdentityByHandleForUpdate(ctx context.Context, handle string) (Identity, error) + func (q *Queries) GetIdentityByID(ctx context.Context, id string) (Identity, error) + func (q *Queries) GetIdentityForUpdate(ctx context.Context, id string) (Identity, error) + func (q *Queries) GetInstallationMetadata(ctx context.Context) (GetInstallationMetadataRow, error) + func (q *Queries) GetZoneBindingByID(ctx context.Context, id string) (ZoneBinding, error) + func (q *Queries) GetZoneBindingForUpdate(ctx context.Context, id string) (ZoneBinding, error) + func (q *Queries) GetZoneDeletionReconciliationState(ctx context.Context, bindingID string) (GetZoneDeletionReconciliationStateRow, error) + func (q *Queries) InsertAuthorizationDeniedAudit(ctx context.Context, arg InsertAuthorizationDeniedAuditParams) (InsertAuthorizationDeniedAuditRow, error) + func (q *Queries) InsertDNSIntent(ctx context.Context, arg InsertDNSIntentParams) (InsertDNSIntentRow, error) + func (q *Queries) InsertDNSOutcome(ctx context.Context, arg InsertDNSOutcomeParams) (int64, error) + func (q *Queries) InsertManagementAudit(ctx context.Context, arg InsertManagementAuditParams) (InsertManagementAuditRow, error) + func (q *Queries) ListAPITokens(ctx context.Context, arg ListAPITokensParams) ([]ListAPITokensRow, error) + func (q *Queries) ListActiveZoneBindingCandidates(ctx context.Context, arg ListActiveZoneBindingCandidatesParams) ([]ZoneBinding, error) + func (q *Queries) ListAuditRecords(ctx context.Context, arg ListAuditRecordsParams) ([]ListAuditRecordsRow, error) + func (q *Queries) ListBrowseRRsets(ctx context.Context, arg ListBrowseRRsetsParams) ([]ListBrowseRRsetsRow, error) + func (q *Queries) ListBrowseRRsetsByType(ctx context.Context, arg ListBrowseRRsetsByTypeParams) ([]ListBrowseRRsetsByTypeRow, error) + func (q *Queries) ListDelegationChangeKindsByIDs(ctx context.Context, delegationIds []string) ([]DelegationChangeKind, error) + func (q *Queries) ListDelegationDetails(ctx context.Context, arg ListDelegationDetailsParams) ([]ListDelegationDetailsRow, error) + func (q *Queries) ListDelegationRecordTypesByIDs(ctx context.Context, delegationIds []string) ([]DelegationRecordType, error) + func (q *Queries) ListDelegationSelectorsByIDs(ctx context.Context, delegationIds []string) ([]DelegationSelector, error) + func (q *Queries) ListEffectiveDelegationDetails(ctx context.Context, arg ListEffectiveDelegationDetailsParams) ([]ListEffectiveDelegationDetailsRow, error) + func (q *Queries) ListGroupMembers(ctx context.Context, arg ListGroupMembersParams) ([]Identity, error) + func (q *Queries) ListGroups(ctx context.Context, arg ListGroupsParams) ([]Group, error) + func (q *Queries) ListIdentities(ctx context.Context, arg ListIdentitiesParams) ([]Identity, error) + func (q *Queries) ListIdentityAssignmentDetails(ctx context.Context, arg ListIdentityAssignmentDetailsParams) ([]ListIdentityAssignmentDetailsRow, error) + func (q *Queries) ListIdentityGroups(ctx context.Context, arg ListIdentityGroupsParams) ([]Group, error) + func (q *Queries) ListZoneBindings(ctx context.Context, arg ListZoneBindingsParams) ([]ZoneBinding, error) + func (q *Queries) LockOperatorGuard(ctx context.Context) (bool, error) + func (q *Queries) LockZoneBindingKey(ctx context.Context, hashtext string) error + func (q *Queries) NextZoneBindingGeneration(ctx context.Context, arg NextZoneBindingGenerationParams) (int64, error) + func (q *Queries) RemoveGroupMembership(ctx context.Context, arg RemoveGroupMembershipParams) (int64, error) + func (q *Queries) RequestBrowseRefresh(ctx context.Context, id string) error + func (q *Queries) RetireZoneBinding(ctx context.Context, arg RetireZoneBindingParams) (ZoneBinding, error) + func (q *Queries) RevokeAPIToken(ctx context.Context, arg RevokeAPITokenParams) (RevokeAPITokenRow, error) + func (q *Queries) RevokeAllActiveAPITokens(ctx context.Context) (int64, error) + func (q *Queries) RevokeDelegation(ctx context.Context, arg RevokeDelegationParams) (Delegation, error) + func (q *Queries) RevokeDelegationsForZoneDeletion(ctx context.Context, arg RevokeDelegationsForZoneDeletionParams) ([]string, error) + func (q *Queries) TouchBrowseZone(ctx context.Context, arg TouchBrowseZoneParams) (BrowseZone, error) + func (q *Queries) UpdateGroup(ctx context.Context, arg UpdateGroupParams) (Group, error) + func (q *Queries) UpdateIdentity(ctx context.Context, arg UpdateIdentityParams) (Identity, error) + func (q *Queries) WithTx(tx pgx.Tx) *Queries + func (q *Queries) ZoneBindingHistoryExists(ctx context.Context, arg ZoneBindingHistoryExistsParams) (bool, error) + type RRsetTuple struct + ChangeKind string + Owner string + RecordType string + type RemoveGroupMembershipParams struct + GroupID string + IdentityID string + type RestoreFinalizationInput = OperatorRecoveryInput + type RetainedAssignment struct + BindingStatus string + Effective bool + GroupEnabled *bool + GroupHandle *string + IdentityEnabled bool + type RetainedAssignmentPage struct + Items []RetainedAssignment + Next *page.Key + type RetireZoneBindingParams struct + ID string + RetiredByIdentityID string + type RevokeAPITokenParams struct + ID string + IdentityID string + type RevokeAPITokenRow struct + CreatedAt pgtype.Timestamptz + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + RevokedAt pgtype.Timestamptz + Status string + type RevokeDelegationParams struct + ID string + RevokedByIdentityID string + type RevokeDelegationsForZoneDeletionParams struct + RevokedByIdentityID string + ZoneBindingID string + type RuntimePoolConfig struct + AuthenticationReserve int32 + ConnectTimeout time.Duration + ConnectionString string + LockTimeout time.Duration + MaxConnections int32 + ReadinessReserve int32 + StatementTimeout time.Duration + TransactionTimeout time.Duration + type RuntimePoolConfigurationSet struct + Authentication poolConfiguration + Readiness poolConfiguration + Requests poolConfiguration + func RuntimePoolConfigs(config RuntimePoolConfig) (RuntimePoolConfigurationSet, error) + type RuntimePools struct + Authentication *pgxpool.Pool + Readiness *pgxpool.Pool + Requests *pgxpool.Pool + func OpenRuntimePools(ctx context.Context, config RuntimePoolConfig) (*RuntimePools, error) + func (pools *RuntimePools) Close() + type SchemaStatus struct + Compatible bool + CurrentVersion int + LatestVersion int + func MigrationStatus(ctx context.Context, conn *pgx.Conn) (SchemaStatus, error) + type Store struct + func NewStore(db transactor) *Store + func (s *Store) AddGroupMember(ctx context.Context, actor Actor, groupID, identityID string) (GroupMembership, error) + func (s *Store) Authenticate(ctx context.Context, token string) (Actor, error) + func (s *Store) AuthorizeRRsetBatch(ctx context.Context, token, requestID, upstream, powerDNSZoneID string, ...) (AuthorizationDecision, error) + func (s *Store) BindCreatedZone(ctx context.Context, actor Actor, input ZoneBindingInput) (ZoneBinding, error) + func (s *Store) Bootstrap(ctx context.Context, input BootstrapInput) (BootstrapResult, error) + func (s *Store) BrowseRRsets(ctx context.Context, actor Actor, upstream, zoneID string, ...) (BrowsePage, error) + func (s *Store) ClaimBrowseChange(ctx context.Context, upstream string) (BrowseChangeClaim, error) + func (s *Store) ClaimBrowseFull(ctx context.Context, upstream string) (BrowseClaim, error) + func (s *Store) CleanupBrowseRows(ctx context.Context, zone string) (int64, error) + func (s *Store) CloseOverdueDNSIntents(ctx context.Context, requestedLimit int) (int, error) + func (s *Store) ConfirmZoneBindingAbsent(ctx context.Context, actor Actor, bindingID string) (ZoneBinding, error) + func (s *Store) CreateBrowserSession(ctx context.Context, token, previous string) (CreatedBrowserSession, error) + func (s *Store) CreateDNSIntent(ctx context.Context, actor Actor, input DNSIntentInput) (DNSIntent, error) + func (s *Store) CreateDelegation(ctx context.Context, actor Actor, input DelegationCreate) (DelegationDetails, error) + func (s *Store) CreateGroup(ctx context.Context, actor Actor, input GroupCreate) (Group, error) + func (s *Store) CreateIdentity(ctx context.Context, actor Actor, input IdentityCreate) (Identity, error) + func (s *Store) CreateToken(ctx context.Context, actor Actor, identityID string, input TokenCreate) (CreatedToken, error) + func (s *Store) DeleteBrowserSession(ctx context.Context, secret string) error + func (s *Store) EnsureZoneBinding(ctx context.Context, actor Actor, input ZoneBindingInput) (ZoneBinding, error) + func (s *Store) FailBrowseChange(ctx context.Context, c BrowseChangeClaim) error + func (s *Store) FailBrowseFull(ctx context.Context, c BrowseClaim) error + func (s *Store) FinalizeRestore(ctx context.Context, input RestoreFinalizationInput) (OperatorCredential, error) + func (s *Store) GetCurrentIdentity(ctx context.Context, actor Actor) (Identity, error) + func (s *Store) GetDelegation(ctx context.Context, actor Actor, id string) (DelegationDetails, error) + func (s *Store) GetGroup(ctx context.Context, actor Actor, id string) (Group, error) + func (s *Store) GetIdentity(ctx context.Context, actor Actor, id string) (Identity, error) + func (s *Store) GetZoneBinding(ctx context.Context, actor Actor, id string) (ZoneBinding, error) + func (s *Store) GetZoneBindingRecovery(ctx context.Context, actor Actor, bindingID string) (ZoneBindingRecovery, error) + func (s *Store) ListAuditEvents(ctx context.Context, actor Actor, options AuditListOptions) (AuditPage, error) + func (s *Store) ListCurrentIdentityDelegations(ctx context.Context, actor Actor, options DelegationListOptions) (DelegationPage, error) + func (s *Store) ListCurrentIdentityGroups(ctx context.Context, actor Actor, options GroupListOptions) (GroupPage, error) + func (s *Store) ListDelegations(ctx context.Context, actor Actor, options DelegationListOptions) (DelegationPage, error) + func (s *Store) ListGroupMembers(ctx context.Context, actor Actor, groupID string, options IdentityListOptions) (IdentityPage, error) + func (s *Store) ListGroups(ctx context.Context, actor Actor, options GroupListOptions) (GroupPage, error) + func (s *Store) ListIdentities(ctx context.Context, actor Actor, options IdentityListOptions) (IdentityPage, error) + func (s *Store) ListIdentityAssignments(ctx context.Context, actor Actor, identityID string, ...) (RetainedAssignmentPage, error) + func (s *Store) ListIdentityDelegations(ctx context.Context, actor Actor, identityID string, ...) (DelegationPage, error) + func (s *Store) ListIdentityGroups(ctx context.Context, actor Actor, identityID string, options GroupListOptions) (GroupPage, error) + func (s *Store) ListTokens(ctx context.Context, actor Actor, identityID string, options TokenListOptions) (TokenPage, error) + func (s *Store) ListZoneBindings(ctx context.Context, actor Actor, options ZoneBindingListOptions) (ZoneBindingPage, error) + func (s *Store) ObserveZoneBinding(ctx context.Context, actor Actor, input ZoneObservationInput) (ZoneObservation, error) + func (s *Store) PatchGroup(ctx context.Context, actor Actor, id string, patch GroupPatch) (Group, error) + func (s *Store) PatchIdentity(ctx context.Context, actor Actor, id string, patch IdentityPatch) (Identity, error) + func (s *Store) PrepareZoneDeletion(ctx context.Context, actor Actor, input ZoneDeletionInput) (ZoneDeletionPlan, error) + func (s *Store) PrepareZoneDeletionByUpstreamZoneID(ctx context.Context, actor Actor, input ZoneDeletionByUpstreamInput) (ZoneDeletionPlan, error) + func (s *Store) PrepareZoneDeletionRetry(ctx context.Context, actor Actor, input ZoneDeletionInput) (ZoneDeletionPlan, error) + func (s *Store) ProbeAuditPersistence(ctx context.Context) error + func (s *Store) PublishBrowseChange(ctx context.Context, c BrowseChangeClaim, sets []json.RawMessage) error + func (s *Store) PublishBrowseFull(ctx context.Context, c BrowseClaim) error + func (s *Store) RebindZoneBinding(ctx context.Context, actor Actor, retiredBindingID string, ...) (ZoneBinding, error) + func (s *Store) RecordAuthorizationDenial(ctx context.Context, actor Actor, input AuthorizationDenialInput) error + func (s *Store) RecordDNSOutcome(ctx context.Context, input DNSOutcomeInput) (DNSOutcome, error) + func (s *Store) RecordZoneDeletionOutcome(ctx context.Context, plan ZoneDeletionPlan, input ZoneDeletionOutcomeInput) (DNSOutcome, error) + func (s *Store) RecoverOperator(ctx context.Context, input OperatorRecoveryInput) (OperatorCredential, error) + func (s *Store) RemoveGroupMember(ctx context.Context, actor Actor, groupID, identityID string) error + func (s *Store) RenewBrowseFull(ctx context.Context, c BrowseClaim) error + func (s *Store) RevokeDelegation(ctx context.Context, actor Actor, id string) error + func (s *Store) RevokeToken(ctx context.Context, actor Actor, identityID, tokenID string) error + func (s *Store) StageBrowseRRsets(ctx context.Context, c BrowseClaim, sets []json.RawMessage) error + func (s *Store) WriteAuditNDJSON(ctx context.Context, actor Actor, options AuditListOptions, output io.Writer) error + type TokenCreate struct + ExpiresAt *time.Time + Label string + type TokenListOptions struct + After *page.Key + Limit int + type TokenMetadata struct + CreatedAt pgtype.Timestamptz + ExpiresAt pgtype.Timestamptz + ID string + IdentityID string + Label string + RevokedAt pgtype.Timestamptz + Status string + type TokenPage struct + Items []TokenMetadata + Next *page.Key + type TouchBrowseZoneParams struct + CursorKey []byte + ID string + Upstream string + ZoneID string + type UpdateGroupParams struct + DisplayName *string + Enabled bool + ID string + type UpdateIdentityParams struct + DisplayName *string + Enabled bool + ID string + IsOperator bool + type ZoneBinding struct + CreatedAt pgtype.Timestamptz + CreatedByIdentityID string + Generation int64 + ID string + PowerDNSZoneID string + RetiredAt pgtype.Timestamptz + RetiredByIdentityID *string + Upstream string + ZoneName string + type ZoneBindingHistoryExistsParams struct + PowerDNSZoneID string + Upstream string + ZoneName string + type ZoneBindingInput struct + PowerDNSZoneID string + Upstream string + ZoneName string + type ZoneBindingListOptions struct + After *page.Key + Limit int + Status *string + ZoneName *string + type ZoneBindingPage struct + Items []ZoneBinding + Next *page.Key + type ZoneBindingRecovery struct + Actions []string + DeletionState string + type ZoneDeletionByUpstreamInput struct + Deadline time.Time + PowerDNSZoneID string + RequestDigest []byte + Upstream string + type ZoneDeletionInput struct + BindingID string + Deadline time.Time + RequestDigest []byte + type ZoneDeletionOutcomeInput struct + ResponseClass string + ResponseCode *int + ResponseDigest []byte + Result ZoneDeletionResult + type ZoneDeletionPlan struct + Binding ZoneBinding + Intent DNSIntent + PowerDNSZoneID string + Upstream string + ZoneName string + type ZoneDeletionResult string + const ZoneDeletionDeleted + const ZoneDeletionFailed + const ZoneDeletionNotFound + const ZoneDeletionUnknown + type ZoneObservation struct + BindingID string + ObservedAt time.Time + ObservedZoneID *string + ZonePresent bool + type ZoneObservationInput struct + BindingID string + ObservedZoneID *string + ZonePresent bool