Documentation
¶
Index ¶
- Constants
- Variables
- func NewCronSri(accountId tkValueObject.AccountId, cronId CronId) tkValueObject.SystemResourceIdentifier
- func NewCustomServiceSri(accountId tkValueObject.AccountId, serviceName ServiceName) tkValueObject.SystemResourceIdentifier
- func NewDatabaseSri(accountId tkValueObject.AccountId, databaseName DatabaseName) tkValueObject.SystemResourceIdentifier
- func NewDatabaseUserSri(accountId tkValueObject.AccountId, databaseUsername DatabaseUsername) tkValueObject.SystemResourceIdentifier
- func NewInstallableServiceSri(accountId tkValueObject.AccountId, serviceName ServiceName) tkValueObject.SystemResourceIdentifier
- func NewInstalledServiceSri(accountId tkValueObject.AccountId, serviceName ServiceName) tkValueObject.SystemResourceIdentifier
- func NewMappingSecurityRuleSri(accountId tkValueObject.AccountId, mappingSecurityRuleId MappingSecurityRuleId) tkValueObject.SystemResourceIdentifier
- func NewMappingSri(accountId tkValueObject.AccountId, mappingId MappingId) tkValueObject.SystemResourceIdentifier
- func NewMarketplaceCatalogItemSri(accountId tkValueObject.AccountId, marketplaceCatalogItemId *MarketplaceItemId, ...) tkValueObject.SystemResourceIdentifier
- func NewMarketplaceInstalledItemSri(accountId tkValueObject.AccountId, ...) tkValueObject.SystemResourceIdentifier
- func NewPhpRuntimeSri(accountId tkValueObject.AccountId, virtualHostHostname tkValueObject.Fqdn) tkValueObject.SystemResourceIdentifier
- func NewSecureAccessPublicKeySri(accountId tkValueObject.AccountId, ...) tkValueObject.SystemResourceIdentifier
- func NewSslSri(accountId tkValueObject.AccountId, sslPairId SslPairId) tkValueObject.SystemResourceIdentifier
- func NewSystemResourceIdentifierMustCreate(value interface{}) tkValueObject.SystemResourceIdentifier
- func NewVirtualHostSri(accountId tkValueObject.AccountId, vhostHostname tkValueObject.Fqdn) tkValueObject.SystemResourceIdentifier
- func ServiceNameAdapter(value string) string
- type CompressionProcessFailure
- type CronComment
- type CronId
- type CronSchedule
- type CurrentResourceUsage
- type DataFieldLabel
- type DataFieldName
- type DataFieldSpecificType
- type DataFieldType
- type DataFieldValue
- type DatabaseName
- type DatabasePrivilege
- type DatabaseType
- type DatabaseUsername
- type EncodedContent
- type FailureReason
- type FileStreamHandler
- type HardwareSpecs
- type InlineHtmlContent
- type MappingId
- type MappingMatchPattern
- type MappingPath
- type MappingSecurityRuleDescription
- type MappingSecurityRuleId
- type MappingSecurityRuleName
- type MappingTargetType
- type MappingTargetValue
- type MarketplaceCatalogItemDataField
- type MarketplaceInstallableItemDataField
- type MarketplaceInstalledItemUuid
- type MarketplaceItemDescription
- type MarketplaceItemId
- type MarketplaceItemManifestVersion
- type MarketplaceItemMapping
- type MarketplaceItemName
- type MarketplaceItemSlug
- type MarketplaceItemType
- type PhpModuleName
- type PhpSettingName
- type PhpSettingOption
- type PhpSettingType
- type PhpSettingValue
- type PhpVersion
- type PortBinding
- type RuntimeType
- type ScheduledTaskId
- type ScheduledTaskName
- type ScheduledTaskOutput
- type ScheduledTaskStatus
- type ScheduledTaskTag
- type SecureAccessPublicKeyContent
- func (vo SecureAccessPublicKeyContent) ReadFingerprint() (SecureAccessPublicKeyFingerprint, error)
- func (vo SecureAccessPublicKeyContent) ReadOnlyKeyName() (keyName SecureAccessPublicKeyName, err error)
- func (vo SecureAccessPublicKeyContent) ReadWithoutKeyName() string
- func (vo SecureAccessPublicKeyContent) String() string
- type SecureAccessPublicKeyFingerprint
- type SecureAccessPublicKeyId
- type SecureAccessPublicKeyName
- type ServiceDescription
- type ServiceEnv
- type ServiceManifestVersion
- type ServiceMetrics
- type ServiceName
- type ServiceNameWithVersion
- type ServiceNature
- type ServiceStatus
- type ServiceType
- type ServiceVersion
- type SslCertificateAuthority
- type SslCertificateContent
- type SslCertificateId
- type SslHostname
- type SslPairId
- type SslPrivateKey
- type StorageInfo
- type UnixCommandOutput
- type UnixCompressionType
- type UnixFileContent
- type UnixFilePermissions
- type UpdateProcessFailure
- type UploadProcessFailure
- type UrlPath
- type Username
- type VirtualHostType
Constants ¶
View Source
const FileContentMaxSizeInMb = 5
View Source
const SecureAccessPublicKeyFingerprintRegex string = `^SHA256:[\w\/\+\=]{43}$`
View Source
const SecureAccessPublicKeyNameRegex string = `^[A-Za-z0-9][\w@\-_]{5,32}$`
View Source
const ServiceNameRegex string = `^[a-z0-9\.\_\-]{1,64}$`
Variables ¶
View Source
var AvailableDatabasePrivileges = []string{
"ALTER", "ALTER ROUTINE", "CREATE", "CREATE ROUTINE", "CREATE TEMPORARY TABLES",
"CREATE VIEW", "DELETE", "DROP", "EVENT", "EXECUTE", "INDEX", "INSERT",
"LOCK TABLES", "REFERENCES", "SELECT", "SHOW VIEW", "TRIGGER", "UPDATE",
}
View Source
var AvailableVirtualHostsTypes = []string{ VirtualHostTypeTopLevel.String(), VirtualHostTypeSubdomain.String(), VirtualHostTypeAlias.String(), VirtualHostTypeWildcard.String(), }
View Source
var NativeSvcNamesWithAliases = map[string][]string{
"php-webserver": {
"php", "php-ws", "lsphp", "php-fpm", "php-cgi", "litespeed", "openlitespeed",
},
"node": {"nodejs"},
"mariadb": {
"mariadbd", "mariadb-server", "mysql", "mysqld", "percona", "perconadb",
},
"postgresql": {"postgres"},
"redis": {"redis-server"},
"java": {"jre", "jdk", "openjdk"},
}
View Source
var NewSystemResourceIdentifier = tkValueObject.NewSystemResourceIdentifier
View Source
var ServiceStatusesWithAliases = map[string][]string{
"running": {
"run", "up", "start", "started", "enable", "enabled", "activate", "active",
"true", "on", "ok", "yes", "y", "1",
},
"stopped": {
"stop", "halt", "halted", "pause", "paused", "deactivate", "deactivated",
"false", "off", "no", "n", "0",
},
"uninstalled": {
"uninstall", "uninstalled", "remove", "removed", "delete", "deleted",
"purge", "purged", "clear", "cleared", "clean", "cleaned",
},
"restarting": {
"restart", "restarted", "reload", "reloaded", "refresh", "refreshed",
"reboot", "rebooted", "reset", "reseted",
},
}
View Source
var UnixFileOwnershipAppWorkingDir = tkValueObject.UnixFileOwnershipNobodyNogroup
View Source
var UnixFilePathAppHtmlDir = tkValueObject.UnixAbsoluteFilePath("/app/html")
View Source
var UnixFilePathAppWorkingDir = tkValueObject.UnixAbsoluteFilePath("/app")
View Source
var UnixFilePathFileSystemRootDir = tkValueObject.UnixAbsoluteFilePath("/")
View Source
var UnixFilePathTrashDir = tkValueObject.UnixAbsoluteFilePath("/app/.trash")
View Source
var ValidMappingTargetTypes = []string{ MappingTargetTypeUrl.String(), MappingTargetTypeService.String(), MappingTargetTypeResponseCode.String(), MappingTargetTypeInlineHtml.String(), MappingTargetTypeStaticFiles.String(), }
View Source
var ValidNetworkProtocols = []string{
"http", "https", "ws", "wss", "grpc", "grpcs", "tcp", "udp",
}
View Source
var ValidPhpModuleNames = []string{
"curl", "mysqli", "opcache", "apcu", "igbinary", "imagick", "imap", "intl",
"ioncube", "ldap", "mailparse", "memcached", "mcrypt", "mongodb", "msgpack",
"parallel", "pdo_mysql", "pdo_sqlite", "pear", "pgsql", "phalcon", "pspell",
"redis", "snmp", "solr", "sqlite3", "sqlsrv", "ssh2", "swoole", "sybase",
"tidy", "timezonedb", "yaml", "xdebug",
}
View Source
var ValidScheduledTaskStatuses = []string{
"pending", "running", "completed", "failed", "cancelled", "timeout",
}
View Source
var ValidServiceNatures = []string{ ServiceNatureSolo.String(), ServiceNatureMulti.String(), ServiceNatureCustom.String(), }
View Source
var ValidServiceTypes = []string{ ServiceTypeSystem.String(), ServiceTypeDatabase.String(), ServiceTypeRuntime.String(), ServiceTypeWebServer.String(), ServiceTypeOther.String(), }
View Source
var ValidUnixCompressionTypes = []string{
"tgz", "zip",
}
Functions ¶
func NewCronSri ¶ added in v0.1.5
func NewCronSri( accountId tkValueObject.AccountId, cronId CronId, ) tkValueObject.SystemResourceIdentifier
func NewCustomServiceSri ¶ added in v0.1.5
func NewCustomServiceSri( accountId tkValueObject.AccountId, serviceName ServiceName, ) tkValueObject.SystemResourceIdentifier
func NewDatabaseSri ¶ added in v0.1.5
func NewDatabaseSri( accountId tkValueObject.AccountId, databaseName DatabaseName, ) tkValueObject.SystemResourceIdentifier
func NewDatabaseUserSri ¶ added in v0.1.5
func NewDatabaseUserSri( accountId tkValueObject.AccountId, databaseUsername DatabaseUsername, ) tkValueObject.SystemResourceIdentifier
func NewInstallableServiceSri ¶ added in v0.1.5
func NewInstallableServiceSri( accountId tkValueObject.AccountId, serviceName ServiceName, ) tkValueObject.SystemResourceIdentifier
func NewInstalledServiceSri ¶ added in v0.1.5
func NewInstalledServiceSri( accountId tkValueObject.AccountId, serviceName ServiceName, ) tkValueObject.SystemResourceIdentifier
func NewMappingSecurityRuleSri ¶ added in v0.2.4
func NewMappingSecurityRuleSri( accountId tkValueObject.AccountId, mappingSecurityRuleId MappingSecurityRuleId, ) tkValueObject.SystemResourceIdentifier
func NewMappingSri ¶ added in v0.1.5
func NewMappingSri( accountId tkValueObject.AccountId, mappingId MappingId, ) tkValueObject.SystemResourceIdentifier
func NewMarketplaceCatalogItemSri ¶ added in v0.1.5
func NewMarketplaceCatalogItemSri( accountId tkValueObject.AccountId, marketplaceCatalogItemId *MarketplaceItemId, marketplaceCatalogItemSlug *MarketplaceItemSlug, ) tkValueObject.SystemResourceIdentifier
func NewMarketplaceInstalledItemSri ¶ added in v0.1.5
func NewMarketplaceInstalledItemSri( accountId tkValueObject.AccountId, marketplaceInstalledItemId MarketplaceItemId, ) tkValueObject.SystemResourceIdentifier
func NewPhpRuntimeSri ¶ added in v0.1.5
func NewPhpRuntimeSri( accountId tkValueObject.AccountId, virtualHostHostname tkValueObject.Fqdn, ) tkValueObject.SystemResourceIdentifier
func NewSecureAccessPublicKeySri ¶ added in v0.1.7
func NewSecureAccessPublicKeySri( accountId tkValueObject.AccountId, secureAccessPublicKeyId SecureAccessPublicKeyId, ) tkValueObject.SystemResourceIdentifier
func NewSslSri ¶ added in v0.1.5
func NewSslSri( accountId tkValueObject.AccountId, sslPairId SslPairId, ) tkValueObject.SystemResourceIdentifier
func NewSystemResourceIdentifierMustCreate ¶ added in v0.2.8
func NewSystemResourceIdentifierMustCreate(
value interface{},
) tkValueObject.SystemResourceIdentifier
func NewVirtualHostSri ¶ added in v0.1.5
func NewVirtualHostSri( accountId tkValueObject.AccountId, vhostHostname tkValueObject.Fqdn, ) tkValueObject.SystemResourceIdentifier
func ServiceNameAdapter ¶
Types ¶
type CompressionProcessFailure ¶
type CompressionProcessFailure struct {
FilePath tkValueObject.UnixAbsoluteFilePath `json:"filePath"`
Reason FailureReason `json:"reason"`
}
func NewCompressionProcessFailure ¶
func NewCompressionProcessFailure( filePath tkValueObject.UnixAbsoluteFilePath, reason FailureReason, ) CompressionProcessFailure
type CronComment ¶
type CronComment string
func NewCronComment ¶
func NewCronComment(value interface{}) (cronComment CronComment, err error)
func (CronComment) String ¶
func (vo CronComment) String() string
type CronSchedule ¶
type CronSchedule string
func NewCronSchedule ¶
func NewCronSchedule(value interface{}) (cronSchedule CronSchedule, err error)
func (CronSchedule) String ¶
func (vo CronSchedule) String() string
type CurrentResourceUsage ¶
type CurrentResourceUsage struct {
CpuUsagePercent float64 `json:"cpuUsagePercent"`
CpuUsagePercentStr string `json:"cpuUsagePercentStr"`
MemUsagePercent float64 `json:"memUsagePercent"`
MemUsagePercentStr string `json:"memUsagePercentStr"`
StorageUsagePercent float64 `json:"storageUsage"`
StorageUsagePercentStr string `json:"storageUsagePercentStr"`
}
func NewCurrentResourceUsage ¶
type DataFieldLabel ¶
type DataFieldLabel string
func NewDataFieldLabel ¶
func NewDataFieldLabel(value interface{}) (
dataFieldLabel DataFieldLabel, err error,
)
func (DataFieldLabel) String ¶
func (vo DataFieldLabel) String() string
type DataFieldName ¶
type DataFieldName string
func NewDataFieldName ¶
func NewDataFieldName(value interface{}) (
dataFieldName DataFieldName, err error,
)
func (DataFieldName) String ¶
func (vo DataFieldName) String() string
type DataFieldSpecificType ¶ added in v0.1.7
type DataFieldSpecificType string
func NewDataFieldSpecificType ¶ added in v0.1.7
func NewDataFieldSpecificType(value interface{}) (
dataFieldSpecificType DataFieldSpecificType, err error,
)
func (DataFieldSpecificType) String ¶ added in v0.1.7
func (vo DataFieldSpecificType) String() string
type DataFieldType ¶
type DataFieldType string
func NewDataFieldType ¶
func NewDataFieldType(value interface{}) (
dataFieldType DataFieldType, err error,
)
func (DataFieldType) String ¶
func (vo DataFieldType) String() string
type DataFieldValue ¶
type DataFieldValue string
func NewDataFieldValue ¶
func NewDataFieldValue(value interface{}) (
dataFieldValue DataFieldValue, err error,
)
func (DataFieldValue) String ¶
func (vo DataFieldValue) String() string
type DatabaseName ¶
type DatabaseName string
func NewDatabaseName ¶
func NewDatabaseName(value interface{}) (dbName DatabaseName, err error)
func (DatabaseName) String ¶
func (vo DatabaseName) String() string
type DatabasePrivilege ¶
type DatabasePrivilege string
func NewDatabasePrivilege ¶
func NewDatabasePrivilege(value interface{}) (
dbPrivilege DatabasePrivilege, err error,
)
func (DatabasePrivilege) String ¶
func (vo DatabasePrivilege) String() string
type DatabaseType ¶
type DatabaseType string
func NewDatabaseType ¶
func NewDatabaseType(value interface{}) (dbType DatabaseType, err error)
func (DatabaseType) String ¶
func (vo DatabaseType) String() string
type DatabaseUsername ¶
type DatabaseUsername string
func NewDatabaseUsername ¶
func NewDatabaseUsername(value interface{}) (
dbUsername DatabaseUsername, err error,
)
func (DatabaseUsername) String ¶
func (vo DatabaseUsername) String() string
type EncodedContent ¶
type EncodedContent string
func NewEncodedContent ¶
func NewEncodedContent(value interface{}) (encodedContent EncodedContent, err error)
func (EncodedContent) GetDecodedContent ¶
func (vo EncodedContent) GetDecodedContent() (voStr string, err error)
func (EncodedContent) String ¶
func (vo EncodedContent) String() string
type FailureReason ¶
type FailureReason string
func NewFailureReason ¶
func NewFailureReason(value interface{}) (failureReason FailureReason, err error)
func (FailureReason) String ¶
func (vo FailureReason) String() string
type FileStreamHandler ¶
type FileStreamHandler struct {
Name tkValueObject.UnixFileName
Size tkValueObject.Byte
Open func() (multipart.File, error)
}
func NewFileStreamHandler ¶
func NewFileStreamHandler(value *multipart.FileHeader) ( fileStreamHandler FileStreamHandler, err error, )
type HardwareSpecs ¶
type HardwareSpecs struct {
CpuModel string `json:"cpuModel"`
CpuCores float64 `json:"cpuCores"`
CpuFrequency float64 `json:"cpuFrequency"`
MemoryTotal tkValueObject.Byte `json:"memoryTotal"`
StorageTotal tkValueObject.Byte `json:"storageTotal"`
}
func NewHardwareSpecs ¶
func NewHardwareSpecs( cpuModel string, cpuCores, cpuFrequency float64, memoryTotal, storageTotal tkValueObject.Byte, ) HardwareSpecs
func (HardwareSpecs) String ¶
func (vo HardwareSpecs) String() string
type InlineHtmlContent ¶
type InlineHtmlContent string
func NewInlineHtmlContent ¶
func NewInlineHtmlContent(value interface{}) (
inlineHtmlContent InlineHtmlContent, err error,
)
func (InlineHtmlContent) String ¶
func (vo InlineHtmlContent) String() string
type MappingMatchPattern ¶
type MappingMatchPattern string
const ( MappingMatchPatternBeginsWith MappingMatchPattern = "begins-with" MappingMatchPatternContains MappingMatchPattern = "contains" MappingMatchPatternEquals MappingMatchPattern = "equals" MappingMatchPatternEndsWith MappingMatchPattern = "ends-with" )
func NewMappingMatchPattern ¶
func NewMappingMatchPattern(value interface{}) (
matchPattern MappingMatchPattern, err error,
)
func (MappingMatchPattern) String ¶
func (vo MappingMatchPattern) String() string
type MappingPath ¶
type MappingPath string
func NewMappingPath ¶
func NewMappingPath(value interface{}) (mappingPath MappingPath, err error)
func (MappingPath) String ¶
func (vo MappingPath) String() string
type MappingSecurityRuleDescription ¶ added in v0.2.4
type MappingSecurityRuleDescription string
func NewMappingSecurityRuleDescription ¶ added in v0.2.4
func NewMappingSecurityRuleDescription(value interface{}) (
mappingSecurityRuleDescription MappingSecurityRuleDescription,
err error,
)
func (MappingSecurityRuleDescription) String ¶ added in v0.2.4
func (vo MappingSecurityRuleDescription) String() string
type MappingSecurityRuleId ¶ added in v0.2.4
type MappingSecurityRuleId uint64
func NewMappingSecurityRuleId ¶ added in v0.2.4
func NewMappingSecurityRuleId(value interface{}) (
mappingSecurityRuleId MappingSecurityRuleId,
err error,
)
func (MappingSecurityRuleId) String ¶ added in v0.2.4
func (vo MappingSecurityRuleId) String() string
func (MappingSecurityRuleId) Uint64 ¶ added in v0.2.4
func (vo MappingSecurityRuleId) Uint64() uint64
type MappingSecurityRuleName ¶ added in v0.2.4
type MappingSecurityRuleName string
func NewMappingSecurityRuleName ¶ added in v0.2.4
func NewMappingSecurityRuleName(value interface{}) (
mappingSecurityRuleName MappingSecurityRuleName,
err error,
)
func (MappingSecurityRuleName) String ¶ added in v0.2.4
func (vo MappingSecurityRuleName) String() string
type MappingTargetType ¶
type MappingTargetType string
const ( MappingTargetTypeUrl MappingTargetType = "url" MappingTargetTypeService MappingTargetType = "service" MappingTargetTypeResponseCode MappingTargetType = "response-code" MappingTargetTypeInlineHtml MappingTargetType = "inline-html" MappingTargetTypeStaticFiles MappingTargetType = "static-files" )
func NewMappingTargetType ¶
func NewMappingTargetType(value interface{}) (
mappingTargetType MappingTargetType, err error,
)
func (MappingTargetType) String ¶
func (vo MappingTargetType) String() string
type MappingTargetValue ¶
type MappingTargetValue string
func NewMappingTargetValue ¶
func NewMappingTargetValue(
value interface{}, targetType MappingTargetType,
) (mappingTargetValue MappingTargetValue, err error)
func (MappingTargetValue) String ¶
func (vo MappingTargetValue) String() string
type MarketplaceCatalogItemDataField ¶
type MarketplaceCatalogItemDataField struct {
Name DataFieldName `json:"name"`
Label DataFieldLabel `json:"label"`
Type DataFieldType `json:"type"`
SpecificType *DataFieldSpecificType `json:"specificType,omitempty"`
DefaultValue *DataFieldValue `json:"defaultValue,omitempty"`
Options []DataFieldValue `json:"options,omitempty"`
IsRequired bool `json:"isRequired"`
}
func NewMarketplaceCatalogItemDataField ¶
func NewMarketplaceCatalogItemDataField( name DataFieldName, label DataFieldLabel, fieldType DataFieldType, fieldSpecificType *DataFieldSpecificType, defaultValue *DataFieldValue, options []DataFieldValue, isRequired bool, ) (MarketplaceCatalogItemDataField, error)
type MarketplaceInstallableItemDataField ¶
type MarketplaceInstallableItemDataField struct {
Name DataFieldName `json:"name"`
Value DataFieldValue `json:"value"`
}
func NewMarketplaceInstallableItemDataField ¶
func NewMarketplaceInstallableItemDataField( name DataFieldName, value DataFieldValue, ) MarketplaceInstallableItemDataField
func (MarketplaceInstallableItemDataField) String ¶
func (vo MarketplaceInstallableItemDataField) String() string
type MarketplaceInstalledItemUuid ¶
type MarketplaceInstalledItemUuid string
func NewMarketplaceInstalledItemUuid ¶
func NewMarketplaceInstalledItemUuid(value interface{}) (
marketplaceInstalledItemUuid MarketplaceInstalledItemUuid, err error,
)
func (MarketplaceInstalledItemUuid) String ¶
func (vo MarketplaceInstalledItemUuid) String() string
type MarketplaceItemDescription ¶
type MarketplaceItemDescription string
func NewMarketplaceItemDescription ¶
func NewMarketplaceItemDescription(value interface{}) (
marketplaceItemDescription MarketplaceItemDescription, err error,
)
func (MarketplaceItemDescription) String ¶
func (vo MarketplaceItemDescription) String() string
type MarketplaceItemId ¶
type MarketplaceItemId uint16
func NewMarketplaceItemId ¶
func NewMarketplaceItemId(value interface{}) (
marketplaceItemId MarketplaceItemId, err error,
)
func (MarketplaceItemId) String ¶
func (vo MarketplaceItemId) String() string
func (MarketplaceItemId) Uint16 ¶
func (vo MarketplaceItemId) Uint16() uint16
type MarketplaceItemManifestVersion ¶ added in v0.1.5
type MarketplaceItemManifestVersion string
func NewMarketplaceItemManifestVersion ¶ added in v0.1.5
func NewMarketplaceItemManifestVersion(value interface{}) (
version MarketplaceItemManifestVersion, err error,
)
func (MarketplaceItemManifestVersion) String ¶ added in v0.1.5
func (vo MarketplaceItemManifestVersion) String() string
type MarketplaceItemMapping ¶
type MarketplaceItemMapping struct {
Path MappingPath `json:"path"`
MatchPattern MappingMatchPattern `json:"matchPattern"`
TargetType MappingTargetType `json:"targetType"`
TargetValue *MappingTargetValue `json:"targetValue"`
TargetHttpResponseCode *tkValueObject.HttpStatusCode `json:"targetHttpResponseCode"`
ShouldUpgradeInsecureRequests *bool `json:"shouldUpgradeInsecureRequests"`
}
func NewMarketplaceItemMapping ¶
func NewMarketplaceItemMapping( path MappingPath, matchPattern MappingMatchPattern, targetType MappingTargetType, targetValue *MappingTargetValue, targetHttpResponseCode *tkValueObject.HttpStatusCode, shouldUpgradeInsecureRequests *bool, ) MarketplaceItemMapping
type MarketplaceItemName ¶
type MarketplaceItemName string
func NewMarketplaceItemName ¶
func NewMarketplaceItemName(value interface{}) (
marketplaceItemName MarketplaceItemName, err error,
)
func (MarketplaceItemName) String ¶
func (vo MarketplaceItemName) String() string
type MarketplaceItemSlug ¶
type MarketplaceItemSlug string
func NewMarketplaceItemSlug ¶
func NewMarketplaceItemSlug(value interface{}) (
marketplaceItemSlug MarketplaceItemSlug, err error,
)
func (MarketplaceItemSlug) String ¶
func (vo MarketplaceItemSlug) String() string
type MarketplaceItemType ¶
type MarketplaceItemType string
func NewMarketplaceItemType ¶
func NewMarketplaceItemType(value interface{}) (
marketplaceItemType MarketplaceItemType, err error,
)
func (MarketplaceItemType) String ¶
func (vo MarketplaceItemType) String() string
type PhpModuleName ¶
type PhpModuleName string
func NewPhpModuleName ¶
func NewPhpModuleName(value interface{}) (moduleName PhpModuleName, err error)
func (PhpModuleName) String ¶
func (vo PhpModuleName) String() string
type PhpSettingName ¶
type PhpSettingName string
func NewPhpSettingName ¶
func NewPhpSettingName(value interface{}) (settingName PhpSettingName, err error)
func (PhpSettingName) String ¶
func (vo PhpSettingName) String() string
type PhpSettingOption ¶
type PhpSettingOption string
func NewPhpSettingOption ¶
func NewPhpSettingOption(value interface{}) (
phpSettingOption PhpSettingOption, err error,
)
func (PhpSettingOption) String ¶
func (vo PhpSettingOption) String() string
type PhpSettingType ¶
type PhpSettingType string
func NewPhpSettingType ¶
func NewPhpSettingType(value interface{}) (phpSettingType PhpSettingType, err error)
func (PhpSettingType) String ¶
func (vo PhpSettingType) String() string
type PhpSettingValue ¶
type PhpSettingValue string
func NewPhpSettingValue ¶
func NewPhpSettingValue(value interface{}) (settingValue PhpSettingValue, err error)
func (PhpSettingValue) GetType ¶
func (vo PhpSettingValue) GetType() string
func (PhpSettingValue) IsBool ¶
func (vo PhpSettingValue) IsBool() bool
func (PhpSettingValue) IsByteSize ¶
func (vo PhpSettingValue) IsByteSize() bool
func (PhpSettingValue) IsNumber ¶
func (vo PhpSettingValue) IsNumber() bool
func (PhpSettingValue) String ¶
func (vo PhpSettingValue) String() string
type PhpVersion ¶
type PhpVersion string
func NewPhpVersion ¶
func NewPhpVersion(value interface{}) (phpVersion PhpVersion, err error)
func (PhpVersion) GetWithoutDots ¶
func (vo PhpVersion) GetWithoutDots() string
func (PhpVersion) String ¶
func (vo PhpVersion) String() string
type PortBinding ¶
type PortBinding struct {
Port tkValueObject.NetworkPort `json:"port"`
Protocol tkValueObject.NetworkProtocol `json:"protocol"`
}
func NewPortBinding ¶
func NewPortBinding(value interface{}) (portBinding PortBinding, err error)
func (PortBinding) GetPort ¶
func (vo PortBinding) GetPort() tkValueObject.NetworkPort
func (PortBinding) GetProtocol ¶
func (vo PortBinding) GetProtocol() tkValueObject.NetworkProtocol
func (PortBinding) String ¶
func (vo PortBinding) String() string
type RuntimeType ¶
type RuntimeType string
func NewRuntimeType ¶
func NewRuntimeType(value interface{}) (runtimeType RuntimeType, err error)
func (RuntimeType) String ¶
func (vo RuntimeType) String() string
type ScheduledTaskId ¶
type ScheduledTaskId uint64
func NewScheduledTaskId ¶
func NewScheduledTaskId(value interface{}) (
scheduledTaskId ScheduledTaskId, err error,
)
func (ScheduledTaskId) String ¶
func (vo ScheduledTaskId) String() string
func (ScheduledTaskId) Uint64 ¶
func (vo ScheduledTaskId) Uint64() uint64
type ScheduledTaskName ¶
type ScheduledTaskName string
func NewScheduledTaskName ¶
func NewScheduledTaskName(value interface{}) (
scheduledTaskName ScheduledTaskName, err error,
)
func (ScheduledTaskName) String ¶
func (vo ScheduledTaskName) String() string
type ScheduledTaskOutput ¶
type ScheduledTaskOutput string
func NewScheduledTaskOutput ¶
func NewScheduledTaskOutput(value interface{}) (
scheduledTaskOutput ScheduledTaskOutput, err error,
)
func (ScheduledTaskOutput) String ¶
func (vo ScheduledTaskOutput) String() string
type ScheduledTaskStatus ¶
type ScheduledTaskStatus string
func NewScheduledTaskStatus ¶
func NewScheduledTaskStatus(value interface{}) (
scheduledTaskStatus ScheduledTaskStatus, err error,
)
func (ScheduledTaskStatus) String ¶
func (vo ScheduledTaskStatus) String() string
type ScheduledTaskTag ¶
type ScheduledTaskTag string
func NewScheduledTaskTag ¶
func NewScheduledTaskTag(value interface{}) (
scheduledTaskTag ScheduledTaskTag, err error,
)
func (ScheduledTaskTag) String ¶
func (vo ScheduledTaskTag) String() string
type SecureAccessPublicKeyContent ¶ added in v0.1.7
type SecureAccessPublicKeyContent string
func NewSecureAccessPublicKeyContent ¶ added in v0.1.7
func NewSecureAccessPublicKeyContent(
value interface{},
) (keyContent SecureAccessPublicKeyContent, err error)
func (SecureAccessPublicKeyContent) ReadFingerprint ¶ added in v0.1.7
func (vo SecureAccessPublicKeyContent) ReadFingerprint() ( SecureAccessPublicKeyFingerprint, error, )
func (SecureAccessPublicKeyContent) ReadOnlyKeyName ¶ added in v0.1.7
func (vo SecureAccessPublicKeyContent) ReadOnlyKeyName() ( keyName SecureAccessPublicKeyName, err error, )
func (SecureAccessPublicKeyContent) ReadWithoutKeyName ¶ added in v0.1.7
func (vo SecureAccessPublicKeyContent) ReadWithoutKeyName() string
func (SecureAccessPublicKeyContent) String ¶ added in v0.1.7
func (vo SecureAccessPublicKeyContent) String() string
type SecureAccessPublicKeyFingerprint ¶ added in v0.1.7
type SecureAccessPublicKeyFingerprint string
func NewSecureAccessPublicKeyFingerprint ¶ added in v0.1.7
func NewSecureAccessPublicKeyFingerprint(
value interface{},
) (keyFingerprint SecureAccessPublicKeyFingerprint, err error)
func (SecureAccessPublicKeyFingerprint) String ¶ added in v0.1.7
func (vo SecureAccessPublicKeyFingerprint) String() string
type SecureAccessPublicKeyId ¶ added in v0.1.7
type SecureAccessPublicKeyId uint16
func NewSecureAccessPublicKeyId ¶ added in v0.1.7
func NewSecureAccessPublicKeyId(value interface{}) (keyId SecureAccessPublicKeyId, err error)
func (SecureAccessPublicKeyId) String ¶ added in v0.1.7
func (vo SecureAccessPublicKeyId) String() string
func (SecureAccessPublicKeyId) Uint16 ¶ added in v0.1.7
func (vo SecureAccessPublicKeyId) Uint16() uint16
type SecureAccessPublicKeyName ¶ added in v0.1.7
type SecureAccessPublicKeyName string
func NewSecureAccessPublicKeyName ¶ added in v0.1.7
func NewSecureAccessPublicKeyName(
value interface{},
) (keyName SecureAccessPublicKeyName, err error)
func (SecureAccessPublicKeyName) String ¶ added in v0.1.7
func (vo SecureAccessPublicKeyName) String() string
type ServiceDescription ¶
type ServiceDescription string
func NewServiceDescription ¶
func NewServiceDescription(value interface{}) (
serviceDescription ServiceDescription, err error,
)
func (ServiceDescription) String ¶
func (vo ServiceDescription) String() string
type ServiceEnv ¶
type ServiceEnv string
func NewServiceEnv ¶
func NewServiceEnv(value interface{}) (serviceEnv ServiceEnv, err error)
func (ServiceEnv) String ¶
func (vo ServiceEnv) String() string
type ServiceManifestVersion ¶ added in v0.1.5
type ServiceManifestVersion string
func NewServiceManifestVersion ¶ added in v0.1.5
func NewServiceManifestVersion(value interface{}) (
version ServiceManifestVersion, err error,
)
func (ServiceManifestVersion) String ¶ added in v0.1.5
func (vo ServiceManifestVersion) String() string
type ServiceMetrics ¶
type ServiceMetrics struct {
Pids []uint32 `json:"pids"`
UptimeSecs int64 `json:"uptimeSecs"`
CpuUsagePercent float64 `json:"cpuUsagePercent"`
MemUsagePercent float32 `json:"memUsagePercent"`
}
func NewServiceMetrics ¶
func NewServiceMetrics( pids []uint32, uptimeSecs int64, cpuUsagePercent float64, memUsagePercent float32, ) ServiceMetrics
type ServiceName ¶
type ServiceName string
func NewServiceName ¶
func NewServiceName(value interface{}) (serviceName ServiceName, err error)
func (ServiceName) String ¶
func (vo ServiceName) String() string
type ServiceNameWithVersion ¶
type ServiceNameWithVersion struct {
Name ServiceName `json:"name"`
Version *ServiceVersion `json:"version"`
}
func NewServiceNameWithVersion ¶
func NewServiceNameWithVersion( name ServiceName, version *ServiceVersion, ) ServiceNameWithVersion
func NewServiceNameWithVersionFromString ¶
func NewServiceNameWithVersionFromString(value interface{}) (
serviceNameWithVersion ServiceNameWithVersion, err error,
)
func (ServiceNameWithVersion) MarshalJSON ¶
func (vo ServiceNameWithVersion) MarshalJSON() ([]byte, error)
func (ServiceNameWithVersion) String ¶
func (vo ServiceNameWithVersion) String() string
type ServiceNature ¶
type ServiceNature string
const ( ServiceNatureSolo ServiceNature = "solo" ServiceNatureMulti ServiceNature = "multi" ServiceNatureCustom ServiceNature = "custom" )
func NewServiceNature ¶
func NewServiceNature(value interface{}) (serviceNature ServiceNature, err error)
func (ServiceNature) String ¶
func (vo ServiceNature) String() string
type ServiceStatus ¶
type ServiceStatus string
func NewServiceStatus ¶
func NewServiceStatus(value interface{}) (status ServiceStatus, err error)
func (ServiceStatus) String ¶
func (vo ServiceStatus) String() string
type ServiceType ¶
type ServiceType string
const ( ServiceTypeSystem ServiceType = "system" ServiceTypeDatabase ServiceType = "database" ServiceTypeRuntime ServiceType = "runtime" ServiceTypeWebServer ServiceType = "webserver" ServiceTypeOther ServiceType = "other" )
func NewServiceType ¶
func NewServiceType(value interface{}) (serviceType ServiceType, err error)
func (ServiceType) String ¶
func (vo ServiceType) String() string
type ServiceVersion ¶
type ServiceVersion string
func NewServiceVersion ¶
func NewServiceVersion(value interface{}) (
serviceVersion ServiceVersion, err error,
)
func (ServiceVersion) GetWithoutPunctuation ¶
func (vo ServiceVersion) GetWithoutPunctuation() string
func (ServiceVersion) String ¶
func (vo ServiceVersion) String() string
type SslCertificateAuthority ¶
type SslCertificateAuthority string
func NewSslCertificateAuthority ¶
func NewSslCertificateAuthority(value interface{}) (
certificateAuthority SslCertificateAuthority, err error,
)
func (SslCertificateAuthority) IsSelfSigned ¶
func (vo SslCertificateAuthority) IsSelfSigned() bool
func (SslCertificateAuthority) String ¶
func (vo SslCertificateAuthority) String() string
type SslCertificateContent ¶
type SslCertificateContent string
func NewSslCertificateContent ¶
func NewSslCertificateContent(input interface{}) (
certContent SslCertificateContent, err error,
)
func (SslCertificateContent) MarshalJSON ¶
func (vo SslCertificateContent) MarshalJSON() ([]byte, error)
func (SslCertificateContent) String ¶
func (vo SslCertificateContent) String() string
type SslCertificateId ¶ added in v0.1.5
type SslCertificateId string
func NewSslCertificateId ¶ added in v0.1.5
func NewSslCertificateId(value interface{}) (sslCertificateId SslCertificateId, err error)
func NewSslCertificateIdFromSslCertificateContent ¶ added in v0.1.5
func NewSslCertificateIdFromSslCertificateContent( sslCertificate SslCertificateContent, ) (sslCertificateId SslCertificateId, err error)
func (SslCertificateId) String ¶ added in v0.1.5
func (vo SslCertificateId) String() string
type SslHostname ¶
type SslHostname string
func NewSslHostname ¶
func NewSslHostname(value interface{}) (sslHostname SslHostname, err error)
func (SslHostname) String ¶
func (vo SslHostname) String() string
type SslPairId ¶ added in v0.1.5
type SslPairId string
func NewSslPairId ¶ added in v0.1.5
func NewSslPairIdFromSslPairContent ¶ added in v0.1.5
func NewSslPairIdFromSslPairContent( sslCertificate SslCertificateContent, sslChainCertificates []SslCertificateContent, sslPrivateKey SslPrivateKey, ) (sslPairId SslPairId, err error)
type SslPrivateKey ¶
type SslPrivateKey tkValueObject.EnvelopedPrivateKey
func NewSslPrivateKey ¶
func NewSslPrivateKey(
value interface{},
) (privateKey SslPrivateKey, err error)
func (SslPrivateKey) MarshalJSON ¶
func (vo SslPrivateKey) MarshalJSON() ([]byte, error)
UnmarshalJSON is intentionally absent. All input paths construct SslPrivateKey via NewSslPrivateKey() explicitly — no code path unmarshals it from JSON.
func (SslPrivateKey) String ¶
func (vo SslPrivateKey) String() string
type StorageInfo ¶
type StorageInfo struct {
Total tkValueObject.Byte `json:"total"`
Available tkValueObject.Byte `json:"available"`
Used tkValueObject.Byte `json:"used"`
}
func NewStorageInfo ¶
func NewStorageInfo(total, available, used tkValueObject.Byte) StorageInfo
type UnixCommandOutput ¶ added in v0.2.6
type UnixCommandOutput string
func NewUnixCommandOutput ¶ added in v0.2.6
func NewUnixCommandOutput(rawValue any) (cmdOutput UnixCommandOutput, err error)
func (UnixCommandOutput) String ¶ added in v0.2.6
func (vo UnixCommandOutput) String() string
type UnixCompressionType ¶
type UnixCompressionType string
func NewUnixCompressionType ¶
func NewUnixCompressionType(value interface{}) (
unixCompressionType UnixCompressionType, err error,
)
func (UnixCompressionType) String ¶
func (vo UnixCompressionType) String() string
type UnixFileContent ¶
type UnixFileContent string
func NewUnixFileContent ¶
func NewUnixFileContent(value interface{}) (
unixFileContent UnixFileContent, err error,
)
func (UnixFileContent) String ¶
func (vo UnixFileContent) String() string
type UnixFilePermissions ¶
type UnixFilePermissions string
func NewUnixDirDefaultPermissions ¶ added in v0.2.0
func NewUnixDirDefaultPermissions() UnixFilePermissions
func NewUnixFileDefaultPermissions ¶ added in v0.2.0
func NewUnixFileDefaultPermissions() UnixFilePermissions
func NewUnixFilePermissions ¶
func NewUnixFilePermissions(value interface{}) (
unixFilePermission UnixFilePermissions, err error,
)
*
- The "interfaceToUint" helper was not used due to the problem of octal
- base vs decimal base in file permissions in C-like language.
func (UnixFilePermissions) GetFileMode ¶
func (vo UnixFilePermissions) GetFileMode() fs.FileMode
func (UnixFilePermissions) String ¶
func (vo UnixFilePermissions) String() string
type UpdateProcessFailure ¶
type UpdateProcessFailure struct {
FilePath tkValueObject.UnixAbsoluteFilePath `json:"filePath"`
Reason FailureReason `json:"reason"`
}
func NewUpdateProcessFailure ¶
func NewUpdateProcessFailure( filePath tkValueObject.UnixAbsoluteFilePath, reason FailureReason, ) UpdateProcessFailure
type UploadProcessFailure ¶
type UploadProcessFailure struct {
FileName tkValueObject.UnixFileName `json:"fileName"`
Reason FailureReason `json:"reason"`
}
func NewUploadProcessFailure ¶
func NewUploadProcessFailure( fileName tkValueObject.UnixFileName, reason FailureReason, ) UploadProcessFailure
type VirtualHostType ¶
type VirtualHostType string
const ( VirtualHostTypeTopLevel VirtualHostType = "top-level" VirtualHostTypeSubdomain VirtualHostType = "subdomain" VirtualHostTypeAlias VirtualHostType = "alias" VirtualHostTypeWildcard VirtualHostType = "wildcard" VirtualHostTypePrimary VirtualHostType = "primary" )
func NewVirtualHostType ¶
func NewVirtualHostType(value interface{}) (vhostType VirtualHostType, err error)
func (VirtualHostType) String ¶
func (vo VirtualHostType) String() string
Source Files
¶
- compressionProcessFailure.go
- cronComment.go
- cronId.go
- cronSchedule.go
- currentResourceUsage.go
- dataFieldLabel.go
- dataFieldName.go
- dataFieldSpecificType.go
- dataFieldType.go
- dataFieldValue.go
- databaseName.go
- databasePrivilege.go
- databaseType.go
- databaseUsername.go
- encodedContent.go
- failureReason.go
- fileStreamHandler.go
- hardwareSpecs.go
- inlineHtmlContent.go
- mappingId.go
- mappingMatchPattern.go
- mappingPath.go
- mappingSecurityRuleDescription.go
- mappingSecurityRuleId.go
- mappingSecurityRuleName.go
- mappingTargetType.go
- mappingTargetValue.go
- marketplaceCatalogItemDataField.go
- marketplaceInstallableItemDataField.go
- marketplaceInstalledItemUuid.go
- marketplaceItemDescription.go
- marketplaceItemId.go
- marketplaceItemManifestVersion.go
- marketplaceItemMapping.go
- marketplaceItemName.go
- marketplaceItemSlug.go
- marketplaceItemType.go
- networkProtocol.go
- phpModuleName.go
- phpSettingName.go
- phpSettingOption.go
- phpSettingType.go
- phpSettingValue.go
- phpVersion.go
- portBinding.go
- runtimeType.go
- scheduledTaskId.go
- scheduledTaskName.go
- scheduledTaskOutput.go
- scheduledTaskStatus.go
- scheduledTaskTag.go
- secureAccessPublicKeyContent.go
- secureAccessPublicKeyFingerprint.go
- secureAccessPublicKeyId.go
- secureAccessPublicKeyName.go
- serviceDescription.go
- serviceEnv.go
- serviceManifestVersion.go
- serviceMetrics.go
- serviceName.go
- serviceNameWithVersion.go
- serviceNature.go
- serviceStatus.go
- serviceType.go
- serviceVersion.go
- sslCertificateAuthority.go
- sslCertificateContent.go
- sslCertificateId.go
- sslHostname.go
- sslPairId.go
- sslPrivateKey.go
- storageInfo.go
- systemResourceIdentifier.go
- unixCommandOutput.go
- unixCompressionType.go
- unixFileContent.go
- unixFileOwnership.go
- unixFilePath.go
- unixFilePermissions.go
- updateProcessFailure.go
- uploadProcessFailure.go
- urlPath.go
- username.go
- virtualHostType.go
Click to show internal directories.
Click to hide internal directories.