useCase

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: EPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const FailedLoginAttemptsInterval time.Duration = 15 * time.Minute
View Source
const MaxFailedLoginAttemptsPerIpAddress uint = 3
View Source
const RefreshMarketplaceCatalogItemsAmountPerDay int = 1
View Source
const RefreshServiceInstallableItemsAmountPerDay int = 1
View Source
const ScheduledTasksRunIntervalSecs uint8 = 90
View Source
const SessionTokenExpiresIn time.Duration = 3 * time.Hour
View Source
const SslValidationsPerHour int = 4

Variables

View Source
var AccountsDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}
View Source
var CronsDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}
View Source
var DatabasesDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}
View Source
var FilesDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 30,
}
View Source
var MappingSecurityRulesDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}
View Source
var MarketplaceDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 50,
	SortBy:       &MarketplaceDefaultSortBy,
}
View Source
var RuntimeRunPhpCommandTimeoutSecsDefault uint64 = 600
View Source
var ScheduledTasksDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}
View Source
var (
	ServicesDefaultPagination tkDto.Pagination = tkDto.Pagination{
		PageNumber:   0,
		ItemsPerPage: 10,
		SortBy:       &servicesSortByName,
	}
)
View Source
var SslPairsDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}
View Source
var VirtualHostsDefaultPagination tkDto.Pagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}

Functions

func CompressUnixFiles

func CompressUnixFiles(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	compressDto dto.CompressUnixFiles,
) (dto.CompressionProcessReport, error)

func CopyUnixFile

func CopyUnixFile(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	copyDto dto.CopyUnixFile,
) error

func CreateAccount

func CreateAccount(
	accountQueryRepo repository.AccountQueryRepo,
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateAccount,
) error

func CreateCron

func CreateCron(
	cronCmdRepo repository.CronCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateCron,
) error

func CreateCustomService

func CreateCustomService(
	servicesQueryRepo repository.ServicesQueryRepo,
	servicesCmdRepo repository.ServicesCmdRepo,
	vhostQueryRepo repository.VirtualHostQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateCustomService,
) error

func CreateDatabase

func CreateDatabase(
	dbQueryRepo repository.DatabaseQueryRepo,
	dbCmdRepo repository.DatabaseCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateDatabase,
) error

func CreateDatabaseUser

func CreateDatabaseUser(
	dbQueryRepo repository.DatabaseQueryRepo,
	dbCmdRepo repository.DatabaseCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateDatabaseUser,
) error

func CreateFirstAccount added in v0.1.7

func CreateFirstAccount(
	accountQueryRepo repository.AccountQueryRepo,
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateAccount,
) error

func CreateInstallableService

func CreateInstallableService(
	servicesQueryRepo repository.ServicesQueryRepo,
	servicesCmdRepo repository.ServicesCmdRepo,
	vhostQueryRepo repository.VirtualHostQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateInstallableService,
) error

func CreateMapping

func CreateMapping(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	svcsQueryRepo repository.ServicesQueryRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateMapping,
) error

func CreateMappingSecurityRule added in v0.2.4

func CreateMappingSecurityRule(
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateMappingSecurityRule,
) (mappingSecurityRuleId valueObject.MappingSecurityRuleId, err error)

func CreatePubliclyTrustedSslPair added in v0.2.2

func CreatePubliclyTrustedSslPair(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	sslCmdRepo repository.SslCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreatePubliclyTrustedSslPair,
) (sslPairId valueObject.SslPairId, err error)

func CreateScheduledTask

func CreateScheduledTask(
	scheduledTaskCmdRepo repository.ScheduledTaskCmdRepo,
	dto dto.CreateScheduledTask,
) error

func CreateSecureAccessPublicKey added in v0.1.7

func CreateSecureAccessPublicKey(
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateSecureAccessPublicKey,
) error

func CreateServiceAutoMapping added in v0.2.1

func CreateServiceAutoMapping(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	serviceName valueObject.ServiceName,
	mappingHostname *tkValueObject.Fqdn,
	mappingPath *valueObject.MappingPath,
	mappingUpgradeInsecureRequests *bool,
	operatorAccountId tkValueObject.AccountId,
	operatorIpAddress tkValueObject.IpAddress,
) error

