Documentation ¶
Index ¶
- Constants
- Variables
- func ServiceNameAdapter(value string) string
- type AccessTokenStr
- type AccessTokenType
- type AccountId
- type ActivityRecordCode
- type ActivityRecordId
- type ActivityRecordLevel
- type ActivityRecordMessage
- type Byte
- type CompressionProcessFailure
- type CronComment
- type CronId
- type CronSchedule
- type CurrentResourceUsage
- type DataFieldLabel
- type DataFieldName
- type DataFieldType
- type DataFieldValue
- type DatabaseName
- type DatabasePrivilege
- type DatabaseType
- type DatabaseUsername
- type EncodedContent
- type FailureReason
- type FileStreamHandler
- type Fqdn
- type GroupId
- type GroupName
- type HardwareSpecs
- type Hash
- type HttpResponseCode
- type InlineHtmlContent
- type IpAddress
- type MappingId
- type MappingMatchPattern
- type MappingPath
- 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 MimeType
- type NetworkPort
- type NetworkProtocol
- type PaginationLastSeenId
- type PaginationSortBy
- type PaginationSortDirection
- type Password
- type PhpModuleName
- type PhpSettingName
- type PhpSettingOption
- type PhpSettingType
- type PhpSettingValue
- type PhpVersion
- type PortBinding
- type RelativeTime
- type RuntimeType
- type ScheduledTaskId
- type ScheduledTaskName
- type ScheduledTaskOutput
- type ScheduledTaskStatus
- type ScheduledTaskTag
- 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 SystemResourceIdentifier
- func NewAccountSri(accountId AccountId) SystemResourceIdentifier
- func NewCronSri(accountId AccountId, cronId CronId) SystemResourceIdentifier
- func NewCustomServiceSri(accountId AccountId, serviceName ServiceName) SystemResourceIdentifier
- func NewDatabaseSri(accountId AccountId, databaseName DatabaseName) SystemResourceIdentifier
- func NewDatabaseUserSri(accountId AccountId, databaseUsername DatabaseUsername) SystemResourceIdentifier
- func NewInstallableServiceSri(accountId AccountId, serviceName ServiceName) SystemResourceIdentifier
- func NewInstalledServiceSri(accountId AccountId, serviceName ServiceName) SystemResourceIdentifier
- func NewMappingSri(accountId AccountId, mappingId MappingId) SystemResourceIdentifier
- func NewMarketplaceCatalogItemSri(accountId AccountId, marketplaceCatalogItemId *MarketplaceItemId, ...) SystemResourceIdentifier
- func NewMarketplaceInstalledItemSri(accountId AccountId, marketplaceInstalledItemId MarketplaceItemId) SystemResourceIdentifier
- func NewPhpRuntimeSri(accountId AccountId, virtualHostHostname Fqdn) SystemResourceIdentifier
- func NewSslSri(accountId AccountId, sslPairId SslPairId) SystemResourceIdentifier
- func NewSystemResourceIdentifier(value interface{}) (sri SystemResourceIdentifier, err error)
- func NewSystemResourceIdentifierIgnoreError(value interface{}) SystemResourceIdentifier
- func NewUnixFileSri(accountId AccountId, unixFilePath UnixFilePath) SystemResourceIdentifier
- func NewVirtualHostSri(accountId AccountId, vhostHostname Fqdn) SystemResourceIdentifier
- type UnixCommand
- type UnixCompressionType
- type UnixFileContent
- type UnixFileExtension
- type UnixFileName
- type UnixFilePath
- func (vo UnixFilePath) GetFileDir() UnixFilePath
- func (vo UnixFilePath) GetFileExtension() (UnixFileExtension, error)
- func (vo UnixFilePath) GetFileName() UnixFileName
- func (vo UnixFilePath) GetFileNameWithoutExtension() UnixFileName
- func (vo UnixFilePath) GetWithoutExtension() UnixFilePath
- func (vo UnixFilePath) String() string
- type UnixFilePermissions
- type UnixTime
- type UnixUid
- type UnixUsername
- type UpdateProcessFailure
- type UploadProcessFailure
- type Url
- type UrlPath
- type Username
- type VirtualHostType
Constants ¶
View Source
const FileContentMaxSizeInMb = 5
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{
"top-level", "subdomain", "alias",
}
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 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 ValidMappingTargetTypes = []string{
"url", "service", "response-code", "inline-html", "static-files",
}
View Source
var ValidPaginationSortDirections = []string{"asc", "desc"}
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{
"solo", "multi", "custom",
}
View Source
var ValidServiceTypes = []string{
"application", "runtime", "database", "webserver", "mom", "monitoring",
"logging", "security", "backup", "system", "other",
}
View Source
var ValidUnixCompressionTypes = []string{
"tgz", "zip",
}
Functions ¶
func ServiceNameAdapter ¶
Types ¶
type AccessTokenStr ¶
type AccessTokenStr string
func NewAccessTokenStr ¶
func NewAccessTokenStr(value interface{}) (accessTokenStr AccessTokenStr, err error)
func (AccessTokenStr) String ¶
func (vo AccessTokenStr) String() string
type AccessTokenType ¶
type AccessTokenType string
func NewAccessTokenType ¶
func NewAccessTokenType(value interface{}) ( accessTokenType AccessTokenType, err error, )
func (AccessTokenType) String ¶
func (vo AccessTokenType) String() string
type ActivityRecordCode ¶
type ActivityRecordCode string
func NewActivityRecordCode ¶
func NewActivityRecordCode(value interface{}) (code ActivityRecordCode, err error)
func (ActivityRecordCode) String ¶
func (vo ActivityRecordCode) String() string
type ActivityRecordId ¶
type ActivityRecordId uint64
func NewActivityRecordId ¶
func NewActivityRecordId(value interface{}) ( activityRecordId ActivityRecordId, err error, )
func (ActivityRecordId) String ¶
func (vo ActivityRecordId) String() string
func (ActivityRecordId) Uint64 ¶
func (vo ActivityRecordId) Uint64() uint64
type ActivityRecordLevel ¶
type ActivityRecordLevel string
func NewActivityRecordLevel ¶
func NewActivityRecordLevel(value interface{}) ( activityRecordLevel ActivityRecordLevel, err error, )
func (ActivityRecordLevel) String ¶
func (vo ActivityRecordLevel) String() string
type ActivityRecordMessage ¶
type ActivityRecordMessage string
func NewActivityRecordMessage ¶
func NewActivityRecordMessage(value interface{}) ( activityRecordMessage ActivityRecordMessage, err error, )
func (ActivityRecordMessage) String ¶
func (vo ActivityRecordMessage) String() string
type CompressionProcessFailure ¶
type CompressionProcessFailure struct { FilePath UnixFilePath `json:"filePath"` Reason FailureReason `json:"reason"` }
func NewCompressionProcessFailure ¶
func NewCompressionProcessFailure( filePath UnixFilePath, 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 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 UnixFileName Size 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 Byte `json:"memoryTotal"` StorageTotal Byte `json:"storageTotal"` }
func NewHardwareSpecs ¶
func NewHardwareSpecs( cpuModel string, cpuCores, cpuFrequency float64, memoryTotal, storageTotal Byte, ) HardwareSpecs
func (HardwareSpecs) String ¶
func (vo HardwareSpecs) String() string
type HttpResponseCode ¶
type HttpResponseCode uint16
func NewHttpResponseCode ¶
func NewHttpResponseCode(value interface{}) ( httpResponseCode HttpResponseCode, err error, )
func (HttpResponseCode) String ¶
func (vo HttpResponseCode) 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 IpAddress ¶
type IpAddress string
func NewIpAddress ¶
func NewLocalhostIpAddress ¶
func NewLocalhostIpAddress() IpAddress
type MappingMatchPattern ¶
type MappingMatchPattern string
func NewMappingMatchPattern ¶
func NewMappingMatchPattern(value interface{}) ( mappingMatchPattern 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 MappingTargetType ¶
type MappingTargetType string
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"` DefaultValue *DataFieldValue `json:"defaultValue,omitempty"` Options []DataFieldValue `json:"options,omitempty"` IsRequired bool `json:"isRequired"` }
func NewMarketplaceCatalogItemDataField ¶
func NewMarketplaceCatalogItemDataField( name DataFieldName, label DataFieldLabel, fieldType DataFieldType, 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, error)
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 *HttpResponseCode `json:"targetHttpResponseCode"` }
func NewMarketplaceItemMapping ¶
func NewMarketplaceItemMapping( path MappingPath, matchPattern MappingMatchPattern, targetType MappingTargetType, targetValue *MappingTargetValue, targetHttpResponseCode *HttpResponseCode, ) 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 NetworkPort ¶
type NetworkPort uint16
func NewNetworkPort ¶
func NewNetworkPort(value interface{}) (networkPort NetworkPort, err error)
func (NetworkPort) String ¶
func (vo NetworkPort) String() string
func (NetworkPort) Uint16 ¶
func (vo NetworkPort) Uint16() uint16
type NetworkProtocol ¶
type NetworkProtocol string
func NewNetworkProtocol ¶
func NewNetworkProtocol(value interface{}) ( networkProtocol NetworkProtocol, err error, )
func (NetworkProtocol) String ¶
func (vo NetworkProtocol) String() string
type PaginationLastSeenId ¶
type PaginationLastSeenId string
func NewPaginationLastSeenId ¶
func NewPaginationLastSeenId( value interface{}, ) (lastSeenId PaginationLastSeenId, err error)
func (PaginationLastSeenId) String ¶
func (vo PaginationLastSeenId) String() string
type PaginationSortBy ¶
type PaginationSortBy string
func NewPaginationSortBy ¶
func NewPaginationSortBy(value interface{}) (sortBy PaginationSortBy, err error)
func (PaginationSortBy) String ¶
func (vo PaginationSortBy) String() string
type PaginationSortDirection ¶
type PaginationSortDirection string
func NewPaginationSortDirection ¶
func NewPaginationSortDirection( value interface{}, ) (sortDirection PaginationSortDirection, err error)
func (PaginationSortDirection) String ¶
func (vo PaginationSortDirection) 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 NetworkPort `json:"port"` Protocol NetworkProtocol `json:"protocol"` }
func NewPortBinding ¶
func NewPortBinding(value interface{}) (portBinding PortBinding, err error)
func (PortBinding) GetPort ¶
func (vo PortBinding) GetPort() NetworkPort
func (PortBinding) GetProtocol ¶
func (vo PortBinding) GetProtocol() NetworkProtocol
func (PortBinding) String ¶
func (vo PortBinding) String() string
type RelativeTime ¶
type RelativeTime string
func NewRelativeTime ¶
func NewRelativeTime(value interface{}) (relativeTime RelativeTime, err error)
func (RelativeTime) String ¶
func (vo RelativeTime) 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 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
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
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 string
func NewSslPrivateKey ¶
func NewSslPrivateKey(value interface{}) (privateKey SslPrivateKey, err error)
func (SslPrivateKey) MarshalJSON ¶
func (vo SslPrivateKey) MarshalJSON() ([]byte, error)
func (SslPrivateKey) String ¶
func (vo SslPrivateKey) String() string
type StorageInfo ¶
type StorageInfo struct { Total Byte `json:"total"` Available Byte `json:"available"` Used Byte `json:"used"` }
func NewStorageInfo ¶
func NewStorageInfo(total, available, used Byte) StorageInfo
type SystemResourceIdentifier ¶ added in v0.1.2
type SystemResourceIdentifier string
func NewAccountSri ¶ added in v0.1.2
func NewAccountSri(accountId AccountId) SystemResourceIdentifier
func NewCronSri ¶ added in v0.1.5
func NewCronSri( accountId AccountId, cronId CronId, ) SystemResourceIdentifier
func NewCustomServiceSri ¶ added in v0.1.5
func NewCustomServiceSri( accountId AccountId, serviceName ServiceName, ) SystemResourceIdentifier
func NewDatabaseSri ¶ added in v0.1.5
func NewDatabaseSri( accountId AccountId, databaseName DatabaseName, ) SystemResourceIdentifier
func NewDatabaseUserSri ¶ added in v0.1.5
func NewDatabaseUserSri( accountId AccountId, databaseUsername DatabaseUsername, ) SystemResourceIdentifier
func NewInstallableServiceSri ¶ added in v0.1.5
func NewInstallableServiceSri( accountId AccountId, serviceName ServiceName, ) SystemResourceIdentifier
func NewInstalledServiceSri ¶ added in v0.1.5
func NewInstalledServiceSri( accountId AccountId, serviceName ServiceName, ) SystemResourceIdentifier
func NewMappingSri ¶ added in v0.1.5
func NewMappingSri( accountId AccountId, mappingId MappingId, ) SystemResourceIdentifier
func NewMarketplaceCatalogItemSri ¶ added in v0.1.5
func NewMarketplaceCatalogItemSri( accountId AccountId, marketplaceCatalogItemId *MarketplaceItemId, marketplaceCatalogItemSlug *MarketplaceItemSlug, ) SystemResourceIdentifier
func NewMarketplaceInstalledItemSri ¶ added in v0.1.5
func NewMarketplaceInstalledItemSri( accountId AccountId, marketplaceInstalledItemId MarketplaceItemId, ) SystemResourceIdentifier
func NewPhpRuntimeSri ¶ added in v0.1.5
func NewPhpRuntimeSri( accountId AccountId, virtualHostHostname Fqdn, ) SystemResourceIdentifier
func NewSslSri ¶ added in v0.1.5
func NewSslSri( accountId AccountId, sslPairId SslPairId, ) SystemResourceIdentifier
func NewSystemResourceIdentifier ¶ added in v0.1.2
func NewSystemResourceIdentifier( value interface{}, ) (sri SystemResourceIdentifier, err error)
func NewSystemResourceIdentifierIgnoreError ¶ added in v0.1.2
func NewSystemResourceIdentifierIgnoreError(value interface{}) SystemResourceIdentifier
Note: this panic is solely to warn about the misuse of the VO, specifically for developer auditing, and has nothing to do with user input. This is not a standard and should not be followed for the development of other VOs.
func NewUnixFileSri ¶ added in v0.1.5
func NewUnixFileSri( accountId AccountId, unixFilePath UnixFilePath, ) SystemResourceIdentifier
func NewVirtualHostSri ¶ added in v0.1.5
func NewVirtualHostSri( accountId AccountId, vhostHostname Fqdn, ) SystemResourceIdentifier
func (SystemResourceIdentifier) String ¶ added in v0.1.2
func (vo SystemResourceIdentifier) String() string
type UnixCommand ¶
type UnixCommand string
func NewUnixCommand ¶
func NewUnixCommand(value interface{}) (unixCommand UnixCommand, err error)
func (UnixCommand) String ¶
func (vo UnixCommand) 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 UnixFileExtension ¶
type UnixFileExtension string
func NewUnixFileExtension ¶
func NewUnixFileExtension(value interface{}) ( unixFileExtension UnixFileExtension, err error, )
func (UnixFileExtension) GetMimeType ¶
func (vo UnixFileExtension) GetMimeType() MimeType
func (UnixFileExtension) String ¶
func (vo UnixFileExtension) String() string
type UnixFileName ¶
type UnixFileName string
func NewUnixFileName ¶
func NewUnixFileName(value interface{}) (fileName UnixFileName, err error)
func (UnixFileName) String ¶
func (vo UnixFileName) String() string
type UnixFilePath ¶
type UnixFilePath string
func NewUnixFilePath ¶
func NewUnixFilePath(value interface{}) (filePath UnixFilePath, err error)
func (UnixFilePath) GetFileDir ¶
func (vo UnixFilePath) GetFileDir() UnixFilePath
func (UnixFilePath) GetFileExtension ¶
func (vo UnixFilePath) GetFileExtension() (UnixFileExtension, error)
func (UnixFilePath) GetFileName ¶
func (vo UnixFilePath) GetFileName() UnixFileName
func (UnixFilePath) GetFileNameWithoutExtension ¶
func (vo UnixFilePath) GetFileNameWithoutExtension() UnixFileName
func (UnixFilePath) GetWithoutExtension ¶
func (vo UnixFilePath) GetWithoutExtension() UnixFilePath
func (UnixFilePath) String ¶
func (vo UnixFilePath) String() string
type UnixFilePermissions ¶
type UnixFilePermissions string
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 UnixTime ¶
type UnixTime int64
func NewUnixTime ¶
func NewUnixTimeAfterNow ¶
func NewUnixTimeBeforeNow ¶
func NewUnixTimeNow ¶
func NewUnixTimeNow() UnixTime
func NewUnixTimeWithGoTime ¶
func (UnixTime) GetAsGoTime ¶
func (UnixTime) GetDateOnly ¶
func (UnixTime) GetRfcDate ¶
func (UnixTime) GetTimeOnly ¶
type UnixUsername ¶
type UnixUsername string
func NewUnixUsername ¶
func NewUnixUsername(value interface{}) (unixUsername UnixUsername, err error)
func (UnixUsername) String ¶
func (vo UnixUsername) String() string
type UpdateProcessFailure ¶
type UpdateProcessFailure struct { FilePath UnixFilePath `json:"filePath"` Reason FailureReason `json:"reason"` }
func NewUpdateProcessFailure ¶
func NewUpdateProcessFailure( filePath UnixFilePath, reason FailureReason, ) UpdateProcessFailure
type UploadProcessFailure ¶
type UploadProcessFailure struct { FileName UnixFileName `json:"fileName"` Reason FailureReason `json:"reason"` }
func NewUploadProcessFailure ¶
func NewUploadProcessFailure( fileName UnixFileName, reason FailureReason, ) UploadProcessFailure
type VirtualHostType ¶
type VirtualHostType string
func NewVirtualHostType ¶
func NewVirtualHostType(value interface{}) (vhostType VirtualHostType, err error)
func (VirtualHostType) String ¶
func (vo VirtualHostType) String() string
Source Files ¶
- accessTokenStr.go
- accessTokenType.go
- accountId.go
- activityRecordCode.go
- activityRecordId.go
- activityRecordLevel.go
- activityRecordMessage.go
- byte.go
- compressionProcessFailure.go
- cronComment.go
- cronId.go
- cronSchedule.go
- currentResourceUsage.go
- dataFieldLabel.go
- dataFieldName.go
- dataFieldType.go
- dataFieldValue.go
- databaseName.go
- databasePrivilege.go
- databaseType.go
- databaseUsername.go
- encodedContent.go
- failureReason.go
- fileStreamHandler.go
- fqdn.go
- groupId.go
- groupName.go
- hardwareSpecs.go
- hash.go
- httpResponseCode.go
- inlineHtmlContent.go
- ipAddress.go
- mappingId.go
- mappingMatchPattern.go
- mappingPath.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
- mimeType.go
- networkPort.go
- networkProtocol.go
- paginationLastSeenId.go
- paginationSortBy.go
- paginationSortDirection.go
- password.go
- phpModuleName.go
- phpSettingName.go
- phpSettingOption.go
- phpSettingType.go
- phpSettingValue.go
- phpVersion.go
- portBinding.go
- relativeTime.go
- runtimeType.go
- scheduledTaskId.go
- scheduledTaskName.go
- scheduledTaskOutput.go
- scheduledTaskStatus.go
- scheduledTaskTag.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
- unixCommand.go
- unixCompressionType.go
- unixFileContent.go
- unixFileExtension.go
- unixFileName.go
- unixFilePath.go
- unixFilePermissions.go
- unixTime.go
- unixUid.go
- unixUsername.go
- updateProcessFailure.go
- uploadProcessFailure.go
- url.go
- urlPath.go
- username.go
- virtualHostType.go
Click to show internal directories.
Click to hide internal directories.