entity

package
v0.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EarlyRenewalThresholdHours int64 = 48

Variables

View Source
var (
	MappingSecurityRuleDefaultResponseCodeOnMaxRequests    uint = 429
	MappingSecurityRuleDefaultResponseCodeOnMaxConnections uint = 420
)

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	Type      tkValueObject.AccessTokenType  `json:"type"`
	ExpiresIn tkValueObject.UnixTime         `json:"expiresIn"`
	TokenStr  tkValueObject.AccessTokenValue `json:"tokenStr"`
}

func NewAccessToken

func NewAccessToken(
	tokenType tkValueObject.AccessTokenType,
	expiresIn tkValueObject.UnixTime,
	tokenStr tkValueObject.AccessTokenValue,
) AccessToken

type Account

type Account struct {
	Id                     tkValueObject.AccountId            `json:"id"`
	GroupId                tkValueObject.UnixGroupId          `json:"groupId"`
	Username               valueObject.Username               `json:"username"`
	HomeDirectory          tkValueObject.UnixAbsoluteFilePath `json:"homeDirectory"`
	IsSuperAdmin           bool                               `json:"isSuperAdmin"`
	SecureAccessPublicKeys []SecureAccessPublicKey            `json:"secureAccessPublicKeys"`
	CreatedAt              tkValueObject.UnixTime             `json:"createdAt"`
	UpdatedAt              tkValueObject.UnixTime             `json:"updatedAt"`
}

func NewAccount

func NewAccount(
	accountId tkValueObject.AccountId,
	groupId tkValueObject.UnixGroupId,
	username valueObject.Username,
	homeDirectory tkValueObject.UnixAbsoluteFilePath,
	isSuperAdmin bool,
	secureAccessPublicKeys []SecureAccessPublicKey,
	createdAt, updatedAt tkValueObject.UnixTime,
) Account

type Cron

type Cron struct {
	Id       valueObject.CronId        `json:"id"`
	Schedule valueObject.CronSchedule  `json:"schedule"`
	Command  tkValueObject.UnixCommand `json:"command"`
	Comment  *valueObject.CronComment  `json:"comment"`
}

func NewCron

func (Cron) String

func (cron Cron) String() string

type Database

type Database struct {
	Name  valueObject.DatabaseName `json:"name"`
	Type  valueObject.DatabaseType `json:"type"`
	Size  tkValueObject.Byte       `json:"size"`
	Users []DatabaseUser           `json:"users"`
}

func NewDatabase

func NewDatabase(
	name valueObject.DatabaseName,
	dbType valueObject.DatabaseType,
	size tkValueObject.Byte,
	users []DatabaseUser,
) Database

type DatabaseUser

type DatabaseUser struct {
	Username   valueObject.DatabaseUsername    `json:"username"`
	DbName     valueObject.DatabaseName        `json:"dbName"`
	DbType     valueObject.DatabaseType        `json:"dbType"`
	Privileges []valueObject.DatabasePrivilege `json:"privileges"`
}

type InstallableService

