vhostInfra

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: EPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVirtualHostNotFound error = errors.New("VirtualHostNotFound")
)

Functions

This section is empty.

Types

type MappingCmdRepo added in v0.2.1

type MappingCmdRepo struct {
	// contains filtered or unexported fields
}

func NewMappingCmdRepo added in v0.2.1

func NewMappingCmdRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *MappingCmdRepo

func (*MappingCmdRepo) Create added in v0.2.1

func (repo *MappingCmdRepo) Create(
	createDto dto.CreateMapping,
) (mappingId valueObject.MappingId, err error)

func (*MappingCmdRepo) CreateSecurityRule added in v0.2.4

func (repo *MappingCmdRepo) CreateSecurityRule(
	createDto dto.CreateMappingSecurityRule,
) (ruleId valueObject.MappingSecurityRuleId, err error)

func (*MappingCmdRepo) Delete added in v0.2.1

func (repo *MappingCmdRepo) Delete(mappingId valueObject.MappingId) error

func (*MappingCmdRepo) DeleteSecurityRule added in v0.2.4

func (repo *MappingCmdRepo) DeleteSecurityRule(
	ruleId valueObject.MappingSecurityRuleId,
) error

func (*MappingCmdRepo) RecreateMappingFile added in v0.2.1

func (repo *MappingCmdRepo) RecreateMappingFile(
	vhostHostname tkValueObject.Fqdn,
) error

func (*MappingCmdRepo) RecreateSecurityRuleFiles added in v0.2.4

func (repo *MappingCmdRepo) RecreateSecurityRuleFiles() error

func (*MappingCmdRepo) Update added in v0.2.1

func (repo *MappingCmdRepo) Update(updateDto dto.UpdateMapping) error

func (*MappingCmdRepo) UpdateMarketplaceItem added in v0.2.4

func (repo *MappingCmdRepo) UpdateMarketplaceItem(
	mappingId valueObject.MappingId,
	marketplaceInstalledItemName valueObject.MarketplaceItemName,
) error

func (*MappingCmdRepo) UpdateSecurityRule added in v0.2.4

func (repo *MappingCmdRepo) UpdateSecurityRule(
	updateDto dto.UpdateMappingSecurityRule,
) error

type MappingQueryRepo added in v0.2.1

type MappingQueryRepo struct {
	// contains filtered or unexported fields
}

func NewMappingQueryRepo added in v0.2.1

func NewMappingQueryRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *MappingQueryRepo

func (*MappingQueryRepo) Read added in v0.2.1

func (repo *MappingQueryRepo) Read(requestDto dto.ReadMappingsRequest) (
	responseDto dto.ReadMappingsResponse, err error,
)

func (*MappingQueryRepo) ReadFirst added in v0.2.1

func (repo *MappingQueryRepo) ReadFirst(
	requestDto dto.ReadMappingsRequest,
) (mappingEntity entity.Mapping, err error)

func (*MappingQueryRepo) ReadFirstSecurityRule added in v0.2.4

func (repo *MappingQueryRepo) ReadFirstSecurityRule(
	requestDto dto.ReadMappingSecurityRulesRequest,
) (ruleEntity entity.MappingSecurityRule, err error)

func (*MappingQueryRepo) ReadSecurityRule added in v0.2.4

func (repo *MappingQueryRepo) ReadSecurityRule(
	requestDto dto.ReadMappingSecurityRulesRequest,
) (responseDto dto.ReadMappingSecurityRulesResponse, err error)

type VirtualHostCmdRepo

type VirtualHostCmdRepo struct {
	// contains filtered or unexported fields
}

func NewVirtualHostCmdRepo

func NewVirtualHostCmdRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *VirtualHostCmdRepo

func (*VirtualHostCmdRepo) Create

func (repo *VirtualHostCmdRepo) Create(createDto dto.CreateVirtualHost) error

func (*VirtualHostCmdRepo) Delete

