dto

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: EPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PaginationSingleItem = Pagination{
	PageNumber:   0,
	ItemsPerPage: 1,
}
View Source
var PaginationUnpaginated = Pagination{
	PageNumber:   0,
	ItemsPerPage: 1000,
}

Functions

This section is empty.

Types

type AccessTokenDetails

type AccessTokenDetails struct {
	TokenType valueObject.AccessTokenType `json:"tokenType"`
	AccountId valueObject.AccountId       `json:"accountId"`
	IpAddress *valueObject.IpAddress      `json:"ipAddress"`
}

func NewAccessTokenDetails

func NewAccessTokenDetails(
	tokenType valueObject.AccessTokenType,
	accountId valueObject.AccountId,
	ipAddress *valueObject.IpAddress,
) AccessTokenDetails

type CompressUnixFiles

type CompressUnixFiles struct {
	SourcePaths       []valueObject.UnixFilePath       `json:"sourcePaths"`
	DestinationPath   valueObject.UnixFilePath         `json:"destinationPath"`
	CompressionType   *valueObject.UnixCompressionType `json:"compressionType"`
	OperatorAccountId valueObject.AccountId            `json:"-"`
	OperatorIpAddress valueObject.IpAddress            `json:"-"`
}

func NewCompressUnixFiles