type InstallableService struct {
	ManifestVersion      valueObject.ServiceManifestVersion   `json:"manifestVersion"`
	Name                 valueObject.ServiceName              `json:"name"`
	Nature               valueObject.ServiceNature            `json:"nature"`
	Type                 valueObject.ServiceType              `json:"type"`
	StartCmd             tkValueObject.UnixCommand            `json:"startCmd"`
	Description          valueObject.ServiceDescription       `json:"description"`
	Versions             []valueObject.ServiceVersion         `json:"versions"`
	Envs                 []valueObject.ServiceEnv             `json:"envs"`
	PortBindings         []valueObject.PortBinding            `json:"portBindings"`
	StopTimeoutSecs      tkValueObject.UnixTime               `json:"-"`
	StopCmdSteps         []tkValueObject.UnixCommand          `json:"-"`
	InstallTimeoutSecs   tkValueObject.UnixTime               `json:"-"`
	InstallCmdSteps      []tkValueObject.UnixCommand          `json:"-"`
	UninstallTimeoutSecs tkValueObject.UnixTime               `json:"-"`
	UninstallCmdSteps    []tkValueObject.UnixCommand          `json:"-"`
	UninstallFilePaths   []tkValueObject.UnixAbsoluteFilePath `json:"-"`
	PreStartTimeoutSecs  tkValueObject.UnixTime               `json:"-"`
	PreStartCmdSteps     []tkValueObject.UnixCommand          `json:"-"`
	PostStartTimeoutSecs tkValueObject.UnixTime               `json:"-"`
	PostStartCmdSteps    []tkValueObject.UnixCommand          `json:"-"`
	PreStopTimeoutSecs   tkValueObject.UnixTime               `json:"-"`
	PreStopCmdSteps      []tkValueObject.UnixCommand          `json:"-"`
	PostStopTimeoutSecs  tkValueObject.UnixTime               `json:"-"`
	PostStopCmdSteps     []tkValueObject.UnixCommand          `json:"-"`
	ExecUser             *tkValueObject.UnixUsername          `json:"execUser"`
	WorkingDirectory     *tkValueObject.UnixAbsoluteFilePath  `json:"workingDirectory"`
	StartupFile          *tkValueObject.UnixAbsoluteFilePath  `json:"startupFile"`
	LogOutputPath        *tkValueObject.UnixAbsoluteFilePath  `json:"logOutputPath"`
	LogErrorPath         *tkValueObject.UnixAbsoluteFilePath  `json:"logErrorPath"`
	AvatarUrl            *tkValueObject.Url                   `json:"avatarUrl"`
	EstimatedSizeBytes   *tkValueObject.Byte                  `json:"estimatedSizeBytes"`
}

func NewInstallableService

func NewInstallableService(
	manifestVersion valueObject.ServiceManifestVersion,
	name valueObject.ServiceName,
	nature valueObject.ServiceNature,
	serviceType valueObject.ServiceType,
	startCmd tkValueObject.UnixCommand,
	description valueObject.ServiceDescription,
	versions []valueObject.ServiceVersion,
	envs []valueObject.ServiceEnv,
	portBindings []valueObject.PortBinding,
	stopTimeoutSecs tkValueObject.UnixTime,
	stopSteps []tkValueObject.UnixCommand,
	installTimeoutSecs tkValueObject.UnixTime,
	installSteps []tkValueObject.UnixCommand,
	uninstallTimeoutSecs tkValueObject.UnixTime,
	uninstallSteps []tkValueObject.UnixCommand,
	uninstallFilePaths []tkValueObject.UnixAbsoluteFilePath,
	preStartTimeoutSecs tkValueObject.UnixTime,
	preStartSteps []tkValueObject.UnixCommand,
	postStartTimeoutSecs tkValueObject.UnixTime,
	postStartSteps []tkValueObject.UnixCommand,
	preStopTimeoutSecs tkValueObject.UnixTime,
	preStopSteps []tkValueObject.UnixCommand,
	postStopTimeoutSecs tkValueObject.UnixTime,
	postStopSteps []tkValueObject.UnixCommand,
	execUser *tkValueObject.UnixUsername,
	workingDirectory, startupFile, logOutputPath, logErrorPath *tkValueObject.UnixAbsoluteFilePath,
	avatarUrl *tkValueObject.Url,
	estimatedSizeBytes *tkValueObject.Byte,
) InstallableService

type InstalledService