func CreateSessionToken added in v0.1.2

func CreateSessionToken(
	authQueryRepo repository.AuthQueryRepo,
	authCmdRepo repository.AuthCmdRepo,
	accountQueryRepo repository.AccountQueryRepo,
	activityRecordQueryRepo tkRepository.ActivityRecordQueryRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateSessionToken,
) (accessToken entity.AccessToken, err error)

func CreateSslPair

func CreateSslPair(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	sslCmdRepo repository.SslCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateSslPair,
) error

func CreateUnixFile

func CreateUnixFile(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateUnixFile,
) error

func CreateVirtualHost

func CreateVirtualHost(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	vhostCmdRepo repository.VirtualHostCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto dto.CreateVirtualHost,
) error

func DeleteAccount

func DeleteAccount(
	accountQueryRepo repository.AccountQueryRepo,
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteAccount,
) error

func DeleteActivityRecord

func DeleteActivityRecord(
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto tkDto.DeleteActivityRecord,
) error

func DeleteCron

func DeleteCron(
	cronQueryRepo repository.CronQueryRepo,
	cronCmdRepo repository.CronCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteCron,
) error

func DeleteDatabase

func DeleteDatabase(
	dbQueryRepo repository.DatabaseQueryRepo,
	dbCmdRepo repository.DatabaseCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteDatabase,
) error

func DeleteDatabaseUser

func DeleteDatabaseUser(
	dbQueryRepo repository.DatabaseQueryRepo,
	dbCmdRepo repository.DatabaseCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteDatabaseUser,
) error

func DeleteMapping

func DeleteMapping(
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteMapping,
) error

func DeleteMappingSecurityRule added in v0.2.4

func DeleteMappingSecurityRule(
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteMappingSecurityRule,
) error

func DeleteMarketplaceInstalledItem

func DeleteMarketplaceInstalledItem(
	marketplaceQueryRepo repository.MarketplaceQueryRepo,
	marketplaceCmdRepo repository.MarketplaceCmdRepo,
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	servicesQueryRepo repository.ServicesQueryRepo,
	servicesCmdRepo repository.ServicesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteMarketplaceInstalledItem,
) error

func DeleteSecureAccessPublicKey added in v0.1.7

func DeleteSecureAccessPublicKey(
	accountQueryRepo repository.AccountQueryRepo,
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteSecureAccessPublicKey,
) error

func DeleteService

func DeleteService(
	servicesQueryRepo repository.ServicesQueryRepo,
	servicesCmdRepo repository.ServicesCmdRepo,
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteService,
) error

func DeleteServiceMappings added in v0.2.1

func DeleteServiceMappings(
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	serviceName valueObject.ServiceName,
	shouldRecreate bool,
	operatorAccountId tkValueObject.AccountId,
	operatorIpAddress tkValueObject.IpAddress,
) error

func DeleteSslPair

func DeleteSslPair(
	sslQueryRepo repository.SslQueryRepo,
	sslCmdRepo repository.SslCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteSslPair,
) error

func DeleteVirtualHost

func DeleteVirtualHost(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	vhostCmdRepo repository.VirtualHostCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto dto.DeleteVirtualHost,
) error

func ExtractUnixFiles

func ExtractUnixFiles(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	extractDto dto.ExtractUnixFiles,
) error

func InstallMarketplaceCatalogItem

func InstallMarketplaceCatalogItem(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	marketplaceQueryRepo repository.MarketplaceQueryRepo,
	marketplaceCmdRepo repository.MarketplaceCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	installDto dto.InstallMarketplaceCatalogItem,
) error

func NormalizeKnownUnixFilePathPermissions added in v0.2.0

func NormalizeKnownUnixFilePathPermissions(
	filesCmdRepo repository.FilesCmdRepo,
	filePath tkValueObject.UnixAbsoluteFilePath,
)

func ReadAccessTokenDetails

func ReadAccessTokenDetails(
	authQueryRepo repository.AuthQueryRepo,
	accessToken tkValueObject.AccessTokenValue,
	trustedIpAddress []tkValueObject.IpAddress,
	ipAddress tkValueObject.IpAddress,
) (dto.AccessTokenDetails, error)

