Documentation
¶
Index ¶
- type AddAutoUpdateParams
- type AddBackupCodeParams
- type AddGitHostKeyParams
- type ApiKey
- type AuditLog
- type AutoUpdate
- type BackupTarget
- type CreateAPIKeyParams
- type CreateBackupTargetParams
- type CreateGitCredentialParams
- type CreateGitStackParams
- type CreateNotificationChannelParams
- type CreatePasskeyParams
- type CreateScheduleParams
- type CreateSessionParams
- type CreateStackTemplateParams
- type CreateUserParams
- type CreateWebhookParams
- type DBTX
- type DeleteExpiredSessionsParams
- type DeleteOtherUserSessionsParams
- type DeletePasskeyParams
- type DeleteUserAPIKeyParams
- type DeleteVariableParams
- type DisableMFAParams
- type EnableMFAParams
- type Event
- type FinishScheduleRunParams
- type GetAPIKeyWithUserRow
- type GetSessionWithUserRow
- type GetVariableParams
- type GitCredential
- type GitKnownHost
- type GitStack
- type ImageUpdate
- type InsertAuditParams
- type InsertEventParams
- type InsertScheduleRunParams
- type LastAutoUpdateParams
- type ListAuditParams
- type ListAutoUpdatesParams
- type ListEventsParams
- type ListScheduleRunsParams
- type MfaBackupCode
- type NotificationChannel
- type Passkey
- type PruneAutoUpdatesParams
- type PruneScheduleRunsParams
- type PutVariableParams
- type Queries
- func (q *Queries) AddAutoUpdate(ctx context.Context, arg AddAutoUpdateParams) error
- func (q *Queries) AddBackupCode(ctx context.Context, arg AddBackupCodeParams) error
- func (q *Queries) AddGitHostKey(ctx context.Context, arg AddGitHostKeyParams) error
- func (q *Queries) CountActiveAdmins(ctx context.Context) (int64, error)
- func (q *Queries) CountBackupCodes(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) CountGitStacksByCredential(ctx context.Context, credentialID sql.NullInt64) (int64, error)
- func (q *Queries) CountPasskeys(ctx context.Context, id int64) error
- func (q *Queries) CountUserAPIKeys(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) CountUsers(ctx context.Context) (int64, error)
- func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) (ApiKey, error)
- func (q *Queries) CreateBackupTarget(ctx context.Context, arg CreateBackupTargetParams) (BackupTarget, error)
- func (q *Queries) CreateGitCredential(ctx context.Context, arg CreateGitCredentialParams) (GitCredential, error)
- func (q *Queries) CreateGitStack(ctx context.Context, arg CreateGitStackParams) error
- func (q *Queries) CreateNotificationChannel(ctx context.Context, arg CreateNotificationChannelParams) (NotificationChannel, error)
- func (q *Queries) CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (Passkey, error)
- func (q *Queries) CreateSchedule(ctx context.Context, arg CreateScheduleParams) (Schedule, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
- func (q *Queries) CreateStackTemplate(ctx context.Context, arg CreateStackTemplateParams) (StackTemplate, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateWebhook(ctx context.Context, arg CreateWebhookParams) (Webhook, error)
- func (q *Queries) DeleteBackupCodes(ctx context.Context, userID int64) error
- func (q *Queries) DeleteBackupTarget(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteEventsBefore(ctx context.Context, ts int64) (int64, error)
- func (q *Queries) DeleteEventsBeyond(ctx context.Context, keep int64) (int64, error)
- func (q *Queries) DeleteExpiredSessions(ctx context.Context, arg DeleteExpiredSessionsParams) (int64, error)
- func (q *Queries) DeleteGitCredential(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteGitHostKeys(ctx context.Context, host string) (int64, error)
- func (q *Queries) DeleteGitStack(ctx context.Context, name string) (int64, error)
- func (q *Queries) DeleteNotificationChannel(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteOtherUserSessions(ctx context.Context, arg DeleteOtherUserSessionsParams) (int64, error)
- func (q *Queries) DeletePasskey(ctx context.Context, arg DeletePasskeyParams) (int64, error)
- func (q *Queries) DeleteSchedule(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteSession(ctx context.Context, tokenHash []byte) (int64, error)
- func (q *Queries) DeleteSetting(ctx context.Context, key string) (int64, error)
- func (q *Queries) DeleteStack(ctx context.Context, name string) (int64, error)
- func (q *Queries) DeleteStackTemplate(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteStackVariables(ctx context.Context, stack string) error
- func (q *Queries) DeleteUser(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteUserAPIKey(ctx context.Context, arg DeleteUserAPIKeyParams) (int64, error)
- func (q *Queries) DeleteUserPasskeys(ctx context.Context, userID int64) error
- func (q *Queries) DeleteUserSessions(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) DeleteVariable(ctx context.Context, arg DeleteVariableParams) (int64, error)
- func (q *Queries) DeleteWebhook(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DisableMFA(ctx context.Context, arg DisableMFAParams) (int64, error)
- func (q *Queries) EnableMFA(ctx context.Context, arg EnableMFAParams) (int64, error)
- func (q *Queries) FailUnfinishedScheduleRuns(ctx context.Context, now int64) error
- func (q *Queries) FinishScheduleRun(ctx context.Context, arg FinishScheduleRunParams) error
- func (q *Queries) GetAPIKeyWithUser(ctx context.Context, tokenHash []byte) (GetAPIKeyWithUserRow, error)
- func (q *Queries) GetBackupTarget(ctx context.Context, id int64) (BackupTarget, error)
- func (q *Queries) GetGitCredential(ctx context.Context, id int64) (GitCredential, error)
- func (q *Queries) GetGitStack(ctx context.Context, name string) (GitStack, error)
- func (q *Queries) GetGitStackByWebhook(ctx context.Context, webhookHash string) (GitStack, error)
- func (q *Queries) GetNotificationChannel(ctx context.Context, id int64) (NotificationChannel, error)
- func (q *Queries) GetSchedule(ctx context.Context, id int64) (Schedule, error)
- func (q *Queries) GetSession(ctx context.Context, tokenHash []byte) (Session, error)
- func (q *Queries) GetSessionWithUser(ctx context.Context, tokenHash []byte) (GetSessionWithUserRow, error)
- func (q *Queries) GetSetting(ctx context.Context, key string) (string, error)
- func (q *Queries) GetStack(ctx context.Context, name string) (Stack, error)
- func (q *Queries) GetStackTemplate(ctx context.Context, id int64) (StackTemplate, error)
- func (q *Queries) GetUserByID(ctx context.Context, id int64) (User, error)
- func (q *Queries) GetUserByOIDCIdentity(ctx context.Context, oidcIdentity sql.NullString) (User, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) GetUserByWebAuthnHandle(ctx context.Context, webauthnHandle []byte) (User, error)
- func (q *Queries) GetUserPreferences(ctx context.Context, userID int64) (string, error)
- func (q *Queries) GetVariable(ctx context.Context, arg GetVariableParams) (Variable, error)
- func (q *Queries) GetWebhook(ctx context.Context, id int64) (Webhook, error)
- func (q *Queries) GetWebhookByToken(ctx context.Context, tokenHash string) (Webhook, error)
- func (q *Queries) InsertAudit(ctx context.Context, arg InsertAuditParams) error
- func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) error
- func (q *Queries) InsertScheduleRun(ctx context.Context, arg InsertScheduleRunParams) (int64, error)
- func (q *Queries) LastAutoUpdate(ctx context.Context, arg LastAutoUpdateParams) (AutoUpdate, error)
- func (q *Queries) LastImageUpdateCheck(ctx context.Context, environment string) (int64, error)
- func (q *Queries) ListAudit(ctx context.Context, arg ListAuditParams) ([]AuditLog, error)
- func (q *Queries) ListAutoUpdates(ctx context.Context, arg ListAutoUpdatesParams) ([]AutoUpdate, error)
- func (q *Queries) ListBackupTargets(ctx context.Context) ([]BackupTarget, error)
- func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event, error)
- func (q *Queries) ListGitCredentials(ctx context.Context) ([]GitCredential, error)
- func (q *Queries) ListGitHostKeys(ctx context.Context, host string) ([]string, error)
- func (q *Queries) ListGitKnownHosts(ctx context.Context) ([]GitKnownHost, error)
- func (q *Queries) ListGitStacks(ctx context.Context) ([]GitStack, error)
- func (q *Queries) ListImageUpdates(ctx context.Context, environment string) ([]ImageUpdate, error)
- func (q *Queries) ListNotificationChannels(ctx context.Context) ([]NotificationChannel, error)
- func (q *Queries) ListPasskeys(ctx context.Context, userID int64) ([]Passkey, error)
- func (q *Queries) ListScheduleRuns(ctx context.Context, arg ListScheduleRunsParams) ([]ScheduleRun, error)
- func (q *Queries) ListSchedules(ctx context.Context) ([]Schedule, error)
- func (q *Queries) ListSettings(ctx context.Context) ([]Setting, error)
- func (q *Queries) ListStackTemplates(ctx context.Context) ([]StackTemplate, error)
- func (q *Queries) ListStacks(ctx context.Context) ([]Stack, error)
- func (q *Queries) ListUserAPIKeys(ctx context.Context, userID int64) ([]ApiKey, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) ListVariables(ctx context.Context, stack string) ([]Variable, error)
- func (q *Queries) ListWebhooks(ctx context.Context) ([]Webhook, error)
- func (q *Queries) PruneAudit(ctx context.Context, before int64) (int64, error)
- func (q *Queries) PruneAutoUpdates(ctx context.Context, arg PruneAutoUpdatesParams) error
- func (q *Queries) PruneScheduleRuns(ctx context.Context, arg PruneScheduleRunsParams) error
- func (q *Queries) PutVariable(ctx context.Context, arg PutVariableParams) error
- func (q *Queries) RegisterStack(ctx context.Context, arg RegisterStackParams) error
- func (q *Queries) SetAuditJobResult(ctx context.Context, arg SetAuditJobResultParams) error
- func (q *Queries) SetGitStackAuto(ctx context.Context, arg SetGitStackAutoParams) (int64, error)
- func (q *Queries) SetGitStackChecked(ctx context.Context, arg SetGitStackCheckedParams) error
- func (q *Queries) SetGitStackCommit(ctx context.Context, arg SetGitStackCommitParams) error
- func (q *Queries) SetGitStackError(ctx context.Context, arg SetGitStackErrorParams) error
- func (q *Queries) SetGitStackWebhook(ctx context.Context, arg SetGitStackWebhookParams) (int64, error)
- func (q *Queries) SetImageUpdate(ctx context.Context, arg SetImageUpdateParams) error
- func (q *Queries) SetMFASecret(ctx context.Context, arg SetMFASecretParams) (int64, error)
- func (q *Queries) SetNotificationResult(ctx context.Context, arg SetNotificationResultParams) error
- func (q *Queries) SetScheduleLastRun(ctx context.Context, arg SetScheduleLastRunParams) error
- func (q *Queries) SetScheduleRunJob(ctx context.Context, arg SetScheduleRunJobParams) error
- func (q *Queries) SetSetting(ctx context.Context, arg SetSettingParams) error
- func (q *Queries) SetUserDisabled(ctx context.Context, arg SetUserDisabledParams) (int64, error)
- func (q *Queries) SetUserLastLogin(ctx context.Context, arg SetUserLastLoginParams) (int64, error)
- func (q *Queries) SetUserOIDCIdentity(ctx context.Context, arg SetUserOIDCIdentityParams) (int64, error)
- func (q *Queries) SetUserPreferences(ctx context.Context, arg SetUserPreferencesParams) error
- func (q *Queries) SetWebAuthnHandle(ctx context.Context, arg SetWebAuthnHandleParams) (int64, error)
- func (q *Queries) SetWebhookCalled(ctx context.Context, arg SetWebhookCalledParams) error
- func (q *Queries) SetWebhookToken(ctx context.Context, arg SetWebhookTokenParams) (int64, error)
- func (q *Queries) TouchAPIKey(ctx context.Context, arg TouchAPIKeyParams) (int64, error)
- func (q *Queries) TouchSession(ctx context.Context, arg TouchSessionParams) (int64, error)
- func (q *Queries) UpdateBackupTarget(ctx context.Context, arg UpdateBackupTargetParams) (BackupTarget, error)
- func (q *Queries) UpdateGitCredential(ctx context.Context, arg UpdateGitCredentialParams) (GitCredential, error)
- func (q *Queries) UpdateNotificationChannel(ctx context.Context, arg UpdateNotificationChannelParams) (NotificationChannel, error)
- func (q *Queries) UpdatePasskeyUse(ctx context.Context, arg UpdatePasskeyUseParams) (int64, error)
- func (q *Queries) UpdateSchedule(ctx context.Context, arg UpdateScheduleParams) (Schedule, error)
- func (q *Queries) UpdateStackTemplate(ctx context.Context, arg UpdateStackTemplateParams) (StackTemplate, error)
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) (int64, error)
- func (q *Queries) UpdateWebhook(ctx context.Context, arg UpdateWebhookParams) (Webhook, error)
- func (q *Queries) UseBackupCode(ctx context.Context, arg UseBackupCodeParams) (int64, error)
- func (q *Queries) UseMFAStep(ctx context.Context, arg UseMFAStepParams) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RegisterStackParams
- type Schedule
- type ScheduleRun
- type Session
- type SetAuditJobResultParams
- type SetGitStackAutoParams
- type SetGitStackCheckedParams
- type SetGitStackCommitParams
- type SetGitStackErrorParams
- type SetGitStackWebhookParams
- type SetImageUpdateParams
- type SetMFASecretParams
- type SetNotificationResultParams
- type SetScheduleLastRunParams
- type SetScheduleRunJobParams
- type SetSettingParams
- type SetUserDisabledParams
- type SetUserLastLoginParams
- type SetUserOIDCIdentityParams
- type SetUserPreferencesParams
- type SetWebAuthnHandleParams
- type SetWebhookCalledParams
- type SetWebhookTokenParams
- type Setting
- type Stack
- type StackTemplate
- type TouchAPIKeyParams
- type TouchSessionParams
- type UpdateBackupTargetParams
- type UpdateGitCredentialParams
- type UpdateNotificationChannelParams
- type UpdatePasskeyUseParams
- type UpdateScheduleParams
- type UpdateStackTemplateParams
- type UpdateUserPasswordParams
- type UpdateWebhookParams
- type UseBackupCodeParams
- type UseMFAStepParams
- type User
- type UserPreference
- type Variable
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAutoUpdateParams ¶ added in v0.2.0
type AddBackupCodeParams ¶ added in v0.2.0
type AddGitHostKeyParams ¶ added in v0.2.0
type AutoUpdate ¶ added in v0.2.0
type BackupTarget ¶ added in v0.2.0
type CreateAPIKeyParams ¶
type CreateBackupTargetParams ¶ added in v0.2.0
type CreateGitCredentialParams ¶ added in v0.2.0
type CreateGitStackParams ¶ added in v0.2.0
type CreateNotificationChannelParams ¶ added in v0.2.0
type CreatePasskeyParams ¶ added in v0.2.0
type CreateScheduleParams ¶ added in v0.2.0
type CreateSessionParams ¶
type CreateStackTemplateParams ¶ added in v0.2.0
type CreateUserParams ¶
type CreateWebhookParams ¶ added in v0.2.0
type DeletePasskeyParams ¶ added in v0.2.0
type DeleteUserAPIKeyParams ¶
type DeleteVariableParams ¶ added in v0.2.0
type DisableMFAParams ¶ added in v0.2.0
type EnableMFAParams ¶ added in v0.2.0
type FinishScheduleRunParams ¶ added in v0.2.0
type GetAPIKeyWithUserRow ¶
type GetSessionWithUserRow ¶
type GetVariableParams ¶ added in v0.2.0
type GitCredential ¶ added in v0.2.0
type GitKnownHost ¶ added in v0.2.0
type GitStack ¶ added in v0.2.0
type GitStack struct {
Name string
Url string
Ref string
FullRef string
ComposePath string
CredentialID sql.NullInt64
CommitHash string
CommitMessage string
CommitAuthor string
CommitAt int64
PulledAt int64
LastError string
CreatedAt int64
AutoUpdate string
PollInterval int64
WebhookHash string
CheckedAt int64
RemoteHash string
}
type ImageUpdate ¶ added in v0.1.1
type InsertAuditParams ¶ added in v0.2.0
type InsertEventParams ¶
type InsertScheduleRunParams ¶ added in v0.2.0
type LastAutoUpdateParams ¶ added in v0.2.0
type ListAuditParams ¶ added in v0.2.0
type ListAutoUpdatesParams ¶ added in v0.2.0
type ListEventsParams ¶
type ListScheduleRunsParams ¶ added in v0.2.0
type MfaBackupCode ¶ added in v0.2.0
type NotificationChannel ¶ added in v0.2.0
type PruneAutoUpdatesParams ¶ added in v0.2.0
type PruneScheduleRunsParams ¶ added in v0.2.0
type PutVariableParams ¶ added in v0.2.0
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddAutoUpdate ¶ added in v0.2.0
func (q *Queries) AddAutoUpdate(ctx context.Context, arg AddAutoUpdateParams) error
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) AddBackupCode ¶ added in v0.2.0
func (q *Queries) AddBackupCode(ctx context.Context, arg AddBackupCodeParams) error
func (*Queries) AddGitHostKey ¶ added in v0.2.0
func (q *Queries) AddGitHostKey(ctx context.Context, arg AddGitHostKeyParams) error
func (*Queries) CountActiveAdmins ¶
func (*Queries) CountBackupCodes ¶ added in v0.2.0
func (*Queries) CountGitStacksByCredential ¶ added in v0.2.0
func (*Queries) CountPasskeys ¶ added in v0.2.0
Keeps users.passkey_count in step with the passkeys table; run after every change.
func (*Queries) CountUserAPIKeys ¶
func (*Queries) CreateAPIKey ¶
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) CreateBackupTarget ¶ added in v0.2.0
func (q *Queries) CreateBackupTarget(ctx context.Context, arg CreateBackupTargetParams) (BackupTarget, error)
func (*Queries) CreateGitCredential ¶ added in v0.2.0
func (q *Queries) CreateGitCredential(ctx context.Context, arg CreateGitCredentialParams) (GitCredential, error)
func (*Queries) CreateGitStack ¶ added in v0.2.0
func (q *Queries) CreateGitStack(ctx context.Context, arg CreateGitStackParams) error
func (*Queries) CreateNotificationChannel ¶ added in v0.2.0
func (q *Queries) CreateNotificationChannel(ctx context.Context, arg CreateNotificationChannelParams) (NotificationChannel, error)
func (*Queries) CreatePasskey ¶ added in v0.2.0
func (*Queries) CreateSchedule ¶ added in v0.2.0
func (*Queries) CreateSession ¶
func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) CreateStackTemplate ¶ added in v0.2.0
func (q *Queries) CreateStackTemplate(ctx context.Context, arg CreateStackTemplateParams) (StackTemplate, error)
func (*Queries) CreateUser ¶
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) CreateWebhook ¶ added in v0.2.0
func (*Queries) DeleteBackupCodes ¶ added in v0.2.0
func (*Queries) DeleteBackupTarget ¶ added in v0.2.0
func (*Queries) DeleteEventsBefore ¶
func (*Queries) DeleteEventsBeyond ¶
Keeps the newest @keep events.
func (*Queries) DeleteExpiredSessions ¶
func (*Queries) DeleteGitCredential ¶ added in v0.2.0
func (*Queries) DeleteGitHostKeys ¶ added in v0.2.0
func (*Queries) DeleteGitStack ¶ added in v0.2.0
func (*Queries) DeleteNotificationChannel ¶ added in v0.2.0
func (*Queries) DeleteOtherUserSessions ¶
func (*Queries) DeletePasskey ¶ added in v0.2.0
func (*Queries) DeleteSchedule ¶ added in v0.2.0
func (*Queries) DeleteSession ¶
func (*Queries) DeleteSetting ¶
func (*Queries) DeleteStack ¶
func (*Queries) DeleteStackTemplate ¶ added in v0.2.0
func (*Queries) DeleteStackVariables ¶ added in v0.2.0
func (*Queries) DeleteUser ¶
func (*Queries) DeleteUserAPIKey ¶
func (*Queries) DeleteUserPasskeys ¶ added in v0.2.0
func (*Queries) DeleteUserSessions ¶
func (*Queries) DeleteVariable ¶ added in v0.2.0
func (*Queries) DeleteWebhook ¶ added in v0.2.0
func (*Queries) DisableMFA ¶ added in v0.2.0
func (*Queries) FailUnfinishedScheduleRuns ¶ added in v0.2.0
func (*Queries) FinishScheduleRun ¶ added in v0.2.0
func (q *Queries) FinishScheduleRun(ctx context.Context, arg FinishScheduleRunParams) error
func (*Queries) GetAPIKeyWithUser ¶
func (*Queries) GetBackupTarget ¶ added in v0.2.0
func (*Queries) GetGitCredential ¶ added in v0.2.0
func (*Queries) GetGitStack ¶ added in v0.2.0
func (*Queries) GetGitStackByWebhook ¶ added in v0.2.0
func (*Queries) GetNotificationChannel ¶ added in v0.2.0
func (*Queries) GetSchedule ¶ added in v0.2.0
func (*Queries) GetSession ¶
func (*Queries) GetSessionWithUser ¶
func (*Queries) GetSetting ¶
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) GetStackTemplate ¶ added in v0.2.0
func (*Queries) GetUserByID ¶
func (*Queries) GetUserByOIDCIdentity ¶ added in v0.2.0
func (*Queries) GetUserByUsername ¶
func (*Queries) GetUserByWebAuthnHandle ¶ added in v0.2.0
func (*Queries) GetUserPreferences ¶
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) GetVariable ¶ added in v0.2.0
func (*Queries) GetWebhook ¶ added in v0.2.0
func (*Queries) GetWebhookByToken ¶ added in v0.2.0
func (*Queries) InsertAudit ¶ added in v0.2.0
func (q *Queries) InsertAudit(ctx context.Context, arg InsertAuditParams) error
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) InsertEvent ¶
func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) error
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) InsertScheduleRun ¶ added in v0.2.0
func (*Queries) LastAutoUpdate ¶ added in v0.2.0
func (q *Queries) LastAutoUpdate(ctx context.Context, arg LastAutoUpdateParams) (AutoUpdate, error)
func (*Queries) LastImageUpdateCheck ¶ added in v0.1.1
func (*Queries) ListAudit ¶ added in v0.2.0
Newest first, before an id for paging; q matches path, object, action, message and user.
func (*Queries) ListAutoUpdates ¶ added in v0.2.0
func (q *Queries) ListAutoUpdates(ctx context.Context, arg ListAutoUpdatesParams) ([]AutoUpdate, error)
func (*Queries) ListBackupTargets ¶ added in v0.2.0
func (q *Queries) ListBackupTargets(ctx context.Context) ([]BackupTarget, error)
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListEvents ¶
Newest first, before the cursor id (0 = from the newest). Empty filters match everything.
func (*Queries) ListGitCredentials ¶ added in v0.2.0
func (q *Queries) ListGitCredentials(ctx context.Context) ([]GitCredential, error)
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListGitHostKeys ¶ added in v0.2.0
func (*Queries) ListGitKnownHosts ¶ added in v0.2.0
func (q *Queries) ListGitKnownHosts(ctx context.Context) ([]GitKnownHost, error)
func (*Queries) ListGitStacks ¶ added in v0.2.0
func (*Queries) ListImageUpdates ¶ added in v0.1.1
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListNotificationChannels ¶ added in v0.2.0
func (q *Queries) ListNotificationChannels(ctx context.Context) ([]NotificationChannel, error)
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListPasskeys ¶ added in v0.2.0
func (*Queries) ListScheduleRuns ¶ added in v0.2.0
func (q *Queries) ListScheduleRuns(ctx context.Context, arg ListScheduleRunsParams) ([]ScheduleRun, error)
func (*Queries) ListSchedules ¶ added in v0.2.0
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListSettings ¶
func (*Queries) ListStackTemplates ¶ added in v0.2.0
func (q *Queries) ListStackTemplates(ctx context.Context) ([]StackTemplate, error)
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListUserAPIKeys ¶
func (*Queries) ListVariables ¶ added in v0.2.0
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) ListWebhooks ¶ added in v0.2.0
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) PruneAudit ¶ added in v0.2.0
func (*Queries) PruneAutoUpdates ¶ added in v0.2.0
func (q *Queries) PruneAutoUpdates(ctx context.Context, arg PruneAutoUpdatesParams) error
func (*Queries) PruneScheduleRuns ¶ added in v0.2.0
func (q *Queries) PruneScheduleRuns(ctx context.Context, arg PruneScheduleRunsParams) error
func (*Queries) PutVariable ¶ added in v0.2.0
func (q *Queries) PutVariable(ctx context.Context, arg PutVariableParams) error
func (*Queries) RegisterStack ¶
func (q *Queries) RegisterStack(ctx context.Context, arg RegisterStackParams) error
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) SetAuditJobResult ¶ added in v0.2.0
func (q *Queries) SetAuditJobResult(ctx context.Context, arg SetAuditJobResultParams) error
func (*Queries) SetGitStackAuto ¶ added in v0.2.0
func (*Queries) SetGitStackChecked ¶ added in v0.2.0
func (q *Queries) SetGitStackChecked(ctx context.Context, arg SetGitStackCheckedParams) error
func (*Queries) SetGitStackCommit ¶ added in v0.2.0
func (q *Queries) SetGitStackCommit(ctx context.Context, arg SetGitStackCommitParams) error
func (*Queries) SetGitStackError ¶ added in v0.2.0
func (q *Queries) SetGitStackError(ctx context.Context, arg SetGitStackErrorParams) error
func (*Queries) SetGitStackWebhook ¶ added in v0.2.0
func (*Queries) SetImageUpdate ¶ added in v0.1.1
func (q *Queries) SetImageUpdate(ctx context.Context, arg SetImageUpdateParams) error
A failed check keeps the last digest and when it was first seen (#56); a new digest restarts seen_at.
func (*Queries) SetMFASecret ¶ added in v0.2.0
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only Starts (or restarts) enrollment; MFA stays off until confirmed.
func (*Queries) SetNotificationResult ¶ added in v0.2.0
func (q *Queries) SetNotificationResult(ctx context.Context, arg SetNotificationResultParams) error
func (*Queries) SetScheduleLastRun ¶ added in v0.2.0
func (q *Queries) SetScheduleLastRun(ctx context.Context, arg SetScheduleLastRunParams) error
func (*Queries) SetScheduleRunJob ¶ added in v0.2.0
func (q *Queries) SetScheduleRunJob(ctx context.Context, arg SetScheduleRunJobParams) error
func (*Queries) SetSetting ¶
func (q *Queries) SetSetting(ctx context.Context, arg SetSettingParams) error
func (*Queries) SetUserDisabled ¶
func (*Queries) SetUserLastLogin ¶
func (*Queries) SetUserOIDCIdentity ¶ added in v0.2.0
func (*Queries) SetUserPreferences ¶
func (q *Queries) SetUserPreferences(ctx context.Context, arg SetUserPreferencesParams) error
func (*Queries) SetWebAuthnHandle ¶ added in v0.2.0
func (q *Queries) SetWebAuthnHandle(ctx context.Context, arg SetWebAuthnHandleParams) (int64, error)
SPDX-FileCopyrightText: 2026 The nerdui Authors SPDX-License-Identifier: AGPL-3.0-only Sets the user handle once; a user keeps it for all their passkeys.
func (*Queries) SetWebhookCalled ¶ added in v0.2.0
func (q *Queries) SetWebhookCalled(ctx context.Context, arg SetWebhookCalledParams) error
func (*Queries) SetWebhookToken ¶ added in v0.2.0
func (*Queries) TouchAPIKey ¶
func (*Queries) TouchSession ¶
func (*Queries) UpdateBackupTarget ¶ added in v0.2.0
func (q *Queries) UpdateBackupTarget(ctx context.Context, arg UpdateBackupTargetParams) (BackupTarget, error)
func (*Queries) UpdateGitCredential ¶ added in v0.2.0
func (q *Queries) UpdateGitCredential(ctx context.Context, arg UpdateGitCredentialParams) (GitCredential, error)
func (*Queries) UpdateNotificationChannel ¶ added in v0.2.0
func (q *Queries) UpdateNotificationChannel(ctx context.Context, arg UpdateNotificationChannelParams) (NotificationChannel, error)
func (*Queries) UpdatePasskeyUse ¶ added in v0.2.0
func (*Queries) UpdateSchedule ¶ added in v0.2.0
func (*Queries) UpdateStackTemplate ¶ added in v0.2.0
func (q *Queries) UpdateStackTemplate(ctx context.Context, arg UpdateStackTemplateParams) (StackTemplate, error)
func (*Queries) UpdateUserPassword ¶
func (*Queries) UpdateWebhook ¶ added in v0.2.0
func (*Queries) UseBackupCode ¶ added in v0.2.0
func (*Queries) UseMFAStep ¶ added in v0.2.0
Accepts a TOTP step only once and only forward.
type RegisterStackParams ¶
type ScheduleRun ¶ added in v0.2.0
type SetAuditJobResultParams ¶ added in v0.2.0
type SetGitStackAutoParams ¶ added in v0.2.0
type SetGitStackCheckedParams ¶ added in v0.2.0
type SetGitStackCommitParams ¶ added in v0.2.0
type SetGitStackErrorParams ¶ added in v0.2.0
type SetGitStackWebhookParams ¶ added in v0.2.0
type SetImageUpdateParams ¶ added in v0.1.1
type SetMFASecretParams ¶ added in v0.2.0
type SetNotificationResultParams ¶ added in v0.2.0
type SetScheduleLastRunParams ¶ added in v0.2.0
type SetScheduleRunJobParams ¶ added in v0.2.0
type SetSettingParams ¶
type SetUserDisabledParams ¶
type SetUserLastLoginParams ¶
type SetUserOIDCIdentityParams ¶ added in v0.2.0
type SetUserOIDCIdentityParams struct {
OidcIdentity sql.NullString
Now int64
ID int64
}
type SetWebAuthnHandleParams ¶ added in v0.2.0
type SetWebhookCalledParams ¶ added in v0.2.0
type SetWebhookTokenParams ¶ added in v0.2.0
type StackTemplate ¶ added in v0.2.0
type TouchAPIKeyParams ¶
type TouchSessionParams ¶
type UpdateBackupTargetParams ¶ added in v0.2.0
type UpdateGitCredentialParams ¶ added in v0.2.0
type UpdateNotificationChannelParams ¶ added in v0.2.0
type UpdatePasskeyUseParams ¶ added in v0.2.0
type UpdateScheduleParams ¶ added in v0.2.0
type UpdateStackTemplateParams ¶ added in v0.2.0
type UpdateWebhookParams ¶ added in v0.2.0
type UseBackupCodeParams ¶ added in v0.2.0
type UseMFAStepParams ¶ added in v0.2.0
type User ¶
type User struct {
ID int64
Username string
PasswordHash string
Role string
CreatedAt int64
UpdatedAt int64
DisabledAt sql.NullInt64
MustChangePassword int64
LastLoginAt sql.NullInt64
MfaSecret string
MfaEnabled int64
MfaLastStep int64
OidcIdentity sql.NullString
WebauthnHandle []byte
PasskeyCount int64
}
type UserPreference ¶
Source Files
¶
- api_keys.sql.go
- audit.sql.go
- auto_updates.sql.go
- backup_targets.sql.go
- db.go
- events.sql.go
- git.sql.go
- image_updates.sql.go
- mfa.sql.go
- models.go
- notifications.sql.go
- passkeys.sql.go
- preferences.sql.go
- schedules.sql.go
- sessions.sql.go
- settings.sql.go
- stack_templates.sql.go
- stacks.sql.go
- users.sql.go
- variables.sql.go
- webhooks.sql.go