type InstalledService struct {
	Name                 valueObject.ServiceName             `json:"name"`
	Nature               valueObject.ServiceNature           `json:"nature"`
	Type                 valueObject.ServiceType             `json:"type"`
	Version              valueObject.ServiceVersion          `json:"version"`
	Status               valueObject.ServiceStatus           `json:"status"`
	StartCmd             tkValueObject.UnixCommand           `json:"startCmd"`
	Envs                 []valueObject.ServiceEnv            `json:"envs"`
	PortBindings         []valueObject.PortBinding           `json:"portBindings"`
	StopTimeoutSecs      tkValueObject.UnixTime              `json:"-"`
	StopCmdSteps         []tkValueObject.UnixCommand         `json:"-"`
	PreStartTimeoutSecs  tkValueObject.UnixTime              `json:"-"`
	PreStartCmdSteps     []tkValueObject.UnixCommand         `json:"-"`
	PostStartTimeoutSecs tkValueObject.UnixTime              `json:"-"`
	PostStartCmdSteps    []tkValueObject.UnixCommand         `json:"-"`
	PreStopTimeoutSecs   tkValueObject.UnixTime              `json:"-"`
	PreStopCmdSteps      []tkValueObject.UnixCommand         `json:"-"`
	PostStopTimeoutSecs  tkValueObject.UnixTime              `json:"-"`
	PostStopCmdSteps     []tkValueObject.UnixCommand         `json:"-"`
	ExecUser             *tkValueObject.UnixUsername         `json:"execUser"`
	WorkingDirectory     *tkValueObject.UnixAbsoluteFilePath `json:"workingDirectory"`
	StartupFile          *tkValueObject.UnixAbsoluteFilePath `json:"startupFile"`
	AutoStart            *bool                               `json:"autoStart"`
	AutoRestart          *bool                               `json:"autoRestart"`
	TimeoutStartSecs     *uint                               `json:"timeoutStartSecs"`
	MaxStartRetries      *uint                               `json:"maxStartRetries"`
	LogOutputPath        *tkValueObject.UnixAbsoluteFilePath `json:"logOutputPath"`
	LogErrorPath         *tkValueObject.UnixAbsoluteFilePath `json:"logErrorPath"`
	AvatarUrl            *tkValueObject.Url                  `json:"avatarUrl"`
	CreatedAt            tkValueObject.UnixTime              `json:"createdAt"`
	UpdatedAt            tkValueObject.UnixTime              `json:"updatedAt"`
}

func NewInstalledService

func NewInstalledService(
	name valueObject.ServiceName,
	nature valueObject.ServiceNature,
	serviceType valueObject.ServiceType,
	version valueObject.ServiceVersion,
	startCmd tkValueObject.UnixCommand,
	status valueObject.ServiceStatus,
	envs []valueObject.ServiceEnv,
	portBindings []valueObject.PortBinding,
	stopTimeoutSecs tkValueObject.UnixTime,
	stopSteps []tkValueObject.UnixCommand,
	preStartTimeoutSecs tkValueObject.UnixTime,
	preStartSteps []tkValueObject.UnixCommand,
	postStartTimeoutSecs tkValueObject.UnixTime,
	postStartSteps []tkValueObject.UnixCommand,
	preStopTimeoutSecs tkValueObject.UnixTime,
	preStopSteps []tkValueObject.UnixCommand,
	postStopTimeoutSecs tkValueObject.UnixTime,
	postStopSteps []tkValueObject.UnixCommand,
	execUser *tkValueObject.UnixUsername,
	workingDirectory, startupFile *tkValueObject.UnixAbsoluteFilePath,
	autoStart, autoRestart *bool,
	timeoutStartSecs, maxStartRetries *uint,
	logOutputPath, logErrorPath *tkValueObject.UnixAbsoluteFilePath,
	avatarUrl *tkValueObject.Url,
	createdAt tkValueObject.UnixTime,
	updatedAt tkValueObject.UnixTime,
) InstalledService

type Mapping