func ReadAccounts added in v0.1.2

func ReadAccounts(
	accountQueryRepo repository.AccountQueryRepo,
	requestDto dto.ReadAccountsRequest,
) (responseDto dto.ReadAccountsResponse, err error)

func ReadCrons

func ReadCrons(
	cronQueryRepo repository.CronQueryRepo,
	requestDto dto.ReadCronsRequest,
) (responseDto dto.ReadCronsResponse, err error)

func ReadDatabases

func ReadDatabases(
	databaseQueryRepo repository.DatabaseQueryRepo,
	requestDto dto.ReadDatabasesRequest,
) (responseDto dto.ReadDatabasesResponse, err error)

func ReadFiles added in v0.1.5

func ReadFiles(
	filesQueryRepo repository.FilesQueryRepo,
	requestDto dto.ReadFilesRequest,
) (responseDto dto.ReadFilesResponse, err error)

func ReadInstallableServices

func ReadInstallableServices(
	servicesQueryRepo repository.ServicesQueryRepo,
	requestDto dto.ReadInstallableServicesItemsRequest,
) (responseDto dto.ReadInstallableServicesItemsResponse, err error)

func ReadInstalledServices added in v0.1.5

func ReadInstalledServices(
	servicesQueryRepo repository.ServicesQueryRepo,
	requestDto dto.ReadInstalledServicesItemsRequest,
) (responseDto dto.ReadInstalledServicesItemsResponse, err error)

func ReadMappingSecurityRules added in v0.2.4

func ReadMappingSecurityRules(
	mappingQueryRepo repository.MappingQueryRepo,
	requestDto dto.ReadMappingSecurityRulesRequest,
) (responseDto dto.ReadMappingSecurityRulesResponse, err error)

func ReadMarketplaceCatalogItems added in v0.1.5

func ReadMarketplaceCatalogItems(
	marketplaceQueryRepo repository.MarketplaceQueryRepo,
	requestDto dto.ReadMarketplaceCatalogItemsRequest,
) (responseDto dto.ReadMarketplaceCatalogItemsResponse, err error)

func ReadMarketplaceInstalledItems

func ReadMarketplaceInstalledItems(
	marketplaceQueryRepo repository.MarketplaceQueryRepo,
	requestDto dto.ReadMarketplaceInstalledItemsRequest,
) (responseDto dto.ReadMarketplaceInstalledItemsResponse, err error)

func ReadO11yOverview

func ReadO11yOverview(
	o11yQueryRepo repository.O11yQueryRepo,
	withResourceUsage bool,
) (entity.O11yOverview, error)

func ReadPhpConfigs

func ReadPhpConfigs(
	runtimeQueryRepo repository.RuntimeQueryRepo,
	hostname tkValueObject.Fqdn,
) (entity.PhpConfigs, error)

func ReadScheduledTasks

func ReadScheduledTasks(
	scheduledTaskQueryRepo repository.ScheduledTaskQueryRepo,
	readDto dto.ReadScheduledTasksRequest,
) (responseDto dto.ReadScheduledTasksResponse, err error)

func ReadSslPairs

func ReadSslPairs(
	sslQueryRepo repository.SslQueryRepo,
	requestDto dto.ReadSslPairsRequest,
) (responseDto dto.ReadSslPairsResponse, err error)

func ReadVirtualHosts

func ReadVirtualHosts(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	requestDto dto.ReadVirtualHostsRequest,
) (responseDto dto.ReadVirtualHostsResponse, err error)

func RefreshMarketplaceCatalogItems added in v0.1.5

func RefreshMarketplaceCatalogItems(marketplaceCmdRepo repository.MarketplaceCmdRepo)

func RefreshServiceInstallableItems added in v0.1.5

func RefreshServiceInstallableItems(servicesCmdRepo repository.ServicesCmdRepo)

func RunPhpCommand added in v0.2.6

func RunPhpCommand(
	accountQueryRepo repository.AccountQueryRepo,
	runtimeCmdRepo repository.RuntimeCmdRepo,
	runRequest dto.RunPhpCommandRequest,
) (runResponse dto.RunPhpCommandResponse, err error)