func (repo *VirtualHostCmdRepo) Delete(vhostHostname tkValueObject.Fqdn) error

func (*VirtualHostCmdRepo) ReadVirtualHostWebServerUnitFileFilePath added in v0.2.1

func (repo *VirtualHostCmdRepo) ReadVirtualHostWebServerUnitFileFilePath(
	vhostHostname tkValueObject.Fqdn,
) (unitFilePath tkValueObject.UnixAbsoluteFilePath, err error)

func (*VirtualHostCmdRepo) Update added in v0.2.1

func (repo *VirtualHostCmdRepo) Update(updateDto dto.UpdateVirtualHost) error

func (*VirtualHostCmdRepo) WebServerUnitFileFactory added in v0.3.1

func (repo *VirtualHostCmdRepo) WebServerUnitFileFactory(
	vhostEntity entity.VirtualHost,
	mappingFilePath tkValueObject.UnixAbsoluteFilePath,
) (string, error)

type VirtualHostHelpers added in v0.3.1

type VirtualHostHelpers struct{}

func NewVirtualHostHelpers added in v0.3.1

func NewVirtualHostHelpers() *VirtualHostHelpers

func (*VirtualHostHelpers) IsPrimaryVirtualHost added in v0.3.1

func (helpers *VirtualHostHelpers) IsPrimaryVirtualHost(vhost tkValueObject.Fqdn) bool

func (*VirtualHostHelpers) ReadPrimaryVirtualHostHostname added in v0.3.1

func (helpers *VirtualHostHelpers) ReadPrimaryVirtualHostHostname() (
	primaryHostname tkValueObject.Fqdn, err error,
)

ReadPrimaryVirtualHostHostname returns the primary virtual host hostname from the environment variables, followed by the web server configuration and fallback to the shell command. If you need the hostname straight from the web server configuration, use ReadPrimaryVirtualHostHostnameFromWebServerConf instead.

func (*VirtualHostHelpers) ReadPrimaryVirtualHostHostnameFromWebServerConf added in v0.3.1

func (helpers *VirtualHostHelpers) ReadPrimaryVirtualHostHostnameFromWebServerConf() (
	primaryHostname tkValueObject.Fqdn, err error,
)

func (*VirtualHostHelpers) ReloadWebServer added in v0.3.1

func (helpers *VirtualHostHelpers) ReloadWebServer() error

func (*VirtualHostHelpers) ValidateWebServerConfig added in v0.3.1

func (helpers *VirtualHostHelpers) ValidateWebServerConfig() error

type VirtualHostQueryRepo

type VirtualHostQueryRepo struct {
	// contains filtered or unexported fields
}

func NewVirtualHostQueryRepo

func NewVirtualHostQueryRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *VirtualHostQueryRepo

func (*VirtualHostQueryRepo) Read

func (repo *VirtualHostQueryRepo) Read(requestDto dto.ReadVirtualHostsRequest) (
	responseDto dto.ReadVirtualHostsResponse, err error,
)

func (*VirtualHostQueryRepo) ReadFirst added in v0.2.1

func (repo *VirtualHostQueryRepo) ReadFirst(
	requestDto dto.ReadVirtualHostsRequest,
) (vhostEntity entity.VirtualHost, err error)

func (*VirtualHostQueryRepo) ReadFirstWithMappings added in v0.2.1

func (repo *VirtualHostQueryRepo) ReadFirstWithMappings(
	requestDto dto.ReadVirtualHostsRequest,
) (vhostWithMappingsDto dto.VirtualHostWithMappings, err error)

func (*VirtualHostQueryRepo) ReadVirtualHostMappingsFilePath added in v0.2.1

func (repo *VirtualHostQueryRepo) ReadVirtualHostMappingsFilePath(
	vhostHostname tkValueObject.Fqdn,
) (mappingsFilePath tkValueObject.UnixAbsoluteFilePath, err error)

Jump to

Keyboard shortcuts

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