type Mapping struct {
	Id                            valueObject.MappingId              `json:"id"`
	Hostname                      tkValueObject.Fqdn                 `json:"hostname"`
	Path                          valueObject.MappingPath            `json:"path"`
	MatchPattern                  valueObject.MappingMatchPattern    `json:"matchPattern"`
	TargetType                    valueObject.MappingTargetType      `json:"targetType"`
	TargetValue                   *valueObject.MappingTargetValue    `json:"targetValue"`
	TargetHttpResponseCode        *tkValueObject.HttpStatusCode      `json:"targetHttpResponseCode"`
	ShouldUpgradeInsecureRequests *bool                              `json:"shouldUpgradeInsecureRequests"`
	MarketplaceInstalledItemId    *valueObject.MarketplaceItemId     `json:"marketplaceInstalledItemId"`
	MarketplaceInstalledItemName  *valueObject.MarketplaceItemName   `json:"marketplaceInstalledItemName"`
	MappingSecurityRuleId         *valueObject.MappingSecurityRuleId `json:"mappingSecurityRuleId"`
	CreatedAt                     tkValueObject.UnixTime             `json:"createdAt"`
	UpdatedAt                     tkValueObject.UnixTime             `json:"updatedAt"`
}

func NewMapping

func NewMapping(
	id valueObject.MappingId,
	hostname tkValueObject.Fqdn,
	path valueObject.MappingPath,
	matchPattern valueObject.MappingMatchPattern,
	targetType valueObject.MappingTargetType,
	targetValue *valueObject.MappingTargetValue,
	targetHttpResponseCode *tkValueObject.HttpStatusCode,
	shouldUpgradeInsecureRequests *bool,
	marketplaceInstalledItemId *valueObject.MarketplaceItemId,
	marketplaceInstalledItemName *valueObject.MarketplaceItemName,
	mappingSecurityRuleId *valueObject.MappingSecurityRuleId,
	createdAt tkValueObject.UnixTime,
	updatedAt tkValueObject.UnixTime,
) Mapping

type MappingSecurityRule added in v0.2.4

type MappingSecurityRule 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 *tkValueObject.Byte                         `json:"bandwidthBpsLimitPerConnection"`
	BandwidthLimitOnlyAfterBytes   *tkValueObject.Byte                         `json:"bandwidthLimitOnlyAfterBytes"`
	ResponseCodeOnMaxConnections   *uint                                       `json:"responseCodeOnMaxConnections"`
	CreatedAt                      tkValueObject.UnixTime                      `json:"createdAt"`
	UpdatedAt                      tkValueObject.UnixTime                      `json:"updatedAt"`
}

func MappingSecurityRuleInitialPresets added in v0.2.4

func MappingSecurityRuleInitialPresets() []MappingSecurityRule

func MappingSecurityRulePresetBreezy added in v0.2.4

func MappingSecurityRulePresetBreezy() MappingSecurityRule

func MappingSecurityRulePresetIronclad added in v0.2.4

func MappingSecurityRulePresetIronclad() MappingSecurityRule

func MappingSecurityRulePresetPermissive added in v0.2.4

func MappingSecurityRulePresetPermissive() MappingSecurityRule

func MappingSecurityRulePresetReasonable added in v0.2.4

func MappingSecurityRulePresetReasonable() MappingSecurityRule

func MappingSecurityRulePresetVigilant added in v0.2.4

func MappingSecurityRulePresetVigilant() MappingSecurityRule

func NewMappingSecurityRule added in v0.2.4

func NewMappingSecurityRule(
	id valueObject.MappingSecurityRuleId,
	name valueObject.MappingSecurityRuleName,
	description *valueObject.MappingSecurityRuleDescription,
	allowedIps, blockedIps []tkValueObject.CidrBlock,
	rpsSoftLimitPerIp, rpsHardLimitPerIp, responseCodeOnMaxRequests, maxConnectionsPerIp *uint,
	bandwidthBpsLimitPerConnection, bandwidthLimitOnlyAfterBytes *tkValueObject.Byte,
	responseCodeOnMaxConnections *uint,
	createdAt, updatedAt tkValueObject.UnixTime,
) MappingSecurityRule

type MarketplaceCatalogItem

