repository

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: EPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCmdRepo added in v0.1.2

type AccountCmdRepo interface {
	Create(createAccount dto.CreateAccount) (valueObject.AccountId, error)
	Delete(accountId valueObject.AccountId) error
	UpdatePassword(accountId valueObject.AccountId, password valueObject.Password) error
	UpdateApiKey(accountId valueObject.AccountId) (valueObject.AccessTokenStr, error)
}

type AccountQueryRepo added in v0.1.2

type AccountQueryRepo interface {
	Read() ([]entity.Account, error)
	ReadByUsername(username valueObject.Username) (entity.Account, error)
	ReadById(accountId valueObject.AccountId) (entity.Account, error)
}

type ActivityRecordCmdRepo

type ActivityRecordCmdRepo interface {
	Create(createDto dto.CreateActivityRecord) error
	Delete(deleteDto dto.DeleteActivityRecord) error
}

type ActivityRecordQueryRepo

type ActivityRecordQueryRepo interface {
	Read(readDto dto.ReadActivityRecords) ([]entity.ActivityRecord, error)
}

type AuthCmdRepo

type AuthCmdRepo interface {
	CreateSessionToken(
		accountId valueObject.AccountId,
		expiresIn valueObject.UnixTime,
		ipAddress valueObject.IpAddress,
	) (entity.AccessToken, error)
}

type AuthQueryRepo

type AuthQueryRepo interface {
	IsLoginValid(createDto dto.CreateSessionToken) bool
	ReadAccessTokenDetails(
		token valueObject.AccessTokenStr,
	) (dto.AccessTokenDetails, error)
}

type CronCmdRepo

type CronCmdRepo interface {
	Create(dto.CreateCron) (valueObject.CronId, error)
	Update(dto.UpdateCron) error
	Delete(valueObject.CronId) error
}

type CronQueryRepo

type CronQueryRepo interface {
	Read() ([]entity.Cron, error)
	ReadById(valueObject.CronId) (entity.Cron, error)
	ReadByComment(valueObject.CronComment) (entity.Cron, error)
}

type DatabaseCmdRepo

type DatabaseCmdRepo interface {
	Create(dbName valueObject.DatabaseName) error
	Delete(dbName valueObject.DatabaseName) error
	CreateUser(createDatabaseUser dto.CreateDatabaseUser) error
	DeleteUser(
		dbName valueObject.DatabaseName,
		dbUser valueObject.DatabaseUsername,
	) error
}

type DatabaseQueryRepo

type DatabaseQueryRepo interface {
	Read() ([]entity.Database, error)
	ReadByName(dbName valueObject.DatabaseName) (entity.Database, error)
}

type FilesQueryRepo

type FilesQueryRepo interface {
	Read(valueObject.UnixFilePath) ([]entity.UnixFile, error)
	ReadFirst(valueObject.UnixFilePath) (entity.UnixFile, error)
}

type MappingCmdRepo

type MappingCmdRepo interface {
	Create(dto.CreateMapping) (valueObject.MappingId, error)
	Delete(valueObject.MappingId) error
	DeleteAuto(valueObject.ServiceName) error
	RecreateByServiceName(
		valueObject.ServiceName,
		valueObject.AccountId,
		valueObject.IpAddress,
	) error
}

type MappingQueryRepo

type MappingQueryRepo interface {
	ReadById(id valueObject.MappingId) (entity.Mapping, error)
	ReadByHostname(hostname valueObject.Fqdn) ([]entity.Mapping, error)
	ReadByServiceName(serviceName valueObject.ServiceName) ([]entity.Mapping, error)
	ReadWithMappings() ([]dto.VirtualHostWithMappings, error)
}

type MarketplaceCmdRepo

type MarketplaceCmdRepo interface {
	InstallItem(dto.InstallMarketplaceCatalogItem) error
	UninstallItem(dto.DeleteMarketplaceInstalledItem) error
	RefreshCatalogItems() error
}

type O11yQueryRepo

type O11yQueryRepo interface {
	ReadOverview() (entity.O11yOverview, error)
}

type RuntimeCmdRepo

type RuntimeCmdRepo interface {
	UpdatePhpVersion(hostname valueObject.Fqdn, version valueObject.PhpVersion) error
	UpdatePhpSettings(hostname valueObject.Fqdn, settings []entity.PhpSetting) error
	UpdatePhpModules(hostname valueObject.Fqdn, modules []entity.PhpModule) error
}

type RuntimeQueryRepo

type RuntimeQueryRepo interface {
	ReadPhpVersionsInstalled() ([]valueObject.PhpVersion, error)
	ReadPhpConfigs(hostname valueObject.Fqdn) (entity.PhpConfigs, error)
}

type ScheduledTaskCmdRepo

type ScheduledTaskCmdRepo interface {
	Create(createDto dto.CreateScheduledTask) error
	Update(updateDto dto.UpdateScheduledTask) error
	Run(pendingTask entity.ScheduledTask) error
}

type ScheduledTaskQueryRepo

type ScheduledTaskQueryRepo interface {
	Read(dto.ReadScheduledTasksRequest) (dto.ReadScheduledTasksResponse, error)
}

type ServicesCmdRepo

type ServicesCmdRepo interface {
	CreateInstallable(dto.CreateInstallableService) (valueObject.ServiceName, error)
	CreateCustom(dto.CreateCustomService) error
	Update(dto.UpdateService) error
	Delete(valueObject.ServiceName) error
	RefreshInstallableItems() error
}

type SslCmdRepo

type SslCmdRepo interface {
	Create(dto.CreateSslPair) (valueObject.SslPairId, error)
	Delete(valueObject.SslPairId) error
	ReplaceWithValidSsl(dto.ReplaceWithValidSsl) error
	DeleteSslPairVhosts(dto.DeleteSslPairVhosts) error
}

type SslQueryRepo

type SslQueryRepo interface {
	Read() ([]entity.SslPair, error)
	ReadById(valueObject.SslPairId) (entity.SslPair, error)
}

type VirtualHostCmdRepo

type VirtualHostCmdRepo interface {
	Create(createDto dto.CreateVirtualHost) error
	Delete(vhost entity.VirtualHost) error
}

type VirtualHostQueryRepo

type VirtualHostQueryRepo interface {
	Read() ([]entity.VirtualHost, error)
	ReadByHostname(hostname valueObject.Fqdn) (entity.VirtualHost, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL