Documentation ¶
Index ¶
- type AppDetailRepo
- func (a AppDetailRepo) BatchCreate(ctx context.Context, details []model.AppDetail) error
- func (a AppDetailRepo) BatchDelete(ctx context.Context, appDetails []model.AppDetail) error
- func (a AppDetailRepo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error
- func (a AppDetailRepo) DeleteByAppIds(ctx context.Context, appIds []uint) error
- func (a AppDetailRepo) GetBy(opts ...DBOption) ([]model.AppDetail, error)
- func (a AppDetailRepo) GetFirst(opts ...DBOption) (model.AppDetail, error)
- func (a AppDetailRepo) Update(ctx context.Context, detail model.AppDetail) error
- func (a AppDetailRepo) WithAppId(id uint) DBOption
- func (a AppDetailRepo) WithIgnored() DBOption
- func (a AppDetailRepo) WithVersion(version string) DBOption
- type AppInstallRepo
- func (a *AppInstallRepo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error
- func (a *AppInstallRepo) Create(ctx context.Context, install *model.AppInstall) error
- func (a *AppInstallRepo) Delete(ctx context.Context, install model.AppInstall) error
- func (a *AppInstallRepo) DeleteBy(opts ...DBOption) error
- func (a *AppInstallRepo) GetFirst(opts ...DBOption) (model.AppInstall, error)
- func (a *AppInstallRepo) GetFirstByCtx(ctx context.Context, opts ...DBOption) (model.AppInstall, error)
- func (a *AppInstallRepo) ListBy(opts ...DBOption) ([]model.AppInstall, error)
- func (a *AppInstallRepo) LoadBaseInfo(key string, name string) (*RootInfo, error)
- func (a *AppInstallRepo) Page(page, size int, opts ...DBOption) (int64, []model.AppInstall, error)
- func (a *AppInstallRepo) Save(ctx context.Context, install *model.AppInstall) error
- func (a *AppInstallRepo) WithAppId(appId uint) DBOption
- func (a *AppInstallRepo) WithAppIdsIn(appIds []uint) DBOption
- func (a *AppInstallRepo) WithContainerName(containerName string) DBOption
- func (a *AppInstallRepo) WithDetailIdNotIn(detailIds []uint) DBOption
- func (a *AppInstallRepo) WithDetailIdsIn(detailIds []uint) DBOption
- func (a *AppInstallRepo) WithIDNotIs(id uint) DBOption
- func (a *AppInstallRepo) WithIdNotInWebsite() DBOption
- func (a *AppInstallRepo) WithPort(port int) DBOption
- func (a *AppInstallRepo) WithServiceName(serviceName string) DBOption
- func (a *AppInstallRepo) WithStatus(status string) DBOption
- type AppInstallResourceRpo
- func (a *AppInstallResourceRpo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error
- func (a AppInstallResourceRpo) Create(ctx context.Context, resource *model.AppInstallResource) error
- func (a AppInstallResourceRpo) DeleteBy(ctx context.Context, opts ...DBOption) error
- func (a AppInstallResourceRpo) GetBy(opts ...DBOption) ([]model.AppInstallResource, error)
- func (a AppInstallResourceRpo) GetFirst(opts ...DBOption) (model.AppInstallResource, error)
- func (a AppInstallResourceRpo) WithAppInstallId(appInstallId uint) DBOption
- func (a AppInstallResourceRpo) WithLinkId(linkId uint) DBOption
- func (a AppInstallResourceRpo) WithResourceId(resourceId uint) DBOption
- type AppRepo
- func (a AppRepo) BatchCreate(ctx context.Context, apps []model.App) error
- func (a AppRepo) BatchDelete(ctx context.Context, apps []model.App) error
- func (a AppRepo) Create(ctx context.Context, app *model.App) error
- func (a AppRepo) GetBy(opts ...DBOption) ([]model.App, error)
- func (a AppRepo) GetByKey(ctx context.Context, key string) (model.App, error)
- func (a AppRepo) GetFirst(opts ...DBOption) (model.App, error)
- func (a AppRepo) GetRecommend() DBOption
- func (a AppRepo) OrderByRecommend() DBOption
- func (a AppRepo) Page(page, size int, opts ...DBOption) (int64, []model.App, error)
- func (a AppRepo) Save(ctx context.Context, app *model.App) error
- func (a AppRepo) WithKey(key string) DBOption
- func (a AppRepo) WithLikeName(name string) DBOption
- func (a AppRepo) WithResource(resource string) DBOption
- func (a AppRepo) WithType(typeStr string) DBOption
- type AppTagRepo
- func (a AppTagRepo) BatchCreate(ctx context.Context, tags []*model.AppTag) error
- func (a AppTagRepo) DeleteAll(ctx context.Context) error
- func (a AppTagRepo) DeleteByAppIds(ctx context.Context, appIds []uint) error
- func (a AppTagRepo) GetByAppId(appId uint) ([]model.AppTag, error)
- func (a AppTagRepo) GetByTagIds(tagIds []uint) ([]model.AppTag, error)
- type BackupRepo
- func (u *BackupRepo) Create(backup *model.BackupAccount) error
- func (u *BackupRepo) CreateRecord(record *model.BackupRecord) error
- func (u *BackupRepo) Delete(opts ...DBOption) error
- func (u *BackupRepo) DeleteRecord(ctx context.Context, opts ...DBOption) error
- func (u *BackupRepo) Get(opts ...DBOption) (model.BackupAccount, error)
- func (u *BackupRepo) List(opts ...DBOption) ([]model.BackupAccount, error)
- func (u *BackupRepo) ListRecord(opts ...DBOption) ([]model.BackupRecord, error)
- func (u *BackupRepo) PageRecord(page, size int, opts ...DBOption) (int64, []model.BackupRecord, error)
- func (u *BackupRepo) Update(id uint, vars map[string]interface{}) error
- func (u *BackupRepo) UpdateRecord(record *model.BackupRecord) error
- func (u *BackupRepo) WithByCronID(cronjobID uint) DBOption
- func (u *BackupRepo) WithByDetailName(detailName string) DBOption
- func (u *BackupRepo) WithByFileName(fileName string) DBOption
- func (u *BackupRepo) WithByType(backupType string) DBOption
- func (u *BackupRepo) WithFileNameStartWith(filePrefix string) DBOption
- type ClamRepo
- func (u *ClamRepo) Create(clam *model.Clam) error
- func (u *ClamRepo) Delete(opts ...DBOption) error
- func (u *ClamRepo) Get(opts ...DBOption) (model.Clam, error)
- func (u *ClamRepo) List(opts ...DBOption) ([]model.Clam, error)
- func (u *ClamRepo) Page(page, size int, opts ...DBOption) (int64, []model.Clam, error)
- func (u *ClamRepo) Update(id uint, vars map[string]interface{}) error
- type CommandRepo
- func (u *CommandRepo) Create(command *model.Command) error
- func (u *CommandRepo) Delete(opts ...DBOption) error
- func (u *CommandRepo) DeleteRedis(opts ...DBOption) error
- func (u *CommandRepo) Get(opts ...DBOption) (model.Command, error)
- func (u *CommandRepo) GetList(opts ...DBOption) ([]model.Command, error)
- func (u *CommandRepo) GetRedis(opts ...DBOption) (model.RedisCommand, error)
- func (u *CommandRepo) GetRedisList(opts ...DBOption) ([]model.RedisCommand, error)
- func (u *CommandRepo) Page(page, size int, opts ...DBOption) (int64, []model.Command, error)
- func (u *CommandRepo) PageRedis(page, size int, opts ...DBOption) (int64, []model.RedisCommand, error)
- func (u *CommandRepo) SaveRedis(command *model.RedisCommand) error
- func (u *CommandRepo) Update(id uint, vars map[string]interface{}) error
- func (c *CommandRepo) WithByInfo(info string) DBOption
- func (a CommandRepo) WithLikeName(name string) DBOption
- type CommonRepo
- func (c *CommonRepo) WithByDate(startTime, endTime time.Time) DBOption
- func (c *CommonRepo) WithByFrom(from string) DBOption
- func (c *CommonRepo) WithByGroupID(groupID uint) DBOption
- func (c *CommonRepo) WithByID(id uint) DBOption
- func (c *CommonRepo) WithByName(name string) DBOption
- func (c *CommonRepo) WithByStartDate(startTime time.Time) DBOption
- func (c *CommonRepo) WithByStatus(status string) DBOption
- func (c *CommonRepo) WithByType(tp string) DBOption
- func (c *CommonRepo) WithIdsIn(ids []uint) DBOption
- func (c *CommonRepo) WithIdsNotIn(ids []uint) DBOption
- func (c *CommonRepo) WithLikeName(name string) DBOption
- func (c *CommonRepo) WithOrderBy(orderStr string) DBOption
- func (c *CommonRepo) WithOrderRuleBy(orderBy, order string) DBOption
- type ComposeTemplateRepo
- func (u *ComposeTemplateRepo) Create(compose *model.ComposeTemplate) error
- func (u *ComposeTemplateRepo) CreateRecord(compose *model.Compose) error
- func (u *ComposeTemplateRepo) Delete(opts ...DBOption) error
- func (u *ComposeTemplateRepo) DeleteRecord(opts ...DBOption) error
- func (u *ComposeTemplateRepo) Get(opts ...DBOption) (model.ComposeTemplate, error)
- func (u *ComposeTemplateRepo) GetRecord(opts ...DBOption) (model.Compose, error)
- func (u *ComposeTemplateRepo) List(opts ...DBOption) ([]model.ComposeTemplate, error)
- func (u *ComposeTemplateRepo) ListRecord() ([]model.Compose, error)
- func (u *ComposeTemplateRepo) Page(page, size int, opts ...DBOption) (int64, []model.ComposeTemplate, error)
- func (u *ComposeTemplateRepo) Update(id uint, vars map[string]interface{}) error
- type CronjobRepo
- func (u *CronjobRepo) Create(cronjob *model.Cronjob) error
- func (u *CronjobRepo) Delete(opts ...DBOption) error
- func (u *CronjobRepo) DeleteRecord(opts ...DBOption) error
- func (u *CronjobRepo) EndRecords(record model.JobRecords, status, message, records string)
- func (u *CronjobRepo) Get(opts ...DBOption) (model.Cronjob, error)
- func (u *CronjobRepo) GetRecord(opts ...DBOption) (model.JobRecords, error)
- func (u *CronjobRepo) List(opts ...DBOption) ([]model.Cronjob, error)
- func (u *CronjobRepo) ListRecord(opts ...DBOption) ([]model.JobRecords, error)
- func (u *CronjobRepo) Page(page, size int, opts ...DBOption) (int64, []model.Cronjob, error)
- func (u *CronjobRepo) PageRecords(page, size int, opts ...DBOption) (int64, []model.JobRecords, error)
- func (u *CronjobRepo) RecordFirst(id uint) (model.JobRecords, error)
- func (u *CronjobRepo) Save(id uint, cronjob model.Cronjob) error
- func (u *CronjobRepo) StartRecords(cronjobID uint, fromLocal bool, targetPath string) model.JobRecords
- func (u *CronjobRepo) Update(id uint, vars map[string]interface{}) error
- func (u *CronjobRepo) UpdateRecords(id uint, vars map[string]interface{}) error
- func (c *CronjobRepo) WithByDbName(name string) DBOption
- func (c *CronjobRepo) WithByDefaultDownload(account string) DBOption
- func (c *CronjobRepo) WithByJobID(id int) DBOption
- func (c *CronjobRepo) WithByRecordDropID(id int) DBOption
- func (c *CronjobRepo) WithByRecordFile(file string) DBOption
- type DBOption
- type DatabaseRepo
- func (d *DatabaseRepo) Create(ctx context.Context, database *model.Database) error
- func (d *DatabaseRepo) Delete(ctx context.Context, opts ...DBOption) error
- func (d *DatabaseRepo) Get(opts ...DBOption) (model.Database, error)
- func (d *DatabaseRepo) GetList(opts ...DBOption) ([]model.Database, error)
- func (d *DatabaseRepo) Page(page, size int, opts ...DBOption) (int64, []model.Database, error)
- func (d *DatabaseRepo) Update(id uint, vars map[string]interface{}) error
- func (d *DatabaseRepo) WithAppInstallID(appInstallID uint) DBOption
- func (d *DatabaseRepo) WithByFrom(from string) DBOption
- func (d *DatabaseRepo) WithTypeList(dbType string) DBOption
- func (d *DatabaseRepo) WithoutByFrom(from string) DBOption
- type FavoriteRepo
- func (f *FavoriteRepo) All() ([]model.Favorite, error)
- func (f *FavoriteRepo) Create(favorite *model.Favorite) error
- func (f *FavoriteRepo) Delete(opts ...DBOption) error
- func (f *FavoriteRepo) GetFirst(opts ...DBOption) (model.Favorite, error)
- func (f *FavoriteRepo) Page(page, size int, opts ...DBOption) (int64, []model.Favorite, error)
- func (f *FavoriteRepo) WithByPath(path string) DBOption
- type FtpRepo
- func (h *FtpRepo) Create(ftp *model.Ftp) error
- func (h *FtpRepo) Delete(opts ...DBOption) error
- func (u *FtpRepo) Get(opts ...DBOption) (model.Ftp, error)
- func (u *FtpRepo) GetList(opts ...DBOption) ([]model.Ftp, error)
- func (h *FtpRepo) Page(page, size int, opts ...DBOption) (int64, []model.Ftp, error)
- func (h *FtpRepo) Update(id uint, vars map[string]interface{}) error
- func (h *FtpRepo) WithByUser(user string) DBOption
- type GroupRepo
- func (u *GroupRepo) CancelDefault(groupType string) error
- func (u *GroupRepo) Create(group *model.Group) error
- func (u *GroupRepo) Delete(opts ...DBOption) error
- func (u *GroupRepo) Get(opts ...DBOption) (model.Group, error)
- func (u *GroupRepo) GetList(opts ...DBOption) ([]model.Group, error)
- func (u *GroupRepo) Update(id uint, vars map[string]interface{}) error
- func (u *GroupRepo) WithByHostDefault() DBOption
- type HostRepo
- func (h *HostRepo) Create(host *model.Host) error
- func (h *HostRepo) Delete(opts ...DBOption) error
- func (h *HostRepo) DeleteFirewallRecord(fType, port, protocol, address, strategy string) error
- func (h *HostRepo) DeleteFirewallRecordByID(id uint) error
- func (h *HostRepo) Get(opts ...DBOption) (model.Host, error)
- func (h *HostRepo) GetFirewallRecord(opts ...DBOption) (model.Firewall, error)
- func (h *HostRepo) GetList(opts ...DBOption) ([]model.Host, error)
- func (h *HostRepo) ListFirewallRecord() ([]model.Firewall, error)
- func (h *HostRepo) Page(page, size int, opts ...DBOption) (int64, []model.Host, error)
- func (h *HostRepo) SaveFirewallRecord(firewall *model.Firewall) error
- func (h *HostRepo) Update(id uint, vars map[string]interface{}) error
- func (h *HostRepo) WithByAddr(addr string) DBOption
- func (h *HostRepo) WithByGroup(group string) DBOption
- func (h *HostRepo) WithByInfo(info string) DBOption
- func (h *HostRepo) WithByPort(port uint) DBOption
- func (h *HostRepo) WithByUser(user string) DBOption
- type IAcmeAccountRepo
- type IAppDetailRepo
- type IAppInstallRepo
- type IAppInstallResourceRpo
- type IAppRepo
- type IAppTagRepo
- type IBackupRepo
- type IClamRepo
- type ICommandRepo
- type ICommonRepo
- type IComposeTemplateRepo
- type ICronjobRepo
- type IDatabaseRepo
- type IFavoriteRepo
- type IFtpRepo
- type IGroupRepo
- type IHostRepo
- type IImageRepoRepo
- type ILogRepo
- type IMysqlRepo
- type IPHPExtensionsRepo
- type IPostgresqlRepo
- type IRuntimeRepo
- type ISSLRepo
- type ISettingRepo
- type ISnapshotRepo
- type ITagRepo
- type IWebsiteCARepo
- type IWebsiteDnsAccountRepo
- type IWebsiteDomainRepo
- type IWebsiteRepo
- type ImageRepoRepo
- func (u *ImageRepoRepo) Create(imageRepo *model.ImageRepo) error
- func (u *ImageRepoRepo) Delete(opts ...DBOption) error
- func (u *ImageRepoRepo) Get(opts ...DBOption) (model.ImageRepo, error)
- func (u *ImageRepoRepo) List(opts ...DBOption) ([]model.ImageRepo, error)
- func (u *ImageRepoRepo) Page(page, size int, opts ...DBOption) (int64, []model.ImageRepo, error)
- func (u *ImageRepoRepo) Update(id uint, vars map[string]interface{}) error
- type LogRepo
- func (u *LogRepo) CleanLogin() error
- func (u *LogRepo) CleanOperation() error
- func (u *LogRepo) CreateLoginLog(log *model.LoginLog) error
- func (u *LogRepo) CreateOperationLog(log *model.OperationLog) error
- func (u *LogRepo) PageLoginLog(page, size int, opts ...DBOption) (int64, []model.LoginLog, error)
- func (u *LogRepo) PageOperationLog(page, size int, opts ...DBOption) (int64, []model.OperationLog, error)
- func (c *LogRepo) WithByGroup(group string) DBOption
- func (c *LogRepo) WithByIP(ip string) DBOption
- func (c *LogRepo) WithByLikeOperation(operation string) DBOption
- func (c *LogRepo) WithByStatus(status string) DBOption
- type MysqlRepo
- func (u *MysqlRepo) Create(ctx context.Context, mysql *model.DatabaseMysql) error
- func (u *MysqlRepo) Delete(ctx context.Context, opts ...DBOption) error
- func (u *MysqlRepo) DeleteLocal(ctx context.Context) error
- func (u *MysqlRepo) Get(opts ...DBOption) (model.DatabaseMysql, error)
- func (u *MysqlRepo) List(opts ...DBOption) ([]model.DatabaseMysql, error)
- func (u *MysqlRepo) Page(page, size int, opts ...DBOption) (int64, []model.DatabaseMysql, error)
- func (u *MysqlRepo) Update(id uint, vars map[string]interface{}) error
- func (u *MysqlRepo) WithByFrom(from string) DBOption
- func (u *MysqlRepo) WithByMysqlName(mysqlName string) DBOption
- type PHPExtensionsRepo
- func (p *PHPExtensionsRepo) Create(extension *model.PHPExtensions) error
- func (p *PHPExtensionsRepo) DeleteBy(opts ...DBOption) error
- func (p *PHPExtensionsRepo) GetFirst(opts ...DBOption) (model.PHPExtensions, error)
- func (p *PHPExtensionsRepo) List() ([]model.PHPExtensions, error)
- func (p *PHPExtensionsRepo) Page(page, size int, opts ...DBOption) (int64, []model.PHPExtensions, error)
- func (p *PHPExtensionsRepo) Save(extension *model.PHPExtensions) error
- type PostgresqlRepo
- func (u *PostgresqlRepo) Create(ctx context.Context, postgresql *model.DatabasePostgresql) error
- func (u *PostgresqlRepo) Delete(ctx context.Context, opts ...DBOption) error
- func (u *PostgresqlRepo) DeleteLocal(ctx context.Context) error
- func (u *PostgresqlRepo) Get(opts ...DBOption) (model.DatabasePostgresql, error)
- func (u *PostgresqlRepo) List(opts ...DBOption) ([]model.DatabasePostgresql, error)
- func (u *PostgresqlRepo) Page(page, size int, opts ...DBOption) (int64, []model.DatabasePostgresql, error)
- func (u *PostgresqlRepo) Update(id uint, vars map[string]interface{}) error
- func (u *PostgresqlRepo) WithByFrom(from string) DBOption
- func (u *PostgresqlRepo) WithByPostgresqlName(postgresqlName string) DBOption
- type RootInfo
- type RuntimeRepo
- func (r *RuntimeRepo) Create(ctx context.Context, runtime *model.Runtime) error
- func (r *RuntimeRepo) DeleteBy(opts ...DBOption) error
- func (r *RuntimeRepo) GetFirst(opts ...DBOption) (*model.Runtime, error)
- func (r *RuntimeRepo) List(opts ...DBOption) ([]model.Runtime, error)
- func (r *RuntimeRepo) Page(page, size int, opts ...DBOption) (int64, []model.Runtime, error)
- func (r *RuntimeRepo) Save(runtime *model.Runtime) error
- func (r *RuntimeRepo) WithDetailId(id uint) DBOption
- func (r *RuntimeRepo) WithImage(image string) DBOption
- func (r *RuntimeRepo) WithName(name string) DBOption
- func (r *RuntimeRepo) WithNotId(id uint) DBOption
- func (r *RuntimeRepo) WithPort(port int) DBOption
- func (r *RuntimeRepo) WithStatus(status string) DBOption
- type SettingRepo
- func (u *SettingRepo) BatchCreateMonitorIO(ioList []model.MonitorIO) error
- func (u *SettingRepo) BatchCreateMonitorNet(ioList []model.MonitorNetwork) error
- func (u *SettingRepo) Create(key, value string) error
- func (u *SettingRepo) CreateMonitorBase(model model.MonitorBase) error
- func (u *SettingRepo) DelMonitorBase(timeForDelete time.Time) error
- func (u *SettingRepo) DelMonitorIO(timeForDelete time.Time) error
- func (u *SettingRepo) DelMonitorNet(timeForDelete time.Time) error
- func (u *SettingRepo) Get(opts ...DBOption) (model.Setting, error)
- func (u *SettingRepo) GetList(opts ...DBOption) ([]model.Setting, error)
- func (u *SettingRepo) Update(key, value string) error
- func (c *SettingRepo) WithByKey(key string) DBOption
- type SnapshotRepo
- func (u *SnapshotRepo) Create(Snapshot *model.Snapshot) error
- func (u *SnapshotRepo) CreateStatus(snap *model.SnapshotStatus) error
- func (u *SnapshotRepo) Delete(opts ...DBOption) error
- func (u *SnapshotRepo) DeleteStatus(snapID uint) error
- func (u *SnapshotRepo) Get(opts ...DBOption) (model.Snapshot, error)
- func (u *SnapshotRepo) GetList(opts ...DBOption) ([]model.Snapshot, error)
- func (u *SnapshotRepo) GetStatus(snapID uint) (model.SnapshotStatus, error)
- func (u *SnapshotRepo) GetStatusList(opts ...DBOption) ([]model.SnapshotStatus, error)
- func (u *SnapshotRepo) Page(page, size int, opts ...DBOption) (int64, []model.Snapshot, error)
- func (u *SnapshotRepo) Update(id uint, vars map[string]interface{}) error
- func (u *SnapshotRepo) UpdateStatus(id uint, vars map[string]interface{}) error
- type TagRepo
- func (t TagRepo) All() ([]model.Tag, error)
- func (t TagRepo) BatchCreate(ctx context.Context, tags []*model.Tag) error
- func (t TagRepo) DeleteAll(ctx context.Context) error
- func (t TagRepo) GetByAppId(appId uint) ([]model.Tag, error)
- func (t TagRepo) GetByIds(ids []uint) ([]model.Tag, error)
- func (t TagRepo) GetByKeys(keys []string) ([]model.Tag, error)
- type WebsiteAcmeAccountRepo
- func (w *WebsiteAcmeAccountRepo) Create(account model.WebsiteAcmeAccount) error
- func (w *WebsiteAcmeAccountRepo) DeleteBy(opts ...DBOption) error
- func (w *WebsiteAcmeAccountRepo) GetFirst(opts ...DBOption) (*model.WebsiteAcmeAccount, error)
- func (w *WebsiteAcmeAccountRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteAcmeAccount, error)
- func (w *WebsiteAcmeAccountRepo) Save(account model.WebsiteAcmeAccount) error
- func (w *WebsiteAcmeAccountRepo) WithEmail(email string) DBOption
- func (w *WebsiteAcmeAccountRepo) WithType(acType string) DBOption
- type WebsiteCARepo
- func (w WebsiteCARepo) Create(ctx context.Context, ca *model.WebsiteCA) error
- func (w WebsiteCARepo) DeleteBy(opts ...DBOption) error
- func (w WebsiteCARepo) GetFirst(opts ...DBOption) (model.WebsiteCA, error)
- func (w WebsiteCARepo) List(opts ...DBOption) ([]model.WebsiteCA, error)
- func (w WebsiteCARepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteCA, error)
- type WebsiteDnsAccountRepo
- func (w WebsiteDnsAccountRepo) Create(account model.WebsiteDnsAccount) error
- func (w WebsiteDnsAccountRepo) DeleteBy(opts ...DBOption) error
- func (w WebsiteDnsAccountRepo) GetFirst(opts ...DBOption) (*model.WebsiteDnsAccount, error)
- func (w WebsiteDnsAccountRepo) List(opts ...DBOption) ([]model.WebsiteDnsAccount, error)
- func (w WebsiteDnsAccountRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteDnsAccount, error)
- func (w WebsiteDnsAccountRepo) Save(account model.WebsiteDnsAccount) error
- type WebsiteDomainRepo
- func (w WebsiteDomainRepo) BatchCreate(ctx context.Context, domains []model.WebsiteDomain) error
- func (w WebsiteDomainRepo) Create(ctx context.Context, app *model.WebsiteDomain) error
- func (w WebsiteDomainRepo) DeleteAll(ctx context.Context) error
- func (w WebsiteDomainRepo) DeleteBy(ctx context.Context, opts ...DBOption) error
- func (w WebsiteDomainRepo) GetBy(opts ...DBOption) ([]model.WebsiteDomain, error)
- func (w WebsiteDomainRepo) GetFirst(opts ...DBOption) (model.WebsiteDomain, error)
- func (w WebsiteDomainRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteDomain, error)
- func (w WebsiteDomainRepo) Save(ctx context.Context, app *model.WebsiteDomain) error
- func (w WebsiteDomainRepo) WithDomain(domain string) DBOption
- func (w WebsiteDomainRepo) WithDomainLike(domain string) DBOption
- func (w WebsiteDomainRepo) WithPort(port int) DBOption
- func (w WebsiteDomainRepo) WithWebsiteId(websiteId uint) DBOption
- type WebsiteRepo
- func (w *WebsiteRepo) Create(ctx context.Context, app *model.Website) error
- func (w *WebsiteRepo) DeleteAll(ctx context.Context) error
- func (w *WebsiteRepo) DeleteBy(ctx context.Context, opts ...DBOption) error
- func (w *WebsiteRepo) GetBy(opts ...DBOption) ([]model.Website, error)
- func (w *WebsiteRepo) GetFirst(opts ...DBOption) (model.Website, error)
- func (w *WebsiteRepo) List(opts ...DBOption) ([]model.Website, error)
- func (w *WebsiteRepo) Page(page, size int, opts ...DBOption) (int64, []model.Website, error)
- func (w *WebsiteRepo) Save(ctx context.Context, app *model.Website) error
- func (w *WebsiteRepo) SaveWithoutCtx(website *model.Website) error
- func (w *WebsiteRepo) WithAlias(alias string) DBOption
- func (w *WebsiteRepo) WithAppInstallId(appInstallID uint) DBOption
- func (w *WebsiteRepo) WithDefaultServer() DBOption
- func (w *WebsiteRepo) WithDomain(domain string) DBOption
- func (w *WebsiteRepo) WithDomainLike(domain string) DBOption
- func (w *WebsiteRepo) WithGroupID(groupId uint) DBOption
- func (w *WebsiteRepo) WithIDs(ids []uint) DBOption
- func (w *WebsiteRepo) WithRuntimeID(runtimeID uint) DBOption
- func (w *WebsiteRepo) WithWebsiteSSLID(sslId uint) DBOption
- type WebsiteSSLRepo
- func (w WebsiteSSLRepo) Create(ctx context.Context, ssl *model.WebsiteSSL) error
- func (w WebsiteSSLRepo) DeleteBy(opts ...DBOption) error
- func (w WebsiteSSLRepo) GetFirst(opts ...DBOption) (*model.WebsiteSSL, error)
- func (w WebsiteSSLRepo) List(opts ...DBOption) ([]model.WebsiteSSL, error)
- func (w WebsiteSSLRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteSSL, error)
- func (w WebsiteSSLRepo) Save(ssl *model.WebsiteSSL) error
- func (w WebsiteSSLRepo) SaveByMap(ssl *model.WebsiteSSL, params map[string]interface{}) error
- func (w WebsiteSSLRepo) WithByAcmeAccountId(acmeAccountId uint) DBOption
- func (w WebsiteSSLRepo) WithByAlias(alias string) DBOption
- func (w WebsiteSSLRepo) WithByCAID(caID uint) DBOption
- func (w WebsiteSSLRepo) WithByDnsAccountId(dnsAccountId uint) DBOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDetailRepo ¶
type AppDetailRepo struct { }
func (AppDetailRepo) BatchCreate ¶
func (AppDetailRepo) BatchDelete ¶ added in v1.3.0
func (AppDetailRepo) BatchUpdateBy ¶
func (a AppDetailRepo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error
func (AppDetailRepo) DeleteByAppIds ¶
func (a AppDetailRepo) DeleteByAppIds(ctx context.Context, appIds []uint) error
func (AppDetailRepo) GetBy ¶
func (a AppDetailRepo) GetBy(opts ...DBOption) ([]model.AppDetail, error)
func (AppDetailRepo) GetFirst ¶
func (a AppDetailRepo) GetFirst(opts ...DBOption) (model.AppDetail, error)
func (AppDetailRepo) WithAppId ¶
func (a AppDetailRepo) WithAppId(id uint) DBOption
func (AppDetailRepo) WithIgnored ¶ added in v1.4.0
func (a AppDetailRepo) WithIgnored() DBOption
func (AppDetailRepo) WithVersion ¶
func (a AppDetailRepo) WithVersion(version string) DBOption
type AppInstallRepo ¶
type AppInstallRepo struct{}
func (*AppInstallRepo) BatchUpdateBy ¶
func (a *AppInstallRepo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error
func (*AppInstallRepo) Create ¶
func (a *AppInstallRepo) Create(ctx context.Context, install *model.AppInstall) error
func (*AppInstallRepo) Delete ¶
func (a *AppInstallRepo) Delete(ctx context.Context, install model.AppInstall) error
func (*AppInstallRepo) DeleteBy ¶
func (a *AppInstallRepo) DeleteBy(opts ...DBOption) error
func (*AppInstallRepo) GetFirst ¶
func (a *AppInstallRepo) GetFirst(opts ...DBOption) (model.AppInstall, error)
func (*AppInstallRepo) GetFirstByCtx ¶ added in v1.1.0
func (a *AppInstallRepo) GetFirstByCtx(ctx context.Context, opts ...DBOption) (model.AppInstall, error)
func (*AppInstallRepo) ListBy ¶
func (a *AppInstallRepo) ListBy(opts ...DBOption) ([]model.AppInstall, error)
func (*AppInstallRepo) LoadBaseInfo ¶
func (a *AppInstallRepo) LoadBaseInfo(key string, name string) (*RootInfo, error)
func (*AppInstallRepo) Page ¶
func (a *AppInstallRepo) Page(page, size int, opts ...DBOption) (int64, []model.AppInstall, error)
func (*AppInstallRepo) Save ¶
func (a *AppInstallRepo) Save(ctx context.Context, install *model.AppInstall) error
func (*AppInstallRepo) WithAppId ¶
func (a *AppInstallRepo) WithAppId(appId uint) DBOption
func (*AppInstallRepo) WithAppIdsIn ¶
func (a *AppInstallRepo) WithAppIdsIn(appIds []uint) DBOption
func (*AppInstallRepo) WithContainerName ¶ added in v1.3.0
func (a *AppInstallRepo) WithContainerName(containerName string) DBOption
func (*AppInstallRepo) WithDetailIdNotIn ¶
func (a *AppInstallRepo) WithDetailIdNotIn(detailIds []uint) DBOption
func (*AppInstallRepo) WithDetailIdsIn ¶
func (a *AppInstallRepo) WithDetailIdsIn(detailIds []uint) DBOption
func (*AppInstallRepo) WithIDNotIs ¶ added in v1.3.0
func (a *AppInstallRepo) WithIDNotIs(id uint) DBOption
func (*AppInstallRepo) WithIdNotInWebsite ¶
func (a *AppInstallRepo) WithIdNotInWebsite() DBOption
func (*AppInstallRepo) WithPort ¶
func (a *AppInstallRepo) WithPort(port int) DBOption
func (*AppInstallRepo) WithServiceName ¶
func (a *AppInstallRepo) WithServiceName(serviceName string) DBOption
func (*AppInstallRepo) WithStatus ¶
func (a *AppInstallRepo) WithStatus(status string) DBOption
type AppInstallResourceRpo ¶
type AppInstallResourceRpo struct { }
func (*AppInstallResourceRpo) BatchUpdateBy ¶ added in v1.3.3
func (a *AppInstallResourceRpo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error
func (AppInstallResourceRpo) Create ¶
func (a AppInstallResourceRpo) Create(ctx context.Context, resource *model.AppInstallResource) error
func (AppInstallResourceRpo) DeleteBy ¶
func (a AppInstallResourceRpo) DeleteBy(ctx context.Context, opts ...DBOption) error
func (AppInstallResourceRpo) GetBy ¶
func (a AppInstallResourceRpo) GetBy(opts ...DBOption) ([]model.AppInstallResource, error)
func (AppInstallResourceRpo) GetFirst ¶
func (a AppInstallResourceRpo) GetFirst(opts ...DBOption) (model.AppInstallResource, error)
func (AppInstallResourceRpo) WithAppInstallId ¶
func (a AppInstallResourceRpo) WithAppInstallId(appInstallId uint) DBOption
func (AppInstallResourceRpo) WithLinkId ¶
func (a AppInstallResourceRpo) WithLinkId(linkId uint) DBOption
func (AppInstallResourceRpo) WithResourceId ¶
func (a AppInstallResourceRpo) WithResourceId(resourceId uint) DBOption
type AppRepo ¶
type AppRepo struct { }
func (AppRepo) BatchCreate ¶
func (AppRepo) BatchDelete ¶ added in v1.3.0
func (AppRepo) GetRecommend ¶
func (AppRepo) OrderByRecommend ¶
func (AppRepo) WithLikeName ¶ added in v1.9.3
func (AppRepo) WithResource ¶ added in v1.1.0
type AppTagRepo ¶
type AppTagRepo struct { }
func (AppTagRepo) BatchCreate ¶
func (AppTagRepo) DeleteByAppIds ¶
func (a AppTagRepo) DeleteByAppIds(ctx context.Context, appIds []uint) error
func (AppTagRepo) GetByAppId ¶
func (a AppTagRepo) GetByAppId(appId uint) ([]model.AppTag, error)
func (AppTagRepo) GetByTagIds ¶
func (a AppTagRepo) GetByTagIds(tagIds []uint) ([]model.AppTag, error)
type BackupRepo ¶
type BackupRepo struct{}
func (*BackupRepo) Create ¶
func (u *BackupRepo) Create(backup *model.BackupAccount) error
func (*BackupRepo) CreateRecord ¶
func (u *BackupRepo) CreateRecord(record *model.BackupRecord) error
func (*BackupRepo) Delete ¶
func (u *BackupRepo) Delete(opts ...DBOption) error
func (*BackupRepo) DeleteRecord ¶
func (u *BackupRepo) DeleteRecord(ctx context.Context, opts ...DBOption) error
func (*BackupRepo) Get ¶
func (u *BackupRepo) Get(opts ...DBOption) (model.BackupAccount, error)
func (*BackupRepo) List ¶
func (u *BackupRepo) List(opts ...DBOption) ([]model.BackupAccount, error)
func (*BackupRepo) ListRecord ¶
func (u *BackupRepo) ListRecord(opts ...DBOption) ([]model.BackupRecord, error)
func (*BackupRepo) PageRecord ¶
func (u *BackupRepo) PageRecord(page, size int, opts ...DBOption) (int64, []model.BackupRecord, error)
func (*BackupRepo) UpdateRecord ¶ added in v1.9.2
func (u *BackupRepo) UpdateRecord(record *model.BackupRecord) error
func (*BackupRepo) WithByCronID ¶ added in v1.9.5
func (u *BackupRepo) WithByCronID(cronjobID uint) DBOption
func (*BackupRepo) WithByDetailName ¶
func (u *BackupRepo) WithByDetailName(detailName string) DBOption
func (*BackupRepo) WithByFileName ¶
func (u *BackupRepo) WithByFileName(fileName string) DBOption
func (*BackupRepo) WithByType ¶
func (u *BackupRepo) WithByType(backupType string) DBOption
func (*BackupRepo) WithFileNameStartWith ¶
func (u *BackupRepo) WithFileNameStartWith(filePrefix string) DBOption
type CommandRepo ¶
type CommandRepo struct{}
func (*CommandRepo) Delete ¶
func (u *CommandRepo) Delete(opts ...DBOption) error
func (*CommandRepo) DeleteRedis ¶
func (u *CommandRepo) DeleteRedis(opts ...DBOption) error
func (*CommandRepo) GetList ¶
func (u *CommandRepo) GetList(opts ...DBOption) ([]model.Command, error)
func (*CommandRepo) GetRedis ¶
func (u *CommandRepo) GetRedis(opts ...DBOption) (model.RedisCommand, error)
func (*CommandRepo) GetRedisList ¶
func (u *CommandRepo) GetRedisList(opts ...DBOption) ([]model.RedisCommand, error)
func (*CommandRepo) PageRedis ¶
func (u *CommandRepo) PageRedis(page, size int, opts ...DBOption) (int64, []model.RedisCommand, error)
func (*CommandRepo) SaveRedis ¶
func (u *CommandRepo) SaveRedis(command *model.RedisCommand) error
func (*CommandRepo) Update ¶
func (u *CommandRepo) Update(id uint, vars map[string]interface{}) error
func (*CommandRepo) WithByInfo ¶
func (c *CommandRepo) WithByInfo(info string) DBOption
func (CommandRepo) WithLikeName ¶
func (a CommandRepo) WithLikeName(name string) DBOption
type CommonRepo ¶
type CommonRepo struct{}
func (*CommonRepo) WithByDate ¶
func (c *CommonRepo) WithByDate(startTime, endTime time.Time) DBOption
func (*CommonRepo) WithByFrom ¶ added in v1.7.0
func (c *CommonRepo) WithByFrom(from string) DBOption
func (*CommonRepo) WithByGroupID ¶
func (c *CommonRepo) WithByGroupID(groupID uint) DBOption
func (*CommonRepo) WithByID ¶
func (c *CommonRepo) WithByID(id uint) DBOption
func (*CommonRepo) WithByName ¶
func (c *CommonRepo) WithByName(name string) DBOption
func (*CommonRepo) WithByStartDate ¶
func (c *CommonRepo) WithByStartDate(startTime time.Time) DBOption
func (*CommonRepo) WithByStatus ¶
func (c *CommonRepo) WithByStatus(status string) DBOption
func (*CommonRepo) WithByType ¶
func (c *CommonRepo) WithByType(tp string) DBOption
func (*CommonRepo) WithIdsIn ¶
func (c *CommonRepo) WithIdsIn(ids []uint) DBOption
func (*CommonRepo) WithIdsNotIn ¶
func (c *CommonRepo) WithIdsNotIn(ids []uint) DBOption
func (*CommonRepo) WithLikeName ¶
func (c *CommonRepo) WithLikeName(name string) DBOption
func (*CommonRepo) WithOrderBy ¶
func (c *CommonRepo) WithOrderBy(orderStr string) DBOption
func (*CommonRepo) WithOrderRuleBy ¶ added in v1.4.0
func (c *CommonRepo) WithOrderRuleBy(orderBy, order string) DBOption
type ComposeTemplateRepo ¶
type ComposeTemplateRepo struct{}
func (*ComposeTemplateRepo) Create ¶
func (u *ComposeTemplateRepo) Create(compose *model.ComposeTemplate) error
func (*ComposeTemplateRepo) CreateRecord ¶
func (u *ComposeTemplateRepo) CreateRecord(compose *model.Compose) error
func (*ComposeTemplateRepo) Delete ¶
func (u *ComposeTemplateRepo) Delete(opts ...DBOption) error
func (*ComposeTemplateRepo) DeleteRecord ¶
func (u *ComposeTemplateRepo) DeleteRecord(opts ...DBOption) error
func (*ComposeTemplateRepo) Get ¶
func (u *ComposeTemplateRepo) Get(opts ...DBOption) (model.ComposeTemplate, error)
func (*ComposeTemplateRepo) GetRecord ¶ added in v1.4.0
func (u *ComposeTemplateRepo) GetRecord(opts ...DBOption) (model.Compose, error)
func (*ComposeTemplateRepo) List ¶
func (u *ComposeTemplateRepo) List(opts ...DBOption) ([]model.ComposeTemplate, error)
func (*ComposeTemplateRepo) ListRecord ¶
func (u *ComposeTemplateRepo) ListRecord() ([]model.Compose, error)
func (*ComposeTemplateRepo) Page ¶
func (u *ComposeTemplateRepo) Page(page, size int, opts ...DBOption) (int64, []model.ComposeTemplate, error)
type CronjobRepo ¶
type CronjobRepo struct{}
func (*CronjobRepo) Delete ¶
func (u *CronjobRepo) Delete(opts ...DBOption) error
func (*CronjobRepo) DeleteRecord ¶
func (u *CronjobRepo) DeleteRecord(opts ...DBOption) error
func (*CronjobRepo) EndRecords ¶
func (u *CronjobRepo) EndRecords(record model.JobRecords, status, message, records string)
func (*CronjobRepo) GetRecord ¶
func (u *CronjobRepo) GetRecord(opts ...DBOption) (model.JobRecords, error)
func (*CronjobRepo) ListRecord ¶
func (u *CronjobRepo) ListRecord(opts ...DBOption) ([]model.JobRecords, error)
func (*CronjobRepo) PageRecords ¶
func (u *CronjobRepo) PageRecords(page, size int, opts ...DBOption) (int64, []model.JobRecords, error)
func (*CronjobRepo) RecordFirst ¶
func (u *CronjobRepo) RecordFirst(id uint) (model.JobRecords, error)
func (*CronjobRepo) StartRecords ¶
func (u *CronjobRepo) StartRecords(cronjobID uint, fromLocal bool, targetPath string) model.JobRecords
func (*CronjobRepo) Update ¶
func (u *CronjobRepo) Update(id uint, vars map[string]interface{}) error
func (*CronjobRepo) UpdateRecords ¶ added in v1.9.5
func (u *CronjobRepo) UpdateRecords(id uint, vars map[string]interface{}) error
func (*CronjobRepo) WithByDbName ¶ added in v1.9.5
func (c *CronjobRepo) WithByDbName(name string) DBOption
func (*CronjobRepo) WithByDefaultDownload ¶ added in v1.9.5
func (c *CronjobRepo) WithByDefaultDownload(account string) DBOption
func (*CronjobRepo) WithByJobID ¶
func (c *CronjobRepo) WithByJobID(id int) DBOption
func (*CronjobRepo) WithByRecordDropID ¶ added in v1.1.0
func (c *CronjobRepo) WithByRecordDropID(id int) DBOption
func (*CronjobRepo) WithByRecordFile ¶ added in v1.7.0
func (c *CronjobRepo) WithByRecordFile(file string) DBOption
type DatabaseRepo ¶ added in v1.6.0
type DatabaseRepo struct{}
func (*DatabaseRepo) Delete ¶ added in v1.6.0
func (d *DatabaseRepo) Delete(ctx context.Context, opts ...DBOption) error
func (*DatabaseRepo) Get ¶ added in v1.6.0
func (d *DatabaseRepo) Get(opts ...DBOption) (model.Database, error)
func (*DatabaseRepo) GetList ¶ added in v1.6.0
func (d *DatabaseRepo) GetList(opts ...DBOption) ([]model.Database, error)
func (*DatabaseRepo) Update ¶ added in v1.6.0
func (d *DatabaseRepo) Update(id uint, vars map[string]interface{}) error
func (*DatabaseRepo) WithAppInstallID ¶ added in v1.6.0
func (d *DatabaseRepo) WithAppInstallID(appInstallID uint) DBOption
func (*DatabaseRepo) WithByFrom ¶ added in v1.6.0
func (d *DatabaseRepo) WithByFrom(from string) DBOption
func (*DatabaseRepo) WithTypeList ¶ added in v1.6.0
func (d *DatabaseRepo) WithTypeList(dbType string) DBOption
func (*DatabaseRepo) WithoutByFrom ¶ added in v1.6.0
func (d *DatabaseRepo) WithoutByFrom(from string) DBOption
type FavoriteRepo ¶ added in v1.8.0
type FavoriteRepo struct{}
func (*FavoriteRepo) Create ¶ added in v1.8.0
func (f *FavoriteRepo) Create(favorite *model.Favorite) error
func (*FavoriteRepo) Delete ¶ added in v1.8.0
func (f *FavoriteRepo) Delete(opts ...DBOption) error
func (*FavoriteRepo) GetFirst ¶ added in v1.8.0
func (f *FavoriteRepo) GetFirst(opts ...DBOption) (model.Favorite, error)
func (*FavoriteRepo) WithByPath ¶ added in v1.8.0
func (f *FavoriteRepo) WithByPath(path string) DBOption
type GroupRepo ¶
type GroupRepo struct{}
func (*GroupRepo) CancelDefault ¶
func (*GroupRepo) WithByHostDefault ¶ added in v1.8.0
type HostRepo ¶
type HostRepo struct{}
func (*HostRepo) DeleteFirewallRecord ¶ added in v1.6.0
func (*HostRepo) DeleteFirewallRecordByID ¶ added in v1.6.0
func (*HostRepo) GetFirewallRecord ¶ added in v1.6.0
func (*HostRepo) ListFirewallRecord ¶ added in v1.6.0
func (*HostRepo) SaveFirewallRecord ¶ added in v1.6.0
func (*HostRepo) WithByAddr ¶
func (*HostRepo) WithByGroup ¶
func (*HostRepo) WithByInfo ¶
func (*HostRepo) WithByPort ¶
func (*HostRepo) WithByUser ¶
type IAcmeAccountRepo ¶
type IAcmeAccountRepo interface { Page(page, size int, opts ...DBOption) (int64, []model.WebsiteAcmeAccount, error) GetFirst(opts ...DBOption) (*model.WebsiteAcmeAccount, error) Create(account model.WebsiteAcmeAccount) error Save(account model.WebsiteAcmeAccount) error DeleteBy(opts ...DBOption) error WithEmail(email string) DBOption WithType(acType string) DBOption }
func NewIAcmeAccountRepo ¶
func NewIAcmeAccountRepo() IAcmeAccountRepo
type IAppDetailRepo ¶ added in v1.1.0
type IAppDetailRepo interface { WithVersion(version string) DBOption WithAppId(id uint) DBOption WithIgnored() DBOption GetFirst(opts ...DBOption) (model.AppDetail, error) Update(ctx context.Context, detail model.AppDetail) error BatchCreate(ctx context.Context, details []model.AppDetail) error DeleteByAppIds(ctx context.Context, appIds []uint) error GetBy(opts ...DBOption) ([]model.AppDetail, error) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error BatchDelete(ctx context.Context, appDetails []model.AppDetail) error }
func NewIAppDetailRepo ¶ added in v1.1.0
func NewIAppDetailRepo() IAppDetailRepo
type IAppInstallRepo ¶ added in v1.1.0
type IAppInstallRepo interface { WithDetailIdsIn(detailIds []uint) DBOption WithDetailIdNotIn(detailIds []uint) DBOption WithAppId(appId uint) DBOption WithAppIdsIn(appIds []uint) DBOption WithStatus(status string) DBOption WithServiceName(serviceName string) DBOption WithContainerName(containerName string) DBOption WithPort(port int) DBOption WithIdNotInWebsite() DBOption WithIDNotIs(id uint) DBOption ListBy(opts ...DBOption) ([]model.AppInstall, error) GetFirst(opts ...DBOption) (model.AppInstall, error) Create(ctx context.Context, install *model.AppInstall) error Save(ctx context.Context, install *model.AppInstall) error DeleteBy(opts ...DBOption) error Delete(ctx context.Context, install model.AppInstall) error Page(page, size int, opts ...DBOption) (int64, []model.AppInstall, error) BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error LoadBaseInfo(key string, name string) (*RootInfo, error) GetFirstByCtx(ctx context.Context, opts ...DBOption) (model.AppInstall, error) }
func NewIAppInstallRepo ¶ added in v1.1.0
func NewIAppInstallRepo() IAppInstallRepo
type IAppInstallResourceRpo ¶ added in v1.1.0
type IAppInstallResourceRpo interface { WithAppInstallId(appInstallId uint) DBOption WithLinkId(linkId uint) DBOption WithResourceId(resourceId uint) DBOption GetBy(opts ...DBOption) ([]model.AppInstallResource, error) GetFirst(opts ...DBOption) (model.AppInstallResource, error) Create(ctx context.Context, resource *model.AppInstallResource) error DeleteBy(ctx context.Context, opts ...DBOption) error BatchUpdateBy(maps map[string]interface{}, opts ...DBOption) error }
func NewIAppInstallResourceRpo ¶ added in v1.1.0
func NewIAppInstallResourceRpo() IAppInstallResourceRpo
type IAppRepo ¶ added in v1.1.0
type IAppRepo interface { WithKey(key string) DBOption WithType(typeStr string) DBOption OrderByRecommend() DBOption GetRecommend() DBOption WithResource(resource string) DBOption WithLikeName(name string) DBOption Page(page, size int, opts ...DBOption) (int64, []model.App, error) GetFirst(opts ...DBOption) (model.App, error) GetBy(opts ...DBOption) ([]model.App, error) BatchCreate(ctx context.Context, apps []model.App) error GetByKey(ctx context.Context, key string) (model.App, error) Create(ctx context.Context, app *model.App) error Save(ctx context.Context, app *model.App) error BatchDelete(ctx context.Context, apps []model.App) error }
func NewIAppRepo ¶ added in v1.1.0
func NewIAppRepo() IAppRepo
type IAppTagRepo ¶ added in v1.1.0
type IAppTagRepo interface { BatchCreate(ctx context.Context, tags []*model.AppTag) error DeleteByAppIds(ctx context.Context, appIds []uint) error DeleteAll(ctx context.Context) error GetByAppId(appId uint) ([]model.AppTag, error) GetByTagIds(tagIds []uint) ([]model.AppTag, error) }
func NewIAppTagRepo ¶ added in v1.1.0
func NewIAppTagRepo() IAppTagRepo
type IBackupRepo ¶
type IBackupRepo interface { Get(opts ...DBOption) (model.BackupAccount, error) ListRecord(opts ...DBOption) ([]model.BackupRecord, error) PageRecord(page, size int, opts ...DBOption) (int64, []model.BackupRecord, error) List(opts ...DBOption) ([]model.BackupAccount, error) Create(backup *model.BackupAccount) error CreateRecord(record *model.BackupRecord) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error DeleteRecord(ctx context.Context, opts ...DBOption) error UpdateRecord(record *model.BackupRecord) error WithByDetailName(detailName string) DBOption WithByFileName(fileName string) DBOption WithByType(backupType string) DBOption WithByCronID(cronjobID uint) DBOption WithFileNameStartWith(filePrefix string) DBOption }
func NewIBackupRepo ¶
func NewIBackupRepo() IBackupRepo
type IClamRepo ¶
type IClamRepo interface { Page(limit, offset int, opts ...DBOption) (int64, []model.Clam, error) Create(clam *model.Clam) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error Get(opts ...DBOption) (model.Clam, error) List(opts ...DBOption) ([]model.Clam, error) }
func NewIClamRepo ¶
func NewIClamRepo() IClamRepo
type ICommandRepo ¶
type ICommandRepo interface { GetList(opts ...DBOption) ([]model.Command, error) Page(limit, offset int, opts ...DBOption) (int64, []model.Command, error) WithByInfo(info string) DBOption Create(command *model.Command) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error Get(opts ...DBOption) (model.Command, error) WithLikeName(name string) DBOption PageRedis(limit, offset int, opts ...DBOption) (int64, []model.RedisCommand, error) GetRedis(opts ...DBOption) (model.RedisCommand, error) GetRedisList(opts ...DBOption) ([]model.RedisCommand, error) SaveRedis(command *model.RedisCommand) error DeleteRedis(opts ...DBOption) error }
func NewICommandRepo ¶
func NewICommandRepo() ICommandRepo
type ICommonRepo ¶
type ICommonRepo interface { WithByID(id uint) DBOption WithByName(name string) DBOption WithByType(tp string) DBOption WithOrderBy(orderStr string) DBOption WithOrderRuleBy(orderBy, order string) DBOption WithByGroupID(groupID uint) DBOption WithLikeName(name string) DBOption WithIdsIn(ids []uint) DBOption WithByDate(startTime, endTime time.Time) DBOption WithByStartDate(startTime time.Time) DBOption WithByStatus(status string) DBOption WithByFrom(from string) DBOption }
func NewCommonRepo ¶ added in v1.1.0
func NewCommonRepo() ICommonRepo
type IComposeTemplateRepo ¶
type IComposeTemplateRepo interface { Get(opts ...DBOption) (model.ComposeTemplate, error) List(opts ...DBOption) ([]model.ComposeTemplate, error) Page(limit, offset int, opts ...DBOption) (int64, []model.ComposeTemplate, error) Create(compose *model.ComposeTemplate) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error GetRecord(opts ...DBOption) (model.Compose, error) CreateRecord(compose *model.Compose) error DeleteRecord(opts ...DBOption) error ListRecord() ([]model.Compose, error) }
func NewIComposeTemplateRepo ¶
func NewIComposeTemplateRepo() IComposeTemplateRepo
type ICronjobRepo ¶
type ICronjobRepo interface { Get(opts ...DBOption) (model.Cronjob, error) GetRecord(opts ...DBOption) (model.JobRecords, error) RecordFirst(id uint) (model.JobRecords, error) ListRecord(opts ...DBOption) ([]model.JobRecords, error) List(opts ...DBOption) ([]model.Cronjob, error) Page(limit, offset int, opts ...DBOption) (int64, []model.Cronjob, error) Create(cronjob *model.Cronjob) error WithByJobID(id int) DBOption WithByDbName(name string) DBOption WithByDefaultDownload(account string) DBOption WithByRecordDropID(id int) DBOption WithByRecordFile(file string) DBOption Save(id uint, cronjob model.Cronjob) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error DeleteRecord(opts ...DBOption) error StartRecords(cronjobID uint, fromLocal bool, targetPath string) model.JobRecords UpdateRecords(id uint, vars map[string]interface{}) error EndRecords(record model.JobRecords, status, message, records string) PageRecords(page, size int, opts ...DBOption) (int64, []model.JobRecords, error) }
func NewICronjobRepo ¶
func NewICronjobRepo() ICronjobRepo
type IDatabaseRepo ¶ added in v1.6.0
type IDatabaseRepo interface { GetList(opts ...DBOption) ([]model.Database, error) Page(limit, offset int, opts ...DBOption) (int64, []model.Database, error) Create(ctx context.Context, database *model.Database) error Update(id uint, vars map[string]interface{}) error Delete(ctx context.Context, opts ...DBOption) error Get(opts ...DBOption) (model.Database, error) WithByFrom(from string) DBOption WithoutByFrom(from string) DBOption WithAppInstallID(appInstallID uint) DBOption WithTypeList(dbType string) DBOption }
func NewIDatabaseRepo ¶ added in v1.6.0
func NewIDatabaseRepo() IDatabaseRepo
type IFavoriteRepo ¶ added in v1.8.0
type IFavoriteRepo interface { Page(page, size int, opts ...DBOption) (int64, []model.Favorite, error) Create(group *model.Favorite) error Delete(opts ...DBOption) error GetFirst(opts ...DBOption) (model.Favorite, error) All() ([]model.Favorite, error) WithByPath(path string) DBOption }
func NewIFavoriteRepo ¶ added in v1.8.0
func NewIFavoriteRepo() IFavoriteRepo
type IFtpRepo ¶
type IFtpRepo interface { Get(opts ...DBOption) (model.Ftp, error) GetList(opts ...DBOption) ([]model.Ftp, error) Page(limit, offset int, opts ...DBOption) (int64, []model.Ftp, error) Create(ftp *model.Ftp) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error WithByUser(user string) DBOption }
func NewIFtpRepo ¶
func NewIFtpRepo() IFtpRepo
type IGroupRepo ¶
type IGroupRepo interface { Get(opts ...DBOption) (model.Group, error) GetList(opts ...DBOption) ([]model.Group, error) Create(group *model.Group) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error CancelDefault(groupType string) error WithByHostDefault() DBOption }
func NewIGroupRepo ¶
func NewIGroupRepo() IGroupRepo
type IHostRepo ¶
type IHostRepo interface { Get(opts ...DBOption) (model.Host, error) GetList(opts ...DBOption) ([]model.Host, error) Page(limit, offset int, opts ...DBOption) (int64, []model.Host, error) WithByInfo(info string) DBOption WithByPort(port uint) DBOption WithByUser(user string) DBOption WithByAddr(addr string) DBOption Create(host *model.Host) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error GetFirewallRecord(opts ...DBOption) (model.Firewall, error) ListFirewallRecord() ([]model.Firewall, error) SaveFirewallRecord(firewall *model.Firewall) error DeleteFirewallRecordByID(id uint) error DeleteFirewallRecord(fType, port, protocol, address, strategy string) error }
func NewIHostRepo ¶
func NewIHostRepo() IHostRepo
type IImageRepoRepo ¶
type IImageRepoRepo interface { Get(opts ...DBOption) (model.ImageRepo, error) Page(limit, offset int, opts ...DBOption) (int64, []model.ImageRepo, error) List(opts ...DBOption) ([]model.ImageRepo, error) Create(imageRepo *model.ImageRepo) error Update(id uint, vars map[string]interface{}) error Delete(opts ...DBOption) error }
func NewIImageRepoRepo ¶
func NewIImageRepoRepo() IImageRepoRepo
type ILogRepo ¶
type ILogRepo interface { CleanLogin() error CreateLoginLog(user *model.LoginLog) error PageLoginLog(limit, offset int, opts ...DBOption) (int64, []model.LoginLog, error) WithByIP(ip string) DBOption WithByStatus(status string) DBOption WithByGroup(group string) DBOption WithByLikeOperation(operation string) DBOption CleanOperation() error CreateOperationLog(user *model.OperationLog) error PageOperationLog(limit, offset int, opts ...DBOption) (int64, []model.OperationLog, error) }
func NewILogRepo ¶
func NewILogRepo() ILogRepo
type IMysqlRepo ¶
type IMysqlRepo interface { Get(opts ...DBOption) (model.DatabaseMysql, error) WithByMysqlName(mysqlName string) DBOption WithByFrom(from string) DBOption List(opts ...DBOption) ([]model.DatabaseMysql, error) Page(limit, offset int, opts ...DBOption) (int64, []model.DatabaseMysql, error) Create(ctx context.Context, mysql *model.DatabaseMysql) error Delete(ctx context.Context, opts ...DBOption) error Update(id uint, vars map[string]interface{}) error DeleteLocal(ctx context.Context) error }
func NewIMysqlRepo ¶
func NewIMysqlRepo() IMysqlRepo
type IPHPExtensionsRepo ¶ added in v1.9.3
type IPHPExtensionsRepo interface { Page(page, size int, opts ...DBOption) (int64, []model.PHPExtensions, error) Save(extension *model.PHPExtensions) error Create(extension *model.PHPExtensions) error GetFirst(opts ...DBOption) (model.PHPExtensions, error) DeleteBy(opts ...DBOption) error List() ([]model.PHPExtensions, error) }
func NewIPHPExtensionsRepo ¶ added in v1.9.3
func NewIPHPExtensionsRepo() IPHPExtensionsRepo
type IPostgresqlRepo ¶ added in v1.9.3
type IPostgresqlRepo interface { Get(opts ...DBOption) (model.DatabasePostgresql, error) WithByPostgresqlName(postgresqlName string) DBOption WithByFrom(from string) DBOption List(opts ...DBOption) ([]model.DatabasePostgresql, error) Page(limit, offset int, opts ...DBOption) (int64, []model.DatabasePostgresql, error) Create(ctx context.Context, postgresql *model.DatabasePostgresql) error Delete(ctx context.Context, opts ...DBOption) error Update(id uint, vars map[string]interface{}) error DeleteLocal(ctx context.Context) error }
func NewIPostgresqlRepo ¶ added in v1.9.3
func NewIPostgresqlRepo() IPostgresqlRepo
type IRuntimeRepo ¶ added in v1.1.0
type IRuntimeRepo interface { WithName(name string) DBOption WithImage(image string) DBOption WithNotId(id uint) DBOption WithStatus(status string) DBOption WithDetailId(id uint) DBOption WithPort(port int) DBOption Page(page, size int, opts ...DBOption) (int64, []model.Runtime, error) Create(ctx context.Context, runtime *model.Runtime) error Save(runtime *model.Runtime) error DeleteBy(opts ...DBOption) error GetFirst(opts ...DBOption) (*model.Runtime, error) List(opts ...DBOption) ([]model.Runtime, error) }
func NewIRunTimeRepo ¶ added in v1.1.0
func NewIRunTimeRepo() IRuntimeRepo
type ISSLRepo ¶
type ISSLRepo interface { WithByAlias(alias string) DBOption WithByAcmeAccountId(acmeAccountId uint) DBOption WithByDnsAccountId(dnsAccountId uint) DBOption WithByCAID(caID uint) DBOption Page(page, size int, opts ...DBOption) (int64, []model.WebsiteSSL, error) GetFirst(opts ...DBOption) (*model.WebsiteSSL, error) List(opts ...DBOption) ([]model.WebsiteSSL, error) Create(ctx context.Context, ssl *model.WebsiteSSL) error Save(ssl *model.WebsiteSSL) error DeleteBy(opts ...DBOption) error SaveByMap(ssl *model.WebsiteSSL, params map[string]interface{}) error }
func NewISSLRepo ¶
func NewISSLRepo() ISSLRepo
type ISettingRepo ¶
type ISettingRepo interface { GetList(opts ...DBOption) ([]model.Setting, error) Get(opts ...DBOption) (model.Setting, error) Create(key, value string) error Update(key, value string) error WithByKey(key string) DBOption CreateMonitorBase(model model.MonitorBase) error BatchCreateMonitorIO(ioList []model.MonitorIO) error BatchCreateMonitorNet(ioList []model.MonitorNetwork) error DelMonitorBase(timeForDelete time.Time) error DelMonitorIO(timeForDelete time.Time) error DelMonitorNet(timeForDelete time.Time) error }
func NewISettingRepo ¶
func NewISettingRepo() ISettingRepo
type ISnapshotRepo ¶
type ISnapshotRepo interface { Get(opts ...DBOption) (model.Snapshot, error) GetList(opts ...DBOption) ([]model.Snapshot, error) Create(snap *model.Snapshot) error Update(id uint, vars map[string]interface{}) error Page(limit, offset int, opts ...DBOption) (int64, []model.Snapshot, error) Delete(opts ...DBOption) error GetStatus(snapID uint) (model.SnapshotStatus, error) GetStatusList(opts ...DBOption) ([]model.SnapshotStatus, error) CreateStatus(snap *model.SnapshotStatus) error DeleteStatus(snapID uint) error UpdateStatus(id uint, vars map[string]interface{}) error }
func NewISnapshotRepo ¶
func NewISnapshotRepo() ISnapshotRepo
type ITagRepo ¶ added in v1.1.0
type ITagRepo interface { BatchCreate(ctx context.Context, tags []*model.Tag) error DeleteAll(ctx context.Context) error All() ([]model.Tag, error) GetByIds(ids []uint) ([]model.Tag, error) GetByKeys(keys []string) ([]model.Tag, error) GetByAppId(appId uint) ([]model.Tag, error) }
func NewITagRepo ¶ added in v1.1.0
func NewITagRepo() ITagRepo
type IWebsiteCARepo ¶ added in v1.9.0
type IWebsiteCARepo interface { Page(page, size int, opts ...DBOption) (int64, []model.WebsiteCA, error) GetFirst(opts ...DBOption) (model.WebsiteCA, error) List(opts ...DBOption) ([]model.WebsiteCA, error) Create(ctx context.Context, ca *model.WebsiteCA) error DeleteBy(opts ...DBOption) error }
func NewIWebsiteCARepo ¶ added in v1.9.0
func NewIWebsiteCARepo() IWebsiteCARepo
type IWebsiteDnsAccountRepo ¶ added in v1.1.0
type IWebsiteDnsAccountRepo interface { Page(page, size int, opts ...DBOption) (int64, []model.WebsiteDnsAccount, error) GetFirst(opts ...DBOption) (*model.WebsiteDnsAccount, error) List(opts ...DBOption) ([]model.WebsiteDnsAccount, error) Create(account model.WebsiteDnsAccount) error Save(account model.WebsiteDnsAccount) error DeleteBy(opts ...DBOption) error }
func NewIWebsiteDnsAccountRepo ¶ added in v1.1.0
func NewIWebsiteDnsAccountRepo() IWebsiteDnsAccountRepo
type IWebsiteDomainRepo ¶ added in v1.1.0
type IWebsiteDomainRepo interface { WithWebsiteId(websiteId uint) DBOption WithPort(port int) DBOption WithDomain(domain string) DBOption WithDomainLike(domain string) DBOption Page(page, size int, opts ...DBOption) (int64, []model.WebsiteDomain, error) GetFirst(opts ...DBOption) (model.WebsiteDomain, error) GetBy(opts ...DBOption) ([]model.WebsiteDomain, error) BatchCreate(ctx context.Context, domains []model.WebsiteDomain) error Create(ctx context.Context, app *model.WebsiteDomain) error Save(ctx context.Context, app *model.WebsiteDomain) error DeleteBy(ctx context.Context, opts ...DBOption) error DeleteAll(ctx context.Context) error }
func NewIWebsiteDomainRepo ¶ added in v1.1.0
func NewIWebsiteDomainRepo() IWebsiteDomainRepo
type IWebsiteRepo ¶
type IWebsiteRepo interface { WithAppInstallId(appInstallId uint) DBOption WithDomain(domain string) DBOption WithAlias(alias string) DBOption WithWebsiteSSLID(sslId uint) DBOption WithGroupID(groupId uint) DBOption WithDefaultServer() DBOption WithDomainLike(domain string) DBOption WithRuntimeID(runtimeID uint) DBOption WithIDs(ids []uint) DBOption Page(page, size int, opts ...DBOption) (int64, []model.Website, error) List(opts ...DBOption) ([]model.Website, error) GetFirst(opts ...DBOption) (model.Website, error) GetBy(opts ...DBOption) ([]model.Website, error) Save(ctx context.Context, app *model.Website) error SaveWithoutCtx(app *model.Website) error DeleteBy(ctx context.Context, opts ...DBOption) error Create(ctx context.Context, app *model.Website) error DeleteAll(ctx context.Context) error }
func NewIWebsiteRepo ¶
func NewIWebsiteRepo() IWebsiteRepo
type ImageRepoRepo ¶
type ImageRepoRepo struct{}
func (*ImageRepoRepo) Delete ¶
func (u *ImageRepoRepo) Delete(opts ...DBOption) error
func (*ImageRepoRepo) List ¶
func (u *ImageRepoRepo) List(opts ...DBOption) ([]model.ImageRepo, error)
type LogRepo ¶
type LogRepo struct{}
func (*LogRepo) CleanLogin ¶
func (*LogRepo) CleanOperation ¶
func (*LogRepo) CreateOperationLog ¶
func (u *LogRepo) CreateOperationLog(log *model.OperationLog) error
func (*LogRepo) PageLoginLog ¶
func (*LogRepo) PageOperationLog ¶
func (*LogRepo) WithByGroup ¶
func (*LogRepo) WithByLikeOperation ¶
func (*LogRepo) WithByStatus ¶
type MysqlRepo ¶
type MysqlRepo struct{}
func (*MysqlRepo) DeleteLocal ¶ added in v1.5.0
func (*MysqlRepo) WithByFrom ¶ added in v1.5.0
func (*MysqlRepo) WithByMysqlName ¶
type PHPExtensionsRepo ¶ added in v1.9.3
type PHPExtensionsRepo struct { }
func (*PHPExtensionsRepo) Create ¶ added in v1.9.3
func (p *PHPExtensionsRepo) Create(extension *model.PHPExtensions) error
func (*PHPExtensionsRepo) DeleteBy ¶ added in v1.9.3
func (p *PHPExtensionsRepo) DeleteBy(opts ...DBOption) error
func (*PHPExtensionsRepo) GetFirst ¶ added in v1.9.3
func (p *PHPExtensionsRepo) GetFirst(opts ...DBOption) (model.PHPExtensions, error)
func (*PHPExtensionsRepo) List ¶ added in v1.9.3
func (p *PHPExtensionsRepo) List() ([]model.PHPExtensions, error)
func (*PHPExtensionsRepo) Page ¶ added in v1.9.3
func (p *PHPExtensionsRepo) Page(page, size int, opts ...DBOption) (int64, []model.PHPExtensions, error)
func (*PHPExtensionsRepo) Save ¶ added in v1.9.3
func (p *PHPExtensionsRepo) Save(extension *model.PHPExtensions) error
type PostgresqlRepo ¶ added in v1.9.3
type PostgresqlRepo struct{}
func (*PostgresqlRepo) Create ¶ added in v1.9.3
func (u *PostgresqlRepo) Create(ctx context.Context, postgresql *model.DatabasePostgresql) error
func (*PostgresqlRepo) Delete ¶ added in v1.9.3
func (u *PostgresqlRepo) Delete(ctx context.Context, opts ...DBOption) error
func (*PostgresqlRepo) DeleteLocal ¶ added in v1.9.3
func (u *PostgresqlRepo) DeleteLocal(ctx context.Context) error
func (*PostgresqlRepo) Get ¶ added in v1.9.3
func (u *PostgresqlRepo) Get(opts ...DBOption) (model.DatabasePostgresql, error)
func (*PostgresqlRepo) List ¶ added in v1.9.3
func (u *PostgresqlRepo) List(opts ...DBOption) ([]model.DatabasePostgresql, error)
func (*PostgresqlRepo) Page ¶ added in v1.9.3
func (u *PostgresqlRepo) Page(page, size int, opts ...DBOption) (int64, []model.DatabasePostgresql, error)
func (*PostgresqlRepo) Update ¶ added in v1.9.3
func (u *PostgresqlRepo) Update(id uint, vars map[string]interface{}) error
func (*PostgresqlRepo) WithByFrom ¶ added in v1.9.3
func (u *PostgresqlRepo) WithByFrom(from string) DBOption
func (*PostgresqlRepo) WithByPostgresqlName ¶ added in v1.9.3
func (u *PostgresqlRepo) WithByPostgresqlName(postgresqlName string) DBOption
type RootInfo ¶
type RootInfo struct { ID uint `json:"id"` Name string `json:"name"` Status string `json:"status"` Port int64 `json:"port"` HttpsPort int64 `json:"httpsPort"` UserName string `json:"userName"` Password string `json:"password"` UserPassword string `json:"userPassword"` ContainerName string `json:"containerName"` ServiceName string `json:"serviceName"` Param string `json:"param"` Env string `json:"env"` Key string `json:"key"` Version string `json:"version"` AppPath string `json:"app_path"` }
type RuntimeRepo ¶ added in v1.1.0
type RuntimeRepo struct { }
func (*RuntimeRepo) DeleteBy ¶ added in v1.1.0
func (r *RuntimeRepo) DeleteBy(opts ...DBOption) error
func (*RuntimeRepo) GetFirst ¶ added in v1.1.0
func (r *RuntimeRepo) GetFirst(opts ...DBOption) (*model.Runtime, error)
func (*RuntimeRepo) List ¶ added in v1.6.0
func (r *RuntimeRepo) List(opts ...DBOption) ([]model.Runtime, error)
func (*RuntimeRepo) WithDetailId ¶ added in v1.3.0
func (r *RuntimeRepo) WithDetailId(id uint) DBOption
func (*RuntimeRepo) WithImage ¶ added in v1.1.0
func (r *RuntimeRepo) WithImage(image string) DBOption
func (*RuntimeRepo) WithName ¶ added in v1.1.0
func (r *RuntimeRepo) WithName(name string) DBOption
func (*RuntimeRepo) WithNotId ¶ added in v1.1.0
func (r *RuntimeRepo) WithNotId(id uint) DBOption
func (*RuntimeRepo) WithPort ¶ added in v1.7.0
func (r *RuntimeRepo) WithPort(port int) DBOption
func (*RuntimeRepo) WithStatus ¶ added in v1.1.0
func (r *RuntimeRepo) WithStatus(status string) DBOption
type SettingRepo ¶
type SettingRepo struct{}
func (*SettingRepo) BatchCreateMonitorIO ¶ added in v1.3.0
func (u *SettingRepo) BatchCreateMonitorIO(ioList []model.MonitorIO) error
func (*SettingRepo) BatchCreateMonitorNet ¶ added in v1.3.0
func (u *SettingRepo) BatchCreateMonitorNet(ioList []model.MonitorNetwork) error
func (*SettingRepo) Create ¶
func (u *SettingRepo) Create(key, value string) error
func (*SettingRepo) CreateMonitorBase ¶ added in v1.3.0
func (u *SettingRepo) CreateMonitorBase(model model.MonitorBase) error
func (*SettingRepo) DelMonitorBase ¶ added in v1.3.0
func (u *SettingRepo) DelMonitorBase(timeForDelete time.Time) error
func (*SettingRepo) DelMonitorIO ¶ added in v1.3.0
func (u *SettingRepo) DelMonitorIO(timeForDelete time.Time) error
func (*SettingRepo) DelMonitorNet ¶ added in v1.3.0
func (u *SettingRepo) DelMonitorNet(timeForDelete time.Time) error
func (*SettingRepo) GetList ¶
func (u *SettingRepo) GetList(opts ...DBOption) ([]model.Setting, error)
func (*SettingRepo) Update ¶
func (u *SettingRepo) Update(key, value string) error
func (*SettingRepo) WithByKey ¶
func (c *SettingRepo) WithByKey(key string) DBOption
type SnapshotRepo ¶
type SnapshotRepo struct{}
func (*SnapshotRepo) CreateStatus ¶ added in v1.6.0
func (u *SnapshotRepo) CreateStatus(snap *model.SnapshotStatus) error
func (*SnapshotRepo) Delete ¶
func (u *SnapshotRepo) Delete(opts ...DBOption) error
func (*SnapshotRepo) DeleteStatus ¶ added in v1.6.0
func (u *SnapshotRepo) DeleteStatus(snapID uint) error
func (*SnapshotRepo) GetList ¶
func (u *SnapshotRepo) GetList(opts ...DBOption) ([]model.Snapshot, error)
func (*SnapshotRepo) GetStatus ¶ added in v1.6.0
func (u *SnapshotRepo) GetStatus(snapID uint) (model.SnapshotStatus, error)
func (*SnapshotRepo) GetStatusList ¶ added in v1.6.0
func (u *SnapshotRepo) GetStatusList(opts ...DBOption) ([]model.SnapshotStatus, error)
func (*SnapshotRepo) Update ¶
func (u *SnapshotRepo) Update(id uint, vars map[string]interface{}) error
func (*SnapshotRepo) UpdateStatus ¶ added in v1.6.0
func (u *SnapshotRepo) UpdateStatus(id uint, vars map[string]interface{}) error
type WebsiteAcmeAccountRepo ¶
type WebsiteAcmeAccountRepo struct { }
func (*WebsiteAcmeAccountRepo) Create ¶
func (w *WebsiteAcmeAccountRepo) Create(account model.WebsiteAcmeAccount) error
func (*WebsiteAcmeAccountRepo) DeleteBy ¶
func (w *WebsiteAcmeAccountRepo) DeleteBy(opts ...DBOption) error
func (*WebsiteAcmeAccountRepo) GetFirst ¶
func (w *WebsiteAcmeAccountRepo) GetFirst(opts ...DBOption) (*model.WebsiteAcmeAccount, error)
func (*WebsiteAcmeAccountRepo) Page ¶
func (w *WebsiteAcmeAccountRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteAcmeAccount, error)
func (*WebsiteAcmeAccountRepo) Save ¶
func (w *WebsiteAcmeAccountRepo) Save(account model.WebsiteAcmeAccount) error
func (*WebsiteAcmeAccountRepo) WithEmail ¶
func (w *WebsiteAcmeAccountRepo) WithEmail(email string) DBOption
func (*WebsiteAcmeAccountRepo) WithType ¶ added in v1.9.2
func (w *WebsiteAcmeAccountRepo) WithType(acType string) DBOption
type WebsiteCARepo ¶ added in v1.9.0
type WebsiteCARepo struct { }
func (WebsiteCARepo) DeleteBy ¶ added in v1.9.0
func (w WebsiteCARepo) DeleteBy(opts ...DBOption) error
func (WebsiteCARepo) GetFirst ¶ added in v1.9.0
func (w WebsiteCARepo) GetFirst(opts ...DBOption) (model.WebsiteCA, error)
type WebsiteDnsAccountRepo ¶
type WebsiteDnsAccountRepo struct { }
func (WebsiteDnsAccountRepo) Create ¶
func (w WebsiteDnsAccountRepo) Create(account model.WebsiteDnsAccount) error
func (WebsiteDnsAccountRepo) DeleteBy ¶
func (w WebsiteDnsAccountRepo) DeleteBy(opts ...DBOption) error
func (WebsiteDnsAccountRepo) GetFirst ¶
func (w WebsiteDnsAccountRepo) GetFirst(opts ...DBOption) (*model.WebsiteDnsAccount, error)
func (WebsiteDnsAccountRepo) List ¶
func (w WebsiteDnsAccountRepo) List(opts ...DBOption) ([]model.WebsiteDnsAccount, error)
func (WebsiteDnsAccountRepo) Page ¶
func (w WebsiteDnsAccountRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteDnsAccount, error)
func (WebsiteDnsAccountRepo) Save ¶
func (w WebsiteDnsAccountRepo) Save(account model.WebsiteDnsAccount) error
type WebsiteDomainRepo ¶
type WebsiteDomainRepo struct { }
func (WebsiteDomainRepo) BatchCreate ¶
func (w WebsiteDomainRepo) BatchCreate(ctx context.Context, domains []model.WebsiteDomain) error
func (WebsiteDomainRepo) Create ¶
func (w WebsiteDomainRepo) Create(ctx context.Context, app *model.WebsiteDomain) error
func (WebsiteDomainRepo) DeleteAll ¶ added in v1.6.0
func (w WebsiteDomainRepo) DeleteAll(ctx context.Context) error
func (WebsiteDomainRepo) DeleteBy ¶
func (w WebsiteDomainRepo) DeleteBy(ctx context.Context, opts ...DBOption) error
func (WebsiteDomainRepo) GetBy ¶
func (w WebsiteDomainRepo) GetBy(opts ...DBOption) ([]model.WebsiteDomain, error)
func (WebsiteDomainRepo) GetFirst ¶
func (w WebsiteDomainRepo) GetFirst(opts ...DBOption) (model.WebsiteDomain, error)
func (WebsiteDomainRepo) Page ¶
func (w WebsiteDomainRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteDomain, error)
func (WebsiteDomainRepo) Save ¶
func (w WebsiteDomainRepo) Save(ctx context.Context, app *model.WebsiteDomain) error
func (WebsiteDomainRepo) WithDomain ¶
func (w WebsiteDomainRepo) WithDomain(domain string) DBOption
func (WebsiteDomainRepo) WithDomainLike ¶
func (w WebsiteDomainRepo) WithDomainLike(domain string) DBOption
func (WebsiteDomainRepo) WithPort ¶
func (w WebsiteDomainRepo) WithPort(port int) DBOption
func (WebsiteDomainRepo) WithWebsiteId ¶
func (w WebsiteDomainRepo) WithWebsiteId(websiteId uint) DBOption
type WebsiteRepo ¶
type WebsiteRepo struct { }
func (*WebsiteRepo) DeleteAll ¶ added in v1.6.0
func (w *WebsiteRepo) DeleteAll(ctx context.Context) error
func (*WebsiteRepo) DeleteBy ¶
func (w *WebsiteRepo) DeleteBy(ctx context.Context, opts ...DBOption) error
func (*WebsiteRepo) GetFirst ¶
func (w *WebsiteRepo) GetFirst(opts ...DBOption) (model.Website, error)
func (*WebsiteRepo) SaveWithoutCtx ¶
func (w *WebsiteRepo) SaveWithoutCtx(website *model.Website) error
func (*WebsiteRepo) WithAlias ¶
func (w *WebsiteRepo) WithAlias(alias string) DBOption
func (*WebsiteRepo) WithAppInstallId ¶
func (w *WebsiteRepo) WithAppInstallId(appInstallID uint) DBOption
func (*WebsiteRepo) WithDefaultServer ¶
func (w *WebsiteRepo) WithDefaultServer() DBOption
func (*WebsiteRepo) WithDomain ¶
func (w *WebsiteRepo) WithDomain(domain string) DBOption
func (*WebsiteRepo) WithDomainLike ¶
func (w *WebsiteRepo) WithDomainLike(domain string) DBOption
func (*WebsiteRepo) WithGroupID ¶
func (w *WebsiteRepo) WithGroupID(groupId uint) DBOption
func (*WebsiteRepo) WithIDs ¶
func (w *WebsiteRepo) WithIDs(ids []uint) DBOption
func (*WebsiteRepo) WithRuntimeID ¶ added in v1.1.0
func (w *WebsiteRepo) WithRuntimeID(runtimeID uint) DBOption
func (*WebsiteRepo) WithWebsiteSSLID ¶
func (w *WebsiteRepo) WithWebsiteSSLID(sslId uint) DBOption
type WebsiteSSLRepo ¶
type WebsiteSSLRepo struct { }
func (WebsiteSSLRepo) Create ¶
func (w WebsiteSSLRepo) Create(ctx context.Context, ssl *model.WebsiteSSL) error
func (WebsiteSSLRepo) DeleteBy ¶
func (w WebsiteSSLRepo) DeleteBy(opts ...DBOption) error
func (WebsiteSSLRepo) GetFirst ¶
func (w WebsiteSSLRepo) GetFirst(opts ...DBOption) (*model.WebsiteSSL, error)
func (WebsiteSSLRepo) List ¶
func (w WebsiteSSLRepo) List(opts ...DBOption) ([]model.WebsiteSSL, error)
func (WebsiteSSLRepo) Page ¶
func (w WebsiteSSLRepo) Page(page, size int, opts ...DBOption) (int64, []model.WebsiteSSL, error)
func (WebsiteSSLRepo) Save ¶
func (w WebsiteSSLRepo) Save(ssl *model.WebsiteSSL) error
func (WebsiteSSLRepo) SaveByMap ¶
func (w WebsiteSSLRepo) SaveByMap(ssl *model.WebsiteSSL, params map[string]interface{}) error
func (WebsiteSSLRepo) WithByAcmeAccountId ¶
func (w WebsiteSSLRepo) WithByAcmeAccountId(acmeAccountId uint) DBOption
func (WebsiteSSLRepo) WithByAlias ¶
func (w WebsiteSSLRepo) WithByAlias(alias string) DBOption
func (WebsiteSSLRepo) WithByCAID ¶ added in v1.9.0
func (w WebsiteSSLRepo) WithByCAID(caID uint) DBOption
func (WebsiteSSLRepo) WithByDnsAccountId ¶
func (w WebsiteSSLRepo) WithByDnsAccountId(dnsAccountId uint) DBOption
Source Files ¶
- app.go
- app_detail.go
- app_install.go
- app_install_resource.go
- app_tag.go
- backup.go
- clam.go
- command.go
- common.go
- compose_template.go
- cronjob.go
- database.go
- database_mysql.go
- database_postgresql.go
- favorite.go
- ftp.go
- group.go
- host.go
- image_repo.go
- logs.go
- php_extensions.go
- runtime.go
- setting.go
- snapshot.go
- tag.go
- website.go
- website_acme_account.go
- website_ca.go
- website_dns_account.go
- website_domain.go
- website_ssl.go
Click to show internal directories.
Click to hide internal directories.