type MarketplaceCatalogItem struct {
	ManifestVersion      valueObject.MarketplaceItemManifestVersion    `json:"manifestVersion"`
	Id                   valueObject.MarketplaceItemId                 `json:"id"`
	Slugs                []valueObject.MarketplaceItemSlug             `json:"slugs"`
	Name                 valueObject.MarketplaceItemName               `json:"name"`
	Type                 valueObject.MarketplaceItemType               `json:"type"`
	Description          valueObject.MarketplaceItemDescription        `json:"description"`
	Services             []valueObject.ServiceNameWithVersion          `json:"services"`
	Mappings             []valueObject.MarketplaceItemMapping          `json:"mappings"`
	DataFields           []valueObject.MarketplaceCatalogItemDataField `json:"dataFields"`
	InstallTimeoutSecs   tkValueObject.UnixTime                        `json:"-"`
	InstallCmdSteps      []tkValueObject.UnixCommand                   `json:"-"`
	UninstallTimeoutSecs tkValueObject.UnixTime                        `json:"-"`
	UninstallCmdSteps    []tkValueObject.UnixCommand                   `json:"-"`
	UninstallFileNames   []tkValueObject.UnixFileName                  `json:"-"`
	EstimatedSizeBytes   tkValueObject.Byte                            `json:"estimatedSizeBytes"`
	AvatarUrl            tkValueObject.Url                             `json:"avatarUrl"`
	ScreenshotUrls       []tkValueObject.Url                           `json:"screenshotUrls"`
}

type MarketplaceInstalledItem

type MarketplaceInstalledItem struct {
	Id               valueObject.MarketplaceItemId            `json:"id"`
	Name             valueObject.MarketplaceItemName          `json:"name"`
	Hostname         tkValueObject.Fqdn                       `json:"hostname"`
	Type             valueObject.MarketplaceItemType          `json:"type"`
	UrlPath          valueObject.UrlPath                      `json:"urlPath"`
	InstallDirectory tkValueObject.UnixAbsoluteFilePath       `json:"installDirectory"`
	InstallUuid      valueObject.MarketplaceInstalledItemUuid `json:"installUuid"`
	Services         []valueObject.ServiceNameWithVersion     `json:"services"`
	Mappings         []Mapping                                `json:"mappings"`
	AvatarUrl        tkValueObject.Url                        `json:"avatarUrl"`
	Slug             valueObject.MarketplaceItemSlug          `json:"-"`
	CreatedAt        tkValueObject.UnixTime                   `json:"createdAt"`
	UpdatedAt        tkValueObject.UnixTime                   `json:"updatedAt"`
}

type O11yOverview

type O11yOverview struct {
	Hostname             tkValueObject.Fqdn               `json:"hostname"`
	UptimeSecs           uint64                           `json:"uptimeSecs"`
	UptimeRelative       tkValueObject.RelativeTime       `json:"uptimeRelative"`
	PublicIpAddress      tkValueObject.IpAddress          `json:"publicIp"`
	HardwareSpecs        valueObject.HardwareSpecs        `json:"specs"`
	CurrentResourceUsage valueObject.CurrentResourceUsage `json:"currentUsage"`
}

func NewO11yOverview

func NewO11yOverview(
	hostname tkValueObject.Fqdn,
	uptimeSecs uint64,
	uptimeRelative tkValueObject.RelativeTime,
	publicIpAddress tkValueObject.IpAddress,
	hardwareSpecs valueObject.HardwareSpecs,
	currentResourceUsage valueObject.CurrentResourceUsage,
) O11yOverview

type PhpConfigs

type PhpConfigs struct {
	Hostname tkValueObject.Fqdn `json:"hostname"`
	Version  PhpVersion         `json:"version"`
	Settings []PhpSetting       `json:"settings"`
	Modules  []PhpModule        `json:"modules"`
}

func NewPhpConfigs

func NewPhpConfigs(
	hostname tkValueObject.Fqdn,
	version PhpVersion,
	settings []PhpSetting,
	modules []PhpModule,
) PhpConfigs