func RunScheduledTasks

func RunScheduledTasks(
	scheduledTaskQueryRepo repository.ScheduledTaskQueryRepo,
	scheduledTaskCmdRepo repository.ScheduledTaskCmdRepo,
)

func UninstallMarketplaceInstalledItemServices added in v0.2.2

func UninstallMarketplaceInstalledItemServices(
	servicesQueryRepo repository.ServicesQueryRepo,
	servicesCmdRepo repository.ServicesCmdRepo,
	mappingQueryRepo repository.MappingQueryRepo,
	installedItemEntity entity.MarketplaceInstalledItem,
)

func UpdateAccount added in v0.1.2

func UpdateAccount(
	accountQueryRepo repository.AccountQueryRepo,
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateAccount,
) error

func UpdateAccountApiKey

func UpdateAccountApiKey(
	accountQueryRepo repository.AccountQueryRepo,
	accountCmdRepo repository.AccountCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateAccount,
) (newKey tkValueObject.AccessTokenValue, err error)

func UpdateCron

func UpdateCron(
	cronQueryRepo repository.CronQueryRepo,
	cronCmdRepo repository.CronCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateCron,
) error

func UpdateMapping added in v0.2.4

func UpdateMapping(
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateMapping,
) error

func UpdateMappingSecurityRule added in v0.2.4

func UpdateMappingSecurityRule(
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateMappingSecurityRule,
) error

func UpdatePhpConfigs

func UpdatePhpConfigs(
	runtimeQueryRepo repository.RuntimeQueryRepo,
	runtimeCmdRepo repository.RuntimeCmdRepo,
	vhostQueryRepo repository.VirtualHostQueryRepo,
	activityCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdatePhpConfigs,
) error

func UpdateScheduledTask

func UpdateScheduledTask(
	scheduledTaskQueryRepo repository.ScheduledTaskQueryRepo,
	scheduledTaskCmdRepo repository.ScheduledTaskCmdRepo,
	updateDto dto.UpdateScheduledTask,
) error

func UpdateService

func UpdateService(
	servicesQueryRepo repository.ServicesQueryRepo,
	servicesCmdRepo repository.ServicesCmdRepo,
	mappingQueryRepo repository.MappingQueryRepo,
	mappingCmdRepo repository.MappingCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateService,
) error

func UpdateVirtualHost added in v0.2.1

func UpdateVirtualHost(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	vhostCmdRepo repository.VirtualHostCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	updateDto dto.UpdateVirtualHost,
) error

func UploadUnixFiles

func UploadUnixFiles(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	uploadDto dto.UploadUnixFiles,
) (dto.UploadProcessReport, error)

Types

type CreateSecurityActivityRecord

type CreateSecurityActivityRecord struct {
	// contains filtered or unexported fields
}

func NewCreateSecurityActivityRecord added in v0.1.2

func NewCreateSecurityActivityRecord(
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
) *CreateSecurityActivityRecord

func (*CreateSecurityActivityRecord) CompressUnixFile added in v0.1.5

func (uc *CreateSecurityActivityRecord) CompressUnixFile(
	compressDto dto.CompressUnixFiles,
)

func (*CreateSecurityActivityRecord) CopyUnixFile added in v0.1.5

func (uc *CreateSecurityActivityRecord) CopyUnixFile(copyDto dto.CopyUnixFile)

func (*CreateSecurityActivityRecord) CreateAccount added in v0.1.2

func (uc *CreateSecurityActivityRecord) CreateAccount(
	createDto dto.CreateAccount,
	accountId tkValueObject.AccountId,
)

func (*CreateSecurityActivityRecord) CreateCron added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateCron(
	createDto dto.CreateCron,
	cronId valueObject.CronId,
)

func (*CreateSecurityActivityRecord) CreateCustomService added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateCustomService(
	createDto dto.CreateCustomService,
)

func (*CreateSecurityActivityRecord) CreateDatabase added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateDatabase(createDto dto.CreateDatabase)

func (*CreateSecurityActivityRecord) CreateDatabaseUser added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateDatabaseUser(
	createDto dto.CreateDatabaseUser,
)