func NewCompressUnixFiles(
	sourcePaths []valueObject.UnixFilePath,
	destinationPath valueObject.UnixFilePath,
	compressionType *valueObject.UnixCompressionType,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CompressUnixFiles

type CompressionProcessReport

type CompressionProcessReport struct {
	FilePathsSuccessfullyCompressed []valueObject.UnixFilePath              `json:"filePathsSuccessfullyCompressed"`
	FailedPathsWithReason           []valueObject.CompressionProcessFailure `json:"failedPathsWithReason"`
	DestinationPath                 valueObject.UnixFilePath                `json:"destinationPath"`
}

func NewCompressionProcessReport

func NewCompressionProcessReport(
	filePathsSuccessfullyCompressed []valueObject.UnixFilePath,
	failedPathsWithReason []valueObject.CompressionProcessFailure,
	destinationPath valueObject.UnixFilePath,
) CompressionProcessReport

type CopyUnixFile

type CopyUnixFile struct {
	SourcePath        valueObject.UnixFilePath `json:"sourcePath"`
	DestinationPath   valueObject.UnixFilePath `json:"destinationPath"`
	ShouldOverwrite   bool                     `json:"shouldOverwrite"`
	OperatorAccountId valueObject.AccountId    `json:"-"`
	OperatorIpAddress valueObject.IpAddress    `json:"-"`
}

func NewCopyUnixFile

func NewCopyUnixFile(
	sourcePath valueObject.UnixFilePath,
	destinationPath valueObject.UnixFilePath,
	shouldOverwrite bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CopyUnixFile

type CreateAccount

type CreateAccount struct {
	Username          valueObject.Username  `json:"username"`
	Password          valueObject.Password  `json:"password"`
	IsSuperAdmin      bool                  `json:"isSuperAdmin"`
	OperatorAccountId valueObject.AccountId `json:"-"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewCreateAccount

func NewCreateAccount(
	username valueObject.Username,
	password valueObject.Password,
	isSuperAdmin bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateAccount

type CreateActivityRecord

type CreateActivityRecord struct {
	RecordLevel       valueObject.ActivityRecordLevel        `json:"recordLevel"`
	RecordCode        valueObject.ActivityRecordCode         `json:"recordCode"`
	AffectedResources []valueObject.SystemResourceIdentifier `json:"affectedResources,omitempty"`
	RecordDetails     interface{}                            `json:"recordDetails,omitempty"`
	OperatorAccountId *valueObject.AccountId                 `json:"operatorAccountId,omitempty"`
	OperatorIpAddress *valueObject.IpAddress                 `json:"operatorIpAddress,omitempty"`
}

type CreateCron

type CreateCron struct {
	Schedule          valueObject.CronSchedule `json:"schedule"`
	Command           valueObject.UnixCommand  `json:"command"`
	Comment           *valueObject.CronComment `json:"comment"`
	OperatorAccountId valueObject.AccountId    `json:"-"`
	OperatorIpAddress valueObject.IpAddress    `json:"-"`
}

func NewCreateCron

func NewCreateCron(
	schedule valueObject.CronSchedule,
	command valueObject.UnixCommand,
	comment *valueObject.CronComment,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateCron

type CreateCustomService

type CreateCustomService struct {
	Name                           valueObject.ServiceName     `json:"name"`
	Type                           valueObject.ServiceType     `json:"type"`
	StartCmd                       valueObject.UnixCommand     `json:"startCmd"`
	Envs                           []valueObject.ServiceEnv    `json:"envs"`
	PortBindings                   []valueObject.PortBinding   `json:"portBindings"`
	StopCmdSteps                   []valueObject.UnixCommand   `json:"stopCmdSteps"`
	PreStartCmdSteps               []valueObject.UnixCommand   `json:"preStartCmdSteps"`
	PostStartCmdSteps              []valueObject.UnixCommand   `json:"postStartCmdSteps"`
	PreStopCmdSteps                []valueObject.UnixCommand   `json:"preStopCmdSteps"`
	PostStopCmdSteps               []valueObject.UnixCommand   `json:"postStopCmdSteps"`
	Version                        *valueObject.ServiceVersion `json:"version"`
	ExecUser                       *valueObject.UnixUsername   `json:"execUser"`
	WorkingDirectory               *valueObject.UnixFilePath   `json:"workingDirectory"`
	AutoStart                      *bool                       `json:"autoStart"`
	AutoRestart                    *bool                       `json:"autoRestart"`
	TimeoutStartSecs               *uint                       `json:"timeoutStartSecs"`
	MaxStartRetries                *uint                       `json:"maxStartRetries"`
	LogOutputPath                  *valueObject.UnixFilePath   `json:"logOutputPath"`
	LogErrorPath                   *valueObject.UnixFilePath   `json:"logErrorPath"`
	AvatarUrl                      *valueObject.Url            `json:"avatarUrl"`
	AutoCreateMapping              *bool                       `json:"autoCreateMapping"`
	MappingHostname                *valueObject.Fqdn           `json:"mappingHostname"`
	MappingPath                    *valueObject.MappingPath    `json:"mappingPath"`
	MappingUpgradeInsecureRequests *bool                       `json:"mappingUpgradeInsecureRequests"`
	OperatorAccountId              valueObject.AccountId       `json:"-"`
	OperatorIpAddress              valueObject.IpAddress       `json:"-"`
}

func NewCreateCustomService

func NewCreateCustomService(
	name valueObject.ServiceName,
	serviceType valueObject.ServiceType,
	startCmd valueObject.UnixCommand,
	envs []valueObject.ServiceEnv,
	portBindings []valueObject.PortBinding,
	stopSteps, preStartSteps, postStartSteps, preStopSteps, postStopSteps []valueObject.UnixCommand,
	version *valueObject.ServiceVersion,
	execUser *valueObject.UnixUsername,
	workingDirectory *valueObject.UnixFilePath,
	autoStart, autoRestart *bool,
	timeoutStartSecs, maxStartRetries *uint,
	logOutputPath, logErrorPath *valueObject.UnixFilePath,
	avatarUrl *valueObject.Url,
	autoCreateMapping *bool,
	mappingHostname *valueObject.Fqdn,
	mappingPath *valueObject.MappingPath,
	mappingUpgradeInsecureRequests *bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateCustomService

type CreateDatabase

type CreateDatabase struct {
	DatabaseName      valueObject.DatabaseName `json:"dbName"`
	OperatorAccountId valueObject.AccountId    `json:"-"`
	OperatorIpAddress valueObject.IpAddress    `json:"-"`
}

func NewCreateDatabase

func NewCreateDatabase(
	dbName valueObject.DatabaseName,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateDatabase

type CreateDatabaseUser

type CreateDatabaseUser struct {
	DatabaseName      valueObject.DatabaseName        `json:"dbName"`
	Username          valueObject.DatabaseUsername    `json:"username"`
	Password          valueObject.Password            `json:"password"`
	Privileges        []valueObject.DatabasePrivilege `json:"privileges"`
	OperatorAccountId valueObject.AccountId           `json:"-"`
	OperatorIpAddress valueObject.IpAddress           `json:"-"`
}

func NewCreateDatabaseUser

func NewCreateDatabaseUser(
	dbName valueObject.DatabaseName,
	username valueObject.DatabaseUsername,
	password valueObject.Password,
	privileges []valueObject.DatabasePrivilege,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateDatabaseUser

type CreateInstallableService

type CreateInstallableService struct {
	Name                           valueObject.ServiceName     `json:"name"`
	Envs                           []valueObject.ServiceEnv    `json:"envs"`
	PortBindings                   []valueObject.PortBinding   `json:"portBindings"`
	Version                        *valueObject.ServiceVersion `json:"version"`
	StartupFile                    *valueObject.UnixFilePath   `json:"startupFile"`
	WorkingDir                     *valueObject.UnixFilePath   `json:"workingDir"`
	AutoStart                      *bool                       `json:"autoStart"`
	TimeoutStartSecs               *uint                       `json:"timeoutStartSecs"`
	AutoRestart                    *bool                       `json:"autoRestart"`
	MaxStartRetries                *uint                       `json:"maxStartRetries"`
	AutoCreateMapping              *bool                       `json:"autoCreateMapping"`
	MappingHostname                *valueObject.Fqdn           `json:"mappingHostname"`
	MappingPath                    *valueObject.MappingPath    `json:"mappingPath"`
	MappingUpgradeInsecureRequests *bool                       `json:"mappingUpgradeInsecureRequests"`
	OperatorAccountId              valueObject.AccountId       `json:"-"`
	OperatorIpAddress              valueObject.IpAddress       `json:"-"`
}

func NewCreateInstallableService

func NewCreateInstallableService(
	name valueObject.ServiceName,
	envs []valueObject.ServiceEnv,
	portBindings []valueObject.PortBinding,
	version *valueObject.ServiceVersion,
	startupFile *valueObject.UnixFilePath,
	workingDir *valueObject.UnixFilePath,
	autoStart *bool,
	timeoutStartSecs *uint,
	autoRestart *bool,
	maxStartRetries *uint,
	autoCreateMapping *bool,
	mappingHostname *valueObject.Fqdn,
	mappingPath *valueObject.MappingPath,
	mappingUpgradeInsecureRequests *bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateInstallableService

type CreateMapping

type CreateMapping struct {
	Hostname                      valueObject.Fqdn                   `json:"hostname"`
	Path                          valueObject.MappingPath            `json:"path"`
	MatchPattern                  valueObject.MappingMatchPattern    `json:"matchPattern"`
	TargetType                    valueObject.MappingTargetType      `json:"targetType"`
	TargetValue                   *valueObject.MappingTargetValue    `json:"targetValue"`
	TargetHttpResponseCode        *valueObject.HttpResponseCode      `json:"targetHttpResponseCode"`
	ShouldUpgradeInsecureRequests *bool                              `json:"shouldUpgradeInsecureRequests"`
	MappingSecurityRuleId         *valueObject.MappingSecurityRuleId `json:"mappingSecurityRuleId"`
	OperatorAccountId             valueObject.AccountId              `json:"-"`
	OperatorIpAddress             valueObject.IpAddress              `json:"-"`
}

func NewCreateMapping

func NewCreateMapping(
	hostname valueObject.Fqdn,
	path valueObject.MappingPath,
	matchPattern valueObject.MappingMatchPattern,
	targetType valueObject.MappingTargetType,
	targetValue *valueObject.MappingTargetValue,
	targetHttpResponseCode *valueObject.HttpResponseCode,
	shouldUpgradeInsecureRequests *bool,
	mappingSecurityRuleId *valueObject.MappingSecurityRuleId,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateMapping

type CreateMappingSecurityRule added in v0.2.4

type CreateMappingSecurityRule struct {
	Name                           valueObject.MappingSecurityRuleName         `json:"name"`
	Description                    *valueObject.MappingSecurityRuleDescription `json:"description"`
	AllowedIps                     []tkValueObject.CidrBlock                   `json:"allowedIps"`
	BlockedIps                     []tkValueObject.CidrBlock                   `json:"blockedIps"`
	RpsSoftLimitPerIp              *uint                                       `json:"rpsSoftLimitPerIp"`
	RpsHardLimitPerIp              *uint                                       `json:"rpsHardLimitPerIp"`
	ResponseCodeOnMaxRequests      *uint                                       `json:"responseCodeOnMaxRequests"`
	MaxConnectionsPerIp            *uint                                       `json:"maxConnectionsPerIp"`
	BandwidthBpsLimitPerConnection *valueObject.Byte                           `json:"bandwidthBpsLimitPerConnection"`
	BandwidthLimitOnlyAfterBytes   *valueObject.Byte                           `json:"bandwidthLimitOnlyAfterBytes"`
	ResponseCodeOnMaxConnections   *uint                                       `json:"responseCodeOnMaxConnections"`
	OperatorAccountId              valueObject.AccountId                       `json:"-"`
	OperatorIpAddress              valueObject.IpAddress                       `json:"-"`
}

func NewCreateMappingSecurityRule added in v0.2.4

func NewCreateMappingSecurityRule(
	name valueObject.MappingSecurityRuleName,
	description *valueObject.MappingSecurityRuleDescription,
	allowedIps, blockedIps []tkValueObject.CidrBlock,
	rpsSoftLimitPerIp, rpsHardLimitPerIp, responseCodeOnMaxRequests, maxConnectionsPerIp *uint,
	bandwidthBpsLimitPerConnection, bandwidthLimitOnlyAfterBytes *valueObject.Byte,
	responseCodeOnMaxConnections *uint,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateMappingSecurityRule

type CreatePubliclyTrustedSslPair added in v0.2.1

type CreatePubliclyTrustedSslPair struct {
	VirtualHostHostname valueObject.Fqdn      `json:"virtualHostHostname"`
	OperatorAccountId   valueObject.AccountId `json:"-"`
	OperatorIpAddress   valueObject.IpAddress `json:"-"`
}

func NewCreatePubliclyTrustedSslPair added in v0.2.1

func NewCreatePubliclyTrustedSslPair(
	virtualHostHostname valueObject.Fqdn,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreatePubliclyTrustedSslPair

type CreateScheduledTask

type CreateScheduledTask struct {
	Name        valueObject.ScheduledTaskName  `json:"name"`
	Command     valueObject.UnixCommand        `json:"command"`
	Tags        []valueObject.ScheduledTaskTag `json:"tags"`
	TimeoutSecs *uint16                        `json:"timeoutSecs,omitempty"`
	RunAt       *valueObject.UnixTime          `json:"runAt,omitempty"`
}

type CreateSecureAccessPublicKey added in v0.1.7

type CreateSecureAccessPublicKey struct {
	AccountId         valueObject.AccountId                    `json:"accountId"`
	Content           valueObject.SecureAccessPublicKeyContent `json:"content"`
	Name              valueObject.SecureAccessPublicKeyName    `json:"name"`
	OperatorAccountId valueObject.AccountId                    `json:"-"`
	OperatorIpAddress valueObject.IpAddress                    `json:"-"`
}

func NewCreateSecureAccessPublicKey added in v0.1.7

func NewCreateSecureAccessPublicKey(
	accountId valueObject.AccountId,
	content valueObject.SecureAccessPublicKeyContent,
	name valueObject.SecureAccessPublicKeyName,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateSecureAccessPublicKey

type CreateSessionToken added in v0.1.2

type CreateSessionToken struct {
	Username          valueObject.Username  `json:"username"`
	Password          valueObject.Password  `json:"password"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewCreateSessionToken added in v0.1.2

func NewCreateSessionToken(
	username valueObject.Username,
	password valueObject.Password,
	operatorIpAddress valueObject.IpAddress,
) CreateSessionToken

type CreateSslPair

type CreateSslPair struct {
	VirtualHostsHostnames []valueObject.Fqdn        `json:"virtualHostsHostnames"`
	Certificate           entity.SslCertificate     `json:"certificate"`
	ChainCertificates     *entity.SslCertificate    `json:"chainCertificates,omitempty"`
	Key                   valueObject.SslPrivateKey `json:"key"`
	OperatorAccountId     valueObject.AccountId     `json:"-"`
	OperatorIpAddress     valueObject.IpAddress     `json:"-"`
}

func NewCreateSslPair

func NewCreateSslPair(
	virtualHostsHostnames []valueObject.Fqdn,
	certificate entity.SslCertificate,
	chainCertificates *entity.SslCertificate,
	key valueObject.SslPrivateKey,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateSslPair

type CreateUnixFile

type CreateUnixFile struct {
	FilePath          valueObject.UnixFilePath        `json:"filePath"`
	Permissions       valueObject.UnixFilePermissions `json:"permissions"`
	MimeType          valueObject.MimeType            `json:"mimeType"`
	OperatorAccountId valueObject.AccountId           `json:"-"`
	OperatorIpAddress valueObject.IpAddress           `json:"-"`
}

func NewCreateUnixFile

func NewCreateUnixFile(
	filePath valueObject.UnixFilePath,
	permissionsPtr *valueObject.UnixFilePermissions,
	mimeType valueObject.MimeType,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateUnixFile

type CreateVirtualHost

type CreateVirtualHost struct {
	Hostname          valueObject.Fqdn            `json:"hostname"`
	Type              valueObject.VirtualHostType `json:"type"`
	IsWildcard        *bool                       `json:"isWildcard"`
	ParentHostname    *valueObject.Fqdn           `json:"parentHostname"`
	OperatorAccountId valueObject.AccountId       `json:"-"`
	OperatorIpAddress valueObject.IpAddress       `json:"-"`
}

func NewCreateVirtualHost

func NewCreateVirtualHost(
	hostname valueObject.Fqdn,
	vhostType valueObject.VirtualHostType,
	isWildcard *bool,
	parentHostname *valueObject.Fqdn,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) CreateVirtualHost

type DeleteAccount added in v0.1.2

type DeleteAccount struct {
	AccountId         valueObject.AccountId `json:"accountId"`
	OperatorAccountId valueObject.AccountId `json:"-"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewDeleteAccount added in v0.1.2

func NewDeleteAccount(
	accountId, operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteAccount

type DeleteActivityRecord added in v0.1.2

type DeleteActivityRecord struct {
	RecordId          *valueObject.ActivityRecordId          `json:"recordId,omitempty"`
	RecordLevel       *valueObject.ActivityRecordLevel       `json:"recordLevel,omitempty"`
	RecordCode        *valueObject.ActivityRecordCode        `json:"recordCode,omitempty"`
	AffectedResources []valueObject.SystemResourceIdentifier `json:"affectedResources,omitempty"`
	OperatorAccountId *valueObject.AccountId                 `json:"operatorAccountId,omitempty"`
	OperatorIpAddress *valueObject.IpAddress                 `json:"operatorIpAddress,omitempty"`
	CreatedBeforeAt   *valueObject.UnixTime                  `json:"createdBeforeAt,omitempty"`
	CreatedAfterAt    *valueObject.UnixTime                  `json:"createdAfterAt,omitempty"`
}

func NewDeleteActivityRecord added in v0.1.2

func NewDeleteActivityRecord(
	recordId *valueObject.ActivityRecordId,
	recordLevel *valueObject.ActivityRecordLevel,
	recordCode *valueObject.ActivityRecordCode,
	affectedResources []valueObject.SystemResourceIdentifier,
	operatorAccountId *valueObject.AccountId,
	operatorIpAddress *valueObject.IpAddress,
	createdBeforeAt, createdAfterAt *valueObject.UnixTime,
) DeleteActivityRecord

type DeleteCron

type DeleteCron struct {
	Id                *valueObject.CronId      `json:"id"`
	Comment           *valueObject.CronComment `json:"comment"`
	OperatorAccountId valueObject.AccountId    `json:"-"`
	OperatorIpAddress valueObject.IpAddress    `json:"-"`
}

func NewDeleteCron

func NewDeleteCron(
	id *valueObject.CronId,
	comment *valueObject.CronComment,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteCron

type DeleteDatabase added in v0.1.5

type DeleteDatabase struct {
	DatabaseName      valueObject.DatabaseName `json:"dbName"`
	OperatorAccountId valueObject.AccountId    `json:"-"`
	OperatorIpAddress valueObject.IpAddress    `json:"-"`
}

func NewDeleteDatabase added in v0.1.5

func NewDeleteDatabase(
	dbName valueObject.DatabaseName,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteDatabase

type DeleteDatabaseUser added in v0.1.5

type DeleteDatabaseUser struct {
	DatabaseName      valueObject.DatabaseName     `json:"dbName"`
	Username          valueObject.DatabaseUsername `json:"username"`
	OperatorAccountId valueObject.AccountId        `json:"-"`
	OperatorIpAddress valueObject.IpAddress        `json:"-"`
}

func NewDeleteDatabaseUser added in v0.1.5

func NewDeleteDatabaseUser(
	dbName valueObject.DatabaseName,
	username valueObject.DatabaseUsername,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteDatabaseUser

type DeleteMapping added in v0.1.5

type DeleteMapping struct {
	MappingId         valueObject.MappingId `json:"mappingId"`
	OperatorAccountId valueObject.AccountId `json:"-"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewDeleteMapping added in v0.1.5

func NewDeleteMapping(
	mappingId valueObject.MappingId,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteMapping

type DeleteMappingSecurityRule added in v0.2.4

type DeleteMappingSecurityRule struct {
	SecurityRuleId    valueObject.MappingSecurityRuleId `json:"securityRuleId"`
	OperatorAccountId valueObject.AccountId             `json:"-"`
	OperatorIpAddress valueObject.IpAddress             `json:"-"`
}

func NewDeleteMappingSecurityRule added in v0.2.4

func NewDeleteMappingSecurityRule(
	securityRuleId valueObject.MappingSecurityRuleId,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteMappingSecurityRule

type DeleteMarketplaceInstalledItem

type DeleteMarketplaceInstalledItem struct {
	InstalledId             valueObject.MarketplaceItemId `json:"installedId"`
	ShouldUninstallServices bool                          `json:"shouldUninstallServices"`
	OperatorAccountId       valueObject.AccountId         `json:"-"`
	OperatorIpAddress       valueObject.IpAddress         `json:"-"`
}

func NewDeleteMarketplaceInstalledItem

func NewDeleteMarketplaceInstalledItem(
	installedId valueObject.MarketplaceItemId,
	shouldUninstallServices bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteMarketplaceInstalledItem

type DeleteSecureAccessPublicKey added in v0.1.7

type DeleteSecureAccessPublicKey struct {
	Id                valueObject.SecureAccessPublicKeyId `json:"id"`
	OperatorAccountId valueObject.AccountId               `json:"-"`
	OperatorIpAddress valueObject.IpAddress               `json:"-"`
}

func NewDeleteSecureAccessPublicKey added in v0.1.7

func NewDeleteSecureAccessPublicKey(
	id valueObject.SecureAccessPublicKeyId,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteSecureAccessPublicKey

type DeleteService added in v0.1.5

type DeleteService struct {
	Name              valueObject.ServiceName `json:"name"`
	OperatorAccountId valueObject.AccountId   `json:"-"`
	OperatorIpAddress valueObject.IpAddress   `json:"-"`
}

func NewDeleteService added in v0.1.5

func NewDeleteService(
	name valueObject.ServiceName,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteService

type DeleteSslPair added in v0.1.5

type DeleteSslPair struct {
	SslPairId         valueObject.SslPairId `json:"sslPairId"`
	OperatorAccountId valueObject.AccountId `json:"-"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewDeleteSslPair added in v0.1.5

func NewDeleteSslPair(
	sslPairId valueObject.SslPairId,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteSslPair

type DeleteSslPairVhosts

type DeleteSslPairVhosts struct {
	SslPairId             valueObject.SslPairId `json:"sslPairId"`
	VirtualHostsHostnames []valueObject.Fqdn    `json:"virtualHostsHostnames"`
	OperatorAccountId     valueObject.AccountId `json:"-"`
	OperatorIpAddress     valueObject.IpAddress `json:"-"`
}

func NewDeleteSslPairVhosts

func NewDeleteSslPairVhosts(
	sslPairId valueObject.SslPairId,
	virtualHostsHostnames []valueObject.Fqdn,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteSslPairVhosts

type DeleteUnixFiles

type DeleteUnixFiles struct {
	SourcePaths       []valueObject.UnixFilePath `json:"sourcePaths"`
	HardDelete        bool                       `json:"hardDelete"`
	OperatorAccountId valueObject.AccountId      `json:"-"`
	OperatorIpAddress valueObject.IpAddress      `json:"-"`
}

func NewDeleteUnixFiles

func NewDeleteUnixFiles(
	sourcePaths []valueObject.UnixFilePath,
	hardDelete bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteUnixFiles

type DeleteVirtualHost added in v0.1.5

type DeleteVirtualHost struct {
	Hostname          valueObject.Fqdn      `json:"hostname"`
	OperatorAccountId valueObject.AccountId `json:"-"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewDeleteVirtualHost added in v0.1.5

func NewDeleteVirtualHost(
	hostname valueObject.Fqdn,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) DeleteVirtualHost

type ExtractUnixFiles

type ExtractUnixFiles struct {
	SourcePath        valueObject.UnixFilePath `json:"sourcePath"`
	DestinationPath   valueObject.UnixFilePath `json:"destinationPath"`
	OperatorAccountId valueObject.AccountId    `json:"-"`
	OperatorIpAddress valueObject.IpAddress    `json:"-"`
}

func NewExtractUnixFiles

func NewExtractUnixFiles(
	sourcePath valueObject.UnixFilePath,
	destinationPath valueObject.UnixFilePath,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) ExtractUnixFiles

type InstallMarketplaceCatalogItem

type InstallMarketplaceCatalogItem struct {
	Hostname          valueObject.Fqdn                                  `json:"hostname"`
	Id                *valueObject.MarketplaceItemId                    `json:"id"`
	Slug              *valueObject.MarketplaceItemSlug                  `json:"slug"`
	UrlPath           *valueObject.UrlPath                              `json:"urlPath"`
	DataFields        []valueObject.MarketplaceInstallableItemDataField `json:"dataFields"`
	OperatorAccountId valueObject.AccountId                             `json:"-"`
	OperatorIpAddress valueObject.IpAddress                             `json:"-"`
}

type InstalledServiceWithMetrics

type InstalledServiceWithMetrics struct {
	entity.InstalledService
	Metrics *valueObject.ServiceMetrics `json:"metrics"`
}

func NewInstalledServiceWithMetrics

func NewInstalledServiceWithMetrics(
	installedService entity.InstalledService,
	metrics *valueObject.ServiceMetrics,
) InstalledServiceWithMetrics

type MoveUnixFile added in v0.1.5

type MoveUnixFile struct {
	SourcePath      valueObject.UnixFilePath `json:"sourcePath"`
	DestinationPath valueObject.UnixFilePath `json:"destinationPath"`
	ShouldOverwrite bool                     `json:"shouldOverwrite"`
}

func NewMoveUnixFile added in v0.1.5

func NewMoveUnixFile(
	sourcePath valueObject.UnixFilePath,
	destinationPath valueObject.UnixFilePath,
	shouldOverwrite bool,
) MoveUnixFile

type Pagination

type Pagination struct {
	PageNumber    uint32                               `json:"pageNumber"`
	ItemsPerPage  uint16                               `json:"itemsPerPage"`
	SortBy        *valueObject.PaginationSortBy        `json:"sortBy,omitempty"`
	SortDirection *valueObject.PaginationSortDirection `json:"sortDirection,omitempty"`
	LastSeenId    *valueObject.PaginationLastSeenId    `json:"lastSeenId,omitempty"`
	PagesTotal    *uint32                              `json:"pagesTotal,omitempty"`
	ItemsTotal    *uint64                              `json:"itemsTotal,omitempty"`
}

type ReadAccountsRequest added in v0.1.7

type ReadAccountsRequest struct {
	Pagination                          Pagination             `json:"pagination"`
	AccountId                           *valueObject.AccountId `json:"id,omitempty"`
	AccountUsername                     *valueObject.Username  `json:"username,omitempty"`
	ShouldIncludeSecureAccessPublicKeys *bool                  `json:"shouldIncludeSecureAccessPublicKeys,omitempty"`
}

type ReadAccountsResponse added in v0.1.7

type ReadAccountsResponse struct {
	Pagination Pagination       `json:"pagination"`
	Accounts   []entity.Account `json:"accounts"`
}

type ReadActivityRecords

type ReadActivityRecords struct {
	RecordId          *valueObject.ActivityRecordId          `json:"recordId,omitempty"`
	RecordLevel       *valueObject.ActivityRecordLevel       `json:"recordLevel,omitempty"`
	RecordCode        *valueObject.ActivityRecordCode        `json:"recordCode,omitempty"`
	AffectedResources []valueObject.SystemResourceIdentifier `json:"affectedResources,omitempty"`
	RecordDetails     *string                                `json:"recordDetails,omitempty"`
	OperatorAccountId *valueObject.AccountId                 `json:"operatorAccountId,omitempty"`
	OperatorIpAddress *valueObject.IpAddress                 `json:"operatorIpAddress,omitempty"`
	CreatedBeforeAt   *valueObject.UnixTime                  `json:"createdBeforeAt,omitempty"`
	CreatedAfterAt    *valueObject.UnixTime                  `json:"createdAfterAt,omitempty"`
}

func NewReadActivityRecords

func NewReadActivityRecords(
	recordId *valueObject.ActivityRecordId,
	recordLevel *valueObject.ActivityRecordLevel,
	recordCode *valueObject.ActivityRecordCode,
	affectedResources []valueObject.SystemResourceIdentifier,
	recordDetails *string,
	operatorAccountId *valueObject.AccountId,
	operatorIpAddress *valueObject.IpAddress,
	createdBeforeAt, createdAfterAt *valueObject.UnixTime,
) ReadActivityRecords

type ReadCronsRequest added in v0.1.7

type ReadCronsRequest struct {
	Pagination  Pagination               `json:"pagination"`
	CronId      *valueObject.CronId      `json:"id,omitempty"`
	CronComment *valueObject.CronComment `json:"comment,omitempty"`
}

type ReadCronsResponse added in v0.1.7

type ReadCronsResponse struct {
	Pagination Pagination    `json:"pagination"`
	Crons      []entity.Cron `json:"crons"`
}

type ReadDatabasesRequest added in v0.2.4

type ReadDatabasesRequest struct {
	Pagination   Pagination                    `json:"pagination"`
	DatabaseName *valueObject.DatabaseName     `json:"name"`
	DatabaseType *valueObject.DatabaseType     `json:"type"`
	Username     *valueObject.DatabaseUsername `json:"username"`
}

type ReadDatabasesResponse added in v0.2.4

type ReadDatabasesResponse struct {
	Pagination Pagination        `json:"pagination"`
	Databases  []entity.Database `json:"databases"`
}

type ReadFilesRequest added in v0.2.0

type ReadFilesRequest struct {
	SourcePath            valueObject.UnixFilePath `json:"sourcePath"`
	ShouldIncludeFileTree *bool                    `json:"shouldIncludeFileTree,omitempty"`
}

type ReadFilesResponse added in v0.2.0

type ReadFilesResponse struct {
	FileTree *UnixFileBranch   `json:"fileTree"`
	Files    []entity.UnixFile `json:"files"`
}

type ReadFirstInstalledServiceItemsRequest added in v0.1.5

type ReadFirstInstalledServiceItemsRequest struct {
	Pagination    Pagination                 `json:"pagination"`
	ServiceName   *valueObject.ServiceName   `json:"serviceName,omitempty"`
	ServiceNature *valueObject.ServiceNature `json:"serviceNature,omitempty"`
	ServiceStatus *valueObject.ServiceStatus `json:"serviceStatus,omitempty"`
	ServiceType   *valueObject.ServiceType   `json:"serviceType,omitempty"`
}

type ReadInstallableServicesItemsRequest added in v0.1.5

type ReadInstallableServicesItemsRequest struct {
	Pagination    Pagination                 `json:"pagination"`
	ServiceName   *valueObject.ServiceName   `json:"name,omitempty"`
	ServiceNature *valueObject.ServiceNature `json:"nature,omitempty"`
	ServiceType   *valueObject.ServiceType   `json:"type,omitempty"`
}

type ReadInstallableServicesItemsResponse added in v0.1.5

type ReadInstallableServicesItemsResponse struct {
	Pagination          Pagination                  `json:"pagination"`
	InstallableServices []entity.InstallableService `json:"installableServices"`
}

type ReadInstalledServicesItemsRequest added in v0.1.5

type ReadInstalledServicesItemsRequest struct {
	Pagination           Pagination                 `json:"pagination"`
	ServiceName          *valueObject.ServiceName   `json:"serviceName,omitempty"`
	ServiceNature        *valueObject.ServiceNature `json:"serviceNature,omitempty"`
	ServiceStatus        *valueObject.ServiceStatus `json:"serviceStatus,omitempty"`
	ServiceType          *valueObject.ServiceType   `json:"serviceType,omitempty"`
	ShouldIncludeMetrics *bool                      `json:"shouldIncludeMetrics,omitempty"`
}

type ReadInstalledServicesItemsResponse added in v0.1.5

type ReadInstalledServicesItemsResponse struct {
	Pagination                   Pagination                    `json:"pagination"`
	InstalledServices            []entity.InstalledService     `json:"installedServices"`
	InstalledServicesWithMetrics []InstalledServiceWithMetrics `json:"installedServicesWithMetrics"`
}

type ReadMappingSecurityRulesRequest added in v0.2.4

type ReadMappingSecurityRulesRequest struct {
	Pagination              Pagination                           `json:"pagination"`
	MappingSecurityRuleId   *valueObject.MappingSecurityRuleId   `json:"mappingSecurityRuleId"`
	MappingSecurityRuleName *valueObject.MappingSecurityRuleName `json:"mappingSecurityRuleName"`
	AllowedIp               *tkValueObject.CidrBlock             `json:"allowedIp"`
	BlockedIp               *tkValueObject.CidrBlock             `json:"blockedIp"`
	CreatedBeforeAt         *valueObject.UnixTime                `json:"createdBeforeAt"`
	CreatedAfterAt          *valueObject.UnixTime                `json:"createdAfterAt"`
}

type ReadMappingSecurityRulesResponse added in v0.2.4

type ReadMappingSecurityRulesResponse struct {
	Pagination           Pagination                   `json:"pagination"`
	MappingSecurityRules []entity.MappingSecurityRule `json:"mappingSecurityRules"`
}

type ReadMappingsRequest added in v0.2.1

type ReadMappingsRequest struct {
	Pagination                    Pagination                         `json:"pagination"`
	MappingId                     *valueObject.MappingId             `json:"mappingId"`
	Hostname                      *valueObject.Fqdn                  `json:"hostname"`
	MappingPath                   *valueObject.MappingPath           `json:"mappingPath"`
	MatchPattern                  *valueObject.MappingMatchPattern   `json:"matchPattern"`
	TargetType                    *valueObject.MappingTargetType     `json:"targetType"`
	TargetValue                   *valueObject.MappingTargetValue    `json:"targetValue"`
	TargetHttpResponseCode        *valueObject.HttpResponseCode      `json:"targetHttpResponseCode"`
	ShouldUpgradeInsecureRequests *bool                              `json:"shouldUpgradeInsecureRequests"`
	MappingSecurityRuleId         *valueObject.MappingSecurityRuleId `json:"mappingSecurityRuleId"`
	CreatedBeforeAt               *valueObject.UnixTime              `json:"createdBeforeAt"`
	CreatedAfterAt                *valueObject.UnixTime              `json:"createdAfterAt"`
}

type ReadMappingsResponse added in v0.2.1

type ReadMappingsResponse struct {
	Pagination Pagination       `json:"pagination"`
	Mappings   []entity.Mapping `json:"mappings"`
}

type ReadMarketplaceCatalogItemsRequest added in v0.1.5

type ReadMarketplaceCatalogItemsRequest struct {
	Pagination                 Pagination                       `json:"pagination"`
	MarketplaceCatalogItemId   *valueObject.MarketplaceItemId   `json:"marketplaceCatalogItemId,omitempty"`
	MarketplaceCatalogItemSlug *valueObject.MarketplaceItemSlug `json:"marketplaceCatalogItemSlug,omitempty"`
	MarketplaceCatalogItemName *valueObject.MarketplaceItemName `json:"marketplaceCatalogItemName,omitempty"`
	MarketplaceCatalogItemType *valueObject.MarketplaceItemType `json:"marketplaceCatalogItemType,omitempty"`
}

type ReadMarketplaceCatalogItemsResponse added in v0.1.5

type ReadMarketplaceCatalogItemsResponse struct {
	Pagination              Pagination                      `json:"pagination"`
	MarketplaceCatalogItems []entity.MarketplaceCatalogItem `json:"marketplaceCatalogItems"`
}

type ReadMarketplaceInstalledItemsRequest added in v0.1.5

type ReadMarketplaceInstalledItemsRequest struct {
	Pagination                       Pagination                                `json:"pagination"`
	MarketplaceInstalledItemId       *valueObject.MarketplaceItemId            `json:"marketplaceInstalledItemId,omitempty"`
	MarketplaceInstalledItemHostname *valueObject.Fqdn                         `json:"marketplaceInstalledItemHostname,omitempty"`
	MarketplaceInstalledItemType     *valueObject.MarketplaceItemType          `json:"marketplaceInstalledItemType,omitempty"`
	MarketplaceInstalledItemUuid     *valueObject.MarketplaceInstalledItemUuid `json:"marketplaceInstalledItemUuid,omitempty"`
}

type ReadMarketplaceInstalledItemsResponse added in v0.1.5

type ReadMarketplaceInstalledItemsResponse struct {
	Pagination                Pagination                        `json:"pagination"`
	MarketplaceInstalledItems []entity.MarketplaceInstalledItem `json:"marketplaceInstalledItems"`
}

type ReadScheduledTasksRequest

type ReadScheduledTasksRequest struct {
	Pagination       Pagination                       `json:"pagination"`
	TaskId           *valueObject.ScheduledTaskId     `json:"taskId,omitempty"`
	TaskName         *valueObject.ScheduledTaskName   `json:"taskName,omitempty"`
	TaskStatus       *valueObject.ScheduledTaskStatus `json:"taskStatus,omitempty"`
	TaskTags         []valueObject.ScheduledTaskTag   `json:"taskTags,omitempty"`
	StartedBeforeAt  *valueObject.UnixTime            `json:"startedBeforeAt,omitempty"`
	StartedAfterAt   *valueObject.UnixTime            `json:"startedAfterAt,omitempty"`
	FinishedBeforeAt *valueObject.UnixTime            `json:"finishedBeforeAt,omitempty"`
	FinishedAfterAt  *valueObject.UnixTime            `json:"finishedAfterAt,omitempty"`
	CreatedBeforeAt  *valueObject.UnixTime            `json:"createdBeforeAt,omitempty"`
	CreatedAfterAt   *valueObject.UnixTime            `json:"createdAfterAt,omitempty"`
}

type ReadScheduledTasksResponse

type ReadScheduledTasksResponse struct {
	Pagination Pagination             `json:"pagination"`
	Tasks      []entity.ScheduledTask `json:"tasks"`
}

type ReadSecureAccessPublicKeysRequest added in v0.1.7

type ReadSecureAccessPublicKeysRequest struct {
	Pagination                Pagination                             `json:"pagination"`
	AccountId                 valueObject.AccountId                  `json:"accountId,omitempty"`
	SecureAccessPublicKeyId   *valueObject.SecureAccessPublicKeyId   `json:"id,omitempty"`
	SecureAccessPublicKeyName *valueObject.SecureAccessPublicKeyName `json:"name,omitempty"`
}

type ReadSecureAccessPublicKeysResponse added in v0.1.7

type ReadSecureAccessPublicKeysResponse struct {
	Pagination             Pagination                     `json:"pagination"`
	SecureAccessPublicKeys []entity.SecureAccessPublicKey `json:"SecureAccessPublicKeys"`
}

type ReadSslPairsRequest added in v0.2.2

type ReadSslPairsRequest struct {
	Pagination          Pagination                `json:"pagination"`
	SslPairId           *valueObject.SslPairId    `json:"sslPairId"`
	VirtualHostHostname *valueObject.Fqdn         `json:"virtualHostHostname"`
	AltNames            []valueObject.SslHostname `json:"altNames"`
	IssuedBeforeAt      *valueObject.UnixTime     `json:"createdBeforeAt"`
	IssuedAfterAt       *valueObject.UnixTime     `json:"createdAfterAt"`
	ExpiresBeforeAt     *valueObject.UnixTime     `json:"expiresBeforeAt"`
	ExpiresAfterAt      *valueObject.UnixTime     `json:"expiresAfterAt"`
}

type ReadSslPairsResponse added in v0.2.2

type ReadSslPairsResponse struct {
	Pagination Pagination       `json:"pagination"`
	SslPairs   []entity.SslPair `json:"sslPairs"`
}

type ReadVirtualHostsRequest added in v0.2.1

type ReadVirtualHostsRequest struct {
	Pagination       Pagination                   `json:"pagination"`
	Hostname         *valueObject.Fqdn            `json:"hostname"`
	VirtualHostType  *valueObject.VirtualHostType `json:"type"`
	RootDirectory    *valueObject.UnixFilePath    `json:"rootDirectory"`
	ParentHostname   *valueObject.Fqdn            `json:"parentHostname"`
	WithMappings     *bool                        `json:"withMappings"`
	IsWildcard       *bool                        `json:"isWildcard"`
	IsPrimary        *bool                        `json:"-"`
	AliasesHostnames []valueObject.Fqdn           `json:"aliasesHostnames"`
	CreatedBeforeAt  *valueObject.UnixTime        `json:"createdBeforeAt"`
	CreatedAfterAt   *valueObject.UnixTime        `json:"createdAfterAt"`
}

type ReadVirtualHostsResponse added in v0.2.1

type ReadVirtualHostsResponse struct {
	Pagination              Pagination                `json:"pagination"`
	VirtualHosts            []entity.VirtualHost      `json:"virtualHosts"`
	VirtualHostWithMappings []VirtualHostWithMappings `json:"virtualHostWithMappings"`
}

type RunPhpCommandRequest added in v0.2.6

type RunPhpCommandRequest struct {
	Hostname          valueObject.Fqdn        `json:"hostname"`
	Command           valueObject.UnixCommand `json:"command"`
	TimeoutSecs       *uint64                 `json:"timeoutSecs"`
	OperatorAccountId valueObject.AccountId   `json:"-"`
	OperatorIpAddress valueObject.IpAddress   `json:"-"`
}

func NewRunPhpCommandRequest added in v0.2.6

func NewRunPhpCommandRequest(
	hostname valueObject.Fqdn,
	command valueObject.UnixCommand,
	timeoutSecs *uint64,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) RunPhpCommandRequest

type RunPhpCommandResponse added in v0.2.6

type RunPhpCommandResponse struct {
	StdOutput *valueObject.UnixCommandOutput `json:"stdOut"`
	StdError  *valueObject.UnixCommandOutput `json:"stdErr"`
	ExitCode  *int                           `json:"exitCode"`
}

type UnixFileBranch added in v0.2.0

type UnixFileBranch struct {
	entity.SimplifiedUnixFile
	Branches map[valueObject.UnixFileName]UnixFileBranch `json:"branches"`
}

func NewUnixFileBranch added in v0.2.0

func NewUnixFileBranch(parentNodeFile entity.SimplifiedUnixFile) UnixFileBranch

type UpdateAccount

type UpdateAccount struct {
	AccountId          valueObject.AccountId `json:"accountId"`
	Password           *valueObject.Password `json:"password,omitempty"`
	IsSuperAdmin       *bool                 `json:"isSuperAdmin,omitempty"`
	ShouldUpdateApiKey *bool                 `json:"shouldUpdateApiKey,omitempty"`
	OperatorAccountId  valueObject.AccountId `json:"-"`
	OperatorIpAddress  valueObject.IpAddress `json:"-"`
}

func NewUpdateAccount

func NewUpdateAccount(
	accountId valueObject.AccountId,
	password *valueObject.Password,
	isSuperAdmin *bool,
	shouldUpdateApiKey *bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateAccount

type UpdateCron

type UpdateCron struct {
	Id                valueObject.CronId        `json:"id"`
	Schedule          *valueObject.CronSchedule `json:"schedule"`
	Command           *valueObject.UnixCommand  `json:"command"`
	Comment           *valueObject.CronComment  `json:"comment"`
	ClearableFields   []string                  `json:"-"`
	OperatorAccountId valueObject.AccountId     `json:"-"`
	OperatorIpAddress valueObject.IpAddress     `json:"-"`
}

func NewUpdateCron

func NewUpdateCron(
	id valueObject.CronId,
	schedule *valueObject.CronSchedule,
	command *valueObject.UnixCommand,
	comment *valueObject.CronComment,
	clearableFields []string,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateCron

type UpdateMapping added in v0.2.4

type UpdateMapping struct {
	Id                            valueObject.MappingId              `json:"id"`
	Path                          *valueObject.MappingPath           `json:"path"`
	MatchPattern                  *valueObject.MappingMatchPattern   `json:"matchPattern"`
	TargetType                    *valueObject.MappingTargetType     `json:"targetType"`
	TargetValue                   *valueObject.MappingTargetValue    `json:"targetValue"`
	TargetHttpResponseCode        *valueObject.HttpResponseCode      `json:"targetHttpResponseCode"`
	ShouldUpgradeInsecureRequests *bool                              `json:"shouldUpgradeInsecureRequests"`
	MappingSecurityRuleId         *valueObject.MappingSecurityRuleId `json:"mappingSecurityRuleId"`
	ClearableFields               []string                           `json:"-"`
	OperatorAccountId             valueObject.AccountId              `json:"-"`
	OperatorIpAddress             valueObject.IpAddress              `json:"-"`
}

func NewUpdateMapping added in v0.2.4

func NewUpdateMapping(
	id valueObject.MappingId,
	path *valueObject.MappingPath,
	matchPattern *valueObject.MappingMatchPattern,
	targetType *valueObject.MappingTargetType,
	targetValue *valueObject.MappingTargetValue,
	targetHttpResponseCode *valueObject.HttpResponseCode,
	shouldUpgradeInsecureRequests *bool,
	mappingSecurityRuleId *valueObject.MappingSecurityRuleId,
	clearableFields []string,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateMapping

type UpdateMappingSecurityRule added in v0.2.4

type UpdateMappingSecurityRule struct {
	Id                             valueObject.MappingSecurityRuleId           `json:"id"`
	Name                           *valueObject.MappingSecurityRuleName        `json:"name"`
	Description                    *valueObject.MappingSecurityRuleDescription `json:"description"`
	AllowedIps                     []tkValueObject.CidrBlock                   `json:"allowedIps"`
	BlockedIps                     []tkValueObject.CidrBlock                   `json:"blockedIps"`
	RpsSoftLimitPerIp              *uint                                       `json:"rpsSoftLimitPerIp"`
	RpsHardLimitPerIp              *uint                                       `json:"rpsHardLimitPerIp"`
	ResponseCodeOnMaxRequests      *uint                                       `json:"responseCodeOnMaxRequests"`
	MaxConnectionsPerIp            *uint                                       `json:"maxConnectionsPerIp"`
	BandwidthBpsLimitPerConnection *valueObject.Byte                           `json:"bandwidthBpsLimitPerConnection"`
	BandwidthLimitOnlyAfterBytes   *valueObject.Byte                           `json:"bandwidthLimitOnlyAfterBytes"`
	ResponseCodeOnMaxConnections   *uint                                       `json:"responseCodeOnMaxConnections"`
	ClearableFields                []string                                    `json:"-"`
	OperatorAccountId              valueObject.AccountId                       `json:"-"`
	OperatorIpAddress              valueObject.IpAddress                       `json:"-"`
}

func NewUpdateMappingSecurityRule added in v0.2.4

func NewUpdateMappingSecurityRule(
	id valueObject.MappingSecurityRuleId,
	name *valueObject.MappingSecurityRuleName,
	description *valueObject.MappingSecurityRuleDescription,
	allowedIps, blockedIps []tkValueObject.CidrBlock,
	rpsSoftLimitPerIp, rpsHardLimitPerIp, responseCodeOnMaxRequests, maxConnectionsPerIp *uint,
	bandwidthBpsLimitPerConnection, bandwidthLimitOnlyAfterBytes *valueObject.Byte,
	responseCodeOnMaxConnections *uint,
	clearableFields []string,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateMappingSecurityRule

type UpdatePhpConfigs

type UpdatePhpConfigs struct {
	Hostname          valueObject.Fqdn       `json:"hostname"`
	PhpVersion        valueObject.PhpVersion `json:"version"`
	PhpModules        []entity.PhpModule     `json:"modules"`
	PhpSettings       []entity.PhpSetting    `json:"settings"`
	OperatorAccountId valueObject.AccountId  `json:"-"`
	OperatorIpAddress valueObject.IpAddress  `json:"-"`
}

func NewUpdatePhpConfigs

func NewUpdatePhpConfigs(
	hostname valueObject.Fqdn,
	phpVersion valueObject.PhpVersion,
	phpModules []entity.PhpModule,
	phpSettings []entity.PhpSetting,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdatePhpConfigs

type UpdateProcessReport

type UpdateProcessReport struct {
	FilePathsSuccessfullyUpdated []valueObject.UnixFilePath         `json:"filePathsSuccessfullyUpdated"`
	FailedPathsWithReason        []valueObject.UpdateProcessFailure `json:"failedPathsWithReason"`
}

func NewUpdateProcessReport

func NewUpdateProcessReport(
	filePathsSuccessfullyUpdated []valueObject.UnixFilePath,
	failedPathsWithReason []valueObject.UpdateProcessFailure,
) UpdateProcessReport

type UpdateScheduledTask

type UpdateScheduledTask struct {
	TaskId valueObject.ScheduledTaskId      `json:"taskId"`
	Status *valueObject.ScheduledTaskStatus `json:"status,omitempty"`
	RunAt  *valueObject.UnixTime            `json:"runAt,omitempty"`
}

type UpdateService

type UpdateService struct {
	Name              valueObject.ServiceName     `json:"name"`
	Type              *valueObject.ServiceType    `json:"type"`
	Version           *valueObject.ServiceVersion `json:"version"`
	Status            *valueObject.ServiceStatus  `json:"status"`
	StartCmd          *valueObject.UnixCommand    `json:"startCmd"`
	Envs              []valueObject.ServiceEnv    `json:"envs"`
	PortBindings      []valueObject.PortBinding   `json:"portBindings"`
	StopCmdSteps      []valueObject.UnixCommand   `json:"stopCmdSteps"`
	PreStartCmdSteps  []valueObject.UnixCommand   `json:"preStartCmdSteps"`
	PostStartCmdSteps []valueObject.UnixCommand   `json:"postStartCmdSteps"`
	PreStopCmdSteps   []valueObject.UnixCommand   `json:"preStopCmdSteps"`
	PostStopCmdSteps  []valueObject.UnixCommand   `json:"postStopCmdSteps"`
	ExecUser          *valueObject.UnixUsername   `json:"execUser"`
	WorkingDirectory  *valueObject.UnixFilePath   `json:"workingDirectory"`
	StartupFile       *valueObject.UnixFilePath   `json:"startupFile"`
	AutoStart         *bool                       `json:"autoStart"`
	AutoRestart       *bool                       `json:"autoRestart"`
	TimeoutStartSecs  *uint                       `json:"timeoutStartSecs"`
	MaxStartRetries   *uint                       `json:"maxStartRetries"`
	LogOutputPath     *valueObject.UnixFilePath   `json:"logOutputPath"`
	LogErrorPath      *valueObject.UnixFilePath   `json:"logErrorPath"`
	AvatarUrl         *valueObject.Url            `json:"avatarUrl"`
	OperatorAccountId valueObject.AccountId       `json:"-"`
	OperatorIpAddress valueObject.IpAddress       `json:"-"`
}

func NewUpdateService

func NewUpdateService(
	name valueObject.ServiceName,
	svcType *valueObject.ServiceType,
	version *valueObject.ServiceVersion,
	status *valueObject.ServiceStatus,
	startCmd *valueObject.UnixCommand,
	envs []valueObject.ServiceEnv,
	portBindings []valueObject.PortBinding,
	stopSteps, preStartSteps, postStartSteps, preStopSteps, postStopSteps []valueObject.UnixCommand,
	execUser *valueObject.UnixUsername,
	workingDirectory, startupFile *valueObject.UnixFilePath,
	autoStart, autoRestart *bool,
	timeoutStartSecs, maxStartRetries *uint,
	logOutputPath, logErrorPath *valueObject.UnixFilePath,
	avatarUrl *valueObject.Url,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateService

type UpdateUnixFileContent

type UpdateUnixFileContent struct {
	SourcePath valueObject.UnixFilePath   `json:"sourcePath"`
	Content    valueObject.EncodedContent `json:"content"`
}

func NewUpdateUnixFileContent

func NewUpdateUnixFileContent(
	sourcePath valueObject.UnixFilePath,
	content valueObject.EncodedContent,
) UpdateUnixFileContent

type UpdateUnixFileOwnership added in v0.2.0

type UpdateUnixFileOwnership struct {
	SourcePath valueObject.UnixFilePath      `json:"sourcePath"`
	Ownership  valueObject.UnixFileOwnership `json:"ownership"`
}

func NewUpdateUnixFileOwnership added in v0.2.0

func NewUpdateUnixFileOwnership(
	sourcePath valueObject.UnixFilePath,
	ownership valueObject.UnixFileOwnership,
) UpdateUnixFileOwnership

type UpdateUnixFilePermissions added in v0.1.5

type UpdateUnixFilePermissions struct {
	SourcePath           valueObject.UnixFilePath         `json:"sourcePath"`
	FilePermissions      valueObject.UnixFilePermissions  `json:"filePermissions"`
	DirectoryPermissions *valueObject.UnixFilePermissions `json:"directoryPermissions"`
}

func NewUpdateUnixFilePermissions added in v0.1.5

func NewUpdateUnixFilePermissions(
	sourcePath valueObject.UnixFilePath,
	filePermissions valueObject.UnixFilePermissions,
	directoryPermissions *valueObject.UnixFilePermissions,
) UpdateUnixFilePermissions

type UpdateUnixFiles

type UpdateUnixFiles struct {
	SourcePaths          []valueObject.UnixFilePath       `json:"sourcePaths"`
	DestinationPath      *valueObject.UnixFilePath        `json:"destinationPath"`
	Permissions          *valueObject.UnixFilePermissions `json:"permissions"`
	EncodedContent       *valueObject.EncodedContent      `json:"encodedContent"`
	Ownership            *valueObject.UnixFileOwnership   `json:"ownership"`
	ShouldFixPermissions *bool                            `json:"shouldFixPermissions"`
	OperatorAccountId    valueObject.AccountId            `json:"-"`
	OperatorIpAddress    valueObject.IpAddress            `json:"-"`
}

func NewUpdateUnixFiles

func NewUpdateUnixFiles(
	sourcePaths []valueObject.UnixFilePath,
	destinationPath *valueObject.UnixFilePath,
	permissions *valueObject.UnixFilePermissions,
	encodedContent *valueObject.EncodedContent,
	ownership *valueObject.UnixFileOwnership,
	shouldFixPermissions *bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateUnixFiles

type UpdateVirtualHost added in v0.2.1

type UpdateVirtualHost struct {
	Hostname          valueObject.Fqdn      `json:"hostname"`
	IsWildcard        *bool                 `json:"isWildcard"`
	OperatorAccountId valueObject.AccountId `json:"-"`
	OperatorIpAddress valueObject.IpAddress `json:"-"`
}

func NewUpdateVirtualHost added in v0.2.1

func NewUpdateVirtualHost(
	hostname valueObject.Fqdn,
	isWildcard *bool,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UpdateVirtualHost

type UploadProcessReport

type UploadProcessReport struct {
	FileNamesSuccessfullyUploaded []valueObject.UnixFileName         `json:"fileNamesSuccessfullyUploaded"`
	FailedNamesWithReason         []valueObject.UploadProcessFailure `json:"failedNamesWithReason"`
	DestinationPath               valueObject.UnixFilePath           `json:"destinationPath"`
}

func NewUploadProcessReport

func NewUploadProcessReport(
	fileNamesSuccessfullyUploaded []valueObject.UnixFileName,
	failedNamesWithReason []valueObject.UploadProcessFailure,
	destinationPath valueObject.UnixFilePath,
) UploadProcessReport

type UploadUnixFiles

type UploadUnixFiles struct {
	DestinationPath    valueObject.UnixFilePath        `json:"destinationPath"`
	FileStreamHandlers []valueObject.FileStreamHandler `json:"fileStreamHandlers"`
	OperatorAccountId  valueObject.AccountId           `json:"-"`
	OperatorIpAddress  valueObject.IpAddress           `json:"-"`
}

func NewUploadUnixFiles

func NewUploadUnixFiles(
	destinationPath valueObject.UnixFilePath,
	fileStreamHandlers []valueObject.FileStreamHandler,
	operatorAccountId valueObject.AccountId,
	operatorIpAddress valueObject.IpAddress,
) UploadUnixFiles

type VirtualHostWithMappings

type VirtualHostWithMappings struct {
	entity.VirtualHost
	Mappings []entity.Mapping `json:"mappings"`
}

Source Files

Jump to

Keyboard shortcuts

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