type PhpModule

type PhpModule struct {
	Name   valueObject.PhpModuleName `json:"name"`
	Status bool                      `json:"status"`
}

func NewPhpModule

func NewPhpModule(
	name valueObject.PhpModuleName,
	status bool,
) PhpModule

func NewPhpModuleFromString

func NewPhpModuleFromString(stringValue string) (module PhpModule, err error)

format: name:status

type PhpSetting

type PhpSetting struct {
	Name    valueObject.PhpSettingName     `json:"name"`
	Type    valueObject.PhpSettingType     `json:"type"`
	Value   valueObject.PhpSettingValue    `json:"value"`
	Options []valueObject.PhpSettingOption `json:"options"`
}

func NewPhpSettingFromString

func NewPhpSettingFromString(stringValue string) (setting PhpSetting, err error)

format: name:value:type:suggestedValue1,suggestedValue2,suggestedValue3

type PhpVersion

type PhpVersion struct {
	Value   valueObject.PhpVersion   `json:"value"`
	Options []valueObject.PhpVersion `json:"options"`
}

func NewPhpVersion

func NewPhpVersion(
	value valueObject.PhpVersion,
	options []valueObject.PhpVersion,
) PhpVersion

type ScheduledTask

type ScheduledTask struct {
	Id          valueObject.ScheduledTaskId      `json:"id"`
	Name        valueObject.ScheduledTaskName    `json:"name"`
	Status      valueObject.ScheduledTaskStatus  `json:"status"`
	Command     tkValueObject.UnixCommand        `json:"command"`
	Tags        []valueObject.ScheduledTaskTag   `json:"tags"`
	TimeoutSecs *uint16                          `json:"timeoutSecs"`
	RunAt       *tkValueObject.UnixTime          `json:"runAt"`
	Output      *valueObject.ScheduledTaskOutput `json:"output"`
	Error       *valueObject.ScheduledTaskOutput `json:"err"`
	StartedAt   *tkValueObject.UnixTime          `json:"startedAt"`
	FinishedAt  *tkValueObject.UnixTime          `json:"finishedAt"`
	ElapsedSecs *uint32                          `json:"elapsedSecs"`
	CreatedAt   tkValueObject.UnixTime           `json:"createdAt"`
	UpdatedAt   tkValueObject.UnixTime           `json:"updatedAt"`
}

func NewScheduledTask

func NewScheduledTask(
	id valueObject.ScheduledTaskId,
	name valueObject.ScheduledTaskName,
	status valueObject.ScheduledTaskStatus,
	command tkValueObject.UnixCommand,
	tags []valueObject.ScheduledTaskTag,
	timeoutSecs *uint16,
	runAt *tkValueObject.UnixTime,
	output, err *valueObject.ScheduledTaskOutput,
	startedAt, finishedAt *tkValueObject.UnixTime,
	elapsedSecs *uint32,
	createdAt, updatedAt tkValueObject.UnixTime,
) ScheduledTask

type SecureAccessPublicKey added in v0.1.7

type SecureAccessPublicKey struct {
	Id          valueObject.SecureAccessPublicKeyId          `json:"id"`
	AccountId   tkValueObject.AccountId                      `json:"accountId"`
	Content     valueObject.SecureAccessPublicKeyContent     `json:"-"`
	Name        valueObject.SecureAccessPublicKeyName        `json:"name"`
	Fingerprint valueObject.SecureAccessPublicKeyFingerprint `json:"fingerprint"`
	CreatedAt   tkValueObject.UnixTime                       `json:"createdAt"`
	UpdatedAt   tkValueObject.UnixTime                       `json:"updatedAt"`
}

type SimplifiedUnixFile added in v0.2.0

type SimplifiedUnixFile struct {
	Name     tkValueObject.UnixFileName         `json:"name"`
	Path     tkValueObject.UnixAbsoluteFilePath `json:"path"`
	MimeType tkValueObject.MimeType             `json:"mimeType"`
}

