Files
mantrae/internal/db/querier.go
d34dscene 040c1ffc35 oof
2025-06-17 00:49:55 +02:00

79 lines
4.6 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.28.0
package db
import (
"context"
)
type Querier interface {
AddRouterDNSProvider(ctx context.Context, arg AddRouterDNSProviderParams) error
CountEntryPoints(ctx context.Context) (int64, error)
CountProfiles(ctx context.Context) (int64, error)
CountUsers(ctx context.Context) (int64, error)
CreateAgent(ctx context.Context, arg CreateAgentParams) error
CreateDNSProvider(ctx context.Context, arg CreateDNSProviderParams) error
CreateEntryPoint(ctx context.Context, arg CreateEntryPointParams) (EntryPoint, error)
CreateProfile(ctx context.Context, arg CreateProfileParams) (Profile, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
DeleteAgent(ctx context.Context, id string) error
DeleteDNSProvider(ctx context.Context, id int64) error
DeleteEntryPoint(ctx context.Context, id int64) error
DeleteErrorById(ctx context.Context, id int64) error
DeleteErrorsByProfile(ctx context.Context, profileID int64) error
DeleteErrorsByProfileCategory(ctx context.Context, arg DeleteErrorsByProfileCategoryParams) error
DeleteProfile(ctx context.Context, id int64) error
DeleteRouterDNSProvider(ctx context.Context, arg DeleteRouterDNSProviderParams) error
DeleteSetting(ctx context.Context, key string) error
DeleteTraefikConfig(ctx context.Context, id int64) error
DeleteTraefikConfigByAgent(ctx context.Context, agentID *string) error
DeleteUser(ctx context.Context, id string) error
GetAPITraefikConfig(ctx context.Context, profileID int64) (Traefik, error)
GetActiveDNSProvider(ctx context.Context) (DnsProvider, error)
GetAgent(ctx context.Context, id string) (Agent, error)
GetAgentTraefikConfigs(ctx context.Context, profileID int64) ([]Traefik, error)
GetDNSProvider(ctx context.Context, id int64) (DnsProvider, error)
GetEntryPoint(ctx context.Context, id int64) (EntryPoint, error)
GetErrorsByProfile(ctx context.Context, profileID int64) ([]Error, error)
GetLocalTraefikConfig(ctx context.Context, profileID int64) (Traefik, error)
GetProfile(ctx context.Context, id int64) (Profile, error)
GetProfileByName(ctx context.Context, name string) (Profile, error)
GetRouterDNSProviderByID(ctx context.Context, arg GetRouterDNSProviderByIDParams) (GetRouterDNSProviderByIDRow, error)
GetRouterDNSProviders(ctx context.Context, arg GetRouterDNSProvidersParams) ([]GetRouterDNSProvidersRow, error)
GetSetting(ctx context.Context, key string) (Setting, error)
GetTraefikConfigByID(ctx context.Context, id int64) (Traefik, error)
GetTraefikConfigBySource(ctx context.Context, arg GetTraefikConfigBySourceParams) ([]Traefik, error)
GetUserByEmail(ctx context.Context, email *string) (User, error)
GetUserByID(ctx context.Context, id string) (User, error)
GetUserByUsername(ctx context.Context, username string) (User, error)
ListAgents(ctx context.Context) ([]Agent, error)
ListAgentsByProfile(ctx context.Context, profileID int64) ([]Agent, error)
ListDNSProviders(ctx context.Context) ([]DnsProvider, error)
ListEntryPoints(ctx context.Context, arg ListEntryPointsParams) ([]EntryPoint, error)
ListErrors(ctx context.Context) ([]Error, error)
ListProfiles(ctx context.Context, arg ListProfilesParams) ([]Profile, error)
ListRouterDNSProvidersByTraefikID(ctx context.Context, traefikID int64) ([]ListRouterDNSProvidersByTraefikIDRow, error)
ListSettings(ctx context.Context) ([]Setting, error)
ListTraefikIDs(ctx context.Context) ([]int64, error)
ListUsers(ctx context.Context, arg ListUsersParams) ([]User, error)
LogError(ctx context.Context, arg LogErrorParams) error
UpdateAgent(ctx context.Context, arg UpdateAgentParams) (Agent, error)
UpdateAgentIP(ctx context.Context, arg UpdateAgentIPParams) error
UpdateAgentToken(ctx context.Context, arg UpdateAgentTokenParams) error
UpdateDNSProvider(ctx context.Context, arg UpdateDNSProviderParams) error
UpdateEntryPoint(ctx context.Context, arg UpdateEntryPointParams) (EntryPoint, error)
UpdateProfile(ctx context.Context, arg UpdateProfileParams) (Profile, error)
UpdateSetting(ctx context.Context, arg UpdateSettingParams) (Setting, error)
UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
UpdateUserLastLogin(ctx context.Context, id string) error
UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
UpdateUserResetToken(ctx context.Context, arg UpdateUserResetTokenParams) error
UpsertSetting(ctx context.Context, arg UpsertSettingParams) error
UpsertTraefikAgentConfig(ctx context.Context, arg UpsertTraefikAgentConfigParams) error
UpsertTraefikConfig(ctx context.Context, arg UpsertTraefikConfigParams) error
}
var _ Querier = (*Queries)(nil)