func (*CreateSecurityActivityRecord) CreateInstallableService added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateInstallableService(
	createDto dto.CreateInstallableService,
)

func (*CreateSecurityActivityRecord) CreateMapping added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateMapping(
	createDto dto.CreateMapping,
	mappingId valueObject.MappingId,
)

func (*CreateSecurityActivityRecord) CreateMappingSecurityRule added in v0.2.4

func (uc *CreateSecurityActivityRecord) CreateMappingSecurityRule(
	createDto dto.CreateMappingSecurityRule,
	mappingSecurityRuleId valueObject.MappingSecurityRuleId,
)

func (*CreateSecurityActivityRecord) CreatePubliclyTrustedSslPair added in v0.2.2

func (uc *CreateSecurityActivityRecord) CreatePubliclyTrustedSslPair(
	createDto dto.CreatePubliclyTrustedSslPair,
	sslPairId valueObject.SslPairId,
)

func (*CreateSecurityActivityRecord) CreateSecureAccessPublicKey added in v0.1.7

func (uc *CreateSecurityActivityRecord) CreateSecureAccessPublicKey(
	createDto dto.CreateSecureAccessPublicKey,
	keyId valueObject.SecureAccessPublicKeyId,
)

func (*CreateSecurityActivityRecord) CreateSessionToken added in v0.1.2

func (uc *CreateSecurityActivityRecord) CreateSessionToken(
	recordCode tkValueObject.ActivityRecordCode,
	createDto dto.CreateSessionToken,
)

func (*CreateSecurityActivityRecord) CreateSslPair added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateSslPair(
	createDto dto.CreateSslPair,
	sslPairId valueObject.SslPairId,
)

func (*CreateSecurityActivityRecord) CreateUnixFile added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateUnixFile(createDto dto.CreateUnixFile)

func (*CreateSecurityActivityRecord) CreateVirtualHost added in v0.1.5

func (uc *CreateSecurityActivityRecord) CreateVirtualHost(
	createDto dto.CreateVirtualHost,
)

func (*CreateSecurityActivityRecord) DeleteAccount added in v0.1.2

func (uc *CreateSecurityActivityRecord) DeleteAccount(deleteDto dto.DeleteAccount)

func (*CreateSecurityActivityRecord) DeleteCron added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteCron(deleteDto dto.DeleteCron)

func (*CreateSecurityActivityRecord) DeleteDatabase added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteDatabase(deleteDto dto.DeleteDatabase)

func (*CreateSecurityActivityRecord) DeleteDatabaseUser added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteDatabaseUser(
	deleteDto dto.DeleteDatabaseUser,
)

func (*CreateSecurityActivityRecord) DeleteMapping added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteMapping(deleteDto dto.DeleteMapping)

func (*CreateSecurityActivityRecord) DeleteMappingSecurityRule added in v0.2.4

func (uc *CreateSecurityActivityRecord) DeleteMappingSecurityRule(
	deleteDto dto.DeleteMappingSecurityRule,
)

func (*CreateSecurityActivityRecord) DeleteMarketplaceInstalledItem added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteMarketplaceInstalledItem(
	installDto dto.DeleteMarketplaceInstalledItem,
)

func (*CreateSecurityActivityRecord) DeleteSecureAccessPublicKey added in v0.1.7

func (uc *CreateSecurityActivityRecord) DeleteSecureAccessPublicKey(
	deleteDto dto.DeleteSecureAccessPublicKey,
	accountId tkValueObject.AccountId,
)

func (*CreateSecurityActivityRecord) DeleteService added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteService(deleteDto dto.DeleteService)

func (*CreateSecurityActivityRecord) DeleteSslPair added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteSslPair(deleteDto dto.DeleteSslPair)

func (*CreateSecurityActivityRecord) DeleteSslPairVhosts added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteSslPairVhosts(
	deleteDto dto.DeleteSslPairVhosts,
)

func (*CreateSecurityActivityRecord) DeleteUnixFiles added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteUnixFiles(deleteDto dto.DeleteUnixFiles)

func (*CreateSecurityActivityRecord) DeleteVirtualHost added in v0.1.5

func (uc *CreateSecurityActivityRecord) DeleteVirtualHost(
	deleteDto dto.DeleteVirtualHost,
)