func NewSimplifiedUnixFile added in v0.2.0

type SslCertificate

type SslCertificate struct {
	Id                   valueObject.SslCertificateId        `json:"id"`
	CommonName           *valueObject.SslHostname            `json:"commonName"`
	CertificateContent   valueObject.SslCertificateContent   `json:"certificateContent"`
	IsIntermediary       bool                                `json:"-"`
	CertificateAuthority valueObject.SslCertificateAuthority `json:"certificateAuthority"`
	AltNames             []valueObject.SslHostname           `json:"altNames"`
	IssuedAt             tkValueObject.UnixTime              `json:"issuedAt"`
	ExpiresAt            tkValueObject.UnixTime              `json:"expiresAt"`
}

func NewSslCertificate

func NewSslCertificate(
	certContent valueObject.SslCertificateContent,
) (certificate SslCertificate, err error)

type SslPair

type SslPair struct {
	Id                  valueObject.SslPairId     `json:"sslPairId"`
	VirtualHostHostname tkValueObject.Fqdn        `json:"virtualHostHostname"`
	Certificate         SslCertificate            `json:"certificate"`
	Key                 valueObject.SslPrivateKey `json:"key"`
	ChainCertificates   []SslCertificate          `json:"chainCertificates"`
}

func NewSslPair

func NewSslPair(
	sslPairId valueObject.SslPairId,
	virtualHostHostname tkValueObject.Fqdn,
	certificate SslCertificate,
	key valueObject.SslPrivateKey,
	chainCertificates []SslCertificate,
) SslPair

func (SslPair) IsPubliclyTrusted

func (sslPair SslPair) IsPubliclyTrusted() bool

type UnixFile

type UnixFile struct {
	Name        tkValueObject.UnixFileName         `json:"name"`
	Path        tkValueObject.UnixAbsoluteFilePath `json:"path"`
	MimeType    tkValueObject.MimeType             `json:"mimeType"`
	Permissions valueObject.UnixFilePermissions    `json:"permissions"`
	Size        tkValueObject.Byte                 `json:"size"`
	Extension   *tkValueObject.UnixFileExtension   `json:"extension"`
	Content     *valueObject.UnixFileContent       `json:"content"`
	Uid         tkValueObject.UnixUserId           `json:"uid"`
	Owner       valueObject.Username               `json:"owner"`
	Gid         tkValueObject.UnixGroupId          `json:"gid"`
	Group       tkValueObject.UnixGroupName        `json:"group"`
	UpdatedAt   tkValueObject.UnixTime             `json:"updatedAt"`
}

func (UnixFile) ToSimplified added in v0.2.0

func (entity UnixFile) ToSimplified() SimplifiedUnixFile

type VirtualHost

type VirtualHost struct {
	Hostname         tkValueObject.Fqdn                 `json:"hostname"`
	Type             valueObject.VirtualHostType        `json:"type"`
	RootDirectory    tkValueObject.UnixAbsoluteFilePath `json:"rootDirectory"`
	ParentHostname   *tkValueObject.Fqdn                `json:"parentHostname"`
	IsPrimary        bool                               `json:"isPrimary"`
	IsWildcard       bool                               `json:"isWildcard"`
	AliasesHostnames []tkValueObject.Fqdn               `json:"aliasesHostnames"`
	CreatedAt        tkValueObject.UnixTime             `json:"createdAt"`
}

func NewVirtualHost

func NewVirtualHost(
	hostname tkValueObject.Fqdn,
	vhostType valueObject.VirtualHostType,
	rootDirectory tkValueObject.UnixAbsoluteFilePath,
	parentHostname *tkValueObject.Fqdn,
	isPrimary bool,
	isWildcard bool,
	aliasesHostnames []tkValueObject.Fqdn,
	createdAt tkValueObject.UnixTime,
) VirtualHost

Jump to

Keyboard shortcuts

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