entity

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 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      valueObject.AccessTokenType `json:"type"`
	ExpiresIn valueObject.UnixTime        `json:"expiresIn"`
	TokenStr  valueObject.AccessTokenStr  `json:"tokenStr"`
}

func NewAccessToken

func NewAccessToken(
	tokenType valueObject.AccessTokenType,
	expiresIn valueObject.UnixTime,
	tokenStr valueObject.AccessTokenStr,
) AccessToken

type Account

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

func NewAccount

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

type ActivityRecord

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

func NewActivityRecord

func NewActivityRecord(
	recordId valueObject.ActivityRecordId,
	recordLevel valueObject.ActivityRecordLevel,
	recordCode valueObject.ActivityRecordCode,
	affectedResources []valueObject.SystemResourceIdentifier,
	recordDetails interface{},
	operatorAccountId *valueObject.AccountId,
	operatorIpAddress *valueObject.IpAddress,
	createdAt valueObject.UnixTime,
) (activityRecord ActivityRecord, err error)

type Cron

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

func NewCron

func NewCron(
	id valueObject.CronId,
	schedule valueObject.CronSchedule,
	command valueObject.UnixCommand,
	comment *valueObject.CronComment,
) Cron

func (Cron) String

func (cron Cron) String() string

type Database

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

func NewDatabase

func NewDatabase(
	name valueObject.DatabaseName,
	dbType valueObject.DatabaseType,
	size valueObject.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             valueObject.UnixCommand            `json:"startCmd"`
	Description          valueObject.ServiceDescription     `json:"description"`
	Versions             []valueObject.ServiceVersion       `json:"versions"`
	Envs                 []valueObject.ServiceEnv           `json:"envs"`
	PortBindings         []valueObject.PortBinding          `json:"portBindings"`
	StopTimeoutSecs      valueObject.UnixTime               `json:"-"`
	StopCmdSteps         []valueObject.UnixCommand          `json:"-"`
	InstallTimeoutSecs   valueObject.UnixTime               `json:"-"`
	InstallCmdSteps      []valueObject.UnixCommand          `json:"-"`
	UninstallTimeoutSecs valueObject.UnixTime               `json:"-"`
	UninstallCmdSteps    []valueObject.UnixCommand          `json:"-"`
	UninstallFilePaths   []valueObject.UnixFilePath         `json:"-"`
	PreStartTimeoutSecs  valueObject.UnixTime               `json:"-"`
	PreStartCmdSteps     []valueObject.UnixCommand          `json:"-"`
	PostStartTimeoutSecs valueObject.UnixTime               `json:"-"`
	PostStartCmdSteps    []valueObject.UnixCommand          `json:"-"`
	PreStopTimeoutSecs   valueObject.UnixTime               `json:"-"`
	PreStopCmdSteps      []valueObject.UnixCommand          `json:"-"`
	PostStopTimeoutSecs  valueObject.UnixTime               `json:"-"`
	PostStopCmdSteps     []valueObject.UnixCommand          `json:"-"`
	ExecUser             *valueObject.UnixUsername          `json:"execUser"`
	WorkingDirectory     *valueObject.UnixFilePath          `json:"workingDirectory"`
	StartupFile          *valueObject.UnixFilePath          `json:"startupFile"`
	LogOutputPath        *valueObject.UnixFilePath          `json:"logOutputPath"`
	LogErrorPath         *valueObject.UnixFilePath          `json:"logErrorPath"`
	AvatarUrl            *valueObject.Url                   `json:"avatarUrl"`
	EstimatedSizeBytes   *valueObject.Byte                  `json:"estimatedSizeBytes"`
}

func NewInstallableService

func NewInstallableService(
	manifestVersion valueObject.ServiceManifestVersion,
	name valueObject.ServiceName,
	nature valueObject.ServiceNature,
	serviceType valueObject.ServiceType,
	startCmd valueObject.UnixCommand,
	description valueObject.ServiceDescription,
	versions []valueObject.ServiceVersion,
	envs []valueObject.ServiceEnv,
	portBindings []valueObject.PortBinding,
	stopTimeoutSecs valueObject.UnixTime,
	stopSteps []valueObject.UnixCommand,
	installTimeoutSecs valueObject.UnixTime,
	installSteps []valueObject.UnixCommand,
	uninstallTimeoutSecs valueObject.UnixTime,
	uninstallSteps []valueObject.UnixCommand,
	uninstallFilePaths []valueObject.UnixFilePath,
	preStartTimeoutSecs valueObject.UnixTime,
	preStartSteps []valueObject.UnixCommand,
	postStartTimeoutSecs valueObject.UnixTime,
	postStartSteps []valueObject.UnixCommand,
	preStopTimeoutSecs valueObject.UnixTime,
	preStopSteps []valueObject.UnixCommand,
	postStopTimeoutSecs valueObject.UnixTime,
	postStopSteps []valueObject.UnixCommand,
	execUser *valueObject.UnixUsername,
	workingDirectory, startupFile, logOutputPath, logErrorPath *valueObject.UnixFilePath,
	avatarUrl *valueObject.Url,
	estimatedSizeBytes *valueObject.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             valueObject.UnixCommand    `json:"startCmd"`
	Envs                 []valueObject.ServiceEnv   `json:"envs"`
	PortBindings         []valueObject.PortBinding  `json:"portBindings"`
	StopTimeoutSecs      valueObject.UnixTime       `json:"-"`
	StopCmdSteps         []valueObject.UnixCommand  `json:"-"`
	PreStartTimeoutSecs  valueObject.UnixTime       `json:"-"`
	PreStartCmdSteps     []valueObject.UnixCommand  `json:"-"`
	PostStartTimeoutSecs valueObject.UnixTime       `json:"-"`
	PostStartCmdSteps    []valueObject.UnixCommand  `json:"-"`
	PreStopTimeoutSecs   valueObject.UnixTime       `json:"-"`
	PreStopCmdSteps      []valueObject.UnixCommand  `json:"-"`
	PostStopTimeoutSecs  valueObject.UnixTime       `json:"-"`
	PostStopCmdSteps     []valueObject.UnixCommand  `json:"-"`
	ExecUser             *valueObject.UnixUsername  `json:"execUser"`
	WorkingDirectory     *valueObject.UnixFilePath  `json:"workingDirectory"`
	StartupFile          *valueObject.UnixFilePath  `json:"startupFile"`
	AutoStart            *bool                      `json:"autoStart"`
	AutoRestart          *bool                      `json:"autoRestart"`
	TimeoutStartSecs     *uint                      `json:"timeoutStartSecs"`
	MaxStartRetries      *uint                      `json:"maxStartRetries"`
	LogOutputPath        *valueObject.UnixFilePath  `json:"logOutputPath"`
	LogErrorPath         *valueObject.UnixFilePath  `json:"logErrorPath"`
	AvatarUrl            *valueObject.Url           `json:"avatarUrl"`
	CreatedAt            valueObject.UnixTime       `json:"createdAt"`
	UpdatedAt            valueObject.UnixTime       `json:"updatedAt"`
}