func (*CreateSecurityActivityRecord) ExtractUnixFile added in v0.1.5

func (uc *CreateSecurityActivityRecord) ExtractUnixFile(
	extractDto dto.ExtractUnixFiles,
)

func (*CreateSecurityActivityRecord) InstallMarketplaceCatalogItem added in v0.1.5

func (uc *CreateSecurityActivityRecord) InstallMarketplaceCatalogItem(
	installDto dto.InstallMarketplaceCatalogItem,
)

func (*CreateSecurityActivityRecord) UpdateAccount added in v0.1.2

func (uc *CreateSecurityActivityRecord) UpdateAccount(
	accountId tkValueObject.AccountId,
	updateDto dto.UpdateAccount,
)

func (*CreateSecurityActivityRecord) UpdateCron added in v0.1.5

func (uc *CreateSecurityActivityRecord) UpdateCron(updateDto dto.UpdateCron)

func (*CreateSecurityActivityRecord) UpdateMapping added in v0.2.4

func (uc *CreateSecurityActivityRecord) UpdateMapping(updateDto dto.UpdateMapping)

func (*CreateSecurityActivityRecord) UpdateMappingSecurityRule added in v0.2.4

func (uc *CreateSecurityActivityRecord) UpdateMappingSecurityRule(
	updateDto dto.UpdateMappingSecurityRule,
)

func (*CreateSecurityActivityRecord) UpdatePhpConfigs added in v0.1.5

func (uc *CreateSecurityActivityRecord) UpdatePhpConfigs(
	updateDto dto.UpdatePhpConfigs,
	configType string,
)

func (*CreateSecurityActivityRecord) UpdateService added in v0.1.5

func (uc *CreateSecurityActivityRecord) UpdateService(updateDto dto.UpdateService)

func (*CreateSecurityActivityRecord) UpdateUnixFiles added in v0.1.5

func (uc *CreateSecurityActivityRecord) UpdateUnixFiles(updateDto dto.UpdateUnixFiles)

func (*CreateSecurityActivityRecord) UpdateVirtualHost added in v0.2.1

func (uc *CreateSecurityActivityRecord) UpdateVirtualHost(
	updateDto dto.UpdateVirtualHost,
)

func (*CreateSecurityActivityRecord) UploadUnixFiles added in v0.1.5

func (uc *CreateSecurityActivityRecord) UploadUnixFiles(
	uploadDto dto.UploadUnixFiles,
)

type DeleteUnixFiles

type DeleteUnixFiles struct {
	// contains filtered or unexported fields
}

func NewDeleteUnixFiles

func NewDeleteUnixFiles(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
) DeleteUnixFiles

func (DeleteUnixFiles) CreateGeneralTrash added in v0.1.5

func (uc DeleteUnixFiles) CreateGeneralTrash(
	operatorAccountId tkValueObject.AccountId,
	operatorIpAddress tkValueObject.IpAddress,
) error

func (DeleteUnixFiles) Execute

func (uc DeleteUnixFiles) Execute(deleteDto dto.DeleteUnixFiles) error

type SslCertificateWatchdog

type SslCertificateWatchdog struct {
	// contains filtered or unexported fields
}

func NewSslCertificateWatchdog added in v0.2.1

func NewSslCertificateWatchdog(
	vhostQueryRepo repository.VirtualHostQueryRepo,
	sslQueryRepo repository.SslQueryRepo,
	sslCmdRepo repository.SslCmdRepo,
) *SslCertificateWatchdog

func (*SslCertificateWatchdog) Execute added in v0.2.1

func (uc *SslCertificateWatchdog) Execute()

type UpdateUnixFiles

type UpdateUnixFiles struct {
	// contains filtered or unexported fields
}

func NewUpdateUnixFiles

func NewUpdateUnixFiles(
	filesQueryRepo repository.FilesQueryRepo,
	filesCmdRepo repository.FilesCmdRepo,
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
) UpdateUnixFiles

func (UpdateUnixFiles) Execute

func (uc UpdateUnixFiles) Execute(
	updateDto dto.UpdateUnixFiles,
) (dto.UpdateProcessReport, error)

Jump to

Keyboard shortcuts

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