Files
mantrae/server/internal/store/db/querier.go
d34dscene 2b3cff317c cleanup
2025-12-03 16:06:44 +01:00

165 lines
12 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package db
import (
"context"
)
type Querier interface {
CountAgents(ctx context.Context, profileID int64) (int64, error)
CountAuditLogs(ctx context.Context) (int64, error)
CountDnsProviders(ctx context.Context) (int64, error)
CountEntryPoints(ctx context.Context, profileID int64) (int64, error)
CountHttpMiddlewares(ctx context.Context, arg *CountHttpMiddlewaresParams) (int64, error)
CountHttpRouters(ctx context.Context, arg *CountHttpRoutersParams) (int64, error)
CountHttpServersTransports(ctx context.Context, arg *CountHttpServersTransportsParams) (int64, error)
CountHttpServices(ctx context.Context, arg *CountHttpServicesParams) (int64, error)
CountProfiles(ctx context.Context) (int64, error)
CountTcpMiddlewares(ctx context.Context, arg *CountTcpMiddlewaresParams) (int64, error)
CountTcpRouters(ctx context.Context, arg *CountTcpRoutersParams) (int64, error)
CountTcpServersTransports(ctx context.Context, arg *CountTcpServersTransportsParams) (int64, error)
CountTcpServices(ctx context.Context, arg *CountTcpServicesParams) (int64, error)
CountTraefikInstances(ctx context.Context, profileID int64) (int64, error)
CountUdpRouters(ctx context.Context, arg *CountUdpRoutersParams) (int64, error)
CountUdpServices(ctx context.Context, arg *CountUdpServicesParams) (int64, error)
CountUsers(ctx context.Context) (int64, error)
CreateAgent(ctx context.Context, arg *CreateAgentParams) (*Agent, error)
CreateAuditLog(ctx context.Context, arg *CreateAuditLogParams) error
CreateDnsProvider(ctx context.Context, arg *CreateDnsProviderParams) (*DnsProvider, error)
CreateEntryPoint(ctx context.Context, arg *CreateEntryPointParams) (*EntryPoint, error)
CreateHttpMiddleware(ctx context.Context, arg *CreateHttpMiddlewareParams) (*HttpMiddleware, error)
CreateHttpRouter(ctx context.Context, arg *CreateHttpRouterParams) (*HttpRouter, error)
CreateHttpRouterDNSProvider(ctx context.Context, arg *CreateHttpRouterDNSProviderParams) error
CreateHttpServersTransport(ctx context.Context, arg *CreateHttpServersTransportParams) (*HttpServersTransport, error)
CreateHttpService(ctx context.Context, arg *CreateHttpServiceParams) (*HttpService, error)
CreateProfile(ctx context.Context, arg *CreateProfileParams) (*Profile, error)
CreateTcpMiddleware(ctx context.Context, arg *CreateTcpMiddlewareParams) (*TcpMiddleware, error)
CreateTcpRouter(ctx context.Context, arg *CreateTcpRouterParams) (*TcpRouter, error)
CreateTcpRouterDNSProvider(ctx context.Context, arg *CreateTcpRouterDNSProviderParams) error
CreateTcpServersTransport(ctx context.Context, arg *CreateTcpServersTransportParams) (*TcpServersTransport, error)
CreateTcpService(ctx context.Context, arg *CreateTcpServiceParams) (*TcpService, error)
CreateUdpRouter(ctx context.Context, arg *CreateUdpRouterParams) (*UdpRouter, error)
CreateUdpService(ctx context.Context, arg *CreateUdpServiceParams) (*UdpService, error)
CreateUser(ctx context.Context, arg *CreateUserParams) (*User, error)
DeleteAgent(ctx context.Context, id string) error
DeleteDnsProvider(ctx context.Context, id string) error
DeleteEntryPointByID(ctx context.Context, id string) error
DeleteErrorById(ctx context.Context, id int64) error
DeleteErrorsByProfile(ctx context.Context, profileID int64) error
DeleteErrorsByProfileCategory(ctx context.Context, arg *DeleteErrorsByProfileCategoryParams) error
DeleteHttpMiddleware(ctx context.Context, id string) error
DeleteHttpRouter(ctx context.Context, id string) error
DeleteHttpRouterDNSProvider(ctx context.Context, arg *DeleteHttpRouterDNSProviderParams) error
DeleteHttpServersTransport(ctx context.Context, id string) error
DeleteHttpService(ctx context.Context, id string) error
DeleteOldAuditLogs(ctx context.Context) error
DeleteProfile(ctx context.Context, id int64) error
DeleteSetting(ctx context.Context, key string) error
DeleteTcpMiddleware(ctx context.Context, id string) error
DeleteTcpRouter(ctx context.Context, id string) error
DeleteTcpRouterDNSProvider(ctx context.Context, arg *DeleteTcpRouterDNSProviderParams) error
DeleteTcpServersTransport(ctx context.Context, id string) error
DeleteTcpService(ctx context.Context, id string) error
DeleteTraefikInstance(ctx context.Context, id string) error
DeleteUdpRouter(ctx context.Context, id string) error
DeleteUdpService(ctx context.Context, id string) error
DeleteUser(ctx context.Context, id string) error
GetAgent(ctx context.Context, id string) (*Agent, error)
GetDefaultDNSProvider(ctx context.Context) (*DnsProvider, error)
GetDefaultEntryPoint(ctx context.Context) (*EntryPoint, error)
GetDnsProvider(ctx context.Context, id string) (*DnsProvider, error)
GetDnsProviderByName(ctx context.Context, name string) (*DnsProvider, error)
GetDnsProvidersByHttpRouter(ctx context.Context, httpRouterID string) ([]*DnsProvider, error)
GetDnsProvidersByTcpRouter(ctx context.Context, tcpRouterID string) ([]*DnsProvider, error)
GetEntryPoint(ctx context.Context, id string) (*EntryPoint, error)
GetErrorsByProfile(ctx context.Context, profileID int64) ([]*Error, error)
GetHttpMiddleware(ctx context.Context, id string) (*HttpMiddleware, error)
GetHttpRouter(ctx context.Context, id string) (*HttpRouter, error)
GetHttpRouterDomains(ctx context.Context) ([]*GetHttpRouterDomainsRow, error)
GetHttpRoutersUsingEntryPoint(ctx context.Context, arg *GetHttpRoutersUsingEntryPointParams) ([]*GetHttpRoutersUsingEntryPointRow, error)
GetHttpRoutersUsingMiddleware(ctx context.Context, arg *GetHttpRoutersUsingMiddlewareParams) ([]*GetHttpRoutersUsingMiddlewareRow, error)
GetHttpServersTransport(ctx context.Context, id string) (*HttpServersTransport, error)
GetHttpService(ctx context.Context, id string) (*HttpService, error)
GetHttpServiceByName(ctx context.Context, arg *GetHttpServiceByNameParams) (*HttpService, error)
GetProfile(ctx context.Context, id int64) (*Profile, error)
GetProfileByName(ctx context.Context, name string) (*Profile, error)
GetSetting(ctx context.Context, key string) (*Setting, error)
GetTcpMiddleware(ctx context.Context, id string) (*TcpMiddleware, error)
GetTcpRouter(ctx context.Context, id string) (*TcpRouter, error)
GetTcpRouterDomains(ctx context.Context) ([]*GetTcpRouterDomainsRow, error)
GetTcpRoutersUsingEntryPoint(ctx context.Context, arg *GetTcpRoutersUsingEntryPointParams) ([]*GetTcpRoutersUsingEntryPointRow, error)
GetTcpRoutersUsingMiddleware(ctx context.Context, arg *GetTcpRoutersUsingMiddlewareParams) ([]*GetTcpRoutersUsingMiddlewareRow, error)
GetTcpServersTransport(ctx context.Context, id string) (*TcpServersTransport, error)
GetTcpService(ctx context.Context, id string) (*TcpService, error)
GetTcpServiceByName(ctx context.Context, arg *GetTcpServiceByNameParams) (*TcpService, error)
GetTraefikInstanceByID(ctx context.Context, id string) (*TraefikInstance, error)
GetTraefikInstanceByName(ctx context.Context, arg *GetTraefikInstanceByNameParams) (*TraefikInstance, error)
GetUdpRouter(ctx context.Context, id string) (*UdpRouter, error)
GetUdpRoutersUsingEntryPoint(ctx context.Context, arg *GetUdpRoutersUsingEntryPointParams) ([]*GetUdpRoutersUsingEntryPointRow, error)
GetUdpService(ctx context.Context, id string) (*UdpService, error)
GetUdpServiceByName(ctx context.Context, arg *GetUdpServiceByNameParams) (*UdpService, 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, arg *ListAgentsParams) ([]*Agent, error)
ListAuditLogs(ctx context.Context, arg *ListAuditLogsParams) ([]*ListAuditLogsRow, error)
ListDnsProviders(ctx context.Context, arg *ListDnsProvidersParams) ([]*DnsProvider, error)
ListEntryPoints(ctx context.Context, arg *ListEntryPointsParams) ([]*EntryPoint, error)
ListErrors(ctx context.Context) ([]*Error, error)
ListHttpMiddlewares(ctx context.Context, arg *ListHttpMiddlewaresParams) ([]*HttpMiddleware, error)
ListHttpMiddlewaresEnabled(ctx context.Context, profileID int64) ([]*HttpMiddleware, error)
ListHttpRouters(ctx context.Context, arg *ListHttpRoutersParams) ([]*HttpRouter, error)
ListHttpRoutersEnabled(ctx context.Context, profileID int64) ([]*HttpRouter, error)
ListHttpServersTransports(ctx context.Context, arg *ListHttpServersTransportsParams) ([]*HttpServersTransport, error)
ListHttpServersTransportsEnabled(ctx context.Context, profileID int64) ([]*HttpServersTransport, error)
ListHttpServices(ctx context.Context, arg *ListHttpServicesParams) ([]*HttpService, error)
ListHttpServicesEnabled(ctx context.Context, profileID int64) ([]*HttpService, error)
ListProfiles(ctx context.Context, arg *ListProfilesParams) ([]*Profile, error)
ListSettings(ctx context.Context) ([]*Setting, error)
ListTcpMiddlewares(ctx context.Context, arg *ListTcpMiddlewaresParams) ([]*TcpMiddleware, error)
ListTcpMiddlewaresEnabled(ctx context.Context, profileID int64) ([]*TcpMiddleware, error)
ListTcpRouters(ctx context.Context, arg *ListTcpRoutersParams) ([]*TcpRouter, error)
ListTcpRoutersEnabled(ctx context.Context, profileID int64) ([]*TcpRouter, error)
ListTcpServersTransports(ctx context.Context, arg *ListTcpServersTransportsParams) ([]*TcpServersTransport, error)
ListTcpServersTransportsEnabled(ctx context.Context, profileID int64) ([]*TcpServersTransport, error)
ListTcpServices(ctx context.Context, arg *ListTcpServicesParams) ([]*TcpService, error)
ListTcpServicesEnabled(ctx context.Context, profileID int64) ([]*TcpService, error)
ListTraefikInstances(ctx context.Context, arg *ListTraefikInstancesParams) ([]*TraefikInstance, error)
ListUdpRouters(ctx context.Context, arg *ListUdpRoutersParams) ([]*UdpRouter, error)
ListUdpRoutersEnabled(ctx context.Context, profileID int64) ([]*UdpRouter, error)
ListUdpServices(ctx context.Context, arg *ListUdpServicesParams) ([]*UdpService, error)
ListUdpServicesEnabled(ctx context.Context, profileID int64) ([]*UdpService, error)
ListUsers(ctx context.Context, arg *ListUsersParams) ([]*User, error)
LogError(ctx context.Context, arg *LogErrorParams) error
PurgeTraefikInstances(ctx context.Context) error
UnsetDefaultDNSProvider(ctx context.Context) error
UnsetDefaultEntryPoint(ctx context.Context, profileID int64) error
UnsetDefaultHttpMiddleware(ctx context.Context, profileID int64) error
UnsetDefaultTcpMiddleware(ctx context.Context, profileID int64) error
UpdateAgent(ctx context.Context, arg *UpdateAgentParams) (*Agent, error)
UpdateDnsProvider(ctx context.Context, arg *UpdateDnsProviderParams) (*DnsProvider, error)
UpdateEntryPoint(ctx context.Context, arg *UpdateEntryPointParams) (*EntryPoint, error)
UpdateHttpMiddleware(ctx context.Context, arg *UpdateHttpMiddlewareParams) (*HttpMiddleware, error)
UpdateHttpRouter(ctx context.Context, arg *UpdateHttpRouterParams) (*HttpRouter, error)
UpdateHttpServersTransport(ctx context.Context, arg *UpdateHttpServersTransportParams) (*HttpServersTransport, error)
UpdateHttpService(ctx context.Context, arg *UpdateHttpServiceParams) (*HttpService, error)
UpdateProfile(ctx context.Context, arg *UpdateProfileParams) (*Profile, error)
UpdateTcpMiddleware(ctx context.Context, arg *UpdateTcpMiddlewareParams) (*TcpMiddleware, error)
UpdateTcpRouter(ctx context.Context, arg *UpdateTcpRouterParams) (*TcpRouter, error)
UpdateTcpServersTransport(ctx context.Context, arg *UpdateTcpServersTransportParams) (*TcpServersTransport, error)
UpdateTcpService(ctx context.Context, arg *UpdateTcpServiceParams) (*TcpService, error)
UpdateUdpRouter(ctx context.Context, arg *UpdateUdpRouterParams) (*UdpRouter, error)
UpdateUdpService(ctx context.Context, arg *UpdateUdpServiceParams) (*UdpService, 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
UpsertTraefikInstance(ctx context.Context, arg *UpsertTraefikInstanceParams) (*TraefikInstance, error)
}
var _ Querier = (*Queries)(nil)