func NewInstalledService

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

type Mapping

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

func NewMapping

func NewMapping(
	id valueObject.MappingId,
	hostname valueObject.Fqdn,
	path valueObject.MappingPath,
	matchPattern valueObject.MappingMatchPattern,
	targetType valueObject.MappingTargetType,
	targetValue *valueObject.MappingTargetValue,
	targetHttpResponseCode *valueObject.HttpResponseCode,
	shouldUpgradeInsecureRequests *bool,
	marketplaceInstalledItemId *valueObject.MarketplaceItemId,
	marketplaceInstalledItemName *valueObject.MarketplaceItemName,
	mappingSecurityRuleId *valueObject.MappingSecurityRuleId,
	createdAt valueObject.UnixTime,
	updatedAt valueObject.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 *valueObject.Byte                           `json:"bandwidthBpsLimitPerConnection"`
	BandwidthLimitOnlyAfterBytes   *valueObject.Byte                           `json:"bandwidthLimitOnlyAfterBytes"`
	ResponseCodeOnMaxConnections   *uint                                       `json:"responseCodeOnMaxConnections"`
	CreatedAt                      valueObject.UnixTime                        `json:"createdAt"`
	UpdatedAt                      valueObject.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 *valueObject.Byte,
	responseCodeOnMaxConnections *uint,
	createdAt, updatedAt valueObject.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   valueObject.UnixTime                          `json:"-"`
	InstallCmdSteps      []valueObject.UnixCommand                     `json:"-"`
	UninstallTimeoutSecs valueObject.UnixTime                          `json:"-"`
	UninstallCmdSteps    []valueObject.UnixCommand                     `json:"-"`
	UninstallFileNames   []valueObject.UnixFileName                    `json:"-"`
	EstimatedSizeBytes   valueObject.Byte                              `json:"estimatedSizeBytes"`
	AvatarUrl            valueObject.Url                               `json:"avatarUrl"`
	ScreenshotUrls       []valueObject.Url                             `json:"screenshotUrls"`
}

type MarketplaceInstalledItem

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

type O11yOverview

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

func NewO11yOverview

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

type PhpConfigs

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

func NewPhpConfigs

func NewPhpConfigs(
	hostname valueObject.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     valueObject.UnixCommand          `json:"command"`
	Tags        []valueObject.ScheduledTaskTag   `json:"tags"`
	TimeoutSecs *uint16                          `json:"timeoutSecs"`
	RunAt       *valueObject.UnixTime            `json:"runAt"`
	Output      *valueObject.ScheduledTaskOutput `json:"output"`
	Error       *valueObject.ScheduledTaskOutput `json:"err"`
	StartedAt   *valueObject.UnixTime            `json:"startedAt"`
	FinishedAt  *valueObject.UnixTime            `json:"finishedAt"`
	ElapsedSecs *uint32                          `json:"elapsedSecs"`
	CreatedAt   valueObject.UnixTime             `json:"createdAt"`
	UpdatedAt   valueObject.UnixTime             `json:"updatedAt"`
}

func NewScheduledTask

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

type SecureAccessPublicKey added in v0.1.7

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

type SimplifiedUnixFile added in v0.2.0

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

func NewSimplifiedUnixFile added in v0.2.0

func NewSimplifiedUnixFile(
	name valueObject.UnixFileName,
	path valueObject.UnixFilePath,
	mimeType valueObject.MimeType,
) SimplifiedUnixFile

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             valueObject.UnixTime                `json:"issuedAt"`
	ExpiresAt            valueObject.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 valueObject.Fqdn          `json:"virtualHostHostname"`
	Certificate         SslCertificate            `json:"certificate"`
	Key                 valueObject.SslPrivateKey `json:"key"`
	ChainCertificates   []SslCertificate          `json:"chainCertificates"`
}

func NewSslPair

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

func (SslPair) IsPubliclyTrusted

func (sslPair SslPair) IsPubliclyTrusted() bool

type UnixFile

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

func (UnixFile) ToSimplified added in v0.2.0

func (entity UnixFile) ToSimplified() SimplifiedUnixFile

type VirtualHost

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

func NewVirtualHost

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

Jump to

Keyboard shortcuts

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